From b5a2d056b8840b03e53f8cb7c6da9fec4aded8c9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 20 Jun 2019 18:44:02 +0200 Subject: cmake: fix build without qserialport --- cmake/opentrack-qt.cmake | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmake/opentrack-qt.cmake') diff --git a/cmake/opentrack-qt.cmake b/cmake/opentrack-qt.cmake index 30b3e7c7..2f3c034e 100644 --- a/cmake/opentrack-qt.cmake +++ b/cmake/opentrack-qt.cmake @@ -9,6 +9,9 @@ set(MY_QT_LIBS ${Qt5Core_LIBRARIES} ${Qt5Gui_LIBRARIES} ${Qt5Widgets_LIBRARIES} function(otr_install_qt_libs) foreach(i Qt5::Core Qt5::Gui Qt5::Network Qt5::SerialPort Qt5::Widgets) + if(NOT TARGET "${i}") + continue() + endif() otr_install_lib(${i} ".") endforeach() otr_install_lib(Qt5::QWindowsIntegrationPlugin "./platforms") -- cgit v1.2.3