|
@@ -65,15 +65,6 @@ add_executable(mocOnly mocOnlySource/main.cpp mocOnlySource/StyleA.cpp mocOnlySo
|
|
|
set_property(TARGET mocOnly PROPERTY AUTOMOC ON)
|
|
set_property(TARGET mocOnly PROPERTY AUTOMOC ON)
|
|
|
target_link_libraries(mocOnly ${QT_LIBRARIES})
|
|
target_link_libraries(mocOnly ${QT_LIBRARIES})
|
|
|
|
|
|
|
|
-# -- Test
|
|
|
|
|
-# MOC AUTOMOC_MACRO_NAMES
|
|
|
|
|
-if (NOT QT_TEST_VERSION STREQUAL 4)
|
|
|
|
|
- add_executable(mocMacroName mocMacroName/main.cpp mocMacroName/MacroName.cpp)
|
|
|
|
|
- set_property(TARGET mocMacroName PROPERTY AUTOMOC ON)
|
|
|
|
|
- set_property(TARGET mocMacroName PROPERTY AUTOMOC_MACRO_NAMES "QO_ALIAS")
|
|
|
|
|
- target_link_libraries(mocMacroName ${QT_LIBRARIES})
|
|
|
|
|
-endif()
|
|
|
|
|
-
|
|
|
|
|
# -- Test
|
|
# -- Test
|
|
|
# UIC only
|
|
# UIC only
|
|
|
if(ALLOW_WRAP_CPP)
|
|
if(ALLOW_WRAP_CPP)
|
|
@@ -188,8 +179,10 @@ set_property(TARGET skipRccB PROPERTY AUTOMOC ON)
|
|
|
target_link_libraries(skipRccB ${QT_LIBRARIES})
|
|
target_link_libraries(skipRccB ${QT_LIBRARIES})
|
|
|
|
|
|
|
|
# -- Test
|
|
# -- Test
|
|
|
-# Source files with the same basename in different subdirectories
|
|
|
|
|
-add_subdirectory(sameName)
|
|
|
|
|
|
|
+# MOC AUTOMOC_MACRO_NAMES
|
|
|
|
|
+if (NOT QT_TEST_VERSION STREQUAL 4)
|
|
|
|
|
+ add_subdirectory(mocMacroName)
|
|
|
|
|
+endif()
|
|
|
|
|
|
|
|
# -- Test
|
|
# -- Test
|
|
|
# Tests AUTOMOC with generated sources
|
|
# Tests AUTOMOC with generated sources
|
|
@@ -216,6 +209,10 @@ add_subdirectory(uicInclude)
|
|
|
# OBJECT libraries
|
|
# OBJECT libraries
|
|
|
add_subdirectory(objectLibrary)
|
|
add_subdirectory(objectLibrary)
|
|
|
|
|
|
|
|
|
|
+# -- Test
|
|
|
|
|
+# Source files with the same basename in different subdirectories
|
|
|
|
|
+add_subdirectory(sameName)
|
|
|
|
|
+
|
|
|
# -- Test
|
|
# -- Test
|
|
|
# Complex test case
|
|
# Complex test case
|
|
|
add_subdirectory(complex)
|
|
add_subdirectory(complex)
|