use Qt WebKit module

This commit is contained in:
wmayer
2016-12-13 19:48:22 +01:00
parent 11ffc5bca9
commit c33f73eb99
4 changed files with 12 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
add_subdirectory(App)
if(BUILD_GUI)
if(Qt5WebEngine_FOUND OR QT_QTWEBKIT_FOUND)
if(Qt5WebKitWidgets_FOUND OR QT_QTWEBKIT_FOUND)
add_subdirectory(Gui)
endif()
endif(BUILD_GUI)

View File

@@ -13,10 +13,10 @@ set(WebGui_LIBS
if(BUILD_QT5)
include_directories(
${Qt5WebEngine_INCLUDE_DIRS}
${Qt5WebKitWidgets_INCLUDE_DIRS}
)
list(APPEND WebGui_LIBS
${Qt5WebEngine_LIBRARIES}
${Qt5WebKitWidgets_LIBRARIES}
)
qt5_add_resources(Web_QRC_SRCS Resources/Web.qrc)
else()