27 lines
731 B
CMake
27 lines
731 B
CMake
cmake_minimum_required(VERSION 3.15.0)
|
|
project(input-shape)
|
|
|
|
add_library(input-shape SHARED
|
|
dbfile.cpp
|
|
dbf_test.cpp
|
|
shape_datasource.cpp
|
|
shape_featureset.cpp
|
|
shape_index_featureset.cpp
|
|
shape_io.cpp shape_utils.cpp
|
|
)
|
|
add_library(mapnik::plugin::input::shape ALIAS input-shape)
|
|
|
|
target_link_libraries(input-shape PRIVATE
|
|
mapnik::headers
|
|
mapnik::mapnik
|
|
)
|
|
|
|
set_target_properties(input-shape PROPERTIES PREFIX "")
|
|
set_target_properties(input-shape PROPERTIES OUTPUT_NAME "shape")
|
|
set_target_properties(input-shape PROPERTIES SUFFIX ".input")
|
|
|
|
install(TARGETS input-shape
|
|
LIBRARY DESTINATION lib/plugins/input
|
|
ARCHIVE DESTINATION lib/plugins/input
|
|
RUNTIME DESTINATION bin/plugins/input
|
|
)
|