File: CMakeLists.txt

package info (click to toggle)
cmake 4.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 152,336 kB
  • sloc: ansic: 403,896; cpp: 303,920; sh: 4,105; python: 3,583; yacc: 3,106; lex: 1,279; f90: 538; asm: 471; lisp: 375; cs: 270; java: 266; fortran: 239; objc: 215; perl: 213; xml: 198; makefile: 111; javascript: 83; pascal: 63; tcl: 55; php: 25; ruby: 22
file content (32 lines) | stat: -rw-r--r-- 1,261 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
cmake_minimum_required(VERSION 3.10)
project(BundleGeneratorTest)

# 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")

# The custom volume icon is a copy of the normal Mac OSX volume icon, but
# on a white background. This is to differentiate it from the normal one
# so that you can verify that the custom icon is being used by doing a
# visual inspection of the mounted volume... This was added when fixing
# issue #7523...
#
set(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/CustomVolumeIcon.icns")

set(CPACK_PACKAGE_NAME "BundleGeneratorTest")
set(CPACK_PACKAGE_VERSION "0.1")

include(CPack)