diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-07-14 16:21:49 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-07-14 16:21:49 (GMT) |
commit | b7b35d2c5aab37c83a77e016de5e01bfaef4eff7 (patch) | |
tree | 41c34350ee3ac18d5b42d9d4577ed2a9c92f3580 /Tests | |
parent | e8b10e1938c2584f8017accf196b1bbad369cb8e (diff) | |
download | CMake-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')
-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 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; } |