2012-03-06 18:24:15 -05:00
|
|
|
option(FONT_TOOL "Compile font tool" OFF)
|
|
|
|
|
|
|
|
if(FONT_TOOL)
|
|
|
|
find_package(Freetype)
|
|
|
|
find_package(X11)
|
2012-03-15 08:50:36 -04:00
|
|
|
find_library(FONTCONFIG_LIBRARY fontconfig)
|
2012-03-06 18:24:15 -05:00
|
|
|
|
|
|
|
if(FREETYPE_FOUND)
|
2012-03-15 08:50:36 -04:00
|
|
|
include_directories(${FREETYPE_INCLUDE_DIRS})
|
|
|
|
add_executable(font_tool CFontTool.cpp main.cpp)
|
|
|
|
target_link_libraries(font_tool ${FREETYPE_LIBRARIES})
|
|
|
|
target_link_libraries(font_tool ${X11_Xft_LIB} Xxf86vm)
|
|
|
|
target_link_libraries(font_tool ${OPENGL_LIBRARIES})
|
|
|
|
target_link_libraries(font_tool ${IRRLICHT_LIBRARIES})
|
|
|
|
target_link_libraries(font_tool ${FONTCONFIG_LIBRARY})
|
2012-03-06 18:24:15 -05:00
|
|
|
else()
|
2012-03-15 08:50:36 -04:00
|
|
|
message(STATUS "Freetype was not found, the font tool won't be built (only useful for developers)")
|
2012-03-06 18:24:15 -05:00
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
message(STATUS "Font tool deactivated, the font tool won't be built (only useful for developers)")
|
|
|
|
endif()
|