|
| 1 | +cmake_minimum_required(VERSION 3.16) |
| 2 | +project(ICP) |
| 3 | + |
| 4 | +set(CMAKE_CXX_STANDARD 17) |
| 5 | +set(CMAKE_AUTOMOC ON) |
| 6 | +set(CMAKE_AUTORCC ON) |
| 7 | +set(CMAKE_AUTOUIC ON) |
| 8 | + |
| 9 | +set(QT_VERSION 5) |
| 10 | +set(REQUIRED_LIBS Core Widgets) |
| 11 | +set(REQUIRED_LIBS_QUALIFIED Qt5::Core Qt5::Widgets) |
| 12 | + |
| 13 | +find_package(PahoMqttCpp REQUIRED) |
| 14 | + |
| 15 | +add_executable(${PROJECT_NAME} |
| 16 | + src/icp.cpp |
| 17 | + src/mainwindow.cpp |
| 18 | + src/mainwindow.h |
| 19 | + src/mainwindow.ui |
| 20 | + src/explorer.cpp |
| 21 | + src/explorer.h |
| 22 | + src/explorer.ui |
| 23 | + src/dashboard_components/dashboard_connect.cpp |
| 24 | + src/dashboard_components/dashboard_connect.h |
| 25 | + src/dashboard_components/dashboard_connect.ui |
| 26 | + src/dashboard.cpp |
| 27 | + src/dashboard.h |
| 28 | + src/dashboard.ui |
| 29 | + assets/icons.qrc |
| 30 | + src/explorer_components/rundialog.cpp |
| 31 | + src/explorer_components/rundialog.h |
| 32 | + src/explorer_components/rundialog.ui |
| 33 | + src/message.cpp |
| 34 | + src/message.h |
| 35 | + src/explorer_components/mqtt_tree_model.cpp |
| 36 | + src/explorer_components/mqtt_tree_model.h |
| 37 | + src/explorer_components/topicdialog.cpp |
| 38 | + src/explorer_components/topicdialog.h |
| 39 | + src/explorer_components/topicdialog.ui |
| 40 | + src/explorer_components/sendmessage.cpp |
| 41 | + src/explorer_components/sendmessage.h |
| 42 | + src/explorer_components/sendmessage.ui |
| 43 | + src/explorer_components/messagebutton.cpp |
| 44 | + src/explorer_components/messagebutton.h |
| 45 | + src/simulator.cpp |
| 46 | + src/simulator.h |
| 47 | + src/simulator.ui |
| 48 | + src/simulator_components/mqtt_widget.cpp |
| 49 | + src/simulator_components/mqtt_widget.h |
| 50 | + src/simulator_components/mqtt_worker.cpp |
| 51 | + src/simulator_components/mqtt_worker.h |
| 52 | + src/message.cpp |
| 53 | + src/message.h |
| 54 | + src/dashboard_components/mqtt_client.cpp |
| 55 | + src/dashboard_components/mqtt_client.h |
| 56 | + src/dashboard_components/widget_type.h |
| 57 | + src/dashboard_components/widget_manager.cpp |
| 58 | + src/dashboard_components/widget_manager.h |
| 59 | + src/dashboard_components/widgets/mqtt_widget_base.cpp |
| 60 | + src/dashboard_components/widgets/mqtt_widget_base.h |
| 61 | + src/dashboard_components/flow_layout.cpp |
| 62 | + src/dashboard_components/flow_layout.h |
| 63 | + src/dashboard_components/widgets/text_mqtt_widget.cpp |
| 64 | + src/dashboard_components/widgets/text_mqtt_widget.h |
| 65 | + src/dashboard_components/widgets/temp_mqtt_widget.cpp |
| 66 | + src/dashboard_components/widgets/temp_mqtt_widget.h |
| 67 | + src/dashboard_components/dashboard_add_topic.cpp |
| 68 | + src/dashboard_components/dashboard_add_topic.h |
| 69 | + src/dashboard_components/dashboard_add_topic.ui |
| 70 | + src/dashboard_components/widgets/switch_mqtt_widget.cpp |
| 71 | + src/dashboard_components/widgets/switch_mqtt_widget.h |
| 72 | + src/dashboard_components/widgets/temp_raw_mqtt_widget.cpp |
| 73 | + src/dashboard_components/widgets/temp_raw_mqtt_widget.h) |
| 74 | + |
| 75 | +find_package(Qt${QT_VERSION} COMPONENTS ${REQUIRED_LIBS} REQUIRED) |
| 76 | +target_link_libraries(${PROJECT_NAME} ${REQUIRED_LIBS_QUALIFIED} PahoMqttCpp::paho-mqttpp3-static) |
0 commit comments