summaryrefslogtreecommitdiffstats
path: root/Tests/SubDirSpaces/Some Examples
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-02-19 17:23:37 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-02-19 17:23:37 (GMT)
commit83b5890a2f05c68eec6bb74f13244172a9358ce6 (patch)
treec14a5aa1b498cd3e21ce7761e07ca3c5f113084a /Tests/SubDirSpaces/Some Examples
parent74968ce1c7822608de25d90e4e5f16285bc0db8a (diff)
downloadCMake-83b5890a2f05c68eec6bb74f13244172a9358ce6.zip
CMake-83b5890a2f05c68eec6bb74f13244172a9358ce6.tar.gz
CMake-83b5890a2f05c68eec6bb74f13244172a9358ce6.tar.bz2
ENH: new test for spaces in the tree structure
Diffstat (limited to 'Tests/SubDirSpaces/Some Examples')
-rw-r--r--Tests/SubDirSpaces/Some Examples/CMakeLists.txt2
-rw-r--r--Tests/SubDirSpaces/Some Examples/example1/CMakeLists.txt6
-rw-r--r--Tests/SubDirSpaces/Some Examples/example1/example1.cxx7
-rw-r--r--Tests/SubDirSpaces/Some Examples/example2/CMakeLists.txt2
-rw-r--r--Tests/SubDirSpaces/Some Examples/example2/example2.cxx7
5 files changed, 24 insertions, 0 deletions
diff --git a/Tests/SubDirSpaces/Some Examples/CMakeLists.txt b/Tests/SubDirSpaces/Some Examples/CMakeLists.txt
new file mode 100644
index 0000000..44f2ad2
--- /dev/null
+++ b/Tests/SubDirSpaces/Some Examples/CMakeLists.txt
@@ -0,0 +1,2 @@
+PROJECT(Examples)
+SUBDIRS(example1 example2)
diff --git a/Tests/SubDirSpaces/Some Examples/example1/CMakeLists.txt b/Tests/SubDirSpaces/Some Examples/example1/CMakeLists.txt
new file mode 100644
index 0000000..e465899
--- /dev/null
+++ b/Tests/SubDirSpaces/Some Examples/example1/CMakeLists.txt
@@ -0,0 +1,6 @@
+PROJECT(example1)
+ADD_EXECUTABLE(example1 example1.cxx)
+
+ADD_CUSTOM_COMMAND(TARGET example1 POST_BUILD
+ COMMAND "${CMAKE_COMMAND}" ARGS -E remove ${SUBDIR_BINARY_DIR}/ShouldBeHere
+ COMMENT "Remove marker file that should exist because this should not be run")
diff --git a/Tests/SubDirSpaces/Some Examples/example1/example1.cxx b/Tests/SubDirSpaces/Some Examples/example1/example1.cxx
new file mode 100644
index 0000000..3c48194
--- /dev/null
+++ b/Tests/SubDirSpaces/Some Examples/example1/example1.cxx
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int main()
+{
+ printf("example1\n");
+ return 0;
+}
diff --git a/Tests/SubDirSpaces/Some Examples/example2/CMakeLists.txt b/Tests/SubDirSpaces/Some Examples/example2/CMakeLists.txt
new file mode 100644
index 0000000..19a5376
--- /dev/null
+++ b/Tests/SubDirSpaces/Some Examples/example2/CMakeLists.txt
@@ -0,0 +1,2 @@
+PROJECT(example2)
+ADD_EXECUTABLE(example2 example2.cxx)
diff --git a/Tests/SubDirSpaces/Some Examples/example2/example2.cxx b/Tests/SubDirSpaces/Some Examples/example2/example2.cxx
new file mode 100644
index 0000000..60ef3c9
--- /dev/null
+++ b/Tests/SubDirSpaces/Some Examples/example2/example2.cxx
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int main()
+{
+ printf("example2\n");
+ return 0;
+}