Fwk: Added the variable CEE_USE_QT5 as an option in pdmCore and LibGuiQt, to make it visible in the Cmake Gui.

This commit is contained in:
Jacob Støren 2019-06-25 16:51:45 +02:00
parent cc2b19cb57
commit b802937657
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,8 @@ cmake_minimum_required (VERSION 2.8.12)
project (cafPdmCore)
# Qt
option(CEE_USE_QT5 "Use Qt 5 instead of Qt 4" true)
if (CEE_USE_QT5)
find_package(Qt5 COMPONENTS REQUIRED Core)
set(QT_LIBRARIES Qt5::Core)

View File

@ -12,6 +12,8 @@ endif()
find_package(OpenGL)
# Qt
option(CEE_USE_QT5 "Use Qt 5 instead of Qt 4" true)
if (CEE_USE_QT5)
find_package(Qt5 COMPONENTS REQUIRED Core Gui Widgets OpenGL)
set(QT_LIBRARIES Qt5::Core Qt5::Gui Qt5::Widgets Qt5::OpenGL)