CMakeLists.txt 874 B

123456789101112131415161718192021222324
  1. PROJECT(BundleGeneratorTest)
  2. CMAKE_MINIMUM_REQUIRED(VERSION 2.7)
  3. # Build a shared library and install it in lib/
  4. ADD_LIBRARY(Library SHARED Library.cxx)
  5. INSTALL(TARGETS Library DESTINATION lib)
  6. # Build an executable and install it in bin/
  7. ADD_EXECUTABLE(Executable Executable.cxx)
  8. TARGET_LINK_LIBRARIES(Executable Library)
  9. INSTALL(TARGETS Executable DESTINATION bin)
  10. # Use the bundle-generator for packaging ...
  11. SET(CPACK_GENERATOR "Bundle")
  12. SET(CPACK_BUNDLE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/BundleIcon.icns")
  13. SET(CPACK_BUNDLE_NAME "BundleGeneratorTest")
  14. SET(CPACK_BUNDLE_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist")
  15. SET(CPACK_BUNDLE_STARTUP_COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/StartupCommand")
  16. SET(CPACK_PACKAGE_DESCRIPTION "Project for testing OSX bundle generation")
  17. SET(CPACK_PACKAGE_NAME "BundleGeneratorTest")
  18. SET(CPACK_PACKAGE_VERSION "0.1")
  19. INCLUDE(CPack)