add support for proj4
This commit is contained in:
parent
3990fbe1dd
commit
8de67bc262
1 changed files with 8 additions and 0 deletions
|
@ -19,6 +19,7 @@ option(USE_TIFF "Adds tiff support" ON)
|
||||||
option(USE_WEBP "Adds webp support" ON)
|
option(USE_WEBP "Adds webp support" ON)
|
||||||
option(USE_LIBXML2 "Adds libxml2 support" ON)
|
option(USE_LIBXML2 "Adds libxml2 support" ON)
|
||||||
option(USE_CAIRO "Adds the cairo renderer" 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_CSV "adds plugin input csv" ON)
|
||||||
option(USE_PLUGIN_INPUT_GDAL "adds plugin input gdal" 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)
|
list(APPEND MAPNIK_OPTIONAL_LIBS Cairo::Cairo)
|
||||||
endif()
|
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(headers INTERFACE)
|
||||||
add_library(mapnik::headers ALIAS headers)
|
add_library(mapnik::headers ALIAS headers)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue