blob: 4ac14edc459f172638cd1637e8364e56fb8ab8df (
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
42
43
44
45
46
47
48
49
|
#========================================================================
#
# splash/CMakeLists.txt
#
# CMake script for the splash library.
#
# Copyright 2015 Glyph & Cog, LLC
#
#========================================================================
if (HAVE_SPLASH)
include_directories("${PROJECT_SOURCE_DIR}")
include_directories("${PROJECT_BINARY_DIR}")
include_directories("${PROJECT_SOURCE_DIR}/goo")
include_directories("${PROJECT_SOURCE_DIR}/fofi")
include_directories("${FREETYPE_INCLUDE_DIRS}")
if (HAVE_DTYPE4_H)
include_directories("${DTYPE_INCLUDE_DIR}")
set(DTYPE_SRCS
SplashDT4Font.cc SplashDT4FontEngine.cc SplashDT4FontFile.cc)
endif ()
add_library(splash_objs OBJECT
Splash.cc
SplashBitmap.cc
SplashClip.cc
SplashFTFont.cc
SplashFTFontEngine.cc
SplashFTFontFile.cc
SplashFont.cc
SplashFontEngine.cc
SplashFontFile.cc
SplashFontFileID.cc
SplashPath.cc
SplashPattern.cc
SplashScreen.cc
SplashState.cc
SplashXPath.cc
SplashXPathScanner.cc
${DTYPE_SRCS}
)
set_property(TARGET splash_objs
PROPERTY POSITION_INDEPENDENT_CODE True)
add_library(splash
$<TARGET_OBJECTS:splash_objs>
)
endif ()
|