summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/MocInclude/Relaxed/CMakeLists.txt
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-09-07 09:54:05 (GMT)
committerBrad King <brad.king@kitware.com>2019-09-18 15:48:10 (GMT)
commit706d9738a614724a96487be074e984a7e86c48c9 (patch)
tree493877be2a31e9c2bd1722a162fb98a891e324f2 /Tests/QtAutogen/MocInclude/Relaxed/CMakeLists.txt
parentd018d27c101869e4e2449f938df89d4f97c5b73c (diff)
downloadCMake-706d9738a614724a96487be074e984a7e86c48c9.zip
CMake-706d9738a614724a96487be074e984a7e86c48c9.tar.gz
CMake-706d9738a614724a96487be074e984a7e86c48c9.tar.bz2
Tests: Merge QtAutogen.MocIncludeStrict and MocIncludeRelaxed
Diffstat (limited to 'Tests/QtAutogen/MocInclude/Relaxed/CMakeLists.txt')
-rw-r--r--Tests/QtAutogen/MocInclude/Relaxed/CMakeLists.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/QtAutogen/MocInclude/Relaxed/CMakeLists.txt b/Tests/QtAutogen/MocInclude/Relaxed/CMakeLists.txt
new file mode 100644
index 0000000..048b79c
--- /dev/null
+++ b/Tests/QtAutogen/MocInclude/Relaxed/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Enable relaxed mode
+set(CMAKE_AUTOMOC_RELAXED_MODE TRUE)
+
+# Common test
+set(COMMON_FUNCTION_NAME commonRelaxed)
+configure_file(
+ "${COM_DIR}/common.cpp.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/commonRelaxed.cpp")
+
+makeExecutable(libRelaxed)
+target_sources(libRelaxed PRIVATE
+ "${CMAKE_CURRENT_BINARY_DIR}/commonRelaxed.cpp"
+ RObjA.cpp
+ RObjB.cpp
+ RObjC.cpp
+ relaxed.cpp
+ )