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()