diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-05 21:41:26 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-05 21:41:26 +0200 |
commit | 8815732f37c5899dbe65d507c082c0c62250ab7d (patch) | |
tree | d350ed3f031447f07794ae4ce51e6f6b00f4bfeb /cmake/opentrack-qt.cmake | |
parent | 61592edd7b953c35167fb95f1d26aecc4e5c594a (diff) |
cmake: install shared opencv libraries
Issue: #867
Requested by: @Slion
Diffstat (limited to 'cmake/opentrack-qt.cmake')
-rw-r--r-- | cmake/opentrack-qt.cmake | 41 |
1 files changed, 2 insertions, 39 deletions
diff --git a/cmake/opentrack-qt.cmake b/cmake/opentrack-qt.cmake index 5a8c27a0..fbea4d1c 100644 --- a/cmake/opentrack-qt.cmake +++ b/cmake/opentrack-qt.cmake @@ -7,49 +7,12 @@ find_package(Qt5 COMPONENTS SerialPort QUIET) set(MY_QT_LIBS ${Qt5Core_LIBRARIES} ${Qt5Gui_LIBRARIES} ${Qt5Widgets_LIBRARIES} ${Qt5Network_LIBRARIES}) -function(otr_pdb_for_dll varname path) - set("${varname}" "" PARENT_SCOPE) - get_filename_component(dir "${path}" DIRECTORY) - get_filename_component(name-only "${path}" NAME_WE) - set(pdb-path "${dir}/${name-only}.pdb") - if(EXISTS "${pdb-path}") - set("${varname}" "${pdb-path}" PARENT_SCOPE) - endif() -endfunction() - function(otr_install_qt_libs) if(WIN32) foreach(i Qt5::Core Qt5::Gui Qt5::Network Qt5::SerialPort Qt5::Widgets) - get_property(path TARGET "${i}" PROPERTY "LOCATION_${CMAKE_BUILD_TYPE}") - if(path STREQUAL "") - get_property(path TARGET "${i}" PROPERTY LOCATION) - endif() - if(path STREQUAL "") - message(FATAL_ERROR "can't find ${i}") - endif() - install(FILES "${path}" DESTINATION .) - if(MSVC AND opentrack_install-debug-info) - otr_pdb_for_dll(pdb-path "${path}") - if(pdb-path) - install(FILES "${pdb-path}" DESTINATION "${opentrack-hier-debug}") - endif() - endif() + otr_install_lib(${i} ".") endforeach() - - 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}") - if(pdb-path) - install(FILES "${pdb-path}" DESTINATION "${opentrack-hier-debug}") - endif() - endif() + otr_install_lib(Qt5::QWindowsIntegrationPlugin "./platforms") endif() endfunction() |