diff src/CMakeLists.txt @ 94:5d78e980a433

Add hack for replacements.ini install and use new template
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 06 Oct 2016 17:20:10 +0200
parents 5b815897657d
children dd322a4b90d9
line wrap: on
line diff
--- a/src/CMakeLists.txt	Thu Oct 06 17:19:35 2016 +0200
+++ b/src/CMakeLists.txt	Thu Oct 06 17:20:10 2016 +0200
@@ -84,6 +84,7 @@
    SET(APPLICATION_SRC ${APPLICATION_SRC} ${CMAKE_CURRENT_SOURCE_DIR}/icons/icon.icns)
 
    SET(MACOS_INFO_STRING "Tool to convert EduApp questionaires.")
+   SET(MACOS__BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/cmake/MacOSXBundleInfo.plist.in)
    SET(MACOSX_BUNDLE_NAME "EduExportConvert")
    SET(MACOSX_BUNDLE_GUI_IDENTIFIER "EduExportConvert")
    SET(MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION})
@@ -124,9 +125,10 @@
 endif(WIN32)
 
 install(TARGETS ${PROJECT_NAME} DESTINATION bin BUNDLE DESTINATION .)
-install(FILES replacements.ini DESTINATION share/apps/${PROJECT_NAME} COMPONENT config)
+install(FILES replacements.ini DESTINATION share/apps/${PROJECT_NAME})
 
 if(APPLE)
+   file(COPY replacements.ini DESTINATION "${PROJECT_NAME}.app/Contents/MacOS/" )
    install(CODE "
        include(BundleUtilities)
        fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\")
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)