You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.1 KiB

2 years ago
1 year ago
2 years ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
  1. cmake_minimum_required(VERSION 3.5)
  2. project(CameraLightingController VERSION 0.1 LANGUAGES CXX)
  3. set(CMAKE_INCLUDE_CURRENT_DIR ON)
  4. set(CMAKE_AUTOUIC ON)
  5. set(CMAKE_AUTOMOC ON)
  6. set(CMAKE_AUTORCC ON)
  7. set(CMAKE_CXX_STANDARD 11)
  8. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  9. set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
  10. find_package(QT NAMES Qt6 Qt5 COMPONENTS Widgets REQUIRED)
  11. find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets SerialPort Charts Concurrent REQUIRED)
  12. include_directories(libxsync/include)
  13. include_directories(src)
  14. include_directories(./)
  15. include_directories(libzqt)
  16. add_compile_options(-Wall )
  17. set(PROJECT_SOURCES
  18. libzqt/logger.cpp
  19. libzqt/zqthread.cpp
  20. libzqt/QFunction.cpp
  21. src/main.cpp
  22. mainwindow.cpp
  23. mainwindow.h
  24. mainwindow.ui
  25. src/camera_light_src_timing_controller/clst_controler.cpp
  26. src/camera_light_src_timing_controller/qt_serial_datachannel.cpp
  27. src/camera_light_src_timing_controller/clst_controler_sig_type.cpp
  28. src/camera_light_src_timing_controller/reginfo.cpp
  29. zaf_protocol/zaf_ecode.c
  30. zaf_protocol/zaf_protocol.c
  31. app.rc
  32. # libxsync/src/xsync_v2.cpp
  33. # src/xsync_udp_factory_impl.cpp
  34. # libxsync/src/xsync_v2_sig_type.cpp
  35. # libxsync/src/xsync_utils.cpp
  36. )
  37. add_executable(CameraLightingController WIN32
  38. ${PROJECT_SOURCES}
  39. )
  40. # set_target_properties(CameraLightingController PROPERTIES RC_ICONS "${CMAKE_CURRENT_SOURCE_DIR}/logo.ico")
  41. target_link_options(CameraLightingController PRIVATE -static -static-libgcc -static-libstdc++)
  42. target_link_libraries(CameraLightingController PRIVATE Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::SerialPort Qt${QT_VERSION_MAJOR}::Charts Qt${QT_VERSION_MAJOR}::Concurrent wsock32)
  43. set_target_properties(CameraLightingController PROPERTIES
  44. MACOSX_BUNDLE_GUI_IDENTIFIER my.example.com
  45. MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
  46. MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
  47. )
  48. if(QT_VERSION_MAJOR EQUAL 6)
  49. qt_finalize_executable(CameraLightingController)
  50. endif()