2022-08-16 19:03:56 +00:00
|
|
|
mapnik_find_package(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS program_options)
|
|
|
|
mapnik_find_package(SQLite3 REQUIRED)
|
|
|
|
mapnik_find_package(PostgreSQL REQUIRED)
|
2020-11-21 11:24:34 +00:00
|
|
|
|
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-11-28 07:31:25 +00:00
|
|
|
ICU::data ICU::i18n ICU::uc # needed for the static build (TODO: why isn't this correctly propagated from mapnik::mapnik?)
|
2020-11-21 11:24:34 +00:00
|
|
|
)
|
|
|
|
|
2021-09-22 18:49:44 +00:00
|
|
|
mapnik_install_utility(pgsql2sqlite)
|