diff options
Diffstat (limited to 'src/tools/ivigenerator/templates/backend_simulator/CMakeLists.txt.tpl')
-rw-r--r-- | src/tools/ivigenerator/templates/backend_simulator/CMakeLists.txt.tpl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/tools/ivigenerator/templates/backend_simulator/CMakeLists.txt.tpl b/src/tools/ivigenerator/templates/backend_simulator/CMakeLists.txt.tpl index 843a3f4..93cad4a 100644 --- a/src/tools/ivigenerator/templates/backend_simulator/CMakeLists.txt.tpl +++ b/src/tools/ivigenerator/templates/backend_simulator/CMakeLists.txt.tpl @@ -1,5 +1,4 @@ -target_sources(${CURRENT_TARGET} - PRIVATE +set(${CURRENT_TARGET}_SOURCES {% for interface in module.interfaces %} {{interface|lower}}backend.cpp {% endfor %} @@ -7,6 +6,15 @@ target_sources(${CURRENT_TARGET} {{module.module_name|lower}}_simulation.qrc ) +qt_add_resources(${CURRENT_TARGET}_SOURCES + ${CMAKE_CURRENT_BINARY_DIR}/{{module.module_name|lower}}_simulation.qrc +) + +target_sources(${CURRENT_TARGET} + PRIVATE + ${${CURRENT_TARGET}_SOURCES} +) + ### MISSING # OTHER_FILES += \ # $$PWD/{{module.module_name|lower}}.json \ |