summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CrosscompilingEmulator/AddTest
diff options
context:
space:
mode:
authorJean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>2016-04-18 15:34:07 (GMT)
committerBrad King <brad.king@kitware.com>2016-05-03 14:41:52 (GMT)
commit8de778118becd964310a4137e22baf9264c88627 (patch)
tree001cf1f0a5459e7340bf75db2586843533c65479 /Tests/RunCMake/CrosscompilingEmulator/AddTest
parent96c8a4769fe7aaf4ff533f3dc613eeb17d01daae (diff)
downloadCMake-8de778118becd964310a4137e22baf9264c88627.zip
CMake-8de778118becd964310a4137e22baf9264c88627.tar.gz
CMake-8de778118becd964310a4137e22baf9264c88627.tar.bz2
Tests: Cover genex behavior in CROSSCOMPILING_EMULATOR test case
A `$<TARGET_FILE:tgt>` generator expression does not cause insertion of the emulator. Add a test covering this. While at it, extend the test case to cover executables in a subdirectory. Also make the test matching expressions more robust to support multiple add_test calls without mixing them while matching.
Diffstat (limited to 'Tests/RunCMake/CrosscompilingEmulator/AddTest')
-rw-r--r--Tests/RunCMake/CrosscompilingEmulator/AddTest/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/CrosscompilingEmulator/AddTest/CMakeLists.txt b/Tests/RunCMake/CrosscompilingEmulator/AddTest/CMakeLists.txt
new file mode 100644
index 0000000..f3d11d5
--- /dev/null
+++ b/Tests/RunCMake/CrosscompilingEmulator/AddTest/CMakeLists.txt
@@ -0,0 +1,3 @@
+add_executable(generated_exe_in_subdir_added_to_test_without_genex ${CMAKE_CURRENT_SOURCE_DIR}/../simple_src.cxx)
+
+add_executable(generated_exe_in_subdir_added_to_test_with_genex ${CMAKE_CURRENT_SOURCE_DIR}/../simple_src.cxx)