source: PSPA/madxPSPA/cmake/setupPackaging.cmake @ 430

Last change on this file since 430 was 430, checked in by touze, 11 years ago

import madx-5.01.00

File size: 638 bytes
Line 
1
2
3if(APPLE)
4    set(MACOSX_BUNDLE_STARTUP_COMMAND madx${BINARY_POSTFIX})
5    set(MACOSX_BUNDLE_ICON_FILE "${CMAKE_SOURCE_DIR}/cmake/MadX.icns")
6    set(MACOSX_BUNDLE_LONG_VERSION_STRING "MadX  version ${madX_MAJOR_VERSION}.${madX_MINOR_VERSION}.${madX_PATCH_LEVEL}")
7    set(MACOSX_BUNDLE_BUNDLE_NAME "MadX${BINARY_POSTFIX}")
8    set(MACOSX_BUNDLE_GUI_IDENTIFIER "MadX${BINARY_POSTFIX}")
9    # add icns to the .app/Resources with these two commands:
10    set(srcfiles ${srcfiles} ${CMAKE_SOURCE_DIR}/cmake/MadX.icns)
11    set_source_files_properties(${CMAKE_SOURCE_DIR}/cmake/MadX.icns PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
12endif()
Note: See TracBrowser for help on using the repository browser.