Commit 565531e7 authored by Jan Möbius's avatar Jan Möbius

Use central place to collect files for qtcreator workaround

parent 08faa652
Pipeline #3512 canceled with stage
in 1 minute and 45 seconds
......@@ -110,7 +110,6 @@ acg_append_files (sources "*.cc" ${directories})
acg_append_files (ui "*.ui" ${directories})
acg_append_files (qrc "*.qrc" ${directories} .)
target_sources(_qtcreator_add_files PUBLIC ${sources} ${headers})
# remove template cc files from source file list
acg_drop_templates (sources)
......
......@@ -576,8 +576,6 @@ function (_build_openflipper_plugin plugin)
acg_append_files (ui "*.ui" ${directories})
acg_append_files (qrc "*.qrc" ${directories})
target_sources(_qtcreator_add_files PUBLIC ${sources} ${headers})
# remove template cc files from source file list
acg_drop_templates (sources)
......
......@@ -279,6 +279,9 @@ macro (acg_drop_templates list)
foreach (_file ${${list}})
if (_file MATCHES "T.cc$")
list (REMOVE_ITEM ${list} ${_file})
# Append removed sources to a dummy target to make them available in qtcreator
target_sources(_qtcreator_add_files PUBLIC ${_file})
endif ()
endforeach ()
endmacro ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment