diff options
author | Brad King <brad.king@kitware.com> | 2008-01-28 18:06:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-28 18:06:17 (GMT) |
commit | 611bff2c1b8a0ce533d92662504a391c9e3d494b (patch) | |
tree | c0d1f7c40a01480c3769822dd9a24b7ec05dd418 /Tests/ExportImport/Export | |
parent | 28ea03473785eddce544704306a239407a8f79bb (diff) | |
download | CMake-611bff2c1b8a0ce533d92662504a391c9e3d494b.zip CMake-611bff2c1b8a0ce533d92662504a391c9e3d494b.tar.gz CMake-611bff2c1b8a0ce533d92662504a391c9e3d494b.tar.bz2 |
ENH: Added framework to ExportImport test.
Diffstat (limited to 'Tests/ExportImport/Export')
-rw-r--r-- | Tests/ExportImport/Export/CMakeLists.txt | 8 | ||||
-rw-r--r-- | Tests/ExportImport/Export/testLib4.c | 7 |
2 files changed, 13 insertions, 2 deletions
diff --git a/Tests/ExportImport/Export/CMakeLists.txt b/Tests/ExportImport/Export/CMakeLists.txt index eef146a..53fe705 100644 --- a/Tests/ExportImport/Export/CMakeLists.txt +++ b/Tests/ExportImport/Export/CMakeLists.txt @@ -16,18 +16,22 @@ target_link_libraries(testLib2 testLib1) add_library(testLib3 SHARED testLib3.c) +add_library(testLib4 SHARED testLib4.c) +set_property(TARGET testLib4 PROPERTY FRAMEWORK 1) + # Install and export from install tree. install( - TARGETS testExe1 testLib1 testLib2 testExe2 testLib3 + TARGETS testExe1 testLib1 testLib2 testExe2 testLib3 testLib4 EXPORT exp RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib + FRAMEWORK DESTINATION Frameworks ) install(EXPORT exp NAMESPACE exp_ DESTINATION lib/exp) # Export from build tree. -export(TARGETS testExe1 testLib1 testLib2 testExe2 testLib3 +export(TARGETS testExe1 testLib1 testLib2 testExe2 testLib3 testLib4 NAMESPACE bld_ FILE ExportBuildTree.cmake ) diff --git a/Tests/ExportImport/Export/testLib4.c b/Tests/ExportImport/Export/testLib4.c new file mode 100644 index 0000000..846b438 --- /dev/null +++ b/Tests/ExportImport/Export/testLib4.c @@ -0,0 +1,7 @@ +#if defined(_WIN32) || defined(__CYGWIN__) +# define testLib4_EXPORT __declspec(dllexport) +#else +# define testLib4_EXPORT +#endif + +testLib4_EXPORT int testLib4(void) { return 0; } |