mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-19 03:49:42 +08:00
33 lines
753 B
Plaintext
33 lines
753 B
Plaintext
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)
|
|
|
|
|