ENH: Adding test for multiple source files with the same name but different full paths.
This commit is contained in:
parent
18fcd851b6
commit
ccfab2622b
@ -3,7 +3,7 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
|
|||||||
IF ("${PROJECT_SOURCE_DIR}" STREQUAL "${ANOTHER_PROJ_SOURCE_DIR}")
|
IF ("${PROJECT_SOURCE_DIR}" STREQUAL "${ANOTHER_PROJ_SOURCE_DIR}")
|
||||||
SET(BUILD_SHARED_LIBS 1)
|
SET(BUILD_SHARED_LIBS 1)
|
||||||
ADD_LIBRARY(testlib testlib.cxx)
|
ADD_LIBRARY(testlib testlib.cxx)
|
||||||
ADD_EXECUTABLE (simple simple.cxx)
|
ADD_EXECUTABLE (simple simple.cxx ../simple.cxx)
|
||||||
TARGET_LINK_LIBRARIES(simple testlib)
|
TARGET_LINK_LIBRARIES(simple testlib)
|
||||||
ENDIF ("${PROJECT_SOURCE_DIR}" STREQUAL "${ANOTHER_PROJ_SOURCE_DIR}")
|
ENDIF ("${PROJECT_SOURCE_DIR}" STREQUAL "${ANOTHER_PROJ_SOURCE_DIR}")
|
||||||
|
|
||||||
|
@ -4,8 +4,14 @@
|
|||||||
#include "testlib.h"
|
#include "testlib.h"
|
||||||
#include "testdp.h"
|
#include "testdp.h"
|
||||||
|
|
||||||
|
extern int simple();
|
||||||
|
|
||||||
int main ()
|
int main ()
|
||||||
{
|
{
|
||||||
|
if(simple() != 123)
|
||||||
|
{
|
||||||
|
return -3;
|
||||||
|
}
|
||||||
if (strcmp(animal,"SIZZLING"))
|
if (strcmp(animal,"SIZZLING"))
|
||||||
{
|
{
|
||||||
fprintf(stderr,"Get definitions from a subdir did not work\n");
|
fprintf(stderr,"Get definitions from a subdir did not work\n");
|
||||||
|
1
Tests/OutOfSource/simple.cxx
Normal file
1
Tests/OutOfSource/simple.cxx
Normal file
@ -0,0 +1 @@
|
|||||||
|
int simple() { return 123; }
|
Loading…
x
Reference in New Issue
Block a user