summaryrefslogtreecommitdiffstats
path: root/Tests/BuildDepends/Project
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-05-09 19:10:12 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-05-09 19:10:12 (GMT)
commitd4193542509722b169d33ddd5a8d081522bd789c (patch)
tree09fc12abfe5be3b5206c758d66f2a9e85aefed49 /Tests/BuildDepends/Project
parent8245f437b6528cfa86dda12e566a32c810f2d64a (diff)
downloadCMake-d4193542509722b169d33ddd5a8d081522bd789c.zip
CMake-d4193542509722b169d33ddd5a8d081522bd789c.tar.gz
CMake-d4193542509722b169d33ddd5a8d081522bd789c.tar.bz2
ENH: add a test to make sure Xcode does not break again
Diffstat (limited to 'Tests/BuildDepends/Project')
-rw-r--r--Tests/BuildDepends/Project/CMakeLists.txt4
-rw-r--r--Tests/BuildDepends/Project/bar.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/Tests/BuildDepends/Project/CMakeLists.txt b/Tests/BuildDepends/Project/CMakeLists.txt
new file mode 100644
index 0000000..2546038
--- /dev/null
+++ b/Tests/BuildDepends/Project/CMakeLists.txt
@@ -0,0 +1,4 @@
+project(testRebuild)
+add_library(foo STATIC ${testRebuild_BINARY_DIR}/foo.c)
+add_executable(bar bar.c)
+target_link_libraries(bar foo)
diff --git a/Tests/BuildDepends/Project/bar.c b/Tests/BuildDepends/Project/bar.c
new file mode 100644
index 0000000..d32ea2e
--- /dev/null
+++ b/Tests/BuildDepends/Project/bar.c
@@ -0,0 +1,8 @@
+#include "stdio.h"
+
+const char* foo();
+int main()
+{
+ printf("%s", foo());
+ return 0;
+}