summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/pseudo_emulator.c
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/pseudo_emulator.c
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/pseudo_emulator.c')
-rw-r--r--Tests/RunCMake/pseudo_emulator.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/RunCMake/pseudo_emulator.c b/Tests/RunCMake/pseudo_emulator.c
new file mode 100644
index 0000000..9308f75
--- /dev/null
+++ b/Tests/RunCMake/pseudo_emulator.c
@@ -0,0 +1,15 @@
+#include <stdio.h>
+
+int main(int argc, char * argv[] )
+{
+ int ii;
+
+ printf("Command:");
+ for(ii = 1; ii < argc; ++ii)
+ {
+ printf(" \"%s\"", argv[ii]);
+ }
+ printf("\n");
+
+ return 42;
+}