diff --git a/CMakeLists.txt b/CMakeLists.txt index faf164f1..37b685e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)