From 54c2ad13a92a61f636722c643e30358b9f9947d2 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 12 May 2018 20:30:16 +0200 Subject: [PATCH] Change to target_link_libraries in makefiles --- 3rdparty/qtsingleapplication/CMakeLists.txt | 2 +- 3rdparty/qxt/CMakeLists.txt | 4 ++-- ext/libstrawberry-common/CMakeLists.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/3rdparty/qtsingleapplication/CMakeLists.txt b/3rdparty/qtsingleapplication/CMakeLists.txt index 75d098d69..e7639b3f6 100644 --- a/3rdparty/qtsingleapplication/CMakeLists.txt +++ b/3rdparty/qtsingleapplication/CMakeLists.txt @@ -25,4 +25,4 @@ ADD_LIBRARY(qtsingleapplication STATIC ${SINGLEAPP-SOURCES-MOC} ) -QT5_USE_MODULES(qtsingleapplication Core Widgets Network) +target_link_libraries(qtsingleapplication Qt5::Core Qt5::Widgets Qt5::Network) diff --git a/3rdparty/qxt/CMakeLists.txt b/3rdparty/qxt/CMakeLists.txt index 75fa686b2..9f56983c3 100644 --- a/3rdparty/qxt/CMakeLists.txt +++ b/3rdparty/qxt/CMakeLists.txt @@ -29,7 +29,7 @@ ADD_LIBRARY(qxt STATIC ) if(WIN32) - QT5_USE_MODULES(qxt Core Widgets) + target_link_libraries(qxt Qt5::Core Qt5::Widgets) else(WIN32) - QT5_USE_MODULES(qxt Core Widgets X11Extras) + target_link_libraries(qxt Qt5::Core Qt5::Widgets Qt5::X11Extras) endif(WIN32) diff --git a/ext/libstrawberry-common/CMakeLists.txt b/ext/libstrawberry-common/CMakeLists.txt index 6134c16e4..d25cecf03 100644 --- a/ext/libstrawberry-common/CMakeLists.txt +++ b/ext/libstrawberry-common/CMakeLists.txt @@ -38,4 +38,4 @@ target_link_libraries(libstrawberry-common ${CMAKE_THREAD_LIBS_INIT} ) -QT5_USE_MODULES(libstrawberry-common Core Network) +target_link_libraries(libstrawberry-common Qt5::Core Qt5::Network)