summaryrefslogtreecommitdiff
path: root/src/cguittfont/CMakeLists.txt
blob: 6cd35f310fa36527b379c1863e12548adb8aada8 (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
# CGUITTFont authors, y u no include headers you use?
#   Do not add CGUITTFont.cpp to the line below.
#   xCGUITTFont.cpp is a wrapper file that includes
#   additional required headers.
add_library(cguittfont STATIC xCGUITTFont.cpp)

if(FREETYPE_PKGCONFIG_FOUND)
	set_target_properties(cguittfont
		PROPERTIES
		COMPILE_FLAGS "${FREETYPE_CFLAGS_STR}"
		LINK_FLAGS "${FREETYPE_LDFLAGS_STR}"
	)

	include_directories(
	  ${IRRLICHT_INCLUDE_DIR}
	)
else(FREETYPE_PKGCONFIG_FOUND)
	include_directories(
	  ${IRRLICHT_INCLUDE_DIR}
	  ${FREETYPE_INCLUDE_DIRS}
	)
endif(FREETYPE_PKGCONFIG_FOUND)

target_link_libraries(
	cguittfont
	${IRRLICHT_LIBRARY}
	${FREETYPE_LIBRARY}
	${ZLIB_LIBRARIES}  # needed by freetype, repeated here for safety
	)