diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-06-01 16:55:23 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-06-01 16:55:23 (GMT) |
commit | 5bbfbd56f584a43b13f3b2409f168bcfd6e02411 (patch) | |
tree | e992f012c3df6b75d027a9499eeaf1f69cc88ee8 /Tests/SimpleInstallS2/TestSubDir | |
parent | 2936c54cdd4acfd402a0237b29b96d718c64ffbf (diff) | |
download | CMake-5bbfbd56f584a43b13f3b2409f168bcfd6e02411.zip CMake-5bbfbd56f584a43b13f3b2409f168bcfd6e02411.tar.gz CMake-5bbfbd56f584a43b13f3b2409f168bcfd6e02411.tar.bz2 |
ENH: More elaborate install test
Diffstat (limited to 'Tests/SimpleInstallS2/TestSubDir')
-rw-r--r-- | Tests/SimpleInstallS2/TestSubDir/CMakeLists.txt | 3 | ||||
-rw-r--r-- | Tests/SimpleInstallS2/TestSubDir/TSD.cxx | 10 | ||||
-rw-r--r-- | Tests/SimpleInstallS2/TestSubDir/TSD.h | 1 | ||||
-rw-r--r-- | Tests/SimpleInstallS2/TestSubDir/TSD_utils.cxx | 10 |
4 files changed, 24 insertions, 0 deletions
diff --git a/Tests/SimpleInstallS2/TestSubDir/CMakeLists.txt b/Tests/SimpleInstallS2/TestSubDir/CMakeLists.txt new file mode 100644 index 0000000..a99711d --- /dev/null +++ b/Tests/SimpleInstallS2/TestSubDir/CMakeLists.txt @@ -0,0 +1,3 @@ +ADD_EXECUTABLE(TSD TSD.cxx TSD_utils.cxx) +INSTALL_FILES(/include FILES TSD.h) +INSTALL_TARGETS(/bin TSD) diff --git a/Tests/SimpleInstallS2/TestSubDir/TSD.cxx b/Tests/SimpleInstallS2/TestSubDir/TSD.cxx new file mode 100644 index 0000000..8fc3878 --- /dev/null +++ b/Tests/SimpleInstallS2/TestSubDir/TSD.cxx @@ -0,0 +1,10 @@ +#include <stdio.h> + +#include "TSD.h" + +int main() +{ + int res = TSD("TEST"); + printf("Hello from TSD\n"); + return res; +} diff --git a/Tests/SimpleInstallS2/TestSubDir/TSD.h b/Tests/SimpleInstallS2/TestSubDir/TSD.h new file mode 100644 index 0000000..6a3c1af --- /dev/null +++ b/Tests/SimpleInstallS2/TestSubDir/TSD.h @@ -0,0 +1 @@ +int TSD(const char*); diff --git a/Tests/SimpleInstallS2/TestSubDir/TSD_utils.cxx b/Tests/SimpleInstallS2/TestSubDir/TSD_utils.cxx new file mode 100644 index 0000000..0277f05 --- /dev/null +++ b/Tests/SimpleInstallS2/TestSubDir/TSD_utils.cxx @@ -0,0 +1,10 @@ +#include <string.h> + +int TSD(const char* foo) +{ + if ( strcmp(foo, "TEST") == 0 ) + { + return 0; + } + return 1; +} |