cpack mac fixes

This commit is contained in:
Joachim Schöberl 2015-12-11 19:19:57 +01:00
parent 2b9857fc59
commit f0ab057803

View File

@ -342,6 +342,7 @@ if(APPLE)
file(APPEND ${mac_startup} "NGSuite_RESOURCES=\"$NGSuite_BUNDLE/Contents/Resources\"\n")
file(APPEND ${mac_startup} "export DYLD_LIBRARY_PATH=$NGSuite_RESOURCES/lib:$DYLD_LIBRARY_PATH\n")
file(APPEND ${mac_startup} "export NETGENDIR=$NGSuite_RESOURCES/bin\n")
file(APPEND ${mac_startup} "cd $NGSuite_RESOURCES\n")
file(APPEND ${mac_startup} "$NGSuite_RESOURCES/bin/netgen\n")
install(PROGRAMS ${mac_startup} DESTINATION bin)
@ -350,7 +351,7 @@ if(APPLE)
file(APPEND ${mac_ngsuite} "NGSuite_BUNDLE=\"`echo \"$0\" | sed -e 's/\\/Contents\\/MacOS\\/NGSuite//'`\"\n")
file(APPEND ${mac_ngsuite} "NGSuite_RESOURCES=\"$NGSuite_BUNDLE/Contents/Resources\"\n")
file(APPEND ${mac_ngsuite} "open -a /Applications/Utilities/Terminal.app $NGSuite_RESOURCES/bin/startup.sh\n")
set(CPACK_BUNDLE_STARTUP_COMMAND ${mac_ngsuit})
set(CPACK_BUNDLE_STARTUP_COMMAND ${mac_ngsuite})
set(mac_plist ${CMAKE_CURRENT_BINARY_DIR}/Info.plist)
file(WRITE ${mac_plist} "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")