forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (36 loc) · 1.12 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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(Qt5 COMPONENTS Core WebEngine WebEngineWidgets CONFIG)
if(NOT Qt5_FOUND)
if(fail-on-missing)
message(FATAL_ERROR "Could NOT find Qt5 (WebEngine, WebEngineWidgets)")
else()
message(WARNING "Qt5 (WebEngine, WebEngineWidgets) not found, disabling option 'qt5web'")
set(qt5web OFF CACHE BOOL "Disabled because Qt5 not found" FORCE)
return()
endif()
endif()
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
ROOT_LINKER_LIBRARY(ROOTQt5WebDisplay
rootwebview.cpp
rootwebpage.cpp
rooturlschemehandler.cpp
rootqt5.cpp
LIBRARIES
Qt5::WebEngine
Qt5::WebEngineWidgets
DEPENDENCIES
Core
RHTTP
ROOTWebDisplay
)