Path: blob/master/Tests/BundleGeneratorTest/CMakeLists.txt
3150 views
cmake_minimum_required(VERSION 3.10)1project(BundleGeneratorTest)23# Build a shared library and install it in lib/4add_library(Library SHARED Library.cxx)5install(TARGETS Library DESTINATION lib)67# Build an executable and install it in bin/8add_executable(Executable Executable.cxx)9target_link_libraries(Executable Library)10install(TARGETS Executable DESTINATION bin)1112# Use the bundle-generator for packaging ...13set(CPACK_GENERATOR "Bundle")14set(CPACK_BUNDLE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/BundleIcon.icns")15set(CPACK_BUNDLE_NAME "BundleGeneratorTest")16set(CPACK_BUNDLE_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist")17set(CPACK_BUNDLE_STARTUP_COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/StartupCommand")18set(CPACK_PACKAGE_DESCRIPTION "Project for testing OSX bundle generation")1920# The custom volume icon is a copy of the normal Mac OSX volume icon, but21# on a white background. This is to differentiate it from the normal one22# so that you can verify that the custom icon is being used by doing a23# visual inspection of the mounted volume... This was added when fixing24# issue #7523...25#26set(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/CustomVolumeIcon.icns")2728set(CPACK_PACKAGE_NAME "BundleGeneratorTest")29set(CPACK_PACKAGE_VERSION "0.1")3031include(CPack)323334