aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-12-04 12:06:08 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-12-04 12:06:08 +0000
commit27a0bf662d7dd46823222fd95d73587a0c7a095c (patch)
treebaa321a9300ee2560bb71c20cdf09295bf164843 /src/app
parentee2dcb552128031dce57f1cab62857c76e98916c (diff)
downloadqmmp-27a0bf662d7dd46823222fd95d73587a0c7a095c.tar.gz
qmmp-27a0bf662d7dd46823222fd95d73587a0c7a095c.tar.bz2
qmmp-27a0bf662d7dd46823222fd95d73587a0c7a095c.zip
building of .app package for MacOS X with CMake (patch by Ivan Ponomarev)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5807 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/app')
-rw-r--r--src/app/CMakeLists.txt30
-rw-r--r--src/app/images/mac/icons.icnsbin0 -> 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
new file mode 100644
index 000000000..7d1da8cd8
--- /dev/null
+++ b/src/app/images/mac/icons.icns
Binary files differ