build plugins as modules.
This commit is contained in:
parent
7231d06a46
commit
7a13a940df
12 changed files with 15 additions and 20 deletions
|
@ -231,12 +231,12 @@ endif()
|
|||
|
||||
if(USE_PROJ)
|
||||
#https://proj.org/development/cmake.html
|
||||
mapnik_find_package(PROJ REQUIRED)
|
||||
math(EXPR MAPNIK_PROJ_VERSION "${PROJ_VERSION_MAJOR}*10000 + ${PROJ_VERSION_MINOR}*100 + ${PROJ_VERSION_PATCH}" OUTPUT_FORMAT DECIMAL)
|
||||
mapnik_find_package(PROJ4 REQUIRED)
|
||||
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}")
|
||||
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_INCLUDE ${PROJ_INCLUDE_DIRS})
|
||||
list(APPEND MAPNIK_OPTIONAL_LIBS ${PROJ4_LIBRARIES})
|
||||
list(APPEND MAPNIK_OPTIONAL_LIBS_INCLUDE ${PROJ4_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
||||
if(USE_GRID_RENDERER)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
project(input-csv)
|
||||
|
||||
add_library(input-csv SHARED
|
||||
add_library(input-csv MODULE
|
||||
csv_datasource.cpp
|
||||
csv_featureset.cpp
|
||||
csv_index_featureset.cpp
|
||||
|
@ -18,10 +18,5 @@ target_link_libraries(input-csv PRIVATE
|
|||
set_target_properties(input-csv PROPERTIES PREFIX "")
|
||||
set_target_properties(input-csv PROPERTIES OUTPUT_NAME "csv")
|
||||
set_target_properties(input-csv PROPERTIES SUFFIX ".input")
|
||||
#install(TARGETS input-csv DESTINATION bin/plugins/input)
|
||||
|
||||
install(TARGETS input-csv
|
||||
RUNTIME DESTINATION ${PLUGINS_INSTALL_DIR}
|
||||
)
|
||||
|
||||
mapnik_install(TARGET input-csv IS_PLUGIN)
|
||||
|
|
|
@ -2,7 +2,7 @@ project(input-gdal)
|
|||
|
||||
find_package(GDAL REQUIRED)
|
||||
|
||||
add_library(input-gdal SHARED
|
||||
add_library(input-gdal MODULE
|
||||
gdal_datasource.cpp
|
||||
gdal_featureset.cpp
|
||||
)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
project(input-geobuf)
|
||||
|
||||
add_library(input-geobuf SHARED
|
||||
add_library(input-geobuf MODULE
|
||||
geobuf_datasource.cpp
|
||||
geobuf_featureset.cpp
|
||||
)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
project(input-geojson)
|
||||
|
||||
add_library(input-geojson SHARED
|
||||
add_library(input-geojson MODULE
|
||||
geojson_datasource.cpp
|
||||
geojson_featureset.cpp
|
||||
geojson_index_featureset.cpp
|
||||
|
|
|
@ -2,7 +2,7 @@ project(input-ogr)
|
|||
|
||||
find_package(GDAL REQUIRED)
|
||||
|
||||
add_library(input-ogr SHARED
|
||||
add_library(input-ogr MODULE
|
||||
ogr_converter.cpp
|
||||
ogr_datasource.cpp
|
||||
ogr_featureset.cpp
|
||||
|
|
|
@ -2,7 +2,7 @@ project(input-pgraster)
|
|||
|
||||
find_package(PostgreSQL REQUIRED)
|
||||
|
||||
add_library(input-pgraster SHARED
|
||||
add_library(input-pgraster MODULE
|
||||
pgraster_datasource.cpp
|
||||
pgraster_featureset.cpp
|
||||
pgraster_wkb_reader.cpp
|
||||
|
|
|
@ -2,7 +2,7 @@ project(input-postgis)
|
|||
|
||||
find_package(PostgreSQL REQUIRED)
|
||||
|
||||
add_library(input-postgis SHARED
|
||||
add_library(input-postgis MODULE
|
||||
postgis_datasource.cpp
|
||||
postgis_featureset.cpp
|
||||
)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
project(input-raster)
|
||||
|
||||
add_library(input-raster SHARED
|
||||
add_library(input-raster MODULE
|
||||
raster_datasource.cpp
|
||||
raster_featureset.cpp
|
||||
raster_info.cpp
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
project(input-shape)
|
||||
|
||||
add_library(input-shape SHARED
|
||||
add_library(input-shape MODULE
|
||||
dbfile.cpp
|
||||
dbf_test.cpp
|
||||
shape_datasource.cpp
|
||||
|
|
|
@ -2,7 +2,7 @@ project(input-sqlite)
|
|||
|
||||
find_package(SQLite3 REQUIRED)
|
||||
|
||||
add_library(input-sqlite SHARED
|
||||
add_library(input-sqlite MODULE
|
||||
sqlite_datasource.cpp
|
||||
sqlite_featureset.cpp
|
||||
)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
project(input-topojson)
|
||||
|
||||
add_library(input-topojson SHARED
|
||||
add_library(input-topojson MODULE
|
||||
topojson_datasource.cpp
|
||||
topojson_featureset.cpp
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue