diff src/CMakeLists.txt @ 91:5b815897657d

Add icon for macos bundle
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 06 Oct 2016 15:58:04 +0200
parents 1e6e7699f0b8
children 5d78e980a433
line wrap: on
line diff
--- a/src/CMakeLists.txt	Wed Oct 05 15:44:35 2016 +0200
+++ b/src/CMakeLists.txt	Thu Oct 06 15:58:04 2016 +0200
@@ -79,6 +79,10 @@
    set(EXTRA_STATIC_LIBS Qt5::QCocoaIntegrationPlugin ${MAC_EXTRA_LIBS} )
    set (_add_executable_params MACOSX_BUNDLE)
    SET(APPS "\${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}.app")
+   SET(MACOSX_BUNDLE_ICON_FILE icon.icns)
+   SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_SOURCE_DIR}/icons/icon.icns PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
+   SET(APPLICATION_SRC ${APPLICATION_SRC} ${CMAKE_CURRENT_SOURCE_DIR}/icons/icon.icns)
+
    SET(MACOS_INFO_STRING "Tool to convert EduApp questionaires.")
    SET(MACOSX_BUNDLE_NAME "EduExportConvert")
    SET(MACOSX_BUNDLE_GUI_IDENTIFIER "EduExportConvert")
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)