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.
|
||||
|
||||
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)
|
||||
|
|
|
@ -32,3 +32,7 @@ endif()
|
|||
if(TARGET Qt::QuickWidgets)
|
||||
add_subdirectory(grids)
|
||||
endif()
|
||||
|
||||
if(TARGET Qt::Sql)
|
||||
add_subdirectory(models)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue