summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2022-12-12 14:04:38 +0100
committerDominik Holland <dominik.holland@qt.io>2022-12-14 14:25:40 +0100
commit2d0afc8982ff2138b1f5dd0dcbc56887e63bb542 (patch)
treea671159dacc11a6543625e092950507ddce46e0a
parent5e83b6e909885471f4852fb44778b71938a1d23a (diff)
CMake: Fix IfVehicleFunctions to build with syncqt/cpp
The headers generated by ifcodegen were not passed via target_sources in the generated/included cmake file, so syncqt didn't know it was supposed to create forwarding headers. Adjust the frontend template to pass the header files to target_sources. Fixes: QTBUG-109355 Change-Id: I50e0eb1d8cff959ba05294650758772bddc244a3 Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit 3050a2a1e47325fb002386312ecc97c2c2e3222c) Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--src/tools/ifcodegen/templates/frontend/CMakeLists.txt.tpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/ifcodegen/templates/frontend/CMakeLists.txt.tpl b/src/tools/ifcodegen/templates/frontend/CMakeLists.txt.tpl
index b306beba..d8071cae 100644
--- a/src/tools/ifcodegen/templates/frontend/CMakeLists.txt.tpl
+++ b/src/tools/ifcodegen/templates/frontend/CMakeLists.txt.tpl
@@ -6,13 +6,20 @@
qt6_set_ifcodegen_variable(${VAR_PREFIX}_SOURCES
{% for interface in module.interfaces %}
+ ${CMAKE_CURRENT_LIST_DIR}/{{interface|lower}}.h
+ ${CMAKE_CURRENT_LIST_DIR}/{{interface|lower}}_p.h
${CMAKE_CURRENT_LIST_DIR}/{{interface|lower}}.cpp
+ ${CMAKE_CURRENT_LIST_DIR}/{{interface|lower}}backendinterface.h
${CMAKE_CURRENT_LIST_DIR}/{{interface|lower}}backendinterface.cpp
{% endfor %}
{% for struct in module.structs %}
+ ${CMAKE_CURRENT_LIST_DIR}/{{struct|lower}}.h
${CMAKE_CURRENT_LIST_DIR}/{{struct|lower}}.cpp
{% endfor %}
+ ${CMAKE_CURRENT_LIST_DIR}/{{module.module_name|lower}}global.h
+ ${CMAKE_CURRENT_LIST_DIR}/{{module.module_name|lower}}.h
${CMAKE_CURRENT_LIST_DIR}/{{module.module_name|lower}}.cpp
+ ${CMAKE_CURRENT_LIST_DIR}/{{module.module_name|lower}}factory.h
${CMAKE_CURRENT_LIST_DIR}/{{module.module_name|lower}}factory.cpp
)