forked from eugmes/fntsample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (33 loc) · 1003 Bytes
/
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
cmake_minimum_required(VERSION 3.12)
if(POLICY CMP0077) # Introduced in 3.13
cmake_policy(SET CMP0077 NEW)
endif()
project(fntsample
VERSION 5.3
DESCRIPTION "PDF and PostScript font samples generator"
HOMEPAGE_URL "https://github.com/eugmes/fntsample"
LANGUAGES C)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake")
include(GNUInstallDirs)
include(CPack)
find_package(PkgConfig REQUIRED)
find_package(Intl REQUIRED)
# CMake does not create an imported target for libintl...
add_library(Intl INTERFACE IMPORTED GLOBAL)
target_include_directories(Intl INTERFACE ${Intl_INCLUDE_DIRS})
target_link_libraries(Intl INTERFACE ${Intl_LIBRARIES})
pkg_check_modules(pkgs REQUIRED IMPORTED_TARGET
cairo>=1.15.4
fontconfig
freetype2
glib-2.0
pangocairo>=1.37.0
pangoft2>=1.37.0
)
include(DownloadUnicodeBlocks)
download_unicode_blocks()
string(TIMESTAMP DATE "%Y-%m-%d" UTC)
include(PoFileUtils)
add_subdirectory(src)
add_subdirectory(scripts)
add_subdirectory(po)