1
option(WITH_GEOS "Choose if GEOS geometry operations support should be built in" ON)
2
option(WITH_OGR "Choose if OGR/GDAL input vector support should be built in" ON)
4
add_executable(mapcache_seed mapcache_seed.c)
5
target_link_libraries(mapcache_seed mapcache)
10
include_directories(${GDAL_INCLUDE_DIR})
11
target_link_libraries(mapcache_seed ${GDAL_LIBRARY})
14
#TODO:message here could be more precise: we need the GDAL library but we don't need to force gdal support
15
report_dependency_error(GDAL OGR)
23
include_directories(${GEOS_INCLUDE_DIR})
24
target_link_libraries(mapcache_seed ${GEOS_LIBRARY})
27
report_optional_not_found(GEOS)
33
"${PROJECT_SOURCE_DIR}/util/mapcache-util-config.h.in"
34
"${PROJECT_BINARY_DIR}/util/mapcache-util-config.h"
36
include_directories("${PROJECT_BINARY_DIR}/util/")
39
message(STATUS "* Seeder Configuration Options:")
40
status_optional_component("GEOS" "${USE_GEOS}" "${GEOS_LIBRARY}")
41
status_optional_component("OGR" "${USE_OGR}" "${GDAL_LIBRARY}")
43
INSTALL(TARGETS mapcache_seed RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})