add support for proj4

This commit is contained in:
Mathis Logemann 2020-11-21 12:38:29 +01:00
parent 3990fbe1dd
commit 8de67bc262

View file

@ -19,6 +19,7 @@ option(USE_TIFF "Adds tiff support" ON)
option(USE_WEBP "Adds webp support" ON)
option(USE_LIBXML2 "Adds libxml2 support" ON)
option(USE_CAIRO "Adds the cairo renderer" ON)
option(USE_PROJ4 "adds proj4 support" ON)
option(USE_PLUGIN_INPUT_CSV "adds plugin input csv" ON)
option(USE_PLUGIN_INPUT_GDAL "adds plugin input gdal" ON)
@ -155,6 +156,13 @@ if(USE_CAIRO)
list(APPEND MAPNIK_OPTIONAL_LIBS Cairo::Cairo)
endif()
if(USE_PROJ4)
message(STATUS "Using PROJ4")
find_package(PROJ4 CONFIG REQUIRED)
list(APPEND MAPNIK_COMPILE_DEFS MAPNIK_USE_PROJ4)
list(APPEND MAPNIK_OPTIONAL_LIBS proj)
endif()
add_library(headers INTERFACE)
add_library(mapnik::headers ALIAS headers)