diff options
author | Brad King <brad.king@kitware.com> | 2015-09-16 14:09:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-09-17 14:21:09 (GMT) |
commit | 73a058f85680a044aeeecd815f8d6cc34fd29f3d (patch) | |
tree | 5dd8aebf5d61ae6c5c68a970ab081e4d91b1e23d /Tests/RunCMake/BuildDepends/C-Exe.cmake | |
parent | 438fabf242bae84dde71d51298b43c2b6fa760eb (diff) | |
download | CMake-73a058f85680a044aeeecd815f8d6cc34fd29f3d.zip CMake-73a058f85680a044aeeecd815f8d6cc34fd29f3d.tar.gz CMake-73a058f85680a044aeeecd815f8d6cc34fd29f3d.tar.bz2 |
Tests: Add RunCMake.BuildDepends test
This will allow more granular checks than the main BuildDepends test.
Start with a simple single-source C program.
Diffstat (limited to 'Tests/RunCMake/BuildDepends/C-Exe.cmake')
-rw-r--r-- | Tests/RunCMake/BuildDepends/C-Exe.cmake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/BuildDepends/C-Exe.cmake b/Tests/RunCMake/BuildDepends/C-Exe.cmake new file mode 100644 index 0000000..5057ca9 --- /dev/null +++ b/Tests/RunCMake/BuildDepends/C-Exe.cmake @@ -0,0 +1,12 @@ +enable_language(C) + +add_executable(main ${CMAKE_CURRENT_BINARY_DIR}/main.c) + +file(GENERATE OUTPUT check-$<LOWER_CASE:$<CONFIG>>.cmake CONTENT " +set(check_pairs + \"$<TARGET_FILE:main>|${CMAKE_CURRENT_BINARY_DIR}/main.c\" + ) +set(check_exes + \"$<TARGET_FILE:main>\" + ) +") |