TEMP: use openjpeg
This commit is contained in:
parent
3397fff8ea
commit
59f9974baa
1 changed files with 6 additions and 6 deletions
|
@ -218,9 +218,9 @@ if(USE_PNG)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(USE_JPEG)
|
if(USE_JPEG)
|
||||||
mapnik_find_package(JPEG REQUIRED)
|
mapnik_find_package(OpenJPEG REQUIRED)
|
||||||
list(APPEND MAPNIK_COMPILE_DEFS HAVE_JPEG)
|
list(APPEND MAPNIK_COMPILE_DEFS HAVE_JPEG)
|
||||||
list(APPEND MAPNIK_OPTIONAL_LIBS JPEG::JPEG)
|
list(APPEND MAPNIK_OPTIONAL_LIBS openjp2)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(USE_TIFF)
|
if(USE_TIFF)
|
||||||
|
@ -243,12 +243,12 @@ endif()
|
||||||
|
|
||||||
if(USE_PROJ)
|
if(USE_PROJ)
|
||||||
#https://proj.org/development/cmake.html
|
#https://proj.org/development/cmake.html
|
||||||
mapnik_find_package(PROJ REQUIRED)
|
mapnik_find_package(PROJ4 REQUIRED)
|
||||||
math(EXPR MAPNIK_PROJ_VERSION "${PROJ_VERSION_MAJOR}*10000 + ${PROJ_VERSION_MINOR}*100 + ${PROJ_VERSION_PATCH}" OUTPUT_FORMAT DECIMAL)
|
math(EXPR MAPNIK_PROJ_VERSION "${PROJ4_VERSION_MAJOR}*10000 + ${PROJ4_VERSION_MINOR}*100 + ${PROJ4_VERSION_PATCH}" OUTPUT_FORMAT DECIMAL)
|
||||||
message(STATUS "Using mapnik PROJ version: ${MAPNIK_PROJ_VERSION}")
|
message(STATUS "Using mapnik PROJ version: ${MAPNIK_PROJ_VERSION}")
|
||||||
list(APPEND MAPNIK_COMPILE_DEFS MAPNIK_USE_PROJ MAPNIK_PROJ_VERSION=${MAPNIK_PROJ_VERSION})
|
list(APPEND MAPNIK_COMPILE_DEFS MAPNIK_USE_PROJ MAPNIK_PROJ_VERSION=${MAPNIK_PROJ_VERSION})
|
||||||
list(APPEND MAPNIK_OPTIONAL_LIBS ${PROJ_LIBRARIES})
|
list(APPEND MAPNIK_OPTIONAL_LIBS ${PROJ4_LIBRARIES})
|
||||||
list(APPEND MAPNIK_OPTIONAL_LIBS_INCLUDE ${PROJ_INCLUDE_DIRS})
|
list(APPEND MAPNIK_OPTIONAL_LIBS_INCLUDE ${PROJ4_INCLUDE_DIRS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(USE_GRID_RENDERER)
|
if(USE_GRID_RENDERER)
|
||||||
|
|
Loading…
Reference in a new issue