Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Tests / BundleGeneratorTest / CMakeLists.txt
blobe1fc2c1d40c0c47bf34b3defa62fbc27e5602ab8
1 PROJECT(BundleGeneratorTest)
3 CMAKE_MINIMUM_REQUIRED(VERSION 2.7)
5 # Build a shared library and install it in lib/
6 ADD_LIBRARY(Library SHARED Library.cxx)
7 INSTALL(TARGETS Library DESTINATION lib)
9 # Build an executable and install it in bin/
10 ADD_EXECUTABLE(Executable Executable.cxx)
11 TARGET_LINK_LIBRARIES(Executable Library)
12 INSTALL(TARGETS Executable DESTINATION bin)
14 # Use the bundle-generator for packaging ...
15 SET(CPACK_GENERATOR "Bundle")
16 SET(CPACK_BUNDLE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/BundleIcon.icns")
17 SET(CPACK_BUNDLE_NAME "BundleGeneratorTest")
18 SET(CPACK_BUNDLE_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist")
19 SET(CPACK_BUNDLE_STARTUP_COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/StartupCommand")
20 SET(CPACK_PACKAGE_DESCRIPTION "Project for testing OSX bundle generation")
22 # The custom volume icon is a copy of the normal Mac OSX volume icon, but
23 # on a white background. This is to differentiate it from the normal one
24 # so that you can verify that the custom icon is being used by doing a
25 # visual inspection of the mounted volume... This was added when fixing
26 # issue #7523...
28 SET(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/CustomVolumeIcon.icns")
30 SET(CPACK_PACKAGE_NAME "BundleGeneratorTest")
31 SET(CPACK_PACKAGE_VERSION "0.1")
33 INCLUDE(CPack)