diff options
Diffstat (limited to 'examples/serialport/blockingslave/CMakeLists.txt')
-rw-r--r-- | examples/serialport/blockingslave/CMakeLists.txt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/examples/serialport/blockingslave/CMakeLists.txt b/examples/serialport/blockingslave/CMakeLists.txt new file mode 100644 index 0000000..4b63a3c --- /dev/null +++ b/examples/serialport/blockingslave/CMakeLists.txt @@ -0,0 +1,35 @@ +# Generated from blockingslave.pro. + +cmake_minimum_required(VERSION 3.14) +project(blockingslave LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Widgets) +find_package(Qt6 COMPONENTS SerialPort) + +add_qt_gui_executable(blockingslave + dialog.cpp dialog.h + main.cpp + slavethread.cpp slavethread.h +) +target_link_libraries(blockingslave PUBLIC + Qt::Core + Qt::Gui + Qt::SerialPort + Qt::Widgets +) + +install(TARGETS blockingslave + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) |