add_custom_target(dmg COMMAND /usr/local/opt/qt5/bin/macdeployqt strawberry.app COMMAND ${CMAKE_SOURCE_DIR}/dist/macos/macdeploy.py strawberry.app COMMAND ${CMAKE_SOURCE_DIR}/dist/macos/create-dmg.sh strawberry.app WORKING_DIRECTORY ${CMAKE_BINARY_DIR} )