set(KONQUEROR_LIB_VERSION "${RELEASE_SERVICE_VERSION}")
set(KONQUEROR_VERSION "${KONQUEROR_LIB_VERSION}")
-find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Widgets WebEngineWidgets)
+find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Widgets)
+find_package(Qt5 ${QT_MIN_VERSION} COMPONENTS WebEngineWidgets)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Parts KCMUtils Archive Crash WindowSystem Init IconThemes DBusAddons GuiAddons)
find_package(KF5 ${KF5_MIN_VERSION} COMPONENTS Activities DocTools) # Optional
if(BUILD_TESTING)
add_subdirectory( autotests )
endif()
-add_subdirectory( webenginepart )
+if (Qt5WebEngineWidgets_FOUND)
+ add_subdirectory( webenginepart )
+endif()
add_subdirectory( pics )
add_subdirectory( sidebar )
########### konqviewmgrtest ###############
-ecm_add_test(konqviewmgrtest.cpp
- LINK_LIBRARIES kdeinit_konqueror Qt5::Core Qt5::Gui kwebenginepartlib Qt5::WebEngineWidgets Qt5::Test)
+if (Qt5WebEngineWidgets_FOUND)
+ ecm_add_test(konqviewmgrtest.cpp
+ LINK_LIBRARIES kdeinit_konqueror Qt5::Core Qt5::Gui kwebenginepartlib Qt5::WebEngineWidgets Qt5::Test)
+endif()
########### historymanagertest ###############
########### konqhtmltest ###############
-ecm_add_test(konqhtmltest.cpp
- LINK_LIBRARIES kdeinit_konqueror kwebenginepartlib Qt5::Core Qt5::Test)
+if (Qt5WebEngineWidgets_FOUND)
+ ecm_add_test(konqhtmltest.cpp
+ LINK_LIBRARIES kdeinit_konqueror kwebenginepartlib Qt5::Core Qt5::Test)
+endif()
########### konqviewtest ###############
add_subdirectory( dirfilter )
add_subdirectory( uachanger )
add_subdirectory( babelfish )
-add_subdirectory( webarchiver )
+
+if (Qt5WebEngineWidgets_FOUND)
+ add_subdirectory( webarchiver )
+endif()
if (Qt5TextToSpeech_FOUND)
add_subdirectory(ttsplugin)