mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
ENH: added new test for out of dir source trees
This commit is contained in:
3
Tests/OutOfSource/CMakeLists.txt
Normal file
3
Tests/OutOfSource/CMakeLists.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
# a simple test case
|
||||
PROJECT (OutOfSource)
|
||||
SUBDIRS(SubDir)
|
||||
1
Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt
Normal file
1
Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt
Normal file
@@ -0,0 +1 @@
|
||||
ADD_EXECUTABLE (simple simple.cxx)
|
||||
4
Tests/OutOfSource/OutOfSourceSubdir/simple.cxx
Normal file
4
Tests/OutOfSource/OutOfSourceSubdir/simple.cxx
Normal file
@@ -0,0 +1,4 @@
|
||||
int main ()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
2
Tests/OutOfSource/SubDir/CMakeLists.txt
Normal file
2
Tests/OutOfSource/SubDir/CMakeLists.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# subdir to a sibling dir
|
||||
SUBDIRS(${PROJECT_SOURCE_DIR}/OutOfSourceSubdir)
|
||||
Reference in New Issue
Block a user