diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-08-23 17:57:45 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-08-23 17:57:45 (GMT) |
commit | 3a3b55679b1c28ac4d7c24c2de2ce28d88a3d21c (patch) | |
tree | 7bb6b35243fdc96afa879e06c1f4557ee22318b9 /Tests/ComplexOneConfig/Library | |
parent | bd4c5cf3625bc4d23f2f5c20fee7fa0bb34aed4b (diff) | |
download | CMake-3a3b55679b1c28ac4d7c24c2de2ce28d88a3d21c.zip CMake-3a3b55679b1c28ac4d7c24c2de2ce28d88a3d21c.tar.gz CMake-3a3b55679b1c28ac4d7c24c2de2ce28d88a3d21c.tar.bz2 |
ENH: try to get better test coverage
Diffstat (limited to 'Tests/ComplexOneConfig/Library')
-rw-r--r-- | Tests/ComplexOneConfig/Library/CMakeLists.txt | 8 | ||||
-rw-r--r-- | Tests/ComplexOneConfig/Library/ExtraSources/file1.cxx | 4 | ||||
-rw-r--r-- | Tests/ComplexOneConfig/Library/ExtraSources/file1.h | 1 | ||||
-rw-r--r-- | Tests/ComplexOneConfig/Library/file2.cxx | 4 | ||||
-rw-r--r-- | Tests/ComplexOneConfig/Library/file2.h | 1 | ||||
-rw-r--r-- | Tests/ComplexOneConfig/Library/sharedFile.cxx | 6 | ||||
-rw-r--r-- | Tests/ComplexOneConfig/Library/sharedFile.h | 12 |
7 files changed, 36 insertions, 0 deletions
diff --git a/Tests/ComplexOneConfig/Library/CMakeLists.txt b/Tests/ComplexOneConfig/Library/CMakeLists.txt new file mode 100644 index 0000000..bc890eb --- /dev/null +++ b/Tests/ComplexOneConfig/Library/CMakeLists.txt @@ -0,0 +1,8 @@ +AUX_SOURCE_DIRECTORY(ExtraSources LibrarySources) + +SOURCE_FILES(LibrarySources file2) +ADD_LIBRARY(CMakeTestLibrary LibrarySources) +SOURCE_FILES(SharedLibrarySources sharedFile) +ADD_LIBRARY(CMakeTestLibraryShared SHARED SharedLibrarySources) + + diff --git a/Tests/ComplexOneConfig/Library/ExtraSources/file1.cxx b/Tests/ComplexOneConfig/Library/ExtraSources/file1.cxx new file mode 100644 index 0000000..e22812e --- /dev/null +++ b/Tests/ComplexOneConfig/Library/ExtraSources/file1.cxx @@ -0,0 +1,4 @@ +int file1() +{ + return 1; +} diff --git a/Tests/ComplexOneConfig/Library/ExtraSources/file1.h b/Tests/ComplexOneConfig/Library/ExtraSources/file1.h new file mode 100644 index 0000000..ce0d818 --- /dev/null +++ b/Tests/ComplexOneConfig/Library/ExtraSources/file1.h @@ -0,0 +1 @@ +int file1(); diff --git a/Tests/ComplexOneConfig/Library/file2.cxx b/Tests/ComplexOneConfig/Library/file2.cxx new file mode 100644 index 0000000..1351669 --- /dev/null +++ b/Tests/ComplexOneConfig/Library/file2.cxx @@ -0,0 +1,4 @@ +int file2() +{ + return 1; +} diff --git a/Tests/ComplexOneConfig/Library/file2.h b/Tests/ComplexOneConfig/Library/file2.h new file mode 100644 index 0000000..dea4b80 --- /dev/null +++ b/Tests/ComplexOneConfig/Library/file2.h @@ -0,0 +1 @@ +int file2(); diff --git a/Tests/ComplexOneConfig/Library/sharedFile.cxx b/Tests/ComplexOneConfig/Library/sharedFile.cxx new file mode 100644 index 0000000..cafac68 --- /dev/null +++ b/Tests/ComplexOneConfig/Library/sharedFile.cxx @@ -0,0 +1,6 @@ +#include "sharedFile.h" + +int sharedFunction() +{ + return 1; +} diff --git a/Tests/ComplexOneConfig/Library/sharedFile.h b/Tests/ComplexOneConfig/Library/sharedFile.h new file mode 100644 index 0000000..4cdb7a1 --- /dev/null +++ b/Tests/ComplexOneConfig/Library/sharedFile.h @@ -0,0 +1,12 @@ +#if defined(_WIN32) || defined(WIN32) /* Win32 version */ +#ifdef CMakeTestLibraryShared_EXPORTS +# define CMakeTest_EXPORT __declspec(dllexport) +#else +# define CMakeTest_EXPORT __declspec(dllimport) +#endif +#else +// unix needs nothing +#define CMakeTest_EXPORT +#endif + +CMakeTest_EXPORT int sharedFunction(); |