# Copyright (C) 1995-2023, Rene Brun and Fons Rademakers. # All rights reserved. # # For the licensing terms see $ROOTSYS/LICENSE. # For the list of contributors see $ROOTSYS/README/CREDITS. ############################################################################ # CMakeLists.txt file for building ROOT gui/qt5webdisplay package ############################################################################ if(POLICY CMP0071) cmake_policy(SET CMP0071 NEW) endif() find_package(Qt6 COMPONENTS Core WebEngineCore WebEngineWidgets CONFIG) if(NOT Qt6_FOUND) if(fail-on-missing) message(FATAL_ERROR "Could NOT find Qt6 (WebEngineCore, WebEngineWidgets)") else() message(WARNING "Qt6 (WebEngineCore, WebEngineWidgets) not found, disabling option 'qt6web'") set(qt6web OFF CACHE BOOL "Disabled because Qt6 not found" FORCE) return() endif() endif() set(CMAKE_AUTOMOC ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) ROOT_LINKER_LIBRARY(ROOTQt6WebDisplay ../qt5webdisplay/rootwebview.cpp ../qt5webdisplay/rootwebpage.cpp ../qt5webdisplay/rooturlschemehandler.cpp rootqt6.cpp LIBRARIES Qt6::WebEngineCore Qt6::WebEngineWidgets DEPENDENCIES Core RHTTP ROOTWebDisplay )