Commit 6f840247 authored by Emmanuel Christophe's avatar Emmanuel Christophe

ENH: mapnik configuration

parent 33170cdb
......@@ -339,6 +339,13 @@ IF(OTB_USE_MAPNIK)
"Cannot find MAPNIK include directory. Please set MAPNIK_INCLUDE_DIR or SET OTB_USE_MAPNIK OFF.")
ENDIF (NOT MAPNIK_INCLUDE_DIR)
FIND_PATH(FREETYPE2_INCLUDE_DIR freetype/freetype.h PATHS /usr/include/freetype2)
MARK_AS_ADVANCED(FREETYPE2_INCLUDE_DIR)
IF (NOT FREETYPE2_INCLUDE_DIR)
MESSAGE(FATAL_ERROR
"Cannot find FREETYPE2 include directory. Please set or SET OTB_USE_MAPNIK OFF.")
ENDIF (NOT FREETYPE2_INCLUDE_DIR)
FIND_LIBRARY(MAPNIK_LIBRARY mapnik )
MARK_AS_ADVANCED(MAPNIK_LIBRARY)
IF (NOT MAPNIK_LIBRARY)
......
......@@ -97,7 +97,7 @@ ENDIF(OTB_USE_CURL)
# Include directories from the MAPNIK build tree.
IF(OTB_USE_MAPNIK)
SET(OTB_INCLUDE_DIRS_BUILD_TREE ${OTB_INCLUDE_DIRS_BUILD_TREE}
${MAPNIK_INCLUDE_DIR} )
${MAPNIK_INCLUDE_DIR} ${FREETYPE2_INCLUDE_DIR})
ENDIF(OTB_USE_MAPNIK)
#-----------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment