From 70a3f508cb55e0ce4754d8070c75e84711625dc8 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Sun, 27 Sep 2015 13:21:37 -0400 Subject: [PATCH] introduced install_qt_platforms --- share/openbr/cmake/InstallDependencies.cmake | 13 +++++++++++++ 1 file changed, 13 insertions(+), 0 deletions(-) diff --git a/share/openbr/cmake/InstallDependencies.cmake b/share/openbr/cmake/InstallDependencies.cmake index aa2be67..117f5e1 100644 --- a/share/openbr/cmake/InstallDependencies.cmake +++ b/share/openbr/cmake/InstallDependencies.cmake @@ -83,6 +83,19 @@ function(install_qt_imageformats) endif() endfunction() +function(install_qt_platforms) + if(${BR_INSTALL_DEPENDENCIES}) + if(CMAKE_HOST_WIN32) + #TODO + elseif(CMAKE_HOST_APPLE) + install(FILES ${_qt5Core_install_prefix}/plugins/platforms/libqcocoa.dylib + DESTINATION bin/platforms) + else() + #TODO + endif() + endif() +endfunction() + # Qt Other function(install_qt_misc) if(MSVC) -- libgit2 0.21.4