From cfb153dc9661f2b14cbfa248827b5ce63de0ac9c Mon Sep 17 00:00:00 2001 From: Mike Walters Date: Thu, 31 May 2018 12:52:04 +0100 Subject: [PATCH] Drop deprecated qt5_use_modules macro Reference: https://doc.qt.io/archives/qt-5.10/cmake-manual.html --- CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 55d8430..ddb0bd9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8) +cmake_minimum_required(VERSION 2.8.11) project(inspectrum CXX) enable_testing() @@ -63,16 +63,14 @@ find_package(FFTW REQUIRED) find_package(Liquid REQUIRED) include_directories( - ${QT_INCLUDES} ${FFTW_INCLUDES} ${LIQUID_INCLUDES} ) add_executable(inspectrum ${EXE_ARGS} ${inspectrum_sources}) -qt5_use_modules(inspectrum Widgets Concurrent) target_link_libraries(inspectrum - ${QT_LIBRARIES} + Qt5::Core Qt5::Widgets Qt5::Concurrent ${FFTW_LIBRARIES} ${LIQUID_LIBRARIES} )