diff options
author | Brad King <brad.king@kitware.com> | 2006-07-07 13:54:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-07-07 13:54:29 (GMT) |
commit | ccfab2622bedf9ccce0a0d1136613703b0c3ef04 (patch) | |
tree | dbf38a4fcffe433d5a50fc7b2c5b41267fd696ea /Tests/OutOfSource/OutOfSourceSubdir | |
parent | 18fcd851b6c564c001d5f30bf4cd981a97a3ac01 (diff) | |
download | CMake-ccfab2622bedf9ccce0a0d1136613703b0c3ef04.zip CMake-ccfab2622bedf9ccce0a0d1136613703b0c3ef04.tar.gz CMake-ccfab2622bedf9ccce0a0d1136613703b0c3ef04.tar.bz2 |
ENH: Adding test for multiple source files with the same name but different full paths.
Diffstat (limited to 'Tests/OutOfSource/OutOfSourceSubdir')
-rw-r--r-- | Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Tests/OutOfSource/OutOfSourceSubdir/simple.cxx | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt b/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt index 3180f28..02ab4f6 100644 --- a/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt +++ b/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt @@ -3,7 +3,7 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) IF ("${PROJECT_SOURCE_DIR}" STREQUAL "${ANOTHER_PROJ_SOURCE_DIR}") SET(BUILD_SHARED_LIBS 1) ADD_LIBRARY(testlib testlib.cxx) - ADD_EXECUTABLE (simple simple.cxx) + ADD_EXECUTABLE (simple simple.cxx ../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 e06777d..3c9be09 100644 --- a/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx +++ b/Tests/OutOfSource/OutOfSourceSubdir/simple.cxx @@ -4,8 +4,14 @@ #include "testlib.h" #include "testdp.h" +extern int simple(); + int main () -{ +{ + if(simple() != 123) + { + return -3; + } if (strcmp(animal,"SIZZLING")) { fprintf(stderr,"Get definitions from a subdir did not work\n"); |