summaryrefslogtreecommitdiffstats
path: root/Tests/LibName
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-11-29 20:58:19 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-11-29 20:58:19 (GMT)
commit46f8ed064820ec7a9d645a55a1ad7a0d3d7b8134 (patch)
tree94726fec6aee4edd9144b7f399ecc79b83450e14 /Tests/LibName
parentd6219588c049c8d7ca1b328d918e410e9385f0c8 (diff)
downloadCMake-46f8ed064820ec7a9d645a55a1ad7a0d3d7b8134.zip
CMake-46f8ed064820ec7a9d645a55a1ad7a0d3d7b8134.tar.gz
CMake-46f8ed064820ec7a9d645a55a1ad7a0d3d7b8134.tar.bz2
BUG: fix a problem where it tried to link .dll.lib files
Diffstat (limited to 'Tests/LibName')
-rw-r--r--Tests/LibName/CMakeLists.txt7
-rw-r--r--Tests/LibName/bar.c3
-rw-r--r--Tests/LibName/foo.c5
-rw-r--r--Tests/LibName/foobar.c7
4 files changed, 22 insertions, 0 deletions
diff --git a/Tests/LibName/CMakeLists.txt b/Tests/LibName/CMakeLists.txt
new file mode 100644
index 0000000..649aae3
--- /dev/null
+++ b/Tests/LibName/CMakeLists.txt
@@ -0,0 +1,7 @@
+project(LibName)
+set(LIBRARY_OUTPUT_PATH lib)
+add_library(bar SHARED bar.c)
+add_library(foo SHARED foo.c)
+target_link_libraries(foo bar)
+add_executable(foobar foobar.c)
+target_link_libraries(foobar foo)
diff --git a/Tests/LibName/bar.c b/Tests/LibName/bar.c
new file mode 100644
index 0000000..c434bf7
--- /dev/null
+++ b/Tests/LibName/bar.c
@@ -0,0 +1,3 @@
+__declspec(dllexport) void foo()
+{
+}
diff --git a/Tests/LibName/foo.c b/Tests/LibName/foo.c
new file mode 100644
index 0000000..b068b46
--- /dev/null
+++ b/Tests/LibName/foo.c
@@ -0,0 +1,5 @@
+__declspec(dllimport) void foo();
+__declspec(dllexport) void bar()
+{
+ foo();
+}
diff --git a/Tests/LibName/foobar.c b/Tests/LibName/foobar.c
new file mode 100644
index 0000000..ac22ab3
--- /dev/null
+++ b/Tests/LibName/foobar.c
@@ -0,0 +1,7 @@
+__declspec(dllimport) void bar();
+
+int main(int ac, char** av)
+{
+ bar();
+ return 0;
+}