mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
environmen variable NETGEN_BUNDLE_NAME to set name of dmg file
This commit is contained in:
parent
46ba39e6b4
commit
066370bf29
@ -309,7 +309,11 @@ file(GLOB libs ${CMAKE_INSTALL_PREFIX}/${ng_install_dir_lib}/*.dylib ${CMAKE_INS
|
||||
message(\"\${libs}\")
|
||||
netgen_fixup_bundle( \${APP}/Contents/MacOS/netgen_main \"\${libs}\" ${CMAKE_INSTALL_PREFIX}/${ng_install_dir_lib} )
|
||||
execute_process(COMMAND ln -s /Applications ${INSTALL_DIR}/Applications)
|
||||
execute_process(COMMAND hdiutil create -volname Netgen -srcfolder ${INSTALL_DIR} -ov -format UDZO netgen-${PACKAGE_VERSION}.dmg)
|
||||
bundle_filename=\$ENV{NETGEN_BUNDLE_NAME}
|
||||
if(NOT bundle_filename)
|
||||
set(bundle_filename netgen)
|
||||
endif(NOT bundle_filename)
|
||||
execute_process(COMMAND hdiutil create -volname Netgen -srcfolder ${INSTALL_DIR} -ov -format UDZO \${bundle_filename}-${PACKAGE_VERSION}.dmg)
|
||||
")
|
||||
add_custom_target(bundle COMMAND ${CMAKE_COMMAND} "-P" "${CMAKE_CURRENT_BINARY_DIR}/fixup.cmake")
|
||||
endif(INSTALL_DEPENDENCIES)
|
||||
|
Loading…
Reference in New Issue
Block a user