blob: 8683262b6656d691a3674dbff420775bebdf1aa6 (
plain)
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
|
project(cairo)
cmake_minimum_required(VERSION 2.8)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
find_package(Pixman REQUIRED)
find_package(PNG REQUIRED)
find_package(ZLIB REQUIRED)
find_package(Freetype)
find_package(Threads)
find_package(Fontconfig)
include(Configure_config.cmake)
include(Configure_features.cmake)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
if(CAIRO_HAS_PTHREAD)
list(APPEND CAIRO_LIBS -lpthread)
endif()
if (WIN32)
set(CAIRO_LIBS gdi32 msimg32 user32 winmm)
endif()
include_directories(${PIXMAN_INCLUDE_DIR} ${PNG_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR})
list(APPEND CAIRO_LIBS ${PIXMAN_LIBRARY} ${PNG_LIBRARY} ${ZLIB_LIBRARY})
if(FONTCONFIG_FOUND)
list(APPEND CAIRO_LIBS ${FONTCONFIG_LIBRARY})
endif()
if(FREETYPE_FOUND)
find_package(BZip2)
include_directories(${FREETYPE_INCLUDE_DIRS})
include_directories(${BZIP2_INCLUDE_DIR})
list(APPEND CAIRO_LIBS ${FREETYPE_LIBRARIES} ${BZIP2_LIBRARIES})
endif()
include_directories(src)
add_subdirectory(src)
|