From 02909e879f080f1ceabbee552598c729a0c617c2 Mon Sep 17 00:00:00 2001 From: Rick Vogel Date: Fri, 28 Oct 2022 13:32:18 +0200 Subject: [PATCH] idea for handling Qt5 and Qt6 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ae1d52f7..0bae6aef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,6 +39,7 @@ endif() if("${Qt5_DIR}" STREQUAL "" AND "${Qt6_DIR}" STREQUAL "") message(FATAL_ERROR "Neither Qt5_DIR nor Qt6_DIR defined!") else() + # TODO ckeck find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets) if(NOT "${Qt5_DIR}" STREQUAL "") find_package(Qt5 REQUIRED COMPONENTS Core Gui OpenGL Quick Quickwidgets Svg Webengine WebengineCore Widgets) set(Qt Qt${Qt5_VERSION_MAJOR}) # TODO find better solution for Qt namespace @@ -87,5 +88,4 @@ add_subdirectory(playground) #doc/*.dox # doc/*.metadox # doc/classes/*.dox -# doc/classes/*.metadox -# TODO \ No newline at end of file +# doc/classes/*.metadox \ No newline at end of file