summaryrefslogtreecommitdiffstats
path: root/Tests/OutOfSource
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-07-14 16:21:49 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-07-14 16:21:49 (GMT)
commitb7b35d2c5aab37c83a77e016de5e01bfaef4eff7 (patch)
tree41c34350ee3ac18d5b42d9d4577ed2a9c92f3580 /Tests/OutOfSource
parente8b10e1938c2584f8017accf196b1bbad369cb8e (diff)
downloadCMake-b7b35d2c5aab37c83a77e016de5e01bfaef4eff7.zip
CMake-b7b35d2c5aab37c83a77e016de5e01bfaef4eff7.tar.gz
CMake-b7b35d2c5aab37c83a77e016de5e01bfaef4eff7.tar.bz2
FIX: fix bug 2043 borland compiler and dll problem and add a test for it
Diffstat (limited to 'Tests/OutOfSource')
-rw-r--r--Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt3
-rw-r--r--Tests/OutOfSource/OutOfSourceSubdir/simple.cxx6
2 files changed, 9 insertions, 0 deletions
diff --git a/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt b/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt
index f3d3785..412a1ca 100644
--- a/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt
+++ b/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt
@@ -1,4 +1,7 @@
IF ("${PROJECT_SOURCE_DIR}" STREQUAL "${ANOTHER_PROJ_SOURCE_DIR}")
+ SET(BUILD_SHARED_LIBS 1)
+ ADD_LIBRARY(testlib testlib.cxx)
ADD_EXECUTABLE (simple simple.cxx)
+ TARGET_LINK_LIBRARIES(simple testlib)
ENDIF ("${PROJECT_SOURCE_DIR}" STREQUAL "${ANOTHER_PROJ_SOURCE_DIR}")
diff --git a/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx b/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx
index 1482f27..cfb1f1a 100644
--- a/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx
+++ b/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx
@@ -1,4 +1,10 @@
+#include "testlib.h"
+
int main ()
{
+ if(TestLib() != 1.0)
+ {
+ return -1;
+ }
return 0;
}