summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-qt.cmake12
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}")