From c4d4becf8b79f68534eb8320ccd63218afa4ca31 Mon Sep 17 00:00:00 2001 From: Sebastian Holtermann Date: Fri, 25 Nov 2016 15:12:04 +0100 Subject: [PATCH] QtAutogen tests: Move the complex test case to a subdirectory --- Tests/CMakeLists.txt | 2 +- Tests/QtAutogen/CMakeLists.txt | 93 ++----------------- .../{ => complex}/Adir/CMakeLists.txt | 0 Tests/QtAutogen/{ => complex}/Adir/libA.cpp | 0 Tests/QtAutogen/{ => complex}/Adir/libA.h | 0 .../{ => complex}/Bdir/CMakeLists.txt | 0 Tests/QtAutogen/{ => complex}/Bdir/libB.cpp | 0 Tests/QtAutogen/{ => complex}/Bdir/libB.h | 0 Tests/QtAutogen/complex/CMakeLists.txt | 78 ++++++++++++++++ Tests/QtAutogen/{ => complex}/abc.cpp | 0 Tests/QtAutogen/{ => complex}/abc.h | 0 Tests/QtAutogen/{ => complex}/abc_p.h | 0 Tests/QtAutogen/{ => complex}/bar.cpp | 0 Tests/QtAutogen/{ => complex}/blub.cpp | 0 Tests/QtAutogen/{ => complex}/blub.h | 0 Tests/QtAutogen/{ => complex}/calwidget.cpp | 0 Tests/QtAutogen/{ => complex}/calwidget.h | 0 Tests/QtAutogen/{ => complex}/calwidget.ui | 0 Tests/QtAutogen/{ => complex}/codeeditor.cpp | 0 Tests/QtAutogen/{ => complex}/codeeditor.h | 0 Tests/QtAutogen/{ => complex}/debug_class.cpp | 0 Tests/QtAutogen/{ => complex}/debug_class.h | 0 Tests/QtAutogen/{ => complex}/debug_class.ui | 0 .../{ => complex}/debug_resource.qrc | 0 Tests/QtAutogen/{ => complex}/foo.cpp | 0 Tests/QtAutogen/{ => complex}/foo.h | 0 Tests/QtAutogen/{ => complex}/gadget.cpp | 0 Tests/QtAutogen/{ => complex}/gadget.h | 0 Tests/QtAutogen/{ => complex}/generated.cpp | 0 Tests/QtAutogen/{ => complex}/generated.h | 0 .../QtAutogen/{ => complex}/generated.txt.in | 0 .../{ => complex}/generated_resource.qrc.in | 0 Tests/QtAutogen/{ => complex}/libC.cpp | 0 Tests/QtAutogen/{ => complex}/libC.h | 0 Tests/QtAutogen/{ => complex}/main.cpp | 0 .../{ => complex}/multiplewidgets.cpp | 0 .../QtAutogen/{ => complex}/multiplewidgets.h | 0 .../QtAutogen/{ => complex}/myinterface.h.in | 0 .../{ => complex}/myotherinterface.h.in | 0 .../QtAutogen/{ => complex}/private_slot.cpp | 0 Tests/QtAutogen/{ => complex}/private_slot.h | 0 .../{ => complex}/resourcetester.cpp | 0 .../QtAutogen/{ => complex}/resourcetester.h | 0 .../{ => complex}/second_resource.qrc | 0 .../QtAutogen/{ => complex}/second_widget.cpp | 0 Tests/QtAutogen/{ => complex}/second_widget.h | 0 .../QtAutogen/{ => complex}/second_widget.ui | 0 Tests/QtAutogen/{ => complex}/sub/bar.h | 0 .../{ => complex}/targetObjectsTest.cpp | 0 Tests/QtAutogen/{ => complex}/test.qrc | 0 Tests/QtAutogen/{ => complex}/widget1.ui | 0 Tests/QtAutogen/{ => complex}/widget2.ui | 0 Tests/QtAutogen/{ => complex}/xyz.cpp | 0 Tests/QtAutogen/{ => complex}/xyz.h | 0 Tests/QtAutogen/{ => complex}/yaf.cpp | 0 Tests/QtAutogen/{ => complex}/yaf.h | 0 Tests/QtAutogen/{ => complex}/yaf_p.h | 0 57 files changed, 89 insertions(+), 84 deletions(-) rename Tests/QtAutogen/{ => complex}/Adir/CMakeLists.txt (100%) rename Tests/QtAutogen/{ => complex}/Adir/libA.cpp (100%) rename Tests/QtAutogen/{ => complex}/Adir/libA.h (100%) rename Tests/QtAutogen/{ => complex}/Bdir/CMakeLists.txt (100%) rename Tests/QtAutogen/{ => complex}/Bdir/libB.cpp (100%) rename Tests/QtAutogen/{ => complex}/Bdir/libB.h (100%) create mode 100644 Tests/QtAutogen/complex/CMakeLists.txt rename Tests/QtAutogen/{ => complex}/abc.cpp (100%) rename Tests/QtAutogen/{ => complex}/abc.h (100%) rename Tests/QtAutogen/{ => complex}/abc_p.h (100%) rename Tests/QtAutogen/{ => complex}/bar.cpp (100%) rename Tests/QtAutogen/{ => complex}/blub.cpp (100%) rename Tests/QtAutogen/{ => complex}/blub.h (100%) rename Tests/QtAutogen/{ => complex}/calwidget.cpp (100%) rename Tests/QtAutogen/{ => complex}/calwidget.h (100%) rename Tests/QtAutogen/{ => complex}/calwidget.ui (100%) rename Tests/QtAutogen/{ => complex}/codeeditor.cpp (100%) rename Tests/QtAutogen/{ => complex}/codeeditor.h (100%) rename Tests/QtAutogen/{ => complex}/debug_class.cpp (100%) rename Tests/QtAutogen/{ => complex}/debug_class.h (100%) rename Tests/QtAutogen/{ => complex}/debug_class.ui (100%) rename Tests/QtAutogen/{ => complex}/debug_resource.qrc (100%) rename Tests/QtAutogen/{ => complex}/foo.cpp (100%) rename Tests/QtAutogen/{ => complex}/foo.h (100%) rename Tests/QtAutogen/{ => complex}/gadget.cpp (100%) rename Tests/QtAutogen/{ => complex}/gadget.h (100%) rename Tests/QtAutogen/{ => complex}/generated.cpp (100%) rename Tests/QtAutogen/{ => complex}/generated.h (100%) rename Tests/QtAutogen/{ => complex}/generated.txt.in (100%) rename Tests/QtAutogen/{ => complex}/generated_resource.qrc.in (100%) rename Tests/QtAutogen/{ => complex}/libC.cpp (100%) rename Tests/QtAutogen/{ => complex}/libC.h (100%) rename Tests/QtAutogen/{ => complex}/main.cpp (100%) rename Tests/QtAutogen/{ => complex}/multiplewidgets.cpp (100%) rename Tests/QtAutogen/{ => complex}/multiplewidgets.h (100%) rename Tests/QtAutogen/{ => complex}/myinterface.h.in (100%) rename Tests/QtAutogen/{ => complex}/myotherinterface.h.in (100%) rename Tests/QtAutogen/{ => complex}/private_slot.cpp (100%) rename Tests/QtAutogen/{ => complex}/private_slot.h (100%) rename Tests/QtAutogen/{ => complex}/resourcetester.cpp (100%) rename Tests/QtAutogen/{ => complex}/resourcetester.h (100%) rename Tests/QtAutogen/{ => complex}/second_resource.qrc (100%) rename Tests/QtAutogen/{ => complex}/second_widget.cpp (100%) rename Tests/QtAutogen/{ => complex}/second_widget.h (100%) rename Tests/QtAutogen/{ => complex}/second_widget.ui (100%) rename Tests/QtAutogen/{ => complex}/sub/bar.h (100%) rename Tests/QtAutogen/{ => complex}/targetObjectsTest.cpp (100%) rename Tests/QtAutogen/{ => complex}/test.qrc (100%) rename Tests/QtAutogen/{ => complex}/widget1.ui (100%) rename Tests/QtAutogen/{ => complex}/widget2.ui (100%) rename Tests/QtAutogen/{ => complex}/xyz.cpp (100%) rename Tests/QtAutogen/{ => complex}/xyz.h (100%) rename Tests/QtAutogen/{ => complex}/yaf.cpp (100%) rename Tests/QtAutogen/{ => complex}/yaf.h (100%) rename Tests/QtAutogen/{ => complex}/yaf_p.h (100%) diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index e914d00457..6327f25179 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -1243,7 +1243,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release set(run_autogen_test ${CMAKE_CTEST_COMMAND} -V) set(run_autouic_test ${CMAKE_CTEST_COMMAND} -V) else() - set(run_autogen_test QtAutogen) + set(run_autogen_test complex/QtAutogen) set(run_autouic_test QtAutoUicInterface) endif() if(NOT CMAKE_CONFIGURATION_TYPES) diff --git a/Tests/QtAutogen/CMakeLists.txt b/Tests/QtAutogen/CMakeLists.txt index d09b24db36..c0c20f8bf6 100644 --- a/Tests/QtAutogen/CMakeLists.txt +++ b/Tests/QtAutogen/CMakeLists.txt @@ -44,6 +44,8 @@ else() endif() +include_directories(${CMAKE_CURRENT_BINARY_DIR}) + # -- Test: AUTORCC # RCC only add_executable(rccOnly rccOnly.cpp rccOnlyRes.qrc) @@ -63,89 +65,6 @@ add_executable(uicOnly uicOnlySource/uiconly.cpp ${uicOnlyMoc}) set_property(TARGET uicOnly PROPERTY AUTOUIC ON) target_link_libraries(uicOnly ${QT_LIBRARIES}) -# -- Test: AUTOMOC AUTORCC -# Source files with the same basename in different subdirectories -add_subdirectory(sameName) - -# -- Test: AUTOMOC AUTORCC AUTOUIC -include_directories(${CMAKE_CURRENT_BINARY_DIR}) -add_definitions(-DFOO -DSomeDefine="Barx") - -# enable relaxed mode so automoc can handle all the special cases: -set(CMAKE_AUTOMOC_RELAXED_MODE TRUE) - -set(CMAKE_AUTOUIC ON) -set(CMAKE_AUTORCC ON) - -# create an executable and two library targets, each requiring automoc: -add_library(codeeditorLib STATIC codeeditor.cpp) - -add_library(privateSlot OBJECT private_slot.cpp) - -configure_file(generated_resource.qrc.in generated_resource.qrc @ONLY) -add_custom_command( - OUTPUT generated.txt - COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/generated.txt.in" "${CMAKE_CURRENT_BINARY_DIR}/generated.txt" - DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/generated.txt.in" - ) - -add_custom_target(generate_moc_input - DEPENDS generated.txt - COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/myinterface.h.in" "${CMAKE_CURRENT_BINARY_DIR}" - COMMAND ${CMAKE_COMMAND} -E rename "${CMAKE_CURRENT_BINARY_DIR}/myinterface.h.in" "${CMAKE_CURRENT_BINARY_DIR}/myinterface.h" -) - -add_custom_command( - OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/myotherinterface.h" - COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/myotherinterface.h.in" "${CMAKE_CURRENT_BINARY_DIR}/myotherinterface.h" - DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/myotherinterface.h.in" -) - -if (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_GENERATOR STREQUAL Ninja) - set(debug_srcs "$<$:debug_class.cpp>" $<$:debug_resource.qrc>) - set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$:TEST_DEBUG_CLASS>) -endif() - -# The -no-protection option disables the generation of include guards. Verify -# that setting the source file property has an effect by using this and -# issue an error in the preprocessor in calwidget.cpp if the include guard -# is defined. -set_source_files_properties(calwidget.ui PROPERTIES AUTOUIC_OPTIONS "-no-protection") - -add_executable(QtAutogen main.cpp calwidget.cpp second_widget.cpp foo.cpp blub.cpp bar.cpp abc.cpp - multiplewidgets.cpp - xyz.cpp yaf.cpp gadget.cpp $ - test.qrc second_resource.qrc resourcetester.cpp generated.cpp ${debug_srcs} - ${CMAKE_CURRENT_BINARY_DIR}/generated_resource.qrc -) -set_property(TARGET QtAutogen APPEND PROPERTY AUTOGEN_TARGET_DEPENDS generate_moc_input "${CMAKE_CURRENT_BINARY_DIR}/myotherinterface.h") - -add_executable(targetObjectsTest targetObjectsTest.cpp $) -target_link_libraries(targetObjectsTest ${QT_LIBRARIES}) - -set_target_properties( - QtAutogen codeeditorLib privateSlot targetObjectsTest - PROPERTIES - AUTOMOC TRUE -) - - -include(GenerateExportHeader) -# The order is relevant here. B depends on A, and B headers depend on A -# headers both subdirectories use CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE and we -# test that CMAKE_AUTOMOC successfully reads the include directories -# for the build interface from those targets. There has previously been -# a bug where caching of the include directories happened before -# extracting the includes to pass to moc. -add_subdirectory(Bdir) -add_subdirectory(Adir) -add_library(libC SHARED libC.cpp) -set_target_properties(libC PROPERTIES AUTOMOC TRUE) -generate_export_header(libC) -target_link_libraries(libC LINK_PUBLIC libB) - -target_link_libraries(QtAutogen codeeditorLib ${QT_LIBRARIES} libC) - # -- Test: AUTOMOC, AUTORCC # Add not_generated_file.qrc to the source list to get the file-level # dependency, but don't generate a c++ file from it. Disable the AUTORCC @@ -217,3 +136,11 @@ execute_process(COMMAND "${CMAKE_COMMAND}" --build . if (automoc_rerun_result) message(SEND_ERROR "Second build of automoc_rerun failed.") endif() + +# -- Test: AUTOMOC AUTORCC +# Source files with the same basename in different subdirectories +add_subdirectory(sameName) + +# -- Test: AUTOMOC AUTORCC AUTOUIC +# Complex test case +add_subdirectory(complex) diff --git a/Tests/QtAutogen/Adir/CMakeLists.txt b/Tests/QtAutogen/complex/Adir/CMakeLists.txt similarity index 100% rename from Tests/QtAutogen/Adir/CMakeLists.txt rename to Tests/QtAutogen/complex/Adir/CMakeLists.txt diff --git a/Tests/QtAutogen/Adir/libA.cpp b/Tests/QtAutogen/complex/Adir/libA.cpp similarity index 100% rename from Tests/QtAutogen/Adir/libA.cpp rename to Tests/QtAutogen/complex/Adir/libA.cpp diff --git a/Tests/QtAutogen/Adir/libA.h b/Tests/QtAutogen/complex/Adir/libA.h similarity index 100% rename from Tests/QtAutogen/Adir/libA.h rename to Tests/QtAutogen/complex/Adir/libA.h diff --git a/Tests/QtAutogen/Bdir/CMakeLists.txt b/Tests/QtAutogen/complex/Bdir/CMakeLists.txt similarity index 100% rename from Tests/QtAutogen/Bdir/CMakeLists.txt rename to Tests/QtAutogen/complex/Bdir/CMakeLists.txt diff --git a/Tests/QtAutogen/Bdir/libB.cpp b/Tests/QtAutogen/complex/Bdir/libB.cpp similarity index 100% rename from Tests/QtAutogen/Bdir/libB.cpp rename to Tests/QtAutogen/complex/Bdir/libB.cpp diff --git a/Tests/QtAutogen/Bdir/libB.h b/Tests/QtAutogen/complex/Bdir/libB.h similarity index 100% rename from Tests/QtAutogen/Bdir/libB.h rename to Tests/QtAutogen/complex/Bdir/libB.h diff --git a/Tests/QtAutogen/complex/CMakeLists.txt b/Tests/QtAutogen/complex/CMakeLists.txt new file mode 100644 index 0000000000..d1b34c61d5 --- /dev/null +++ b/Tests/QtAutogen/complex/CMakeLists.txt @@ -0,0 +1,78 @@ +cmake_minimum_required(VERSION 3.1) + +# -- Test: AUTOMOC AUTORCC AUTOUIC +include_directories(${CMAKE_CURRENT_BINARY_DIR}) +add_definitions(-DFOO -DSomeDefine="Barx") + +# enable relaxed mode so automoc can handle all the special cases: +set(CMAKE_AUTOMOC_RELAXED_MODE TRUE) +set(CMAKE_AUTOUIC ON) +set(CMAKE_AUTORCC ON) + +# create an executable and two library targets, each requiring automoc: +add_library(codeeditorLib STATIC codeeditor.cpp) +add_library(privateSlot OBJECT private_slot.cpp) + +configure_file(generated_resource.qrc.in generated_resource.qrc @ONLY) +add_custom_command( + OUTPUT generated.txt + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/generated.txt.in" "${CMAKE_CURRENT_BINARY_DIR}/generated.txt" + DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/generated.txt.in" + ) + +add_custom_target(generate_moc_input + DEPENDS generated.txt + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/myinterface.h.in" "${CMAKE_CURRENT_BINARY_DIR}" + COMMAND ${CMAKE_COMMAND} -E rename "${CMAKE_CURRENT_BINARY_DIR}/myinterface.h.in" "${CMAKE_CURRENT_BINARY_DIR}/myinterface.h" +) + +add_custom_command( + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/myotherinterface.h" + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/myotherinterface.h.in" "${CMAKE_CURRENT_BINARY_DIR}/myotherinterface.h" + DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/myotherinterface.h.in" +) + +if (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_GENERATOR STREQUAL Ninja) + set(debug_srcs "$<$:debug_class.cpp>" $<$:debug_resource.qrc>) + set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$:TEST_DEBUG_CLASS>) +endif() + +# The -no-protection option disables the generation of include guards. Verify +# that setting the source file property has an effect by using this and +# issue an error in the preprocessor in calwidget.cpp if the include guard +# is defined. +set_source_files_properties(calwidget.ui PROPERTIES AUTOUIC_OPTIONS "-no-protection") + +add_executable(QtAutogen main.cpp calwidget.cpp second_widget.cpp foo.cpp blub.cpp bar.cpp abc.cpp + multiplewidgets.cpp + xyz.cpp yaf.cpp gadget.cpp $ + test.qrc second_resource.qrc resourcetester.cpp generated.cpp ${debug_srcs} + ${CMAKE_CURRENT_BINARY_DIR}/generated_resource.qrc +) +set_property(TARGET QtAutogen APPEND PROPERTY AUTOGEN_TARGET_DEPENDS generate_moc_input "${CMAKE_CURRENT_BINARY_DIR}/myotherinterface.h") + +add_executable(targetObjectsTest targetObjectsTest.cpp $) +target_link_libraries(targetObjectsTest ${QT_LIBRARIES}) + +set_target_properties( + QtAutogen codeeditorLib privateSlot targetObjectsTest + PROPERTIES + AUTOMOC TRUE +) + + +include(GenerateExportHeader) +# The order is relevant here. B depends on A, and B headers depend on A +# headers both subdirectories use CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE and we +# test that CMAKE_AUTOMOC successfully reads the include directories +# for the build interface from those targets. There has previously been +# a bug where caching of the include directories happened before +# extracting the includes to pass to moc. +add_subdirectory(Bdir) +add_subdirectory(Adir) +add_library(libC SHARED libC.cpp) +set_target_properties(libC PROPERTIES AUTOMOC TRUE) +generate_export_header(libC) +target_link_libraries(libC LINK_PUBLIC libB) + +target_link_libraries(QtAutogen codeeditorLib ${QT_LIBRARIES} libC) diff --git a/Tests/QtAutogen/abc.cpp b/Tests/QtAutogen/complex/abc.cpp similarity index 100% rename from Tests/QtAutogen/abc.cpp rename to Tests/QtAutogen/complex/abc.cpp diff --git a/Tests/QtAutogen/abc.h b/Tests/QtAutogen/complex/abc.h similarity index 100% rename from Tests/QtAutogen/abc.h rename to Tests/QtAutogen/complex/abc.h diff --git a/Tests/QtAutogen/abc_p.h b/Tests/QtAutogen/complex/abc_p.h similarity index 100% rename from Tests/QtAutogen/abc_p.h rename to Tests/QtAutogen/complex/abc_p.h diff --git a/Tests/QtAutogen/bar.cpp b/Tests/QtAutogen/complex/bar.cpp similarity index 100% rename from Tests/QtAutogen/bar.cpp rename to Tests/QtAutogen/complex/bar.cpp diff --git a/Tests/QtAutogen/blub.cpp b/Tests/QtAutogen/complex/blub.cpp similarity index 100% rename from Tests/QtAutogen/blub.cpp rename to Tests/QtAutogen/complex/blub.cpp diff --git a/Tests/QtAutogen/blub.h b/Tests/QtAutogen/complex/blub.h similarity index 100% rename from Tests/QtAutogen/blub.h rename to Tests/QtAutogen/complex/blub.h diff --git a/Tests/QtAutogen/calwidget.cpp b/Tests/QtAutogen/complex/calwidget.cpp similarity index 100% rename from Tests/QtAutogen/calwidget.cpp rename to Tests/QtAutogen/complex/calwidget.cpp diff --git a/Tests/QtAutogen/calwidget.h b/Tests/QtAutogen/complex/calwidget.h similarity index 100% rename from Tests/QtAutogen/calwidget.h rename to Tests/QtAutogen/complex/calwidget.h diff --git a/Tests/QtAutogen/calwidget.ui b/Tests/QtAutogen/complex/calwidget.ui similarity index 100% rename from Tests/QtAutogen/calwidget.ui rename to Tests/QtAutogen/complex/calwidget.ui diff --git a/Tests/QtAutogen/codeeditor.cpp b/Tests/QtAutogen/complex/codeeditor.cpp similarity index 100% rename from Tests/QtAutogen/codeeditor.cpp rename to Tests/QtAutogen/complex/codeeditor.cpp diff --git a/Tests/QtAutogen/codeeditor.h b/Tests/QtAutogen/complex/codeeditor.h similarity index 100% rename from Tests/QtAutogen/codeeditor.h rename to Tests/QtAutogen/complex/codeeditor.h diff --git a/Tests/QtAutogen/debug_class.cpp b/Tests/QtAutogen/complex/debug_class.cpp similarity index 100% rename from Tests/QtAutogen/debug_class.cpp rename to Tests/QtAutogen/complex/debug_class.cpp diff --git a/Tests/QtAutogen/debug_class.h b/Tests/QtAutogen/complex/debug_class.h similarity index 100% rename from Tests/QtAutogen/debug_class.h rename to Tests/QtAutogen/complex/debug_class.h diff --git a/Tests/QtAutogen/debug_class.ui b/Tests/QtAutogen/complex/debug_class.ui similarity index 100% rename from Tests/QtAutogen/debug_class.ui rename to Tests/QtAutogen/complex/debug_class.ui diff --git a/Tests/QtAutogen/debug_resource.qrc b/Tests/QtAutogen/complex/debug_resource.qrc similarity index 100% rename from Tests/QtAutogen/debug_resource.qrc rename to Tests/QtAutogen/complex/debug_resource.qrc diff --git a/Tests/QtAutogen/foo.cpp b/Tests/QtAutogen/complex/foo.cpp similarity index 100% rename from Tests/QtAutogen/foo.cpp rename to Tests/QtAutogen/complex/foo.cpp diff --git a/Tests/QtAutogen/foo.h b/Tests/QtAutogen/complex/foo.h similarity index 100% rename from Tests/QtAutogen/foo.h rename to Tests/QtAutogen/complex/foo.h diff --git a/Tests/QtAutogen/gadget.cpp b/Tests/QtAutogen/complex/gadget.cpp similarity index 100% rename from Tests/QtAutogen/gadget.cpp rename to Tests/QtAutogen/complex/gadget.cpp diff --git a/Tests/QtAutogen/gadget.h b/Tests/QtAutogen/complex/gadget.h similarity index 100% rename from Tests/QtAutogen/gadget.h rename to Tests/QtAutogen/complex/gadget.h diff --git a/Tests/QtAutogen/generated.cpp b/Tests/QtAutogen/complex/generated.cpp similarity index 100% rename from Tests/QtAutogen/generated.cpp rename to Tests/QtAutogen/complex/generated.cpp diff --git a/Tests/QtAutogen/generated.h b/Tests/QtAutogen/complex/generated.h similarity index 100% rename from Tests/QtAutogen/generated.h rename to Tests/QtAutogen/complex/generated.h diff --git a/Tests/QtAutogen/generated.txt.in b/Tests/QtAutogen/complex/generated.txt.in similarity index 100% rename from Tests/QtAutogen/generated.txt.in rename to Tests/QtAutogen/complex/generated.txt.in diff --git a/Tests/QtAutogen/generated_resource.qrc.in b/Tests/QtAutogen/complex/generated_resource.qrc.in similarity index 100% rename from Tests/QtAutogen/generated_resource.qrc.in rename to Tests/QtAutogen/complex/generated_resource.qrc.in diff --git a/Tests/QtAutogen/libC.cpp b/Tests/QtAutogen/complex/libC.cpp similarity index 100% rename from Tests/QtAutogen/libC.cpp rename to Tests/QtAutogen/complex/libC.cpp diff --git a/Tests/QtAutogen/libC.h b/Tests/QtAutogen/complex/libC.h similarity index 100% rename from Tests/QtAutogen/libC.h rename to Tests/QtAutogen/complex/libC.h diff --git a/Tests/QtAutogen/main.cpp b/Tests/QtAutogen/complex/main.cpp similarity index 100% rename from Tests/QtAutogen/main.cpp rename to Tests/QtAutogen/complex/main.cpp diff --git a/Tests/QtAutogen/multiplewidgets.cpp b/Tests/QtAutogen/complex/multiplewidgets.cpp similarity index 100% rename from Tests/QtAutogen/multiplewidgets.cpp rename to Tests/QtAutogen/complex/multiplewidgets.cpp diff --git a/Tests/QtAutogen/multiplewidgets.h b/Tests/QtAutogen/complex/multiplewidgets.h similarity index 100% rename from Tests/QtAutogen/multiplewidgets.h rename to Tests/QtAutogen/complex/multiplewidgets.h diff --git a/Tests/QtAutogen/myinterface.h.in b/Tests/QtAutogen/complex/myinterface.h.in similarity index 100% rename from Tests/QtAutogen/myinterface.h.in rename to Tests/QtAutogen/complex/myinterface.h.in diff --git a/Tests/QtAutogen/myotherinterface.h.in b/Tests/QtAutogen/complex/myotherinterface.h.in similarity index 100% rename from Tests/QtAutogen/myotherinterface.h.in rename to Tests/QtAutogen/complex/myotherinterface.h.in diff --git a/Tests/QtAutogen/private_slot.cpp b/Tests/QtAutogen/complex/private_slot.cpp similarity index 100% rename from Tests/QtAutogen/private_slot.cpp rename to Tests/QtAutogen/complex/private_slot.cpp diff --git a/Tests/QtAutogen/private_slot.h b/Tests/QtAutogen/complex/private_slot.h similarity index 100% rename from Tests/QtAutogen/private_slot.h rename to Tests/QtAutogen/complex/private_slot.h diff --git a/Tests/QtAutogen/resourcetester.cpp b/Tests/QtAutogen/complex/resourcetester.cpp similarity index 100% rename from Tests/QtAutogen/resourcetester.cpp rename to Tests/QtAutogen/complex/resourcetester.cpp diff --git a/Tests/QtAutogen/resourcetester.h b/Tests/QtAutogen/complex/resourcetester.h similarity index 100% rename from Tests/QtAutogen/resourcetester.h rename to Tests/QtAutogen/complex/resourcetester.h diff --git a/Tests/QtAutogen/second_resource.qrc b/Tests/QtAutogen/complex/second_resource.qrc similarity index 100% rename from Tests/QtAutogen/second_resource.qrc rename to Tests/QtAutogen/complex/second_resource.qrc diff --git a/Tests/QtAutogen/second_widget.cpp b/Tests/QtAutogen/complex/second_widget.cpp similarity index 100% rename from Tests/QtAutogen/second_widget.cpp rename to Tests/QtAutogen/complex/second_widget.cpp diff --git a/Tests/QtAutogen/second_widget.h b/Tests/QtAutogen/complex/second_widget.h similarity index 100% rename from Tests/QtAutogen/second_widget.h rename to Tests/QtAutogen/complex/second_widget.h diff --git a/Tests/QtAutogen/second_widget.ui b/Tests/QtAutogen/complex/second_widget.ui similarity index 100% rename from Tests/QtAutogen/second_widget.ui rename to Tests/QtAutogen/complex/second_widget.ui diff --git a/Tests/QtAutogen/sub/bar.h b/Tests/QtAutogen/complex/sub/bar.h similarity index 100% rename from Tests/QtAutogen/sub/bar.h rename to Tests/QtAutogen/complex/sub/bar.h diff --git a/Tests/QtAutogen/targetObjectsTest.cpp b/Tests/QtAutogen/complex/targetObjectsTest.cpp similarity index 100% rename from Tests/QtAutogen/targetObjectsTest.cpp rename to Tests/QtAutogen/complex/targetObjectsTest.cpp diff --git a/Tests/QtAutogen/test.qrc b/Tests/QtAutogen/complex/test.qrc similarity index 100% rename from Tests/QtAutogen/test.qrc rename to Tests/QtAutogen/complex/test.qrc diff --git a/Tests/QtAutogen/widget1.ui b/Tests/QtAutogen/complex/widget1.ui similarity index 100% rename from Tests/QtAutogen/widget1.ui rename to Tests/QtAutogen/complex/widget1.ui diff --git a/Tests/QtAutogen/widget2.ui b/Tests/QtAutogen/complex/widget2.ui similarity index 100% rename from Tests/QtAutogen/widget2.ui rename to Tests/QtAutogen/complex/widget2.ui diff --git a/Tests/QtAutogen/xyz.cpp b/Tests/QtAutogen/complex/xyz.cpp similarity index 100% rename from Tests/QtAutogen/xyz.cpp rename to Tests/QtAutogen/complex/xyz.cpp diff --git a/Tests/QtAutogen/xyz.h b/Tests/QtAutogen/complex/xyz.h similarity index 100% rename from Tests/QtAutogen/xyz.h rename to Tests/QtAutogen/complex/xyz.h diff --git a/Tests/QtAutogen/yaf.cpp b/Tests/QtAutogen/complex/yaf.cpp similarity index 100% rename from Tests/QtAutogen/yaf.cpp rename to Tests/QtAutogen/complex/yaf.cpp diff --git a/Tests/QtAutogen/yaf.h b/Tests/QtAutogen/complex/yaf.h similarity index 100% rename from Tests/QtAutogen/yaf.h rename to Tests/QtAutogen/complex/yaf.h diff --git a/Tests/QtAutogen/yaf_p.h b/Tests/QtAutogen/complex/yaf_p.h similarity index 100% rename from Tests/QtAutogen/yaf_p.h rename to Tests/QtAutogen/complex/yaf_p.h