From 89bba3bd3ef192925c3fe4937145fcbeefaac6b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=AB=8B=E6=96=B0?= Date: Thu, 25 Nov 2021 09:37:30 +0800 Subject: [PATCH] =?UTF-8?q?camkelist=E5=A4=A7=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..ce99ed3 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,32 @@ +cmake_minimum_required(VERSION 3.3) + +project(TowerOptoSifAndSpectral) +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTOUIC ON) +set(CMAKE_AUTORCC ON) +set(QT Core Network WebSockets SerialPort Widgets) +set(CMAKE_CXX_STANDARD 14) +find_package(Qt5 REQUIRED ${QT}) + + +file(GLOB_RECURSE HDR_LIST "source/*.h") +file(GLOB_RECURSE SRC_LIST "source/*.cpp") + +include_directories("source") +include_directories("source/FS") +include_directories("source/Logger") +include_directories("source/ZZ_SDK") +include_directories("source/Settings") +include_directories("source/Thread") + +add_executable( TowerOptoSifAndSpectral + main.cpp + ${HDR_LIST} + ${SRC_LIST} +) +qt5_use_modules(TowerOptoSifAndSpectral ${QT}) + + +set_target_properties(TowerOptoSifAndSpectral PROPERTIES AUTOMOC ON) + +