Commit b7147cc3c17bfba51eadecbe6d5450aca2679192
Committed by
GitHub
1 parent
71b3f99e
Qt style plugin install support (#572)
* added install_qt_styles for mac os * fix typo
Showing
1 changed file
with
17 additions
and
0 deletions
share/openbr/cmake/InstallDependencies.cmake
| @@ -135,6 +135,23 @@ function(install_qt_sql) | @@ -135,6 +135,23 @@ function(install_qt_sql) | ||
| 135 | endif() | 135 | endif() |
| 136 | endfunction() | 136 | endfunction() |
| 137 | 137 | ||
| 138 | +function(install_qt_styles) | ||
| 139 | + if(${BR_INSTALL_DEPENDENCIES}) | ||
| 140 | + set(Qt5_PLUGIN_DIR "${Qt5_DIR}/../../qt5/plugins") | ||
| 141 | + if (NOT EXISTS ${Qt5_PLUGIN_DIR}) | ||
| 142 | + set(Qt5_PLUGIN_DIR "${Qt5_DIR}/../../../plugins") | ||
| 143 | + endif() | ||
| 144 | + set(STYLES_DIR "${Qt5_PLUGIN_DIR}/styles") | ||
| 145 | + if(CMAKE_HOST_WIN32) | ||
| 146 | + # Nothing to do | ||
| 147 | + elseif(CMAKE_HOST_APPLE) | ||
| 148 | + install(FILES ${STYLES_DIR}/libqmacstyle.dylib DESTINATION bin/styles) | ||
| 149 | + else() | ||
| 150 | + # Nothing to do | ||
| 151 | + endif() | ||
| 152 | + endif() | ||
| 153 | +endfunction() | ||
| 154 | + | ||
| 138 | function(install_qt_platforms) | 155 | function(install_qt_platforms) |
| 139 | if(${BR_INSTALL_DEPENDENCIES}) | 156 | if(${BR_INSTALL_DEPENDENCIES}) |
| 140 | if(ANDROID) | 157 | if(ANDROID) |