Sql module in CMakeLists.txt
This commit is contained in:
parent
7e8ef3296c
commit
5cfbaf7749
|
@ -54,11 +54,11 @@ macro(qsk_setup_Qt)
|
||||||
# C++, but QSkinny itself does not need the WebEngine at all.
|
# C++, but QSkinny itself does not need the WebEngine at all.
|
||||||
|
|
||||||
if (QT_VERSION_MAJOR VERSION_LESS 6)
|
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} )
|
set( Qt5WebEngineQuick_FOUND ${Qt5WebEngine_FOUND} )
|
||||||
else()
|
else()
|
||||||
find_package(Qt${QT_VERSION_MAJOR} QUIET
|
find_package(Qt${QT_VERSION_MAJOR} QUIET
|
||||||
OPTIONAL_COMPONENTS WebEngineCore WebEngineQuick)
|
OPTIONAL_COMPONENTS WebEngineCore WebEngineQuick Sql)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if( NOT Qt${QT_VERSION_MAJOR}WebEngineQuick_FOUND)
|
if( NOT Qt${QT_VERSION_MAJOR}WebEngineQuick_FOUND)
|
||||||
|
|
|
@ -32,3 +32,7 @@ endif()
|
||||||
if(TARGET Qt::QuickWidgets)
|
if(TARGET Qt::QuickWidgets)
|
||||||
add_subdirectory(grids)
|
add_subdirectory(grids)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(TARGET Qt::Sql)
|
||||||
|
add_subdirectory(models)
|
||||||
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue