Added file forgotten in previous commit.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10945 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2012-03-06 23:24:15 +00:00
parent 3c852e2891
commit 0df352a805

View File

@ -0,0 +1,21 @@
option(FONT_TOOL "Compile font tool" OFF)
if(FONT_TOOL)
find_package(Freetype)
find_package(X11)
find_library(FONTCONFIG_LIBRARY fontconfig)
if(FREETYPE_FOUND)
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})
else()
message(STATUS "Freetype was not found, the font tool won't be built (only useful for developers)")
endif()
else()
message(STATUS "Font tool deactivated, the font tool won't be built (only useful for developers)")
endif()