2013-11-17 01:04:48 +00:00
|
|
|
option(FONT_TOOL "Compile font tool (only useful for developers)" OFF)
|
|
|
|
mark_as_advanced(FONT_TOOL)
|
2012-03-06 23:24:15 +00:00
|
|
|
|
|
|
|
|
2013-11-17 01:04:48 +00:00
|
|
|
if(FONT_TOOL)
|
|
|
|
if(MSVC)
|
2012-03-15 12:50:36 +00:00
|
|
|
add_executable(font_tool CFontTool.cpp main.cpp)
|
2013-11-17 01:04:48 +00:00
|
|
|
target_link_libraries(font_tool stkirrlicht)
|
2012-03-06 23:24:15 +00:00
|
|
|
else()
|
2013-11-17 01:04:48 +00:00
|
|
|
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)
|
2014-06-16 09:39:37 +10:00
|
|
|
target_link_libraries(font_tool stkirrlicht)
|
2013-11-17 01:04:48 +00:00
|
|
|
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 ${FONTCONFIG_LIBRARY})
|
|
|
|
else()
|
|
|
|
message(STATUS "Freetype was not found, the font tool won't be built (only useful for developers)")
|
|
|
|
endif()
|
2012-03-06 23:24:15 +00:00
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
message(STATUS "Font tool deactivated, the font tool won't be built (only useful for developers)")
|
|
|
|
endif()
|