-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
61 lines (55 loc) · 2.06 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
53
54
55
56
57
58
59
60
#
#
# IMPORTANT NOTICE
#
# The following open source license statement does not apply to any
# entity in the Exception List published by FMSoft.
#
# For more information, please visit:
#
# https://www.fmsoft.cn/exception-list
#
#
# This file is part of HiDOMLayout. hiDOMLayout is a library to
# maintain a DOM tree, lay out and stylize the DOM nodes by
# using CSS (Cascaded Style Sheets).
#
# Copyright (C) 2021 Beijing FMSoft Technologies Co., Ltd.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General License for more details.
#
# You should have received a copy of the GNU Lesser General License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Or,
#
# As this program is a library, any link to this program must follow
# GNU Lesser General License version 3 (LGPLv3). If you cannot accept
# LGPLv3, you need to be licensed from FMSoft.
#
# If you have got a commercial license of this program, please use it
# under the terms and conditions of the commercial license.
#
# For more information about the commercial license, please refer to
# <http://www.minigui.com/blog/minigui-licensing-policy/>.
#
cmake_minimum_required(VERSION 3.10)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
find_package(GLIB 2.40.0 REQUIRED COMPONENTS gio gio-unix gobject gthread gmodule)
find_package(HiDomLayout REQUIRED)
find_package(hicairo REQUIRED)
find_package(LibXml2 REQUIRED)
find_package(MiniGUI 5.0.2 REQUIRED)
find_package(Freetype REQUIRED)
set(MINIGUI_LIBRARIES ${MiniGUI_LIBRARIES})
set(MINIGUI_INCLUDE_DIRS ${MiniGUI_INCLUDE_DIRS})
add_subdirectory(src)
add_subdirectory(tests)