-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMakeLists.txt
36 lines (27 loc) · 899 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
cmake_minimum_required(VERSION 2.8.12)
if (APPLE)
option(HB_HAVE_CORETEXT "Enable CoreText shaper backend on macOS" ON)
endif ()
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/glm.cmake)
if (NOT DEFINED ALFONS_DEPS_LIBRARIES)
include(FindPkgConfig)
pkg_check_modules(ICU REQUIRED icu-uc)
pkg_check_modules(FREETYPE REQUIRED freetype2)
if (APPLE)
pkg_check_modules(HARFBUZZ REQUIRED harfbuzz>=1.7.2)
else()
pkg_check_modules(HARFBUZZ REQUIRED harfbuzz)
endif()
set(ALFONS_DEPS_LIBRARIES
${ICU_LDFLAGS}
${FREETYPE_LDFLAGS}
${HARFBUZZ_LDFLAGS}
CACHE INTERNAL "alfons-libs" FORCE)
set(ALFONS_DEPS_INCLUDE_DIRS
${ICU_INCLUDE_DIRS}
${FREETYPE_INCLUDE_DIRS}
${HARFBUZZ_INCLUDE_DIRS}
CACHE INTERNAL "alfons-includes" FORCE)
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++1y")
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/src)