diff --git a/scripts/cmake/packaging/PackagingMac.cmake b/scripts/cmake/packaging/PackagingMac.cmake index e34bfff76b619faaf5d8479e9123751698982dde..a5109cb8021ee05a2d6df7912bf20bdae5b6e929 100644 --- a/scripts/cmake/packaging/PackagingMac.cmake +++ b/scripts/cmake/packaging/PackagingMac.cmake @@ -16,3 +16,11 @@ set(CPACK_DMG_DS_STORE ${PROJECT_SOURCE_DIR}/scripts/packaging/.DS_Store) if(OGS_USE_CONAN) SET(CMAKE_INSTALL_RPATH "@executable_path") endif() + +if(OGS_BUILD_GUI) + install_qt5_plugin("Qt5::QCocoaIntegrationPlugin" QT_PLUGINS) + file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/qt.conf" + "[Paths]\nPlugins = ../${_qt_plugin_dir}\n") + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/qt.conf" + DESTINATION bin COMPONENT ogs_gui) +endif() diff --git a/scripts/cmake/packaging/PackagingWin.cmake b/scripts/cmake/packaging/PackagingWin.cmake index 4e87b42c8d4b8798464ba680bb3b4305e5173838..8f9db72c7d8866258ad6fc4b6d54642f850dc3a6 100644 --- a/scripts/cmake/packaging/PackagingWin.cmake +++ b/scripts/cmake/packaging/PackagingWin.cmake @@ -27,6 +27,5 @@ if(OGS_BUILD_GUI) file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/qt.conf" "[Paths]\nPlugins = ../${_qt_plugin_dir}\n") install(FILES "${CMAKE_CURRENT_BINARY_DIR}/qt.conf" - DESTINATION bin - ${COMPONENT}) + DESTINATION bin COMPONENT ogs_gui) endif()