summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2016-11-25 12:39:12 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2016-11-29 16:16:33 (GMT)
commit7052af9d4a4e71f52e98a24969c38e8eb86f317b (patch)
treea51ae61835324891fe8fff34245e4a15909590f1 /Tests/QtAutogen
parentd675004dbac12a938cf60fac39e5b9b81bbb6a99 (diff)
downloadCMake-7052af9d4a4e71f52e98a24969c38e8eb86f317b.zip
CMake-7052af9d4a4e71f52e98a24969c38e8eb86f317b.tar.gz
CMake-7052af9d4a4e71f52e98a24969c38e8eb86f317b.tar.bz2
QtAutogen tests: Move independent sameName test to top list of CMakeLists.txt
Diffstat (limited to 'Tests/QtAutogen')
-rw-r--r--Tests/QtAutogen/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/Tests/QtAutogen/CMakeLists.txt b/Tests/QtAutogen/CMakeLists.txt
index 6a5d7b5..a499acc 100644
--- a/Tests/QtAutogen/CMakeLists.txt
+++ b/Tests/QtAutogen/CMakeLists.txt
@@ -60,6 +60,10 @@ add_executable(uicOnly uicOnlySource/uiconly.cpp ${uicOnlyMoc})
set_property(TARGET uicOnly PROPERTY AUTOUIC ON)
target_link_libraries(uicOnly ${QT_LIBRARIES})
+# -- Test: AUTOMOC and AUTORCC on source files with the same name
+# but in different subdirectories
+add_subdirectory(sameName)
+
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_definitions(-DFOO -DSomeDefine="Barx")
@@ -121,9 +125,6 @@ set_target_properties(
AUTOMOC TRUE
)
-# Test AUTOMOC and AUTORCC on source files with the same name
-# but in different subdirectories
-add_subdirectory(sameName)
include(GenerateExportHeader)
# The order is relevant here. B depends on A, and B headers depend on A