add check for optional components

This commit is contained in:
Rick Vogel 2022-10-30 20:19:51 +01:00
parent 48c3bb41b1
commit 7449d5fd4b
1 changed files with 11 additions and 5 deletions

View File

@ -6,12 +6,18 @@ add_subdirectory(inputpanel)
add_subdirectory(images)
add_subdirectory(shadows)
# if(TARGET ${Qt}::WebEngine) # TODO check how to add optionally
if(TRUE)
add_subdirectory(webview)
if (Qt_VERSION_MAJOR VERSION_EQUAL "6")
if(TARGET ${Qt}::WebEngineCore)
if(TARGET ${Qt}::WebEngineQuick)
add_subdirectory(webview)
endif()
endif()
elseif(Qt_VERSION VERSION_EQUAL "5")
if(TARGET ${Qt}::WebEngine)
add_subdirectory(webview)
endif()
endif()
# if(TARGET ${Qt}::QuickWidgets) # TODO check how to add optionally
if(TRUE)
if(TARGET ${Qt}::QuickWidgets)
add_subdirectory(grids)
endif()