Commit 44b0888c authored by Jan Möbius's avatar Jan Möbius

Removed the qtcreator workaround for a better version

parent d8c11f8f
Pipeline #4041 passed with stage
in 65 minutes and 56 seconds
......@@ -87,22 +87,6 @@ include (MSVCMacros)
acg_get_version (OpenFlipper)
# ========================================================================
# qtcrator workaround for missing files in project
# ========================================================================
# qtcreator (4.0.3) does not include some header files and *T.cc in its
# project structure. The issue is well-known, this is a workaround.
# Unfortunately I could not find a workaround that does not involve adding
# a dummy target that is visible in the target list.
# To force adding files to the project structure, use
# target_sources(_qtcreator_add_files PUBLIC ${EXTRA_FILES})
# in your CMakeLists.txt templates of the form (*T.cc) are added automatically
add_library(_qtcreator_add_files CMakeLists.txt) # dummy file that always exists
set_target_properties(_qtcreator_add_files PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1)
# ========================================================================
# Branding
# ========================================================================
......
......@@ -278,10 +278,7 @@ endmacro ()
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})
set_source_files_properties(${_file} PROPERTIES HEADER_FILE_ONLY TRUE)
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