No longer use deprecated qt5_use_modules (#5931)

QT 5.11 finally removes the qt5_use_modules macro.
Instead target_link_libraries with the Qt5::Lib added should be used.
Since we already use that in one place, it should work everywhere. Since
the common companion lib already depends on Core, widges and multimedia
components that link against it, also implicitly link against those
libraries.
This commit is contained in:
Arne Schwabe
2018-06-02 18:14:49 +02:00
committed by Bertrand Songis
parent 9612d6e347
commit ce77fbd2ff
7 changed files with 5 additions and 11 deletions
+1 -1
View File
@@ -9,4 +9,4 @@ set(qcustomplot_HDRS
qt5_wrap_cpp(qcustomplot_SRCS ${qcustomplot_HDRS})
add_library(qcustomplot ${qcustomplot_SRCS})
qt5_use_modules(qcustomplot Widgets PrintSupport)
target_link_libraries(qcustomplot PRIVATE ${CPN_COMMON_LIB} Qt5::Widgets Qt5::PrintSupport)