summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/NinjaMultiConfig/AutoMocExecutable.cmake
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2019-11-27 15:59:20 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2019-12-13 15:52:07 (GMT)
commite0478cc64623fbfcb7dcd748f27b94cc8473fa1a (patch)
treefa28877d7db948f5aee23a9dbe0bc042d562150b /Tests/RunCMake/NinjaMultiConfig/AutoMocExecutable.cmake
parent5a8a9f72293ab1b3fd768ff40e5fb1f07cdb7dd2 (diff)
downloadCMake-e0478cc64623fbfcb7dcd748f27b94cc8473fa1a.zip
CMake-e0478cc64623fbfcb7dcd748f27b94cc8473fa1a.tar.gz
CMake-e0478cc64623fbfcb7dcd748f27b94cc8473fa1a.tar.bz2
Tests: Add test for Multi-Configuration Ninja generator
Diffstat (limited to 'Tests/RunCMake/NinjaMultiConfig/AutoMocExecutable.cmake')
-rw-r--r--Tests/RunCMake/NinjaMultiConfig/AutoMocExecutable.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/NinjaMultiConfig/AutoMocExecutable.cmake b/Tests/RunCMake/NinjaMultiConfig/AutoMocExecutable.cmake
new file mode 100644
index 0000000..950e18e
--- /dev/null
+++ b/Tests/RunCMake/NinjaMultiConfig/AutoMocExecutable.cmake
@@ -0,0 +1,10 @@
+enable_language(C)
+
+add_executable(badmoc badmoc.c)
+target_compile_definitions(badmoc PRIVATE "CONFIG=\"$<CONFIG>\"")
+
+add_executable(exe main.c)
+set_target_properties(exe PROPERTIES
+ AUTOMOC ON
+ AUTOMOC_EXECUTABLE $<TARGET_FILE:badmoc>
+ )