From b7147cc3c17bfba51eadecbe6d5450aca2679192 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Wed, 3 Jun 2020 14:45:22 -0600 Subject: [PATCH] Qt style plugin install support (#572) --- share/openbr/cmake/InstallDependencies.cmake | 17 +++++++++++++++++ 1 file changed, 17 insertions(+), 0 deletions(-) diff --git a/share/openbr/cmake/InstallDependencies.cmake b/share/openbr/cmake/InstallDependencies.cmake index 9811cb4..54dd4a5 100644 --- a/share/openbr/cmake/InstallDependencies.cmake +++ b/share/openbr/cmake/InstallDependencies.cmake @@ -135,6 +135,23 @@ function(install_qt_sql) endif() endfunction() +function(install_qt_styles) + if(${BR_INSTALL_DEPENDENCIES}) + set(Qt5_PLUGIN_DIR "${Qt5_DIR}/../../qt5/plugins") + if (NOT EXISTS ${Qt5_PLUGIN_DIR}) + set(Qt5_PLUGIN_DIR "${Qt5_DIR}/../../../plugins") + endif() + set(STYLES_DIR "${Qt5_PLUGIN_DIR}/styles") + if(CMAKE_HOST_WIN32) + # Nothing to do + elseif(CMAKE_HOST_APPLE) + install(FILES ${STYLES_DIR}/libqmacstyle.dylib DESTINATION bin/styles) + else() + # Nothing to do + endif() + endif() +endfunction() + function(install_qt_platforms) if(${BR_INSTALL_DEPENDENCIES}) if(ANDROID) -- libgit2 0.21.4