From: Diane Trout Date: Sat, 15 Jul 2006 01:53:04 +0000 (+0000) Subject: Provide an app icon on OS X X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=commitdiff_plain;h=8b7130d4ace481d55e0f520bd605651e567b478f Provide an app icon on OS X derived from the nice SVG icon created with Inkscape. --- diff --git a/icons/mussa.svg b/icons/mussa.svg new file mode 100644 index 0000000..d89ce2a --- /dev/null +++ b/icons/mussa.svg @@ -0,0 +1,168 @@ + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/icons/osx/Resources/mussa.icns b/icons/osx/Resources/mussa.icns new file mode 100644 index 0000000..fa83115 Binary files /dev/null and b/icons/osx/Resources/mussa.icns differ diff --git a/qui/CMakeLists.txt b/qui/CMakeLists.txt index 324704a..64a7255 100644 --- a/qui/CMakeLists.txt +++ b/qui/CMakeLists.txt @@ -99,6 +99,25 @@ IF(USE_PYTHON) ) ENDIF(USE_PYTHON) + +# we need Cocoa in order to find where our base directory is (AKA bundle) +IF(APPLE) + SET(COCOA_LIBRARY "-framework Cocoa") + TARGET_LINK_LIBRARIES(mussagl ${COCOA_LIBRARY}) + SET(MACOSX_BUNDLE_BUNDLE_NAME "Mussa") + SET(MACOSX_BUNDLE_LONG_VERSION_STRING "Mussa Copyright 2004-2006 California Institute of Technology") + SET(MACOSX_BUNDLE_COPYRIGHT "Copyright 2004-2006 California Institute of Technology") + SET(MACOSX_BUNDLE_ICON_FILE "mussa") + + SET(APP_DIR ${CMAKE_BINARY_DIR}/qui/mussagl.app/Contents) + SET(RESOURCE_DIR ${APP_DIR}/Resources}) + + ADD_CUSTOM_TARGET(mussa.icns ALL + cmake -E copy_directory ${CMAKE_SOURCE_DIR}/icons/osx + ${APP_DIR} + ) +ENDIF(APPLE) + # these are needed for AMD64 systems but don't hurt on 32bit SET_SOURCE_FILES_PROPERTIES(${SOURCES} PROPERTIES COMPILE_FLAGS "-fPIC") SET_TARGET_PROPERTIES(mussa_qui PROPERTIES COMPILE_FLAGS "-fPIC")