summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeLists.txt
diff options
context:
space:
mode:
authorMatt McCormick <matt.mccormick@kitware.com>2015-03-24 04:02:50 (GMT)
committerMatt McCormick <matt.mccormick@kitware.com>2015-04-07 17:33:34 (GMT)
commit579c4bec6e2352448f78d9333f7382ff34a08e5a (patch)
treedeb2161d3058d0ecdda1b126994cb5866d060853 /Tests/RunCMake/CMakeLists.txt
parent7ee897beec045761e796ac7468ed6e43cd58f1fe (diff)
downloadCMake-579c4bec6e2352448f78d9333f7382ff34a08e5a.zip
CMake-579c4bec6e2352448f78d9333f7382ff34a08e5a.tar.gz
CMake-579c4bec6e2352448f78d9333f7382ff34a08e5a.tar.bz2
Properties: Add CROSSCOMPILING_EMULATOR target property.
Add CROSSCOMPILING_EMULATOR target property for executables. This is used by subsequent patches to run exectuables created for the target system when crosscompiling. The property is initialized by the CMAKE_CROSSCOMPILING_EMULATOR variable when defined.
Diffstat (limited to 'Tests/RunCMake/CMakeLists.txt')
-rw-r--r--Tests/RunCMake/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index 60a8a82..977721d 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -226,3 +226,7 @@ add_RunCMake_test(COMPILE_LANGUAGE-genex)
if(CMake_TEST_FindMatlab)
add_RunCMake_test(FindMatlab)
endif()
+
+add_executable(pseudo_emulator pseudo_emulator.c)
+add_RunCMake_test(CrosscompilingEmulator
+ -DPSEUDO_EMULATOR=$<TARGET_FILE:pseudo_emulator>)