Commit 70a3f508cb55e0ce4754d8070c75e84711625dc8
1 parent
1ee56bf0
introduced install_qt_platforms
Showing
1 changed file
with
13 additions
and
0 deletions
share/openbr/cmake/InstallDependencies.cmake
| ... | ... | @@ -83,6 +83,19 @@ function(install_qt_imageformats) |
| 83 | 83 | endif() |
| 84 | 84 | endfunction() |
| 85 | 85 | |
| 86 | +function(install_qt_platforms) | |
| 87 | + if(${BR_INSTALL_DEPENDENCIES}) | |
| 88 | + if(CMAKE_HOST_WIN32) | |
| 89 | + #TODO | |
| 90 | + elseif(CMAKE_HOST_APPLE) | |
| 91 | + install(FILES ${_qt5Core_install_prefix}/plugins/platforms/libqcocoa.dylib | |
| 92 | + DESTINATION bin/platforms) | |
| 93 | + else() | |
| 94 | + #TODO | |
| 95 | + endif() | |
| 96 | + endif() | |
| 97 | +endfunction() | |
| 98 | + | |
| 86 | 99 | # Qt Other |
| 87 | 100 | function(install_qt_misc) |
| 88 | 101 | if(MSVC) | ... | ... |