Permalink
Browse files

Qt5.11 CMake: deprecated macros replaced

  • Loading branch information...
vookimedlo committed Jun 10, 2018
1 parent d35e581 commit 50790212e3224a6137de2507c5ac3f241ce21ea1
Showing with 9 additions and 7 deletions.
  1. +9 −7 build/cmake/CMakeLists.txt
View
@@ -1,8 +1,10 @@
cmake_minimum_required(VERSION 3.2)
find_package(Qt5Core REQUIRED)
find_package(Qt5Gui REQUIRED)
find_package(Qt5Widgets REQUIRED)
set(USE_QT_LIBRARIES
Core Gui Widgets
)
find_package(Qt5 REQUIRED ${USE_QT_LIBRARIES})
# std::make_unique is part of c++14
#
@@ -116,10 +118,10 @@ else()
${UI_RESOURCES})
endif()
qt5_use_modules(VookiImageViewer
Core
Gui
Widgets)
target_link_libraries(VookiImageViewer
Qt5::Core
Qt5::Gui
Qt5::Widgets)
TARGET_LINK_LIBRARIES(VookiImageViewer ${OS_LIBS})

0 comments on commit 5079021

Please sign in to comment.