summaryrefslogtreecommitdiffstats
path: root/Tests/Jump/Executable
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-01-22 14:56:24 (GMT)
committerBrad King <brad.king@kitware.com>2004-01-22 14:56:24 (GMT)
commit3a33f2c33822a3f266064b2e483ab79b5675bd5c (patch)
tree7f7fde451d33ba1e4e56e532cb55366530ae03b9 /Tests/Jump/Executable
parent8bd124e7d0e655f6195200f83e37dbd0a24624e3 (diff)
downloadCMake-3a33f2c33822a3f266064b2e483ab79b5675bd5c.zip
CMake-3a33f2c33822a3f266064b2e483ab79b5675bd5c.tar.gz
CMake-3a33f2c33822a3f266064b2e483ab79b5675bd5c.tar.bz2
ENH: Adding test for jumping over and building a missing library.
Diffstat (limited to 'Tests/Jump/Executable')
-rw-r--r--Tests/Jump/Executable/CMakeLists.txt2
-rw-r--r--Tests/Jump/Executable/jumpExecutable.cxx12
2 files changed, 14 insertions, 0 deletions
diff --git a/Tests/Jump/Executable/CMakeLists.txt b/Tests/Jump/Executable/CMakeLists.txt
new file mode 100644
index 0000000..032c212
--- /dev/null
+++ b/Tests/Jump/Executable/CMakeLists.txt
@@ -0,0 +1,2 @@
+ADD_EXECUTABLE(jumpExecutable jumpExecutable.cxx)
+TARGET_LINK_LIBRARIES(jumpExecutable jumpStatic jumpShared)
diff --git a/Tests/Jump/Executable/jumpExecutable.cxx b/Tests/Jump/Executable/jumpExecutable.cxx
new file mode 100644
index 0000000..7a050c7
--- /dev/null
+++ b/Tests/Jump/Executable/jumpExecutable.cxx
@@ -0,0 +1,12 @@
+#ifdef _WIN32
+# define JUMP_IMPORT __declspec(dllimport)
+#else
+# define JUMP_IMPORT extern
+#endif
+
+extern int jumpStatic();
+JUMP_IMPORT int jumpShared();
+int main()
+{
+ return jumpShared() && jumpShared();
+}