mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
cpack mac fixes
This commit is contained in:
parent
2b9857fc59
commit
f0ab057803
@ -342,7 +342,8 @@ 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} "$NGSuite_RESOURCES/bin/netgen\n")
|
||||
file(APPEND ${mac_startup} "cd $NGSuite_RESOURCES\n")
|
||||
file(APPEND ${mac_startup} "$NGSuite_RESOURCES/bin/netgen\n")
|
||||
install(PROGRAMS ${mac_startup} DESTINATION bin)
|
||||
|
||||
set(mac_ngsuite ${CMAKE_CURRENT_BINARY_DIR}/ngsuite.sh)
|
||||
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user