diff options
author | David Cole <david.cole@kitware.com> | 2008-07-30 20:36:22 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2008-07-30 20:36:22 (GMT) |
commit | 6ec7ec20792c5a83bad99066447965baad59b831 (patch) | |
tree | 97fdf0e11091c9b71a2f06eb06c46c0afcd1ba1e /Tests/BundleGeneratorTest/CMakeLists.txt | |
parent | bab77e53e3aef9c07fe488e73be8dc7d60aaa4fc (diff) | |
download | CMake-6ec7ec20792c5a83bad99066447965baad59b831.zip CMake-6ec7ec20792c5a83bad99066447965baad59b831.tar.gz CMake-6ec7ec20792c5a83bad99066447965baad59b831.tar.bz2 |
ENH: Add test for the new CPack BundleGenerator. Thanks to Tim Shead for the patch. See issue #7170 for more details.
Diffstat (limited to 'Tests/BundleGeneratorTest/CMakeLists.txt')
-rw-r--r-- | Tests/BundleGeneratorTest/CMakeLists.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Tests/BundleGeneratorTest/CMakeLists.txt b/Tests/BundleGeneratorTest/CMakeLists.txt new file mode 100644 index 0000000..e671d40 --- /dev/null +++ b/Tests/BundleGeneratorTest/CMakeLists.txt @@ -0,0 +1,24 @@ +PROJECT(BundleGeneratorTest) + +CMAKE_MINIMUM_REQUIRED(VERSION 2.7) + +# Build a shared library and install it in lib/ +ADD_LIBRARY(Library SHARED Library.cxx) +INSTALL(TARGETS Library DESTINATION lib) + +# Build an executable and install it in bin/ +ADD_EXECUTABLE(Executable Executable.cxx) +TARGET_LINK_LIBRARIES(Executable Library) +INSTALL(TARGETS Executable DESTINATION bin) + +# Use the bundle-generator for packaging ... +SET(CPACK_GENERATOR "Bundle") +SET(CPACK_BUNDLE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/BundleIcon.icns") +SET(CPACK_BUNDLE_NAME "BundleGeneratorTest") +SET(CPACK_BUNDLE_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist") +SET(CPACK_BUNDLE_STARTUP_COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/StartupCommand") +SET(CPACK_PACKAGE_DESCRIPTION "Project for testing OSX bundle generation") +SET(CPACK_PACKAGE_NAME "BundleGeneratorTest") +SET(CPACK_PACKAGE_VERSION "0.1") +INCLUDE(CPack) + |