diff options
author | Be <be@mixxx.org> | 2020-11-10 09:58:30 -0600 |
---|---|---|
committer | Be <be@mixxx.org> | 2020-11-10 09:58:30 -0600 |
commit | 671b50d2a4a3f23179ce6588a8cc602d2d0d5082 (patch) | |
tree | 30f37a0c339f7aed56dfc6adbe4fa5234facb08f /CMakeLists.txt | |
parent | 2fe00cec8bf819746682971c0da8905ae1ec3ada (diff) |
add run-mixxx.sh convenience script for macOS developers
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d4d3bee43..bd74736d06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1055,7 +1055,8 @@ target_link_libraries(mixxx PUBLIC mixxx-lib) # # Installation and Packaging # -if (APPLE AND MACOS_BUNDLE) +if (APPLE) + if (MACOS_BUNDLE) install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/res/osx/application.icns" DESTINATION ${MIXXX_INSTALL_DATADIR}) set(MACOS_BUNDLE_VERSION "${CMAKE_PROJECT_VERSION}") @@ -1066,6 +1067,11 @@ if (APPLE AND MACOS_BUNDLE) MACOSX_BUNDLE true MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/cmake/macos_bundle.plist.in" ) + else() + get_filename_component(QT_PLUGIN_DIR "${Qt5_DIR}/../../../plugins/" ABSOLUTE) + configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/run-mixxx.sh.in" "${CMAKE_CURRENT_BINARY_DIR}/run-mixxx.sh" @ONLY) + execute_process(COMMAND chmod +x "${CMAKE_CURRENT_BINARY_DIR}/run-mixxx.sh") + endif() else() include(InstallRequiredSystemLibraries) install( |