Sql module in CMakeLists.txt

This commit is contained in:
Aldo Nicolas Bruno 2024-02-23 22:36:08 +01:00
parent 7e8ef3296c
commit 5cfbaf7749
2 changed files with 6 additions and 2 deletions

View File

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

View File

@ -32,3 +32,7 @@ endif()
if(TARGET Qt::QuickWidgets)
add_subdirectory(grids)
endif()
if(TARGET Qt::Sql)
add_subdirectory(models)
endif()