aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ivicore/qface-tutorial/chapter3-simulation-backend
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ivicore/qface-tutorial/chapter3-simulation-backend')
-rw-r--r--examples/ivicore/qface-tutorial/chapter3-simulation-backend/backend_simulator/CMakeLists.txt6
-rw-r--r--examples/ivicore/qface-tutorial/chapter3-simulation-backend/frontend/CMakeLists.txt6
-rw-r--r--examples/ivicore/qface-tutorial/chapter3-simulation-backend/imports/CMakeLists.txt15
3 files changed, 22 insertions, 5 deletions
diff --git a/examples/ivicore/qface-tutorial/chapter3-simulation-backend/backend_simulator/CMakeLists.txt b/examples/ivicore/qface-tutorial/chapter3-simulation-backend/backend_simulator/CMakeLists.txt
index 9927170..ce270e6 100644
--- a/examples/ivicore/qface-tutorial/chapter3-simulation-backend/backend_simulator/CMakeLists.txt
+++ b/examples/ivicore/qface-tutorial/chapter3-simulation-backend/backend_simulator/CMakeLists.txt
@@ -19,6 +19,12 @@ find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS IviCore)
+qt_add_plugin(instrumentcluster_simulation)
+
+# IVI Generator:
+qt6_ivigenerator(instrumentcluster_simulation
+ QFACE_SOURCES ../instrument-cluster.qface
+ QFACE_FORMAT backend_simulator
)
set_target_properties(instrumentcluster_simulation PROPERTIES
WIN32_EXECUTABLE TRUE
diff --git a/examples/ivicore/qface-tutorial/chapter3-simulation-backend/frontend/CMakeLists.txt b/examples/ivicore/qface-tutorial/chapter3-simulation-backend/frontend/CMakeLists.txt
index dc2a4c6..773b357 100644
--- a/examples/ivicore/qface-tutorial/chapter3-simulation-backend/frontend/CMakeLists.txt
+++ b/examples/ivicore/qface-tutorial/chapter3-simulation-backend/frontend/CMakeLists.txt
@@ -21,6 +21,12 @@ find_package(Qt6 COMPONENTS IviCore)
find_package(Qt6 COMPONENTS Qml)
find_package(Qt6 COMPONENTS Quick)
+qt_add_executable(QtIviInstrumentCluster)
+
+# IVI Generator:
+qt6_ivigenerator(QtIviInstrumentCluster
+ QFACE_SOURCES ../instrument-cluster.qface
+ QFACE_FORMAT frontend
)
set_target_properties(QtIviInstrumentCluster PROPERTIES
WIN32_EXECUTABLE TRUE
diff --git a/examples/ivicore/qface-tutorial/chapter3-simulation-backend/imports/CMakeLists.txt b/examples/ivicore/qface-tutorial/chapter3-simulation-backend/imports/CMakeLists.txt
index 931e18d..3c35fa0 100644
--- a/examples/ivicore/qface-tutorial/chapter3-simulation-backend/imports/CMakeLists.txt
+++ b/examples/ivicore/qface-tutorial/chapter3-simulation-backend/imports/CMakeLists.txt
@@ -1,7 +1,7 @@
# Generated from imports.pro.
cmake_minimum_required(VERSION 3.14)
-project(imports LANGUAGES CXX)
+project(instrument_cluster_imports LANGUAGES CXX) # special case
set(CMAKE_INCLUDE_CURRENT_DIR ON)
@@ -19,23 +19,28 @@ find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS IviCore)
+
+# IVI Generator:
+qt6_ivigenerator(instrument_cluster_imports # special case
+ QFACE_SOURCES ../instrument-cluster.qface
+ QFACE_FORMAT qmlplugin
)
-set_target_properties(imports PROPERTIES
+set_target_properties(instrument_cluster_imports PROPERTIES # special case
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
-target_include_directories(imports PUBLIC
+target_include_directories(instrument_cluster_imports PUBLIC # special case
${CMAKE_CURRENT_BINARY_DIR}/../frontend
)
-target_link_libraries(imports PUBLIC
+target_link_libraries(instrument_cluster_imports PUBLIC # special case
# Remove: L${CMAKE_CURRENT_BINARY_DIR}/../
Qt::Core
Qt::Gui
Qt::IviCore
)
-install(TARGETS imports
+install(TARGETS instrument_cluster_imports # special case
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"