diff options
author | Brad King <brad.king@kitware.com> | 2019-09-24 16:39:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-09-26 18:57:40 (GMT) |
commit | 21442d72a44c2bd732f2ff19ed89ce488854d25d (patch) | |
tree | 656a1a2875dbfca3857175a9ab67560e4f7c61c1 /Tests/RunCMake/add_subdirectory/ExcludeFromAll.cmake | |
parent | 0cfbd85e7b0d61affda6450b1cc081860b5543a6 (diff) | |
download | CMake-21442d72a44c2bd732f2ff19ed89ce488854d25d.zip CMake-21442d72a44c2bd732f2ff19ed89ce488854d25d.tar.gz CMake-21442d72a44c2bd732f2ff19ed89ce488854d25d.tar.bz2 |
Tests: Revise RunCMake.add_subdirectory ExcludeFromAll to avoid globbing
Also simplify the clean step.
Diffstat (limited to 'Tests/RunCMake/add_subdirectory/ExcludeFromAll.cmake')
-rw-r--r-- | Tests/RunCMake/add_subdirectory/ExcludeFromAll.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/add_subdirectory/ExcludeFromAll.cmake b/Tests/RunCMake/add_subdirectory/ExcludeFromAll.cmake index f686005..cc31428 100644 --- a/Tests/RunCMake/add_subdirectory/ExcludeFromAll.cmake +++ b/Tests/RunCMake/add_subdirectory/ExcludeFromAll.cmake @@ -4,3 +4,10 @@ add_subdirectory(ExcludeFromAll EXCLUDE_FROM_ALL) add_executable(main main.cpp) target_link_libraries(main PRIVATE foo) + +file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/check-$<LOWER_CASE:$<CONFIG>>.cmake CONTENT " +set(main_exe \"$<TARGET_FILE:main>\") +set(foo_lib \"$<TARGET_FILE:foo>\") +set(bar_lib \"$<TARGET_FILE:bar>\") +set(baz_lib \"$<TARGET_FILE:baz>\") +") |