-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
CMakeLists.txt
52 lines (45 loc) · 1.25 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
43
44
45
46
47
48
49
50
51
52
cmake_minimum_required(VERSION 3.10.0)
project("Browser"
VERSION "1.2.0"
DESCRIPTION "Web browser"
LANGUAGES CXX C
)
## Shared macros and functions:
if(BROWSER_WITH_FLUID AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/fluid/CMakeLists.txt")
set(LIRI_LOCAL_ECM TRUE)
set(FLUID_WITH_DOCUMENTATION FALSE)
set(FLUID_WITH_DEMO FALSE)
endif()
if(LIRI_LOCAL_ECM)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/fluid/cmake/shared/modules")
else()
find_package(LiriCMakeShared "2.0.0" REQUIRED NO_MODULE)
list(APPEND CMAKE_MODULE_PATH "${LCS_MODULE_PATH}")
endif()
## Set minimum versions required.
set(QT_MIN_VERSION "5.10.0")
## Liri specific setup common for all modules:
include(LiriSetup)
## Features:
option(BROWSER_WITH_FLUID "Build together with Fluid" OFF)
add_feature_info("Browser::WithFluid" BROWSER_WITH_FLUID "Build together with Fluid")
## Find Qt 5.
find_package(Qt5 "${QT_MIN_VERSION}"
CONFIG REQUIRED
COMPONENTS
Core
Gui
Svg
Qml
Quick
QuickControls2
WebEngine
LinguistTools
)
## Add subdirectories:
if(BROWSER_WITH_FLUID)
add_subdirectory(fluid)
endif()
add_subdirectory(res)
add_subdirectory(3rdparty/qtsingleapplication)
add_subdirectory(src)