From 5cfbaf7749493ea9b780e46e4ea3bcbb67f6a8ec Mon Sep 17 00:00:00 2001 From: Aldo Nicolas Bruno Date: Fri, 23 Feb 2024 22:36:08 +0100 Subject: [PATCH] Sql module in CMakeLists.txt --- cmake/QskFindMacros.cmake | 4 ++-- playground/CMakeLists.txt | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cmake/QskFindMacros.cmake b/cmake/QskFindMacros.cmake index f2791254..e2b01e7f 100644 --- a/cmake/QskFindMacros.cmake +++ b/cmake/QskFindMacros.cmake @@ -54,11 +54,11 @@ macro(qsk_setup_Qt) # C++, but QSkinny itself does not need the WebEngine at all. if (QT_VERSION_MAJOR VERSION_LESS 6) - find_package(Qt${QT_VERSION_MAJOR} QUIET OPTIONAL_COMPONENTS WebEngine) + find_package(Qt${QT_VERSION_MAJOR} QUIET OPTIONAL_COMPONENTS WebEngine Sql) set( Qt5WebEngineQuick_FOUND ${Qt5WebEngine_FOUND} ) else() find_package(Qt${QT_VERSION_MAJOR} QUIET - OPTIONAL_COMPONENTS WebEngineCore WebEngineQuick) + OPTIONAL_COMPONENTS WebEngineCore WebEngineQuick Sql) endif() if( NOT Qt${QT_VERSION_MAJOR}WebEngineQuick_FOUND) diff --git a/playground/CMakeLists.txt b/playground/CMakeLists.txt index 2bc146fa..7ba9e0b5 100644 --- a/playground/CMakeLists.txt +++ b/playground/CMakeLists.txt @@ -32,3 +32,7 @@ endif() if(TARGET Qt::QuickWidgets) add_subdirectory(grids) endif() + +if(TARGET Qt::Sql) + add_subdirectory(models) +endif()