2013-02-03 07:19:09 -05:00
|
|
|
# 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 xCGUITTFont.cpp)
|
|
|
|
|
2013-12-08 15:05:25 -05:00
|
|
|
if(FREETYPE_PKGCONFIG_FOUND)
|
|
|
|
set_target_properties(cguittfont
|
|
|
|
PROPERTIES
|
2014-01-03 10:15:14 -05:00
|
|
|
COMPILE_FLAGS "${FREETYPE_CFLAGS_STR}"
|
|
|
|
LINK_FLAGS "${FREETYPE_LDFLAGS_STR}"
|
2013-12-08 15:05:25 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${IRRLICHT_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
else(FREETYPE_PKGCONFIG_FOUND)
|
|
|
|
include_directories(
|
|
|
|
${IRRLICHT_INCLUDE_DIR}
|
|
|
|
${FREETYPE_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
endif(FREETYPE_PKGCONFIG_FOUND)
|
|
|
|
|
2013-02-03 07:19:09 -05:00
|
|
|
target_link_libraries(
|
2013-12-08 15:05:25 -05:00
|
|
|
cguittfont
|
|
|
|
${IRRLICHT_LIBRARY}
|
|
|
|
${FREETYPE_LIBRARY}
|
|
|
|
${ZLIB_LIBRARIES} # needed by freetype, repeated here for safety
|
|
|
|
)
|