diff options
Diffstat (limited to 'src/app')
| -rw-r--r-- | src/app/CMakeLists.txt | 30 | ||||
| -rw-r--r-- | src/app/images/mac/icons.icns | bin | 0 -> 222922 bytes |
2 files changed, 18 insertions, 12 deletions
diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index f95d97041..0d6a27f80 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -46,17 +46,23 @@ QT4_ADD_RESOURCES(app_RCC_SRCS ${app_RCCS}) # the UI file won't be wrapped! include_directories(${CMAKE_CURRENT_BINARY_DIR}) -ADD_EXECUTABLE(qmmp ${app_SRCS} ${app_RCC_SRCS} ${app_HDRS}) +ADD_EXECUTABLE(qmmp MACOSX_BUNDLE ${app_SRCS} ${app_RCC_SRCS} ${app_HDRS}) target_link_libraries(qmmp ${QT_LIBRARIES} libqmmp qmmpui) add_dependencies(qmmp qmmpui libqmmp) -install(TARGETS qmmp DESTINATION bin) -install(FILES qmmp.desktop DESTINATION share/applications) -install(FILES images/16x16/qmmp.png DESTINATION share/icons/hicolor/16x16/apps) -install(FILES images/32x32/qmmp.png DESTINATION share/icons/hicolor/32x32/apps) -install(FILES images/48x48/qmmp.png DESTINATION share/icons/hicolor/48x48/apps) -install(FILES images/scalable/qmmp.svgz images/scalable/qmmp-simple.svgz DESTINATION share/icons/hicolor/scalable/apps) - -IF(USE_DIR_ASSOC) -install(FILES qmmp_enqueue.desktop DESTINATION share/applications) -install(FILES qmmp_dir.desktop DESTINATION share/applications) -ENDIF(USE_DIR_ASSOC) +IF(${CMAKE_SYSTEM_NAME} MATCHES Darwin) + set(MACOSX_BUNDLE_GUI_IDENTIFIER "com.ylsoftware.qmmp") + set(MACOSX_BUNDLE_ICON_FILE "icons.icns") + install(TARGETS qmmp DESTINATION .) + install(FILES images/mac/icons.icns DESTINATION ./qmmp.app/Contents/Resources) +ELSE() + install(TARGETS qmmp DESTINATION bin) + install(FILES qmmp.desktop DESTINATION share/applications) + install(FILES images/16x16/qmmp.png DESTINATION share/icons/hicolor/16x16/apps) + install(FILES images/32x32/qmmp.png DESTINATION share/icons/hicolor/32x32/apps) + install(FILES images/48x48/qmmp.png DESTINATION share/icons/hicolor/48x48/apps) + install(FILES images/scalable/qmmp.svgz images/scalable/qmmp-simple.svgz DESTINATION share/icons/hicolor/scalable/apps) + IF(USE_DIR_ASSOC) + install(FILES qmmp_enqueue.desktop DESTINATION share/applications) + install(FILES qmmp_dir.desktop DESTINATION share/applications) + ENDIF(USE_DIR_ASSOC) +ENDIF() diff --git a/src/app/images/mac/icons.icns b/src/app/images/mac/icons.icns Binary files differnew file mode 100644 index 000000000..7d1da8cd8 --- /dev/null +++ b/src/app/images/mac/icons.icns |
