OSDN Git Service

exclude qtest_gui header from QtTest meta header again
authorIvailo Monev <xakepa10@laimg.moc>
Sun, 22 Dec 2019 16:05:32 +0000 (16:05 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Sun, 22 Dec 2019 16:05:32 +0000 (16:05 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
cmake/modules/KatieBuildMacros.cmake

index f171767..83ecef0 100644 (file)
@@ -34,7 +34,10 @@ macro(KATIE_GENERATE_PUBLIC PUBLIC_INCLUDES SUBDIR)
     set(metadata "#ifndef ${SUBDIR}_META_H\n#define ${SUBDIR}_META_H\n\n")
     foreach(pubheader ${PUBLIC_LIST})
         get_filename_component(pubname ${pubheader} NAME)
-        set(metadata "${metadata}#include <${SUBDIR}/${pubname}>\n")
+        # qtest_gui.h is exception because it requires explicit gui component linkage
+        if(NOT "${pubname}" STREQUAL "qtest_gui.h")
+            set(metadata "${metadata}#include <${SUBDIR}/${pubname}>\n")
+        endif()
     endforeach()
     set(metadata "${metadata}\n#endif\n")
     katie_write_file("${metaout}" "${metadata}")