diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2019-11-27 15:59:20 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2019-12-13 15:52:07 (GMT) |
commit | e0478cc64623fbfcb7dcd748f27b94cc8473fa1a (patch) | |
tree | fa28877d7db948f5aee23a9dbe0bc042d562150b /Tests/RunCMake/NinjaMultiConfig/AutoMocExecutable.cmake | |
parent | 5a8a9f72293ab1b3fd768ff40e5fb1f07cdb7dd2 (diff) | |
download | CMake-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.cmake | 10 |
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> + ) |