diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-04-27 13:22:57 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-04-27 13:22:57 (GMT) |
commit | 482eef71122acf6408e0d5bd02161bb832155f08 (patch) | |
tree | 61500ef9273621f9d8816b2286ed6c8838137e30 /Tests/SubDir | |
parent | c19a70b3ada66a59c7a0ff78bf1a4a1cd557db9a (diff) | |
download | CMake-482eef71122acf6408e0d5bd02161bb832155f08.zip CMake-482eef71122acf6408e0d5bd02161bb832155f08.tar.gz CMake-482eef71122acf6408e0d5bd02161bb832155f08.tar.bz2 |
BUG: Fix aus source dir and add better testing of it
Diffstat (limited to 'Tests/SubDir')
-rw-r--r-- | Tests/SubDir/AnotherSubdir/pair+int.int.c | 6 | ||||
-rw-r--r-- | Tests/SubDir/AnotherSubdir/secondone.c | 6 | ||||
-rw-r--r-- | Tests/SubDir/AnotherSubdir/testfromsubdir.c | 8 | ||||
-rw-r--r-- | Tests/SubDir/CMakeLists.txt | 13 | ||||
-rw-r--r-- | Tests/SubDir/ThirdSubDir/pair+int.int1.c | 6 | ||||
-rw-r--r-- | Tests/SubDir/ThirdSubDir/testfromauxsubdir.c | 14 | ||||
-rw-r--r-- | Tests/SubDir/ThirdSubDir/thirdone.c | 6 | ||||
-rw-r--r-- | Tests/SubDir/vcl_algorithm+vcl_pair+double.foo.c | 6 |
8 files changed, 60 insertions, 5 deletions
diff --git a/Tests/SubDir/AnotherSubdir/pair+int.int.c b/Tests/SubDir/AnotherSubdir/pair+int.int.c new file mode 100644 index 0000000..b7a6237 --- /dev/null +++ b/Tests/SubDir/AnotherSubdir/pair+int.int.c @@ -0,0 +1,6 @@ +#include <stdio.h> + +void pair_stuff() +{ + printf("Placeholder for a strange file in subdirectory\n"); +} diff --git a/Tests/SubDir/AnotherSubdir/secondone.c b/Tests/SubDir/AnotherSubdir/secondone.c index b55d05f..3e9e5af 100644 --- a/Tests/SubDir/AnotherSubdir/secondone.c +++ b/Tests/SubDir/AnotherSubdir/secondone.c @@ -1,4 +1,6 @@ -const char* secondone() +#include <stdio.h> + +void secondone() { - return "Hello again"; + printf("Hello again\n"); } diff --git a/Tests/SubDir/AnotherSubdir/testfromsubdir.c b/Tests/SubDir/AnotherSubdir/testfromsubdir.c index b784b16..34b6e7a 100644 --- a/Tests/SubDir/AnotherSubdir/testfromsubdir.c +++ b/Tests/SubDir/AnotherSubdir/testfromsubdir.c @@ -1,10 +1,14 @@ #include <stdio.h> -const char* secondone(); +void secondone(); +void pair_stuff(); +void vcl_stuff(); int main() { printf("Hello from subdirectory\n"); - printf("SO: %s\n", secondone()); + secondone(); + pair_stuff(); + vcl_stuff(); return 0; } diff --git a/Tests/SubDir/CMakeLists.txt b/Tests/SubDir/CMakeLists.txt index a1da9b6..5cf8859 100644 --- a/Tests/SubDir/CMakeLists.txt +++ b/Tests/SubDir/CMakeLists.txt @@ -2,4 +2,15 @@ PROJECT(SUBDIR) SUBDIRS(Executable EXCLUDE_FROM_ALL Examples) WRITE_FILE(${SUBDIR_BINARY_DIR}/ShouldBeHere "This file should exist.") -ADD_EXECUTABLE(TestFromSubdir AnotherSubdir/testfromsubdir.c AnotherSubdir/secondone) +ADD_EXECUTABLE(TestFromSubdir + AnotherSubdir/testfromsubdir.c + AnotherSubdir/secondone + AnotherSubdir/pair+int.int.c + vcl_algorithm+vcl_pair+double.foo.c + ) + +AUX_SOURCE_DIRECTORY(ThirdSubDir SOURCES) +SET(SOURCES ${SOURCES} + vcl_algorithm+vcl_pair+double.foo.c) +MESSAGE("Sources: ${SOURCES}") +ADD_EXECUTABLE(TestWithAuxSourceDir ${SOURCES}) diff --git a/Tests/SubDir/ThirdSubDir/pair+int.int1.c b/Tests/SubDir/ThirdSubDir/pair+int.int1.c new file mode 100644 index 0000000..b7a6237 --- /dev/null +++ b/Tests/SubDir/ThirdSubDir/pair+int.int1.c @@ -0,0 +1,6 @@ +#include <stdio.h> + +void pair_stuff() +{ + printf("Placeholder for a strange file in subdirectory\n"); +} diff --git a/Tests/SubDir/ThirdSubDir/testfromauxsubdir.c b/Tests/SubDir/ThirdSubDir/testfromauxsubdir.c new file mode 100644 index 0000000..34b6e7a --- /dev/null +++ b/Tests/SubDir/ThirdSubDir/testfromauxsubdir.c @@ -0,0 +1,14 @@ +#include <stdio.h> + +void secondone(); +void pair_stuff(); +void vcl_stuff(); + +int main() +{ + printf("Hello from subdirectory\n"); + secondone(); + pair_stuff(); + vcl_stuff(); + return 0; +} diff --git a/Tests/SubDir/ThirdSubDir/thirdone.c b/Tests/SubDir/ThirdSubDir/thirdone.c new file mode 100644 index 0000000..3e9e5af --- /dev/null +++ b/Tests/SubDir/ThirdSubDir/thirdone.c @@ -0,0 +1,6 @@ +#include <stdio.h> + +void secondone() +{ + printf("Hello again\n"); +} diff --git a/Tests/SubDir/vcl_algorithm+vcl_pair+double.foo.c b/Tests/SubDir/vcl_algorithm+vcl_pair+double.foo.c new file mode 100644 index 0000000..a0c60f7 --- /dev/null +++ b/Tests/SubDir/vcl_algorithm+vcl_pair+double.foo.c @@ -0,0 +1,6 @@ +#include <stdio.h> + +void vcl_stuff() +{ + printf("Placeholder for a file with strange name\n"); +} |