diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-07-14 12:21:49 -0400 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-07-14 12:21:49 -0400 |
commit | b7b35d2c5aab37c83a77e016de5e01bfaef4eff7 (patch) | |
tree | 41c34350ee3ac18d5b42d9d4577ed2a9c92f3580 /Tests/OutOfSource/OutOfSourceSubdir | |
parent | e8b10e1938c2584f8017accf196b1bbad369cb8e (diff) | |
download | cmake-b7b35d2c5aab37c83a77e016de5e01bfaef4eff7.tar.gz |
FIX: fix bug 2043 borland compiler and dll problem and add a test for it
Diffstat (limited to 'Tests/OutOfSource/OutOfSourceSubdir')
-rw-r--r-- | Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt | 3 | ||||
-rw-r--r-- | Tests/OutOfSource/OutOfSourceSubdir/simple.cxx | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt b/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt index f3d378531c..412a1ca029 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 1482f27e53..cfb1f1ab61 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; } |