oops, fix all-in-one exclusion handling

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2017-08-05 08:09:13 +00:00
parent a8cba58eec
commit 090e1025d1

View file

@ -206,10 +206,10 @@ function(KATIE_SETUP_TARGET FORTARGET)
foreach(srcstring ${ARGN})
get_filename_component(srcext ${srcstring} EXT)
get_source_file_property(skip ${srcstring} ALLINONE_EXCLUDE)
if(skip)
if(skip OR "${srcext}" STREQUAL ".c")
katie_warning("Source is excluded: ${srcstring}")
set(srcstring ${srcstring} ${srcstring})
elseif(NOT "${srcext}" MATCHES "(.h|.qrc|.ui)" AND NOT "${srcext}" STREQUAL ".c")
set(excludesources ${excludesources} ${srcstring})
elseif(NOT "${srcext}" MATCHES "(.h|.qrc|.ui)")
set(allinonedata "${allinonedata}#include \"${srcstring}\"\n")
endif()
endforeach()