mapnik/utils/pgsql2sqlite/CMakeLists.txt

23 lines
556 B
Text
Raw Permalink Normal View History

find_package(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS program_options)
2020-11-21 11:24:34 +00:00
find_package(SQLite3 REQUIRED)
find_package(PostgreSQL REQUIRED)
2022-08-11 20:54:50 +00:00
add_executable(pgsql2sqlite
2020-11-20 20:15:27 +00:00
main.cpp
sqlite.cpp
)
2020-11-21 11:24:34 +00:00
target_include_directories(pgsql2sqlite PRIVATE ../../plugins/input/postgis)
2022-08-11 20:54:50 +00:00
target_link_libraries(pgsql2sqlite PRIVATE
2020-11-21 11:24:34 +00:00
SQLite::SQLite3
PostgreSQL::PostgreSQL
Boost::program_options
mapnik::mapnik
)
2022-08-11 20:54:50 +00:00
set_target_properties(pgsql2sqlite PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${MAPNIK_OUTPUT_DIR}"
)
2021-09-22 18:49:44 +00:00
mapnik_install_utility(pgsql2sqlite)