set(REQUIRED_QT_VERSION 5.7)
-set(QT_WEBENGINE FALSE)
-
-set( QT_USE_QTWEBENGINE TRUE ) # TODO: figure out what to do with this
+option(QT_WEBENGINE "Build with Qt WebEngine." ON)
###############################################################################
# Components and libraries
message(STATUS "Found Qt: " ${QtCore_location} )
get_filename_component(QT_BIN_PATH ${QtCore_location} DIRECTORY CACHE)
+ if(QT_WEBENGINE)
+ message(STATUS "Building with QtWebEngine")
+ target_compile_definitions(libsclang PUBLIC QT_WEBENGINE)
+ endif()
target_link_libraries(libsclang ${QT_COLLIDER_LIBS})
endif()