diff options
author | Brad King <brad.king@kitware.com> | 2010-12-21 14:03:24 -0500 |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2010-12-21 14:03:24 -0500 |
commit | 31b0657e7d4bab3e6c5a00c1318d1c231d8ab44b (patch) | |
tree | 5f16dfb9e9d73794a6c791147a6614b8e5492e2a /Tests/CustomCommand | |
parent | 533f5a20372829aa41a71ed4698cac2a50820a7e (diff) | |
parent | 4499d50ad2df7c1db4335d40f9fa20c642f59a5d (diff) | |
download | cmake-31b0657e7d4bab3e6c5a00c1318d1c231d8ab44b.tar.gz |
Merge topic 'custom-command-generator-expressions'
4499d50 Mark CustomCommand test perconfig.out as SYMBOLIC
f0cdb60 Introduce "generator expression" syntax to custom commands (#11209)
4749e4c Record set of targets used in cmGeneratorExpression
ef9e9de Optionally suppress errors in cmGeneratorExpression
45e1953 Factor per-config sample targets out of 'Testing' test
4091bca Factor generator expression docs out of add_test
bfb7288 Record backtrace in cmCustomCommand
Diffstat (limited to 'Tests/CustomCommand')
-rw-r--r-- | Tests/CustomCommand/CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt index 13f42335c5..19e3c2c194 100644 --- a/Tests/CustomCommand/CMakeLists.txt +++ b/Tests/CustomCommand/CMakeLists.txt @@ -423,3 +423,16 @@ ADD_CUSTOM_TARGET(DifferentName ALL ) # # </SameNameTest> + +# Per-config target name and generator expressions. +ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../PerConfig PerConfig) +ADD_CUSTOM_COMMAND( + OUTPUT perconfig.out + COMMAND ${PerConfig_COMMAND} + DEPENDS ${PerConfig_DEPENDS} + VERBATIM + ) +SET_PROPERTY(SOURCE perconfig.out PROPERTY SYMBOLIC 1) +ADD_CUSTOM_TARGET(perconfig_target ALL + COMMAND ${CMAKE_COMMAND} -E echo "perconfig=$<TARGET_FILE:perconfig>" "config=$<CONFIGURATION>" + DEPENDS perconfig.out) |