2021-10-28 13:34:00 +08:00
|
|
|
cmake_minimum_required(VERSION 3.3)
|
2021-10-29 17:45:21 +08:00
|
|
|
|
2021-10-28 13:34:00 +08:00
|
|
|
project(TowerOptoSifAndSpectral)
|
2021-10-29 17:45:21 +08:00
|
|
|
|
2021-10-28 13:34:00 +08:00
|
|
|
set(QT Core Network WebSockets SerialPort)
|
2021-10-29 17:45:21 +08:00
|
|
|
|
2021-10-28 13:34:00 +08:00
|
|
|
find_package(Qt5 REQUIRED ${QT})
|
2021-10-29 17:45:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
file(GLOB_RECURSE HDR_LIST "source/*.h")
|
|
|
|
file(GLOB_RECURSE SRC_LIST "source/*.cpp")
|
|
|
|
|
|
|
|
|
|
|
|
include_directories("source/ATP")
|
|
|
|
|
2021-10-28 13:34:00 +08:00
|
|
|
add_executable( TowerOptoSifAndSpectral
|
2021-10-29 17:45:21 +08:00
|
|
|
main.cpp
|
|
|
|
${HDR_LIST}
|
|
|
|
${SRC_LIST}
|
2021-10-28 13:34:00 +08:00
|
|
|
)
|
2021-10-29 17:45:21 +08:00
|
|
|
qt5_use_modules(TowerOptoSifAndSpectral ${QT})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Qt5_DIR("C:\Qt\Qt5.9.0")
|
|
|
|
#include_directories("C:/Qt/Qt5.9.0/5.9/msvc2017_64/include")
|