From 68e57f536f8fe4f03928ae47a90238a7cbb9f78f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Sun, 27 May 2018 16:38:08 +0200 Subject: [PATCH] Fix CMake build for Qt 5.11 --- src/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a1b50c13..7f416a66 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -88,12 +88,13 @@ add_definitions("-DAPP_VERSION=\"${CUTTER_VERSION_FULL}\"") add_executable(Cutter ${UI_FILES} ${QRC_FILES} ${SOURCE_FILES} ${HEADER_FILES}) -qt5_use_modules(Cutter Core Widgets Gui Svg) + +target_link_libraries(Cutter Qt5::Core Qt5::Widgets Qt5::Gui Qt5::Svg) target_link_libraries(Cutter ${RADARE2_LIBRARIES}) if(CUTTER_ENABLE_JUPYTER) target_link_libraries(Cutter ${PYTHON_LIBRARIES}) if(CUTTER_ENABLE_QTWEBENGINE) - qt5_use_modules(Cutter WebEngineWidgets) + target_link_libraries(Cutter Qt5::WebEngineWidgets) endif() endif()