diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-01 22:41:40 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-01 22:41:53 +0100 |
commit | dca51aa0664739dc39b7b500b7cacee8ff944ea9 (patch) | |
tree | 48f19a973646bed20696e10b72c9f3c713bee0fb /cmake/opentrack-qt.cmake | |
parent | 040f8c96a30fde76d1ad713072d85ba0cadef6d9 (diff) |
cmake/qt: fix platform plugin also
Issue: #867
Diffstat (limited to 'cmake/opentrack-qt.cmake')
-rw-r--r-- | cmake/opentrack-qt.cmake | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/cmake/opentrack-qt.cmake b/cmake/opentrack-qt.cmake index 1d9abbd7..8526acf7 100644 --- a/cmake/opentrack-qt.cmake +++ b/cmake/opentrack-qt.cmake @@ -24,8 +24,8 @@ function(otr_install_qt_libs) if(path STREQUAL "") get_property(path TARGET "${i}" PROPERTY LOCATION) endif() - if("${path}" STREQUAL "") - message(FATAL_ERROR "${i} ${path}") + if(path STREQUAL "") + message(FATAL_ERROR "can't find ${i}") endif() install(FILES "${path}" DESTINATION .) if(MSVC AND opentrack_install-debug-info) @@ -36,7 +36,13 @@ function(otr_install_qt_libs) endif() endforeach() - get_property(path TARGET Qt5::QWindowsIntegrationPlugin PROPERTY LOCATION) + get_property(path TARGET Qt5::QWindowsIntegrationPlugin PROPERTY "LOCATION_${CMAKE_BUILD_TYPE}") + if(path STREQUAL "") + get_property(path TARGET Qt5::QWindowsIntegrationPlugin PROPERTY LOCATION) + endif() + if(path STREQUAL "") + message(FATAL_ERROR "can't find Qt5::QWindowsIntegrationPlugin") + endif() install(FILES "${path}" DESTINATION ./platforms) if(MSVC AND opentrack_install-debug-info) otr_pdb_for_dll(pdb-path "${path}") |