2020-11-22 22:01:33 +01:00
|
|
|
project(pgsql2sqlite)
|
|
|
|
find_package(Boost 1.74 REQUIRED COMPONENTS program_options)
|
2020-11-21 12:24:34 +01:00
|
|
|
find_package(SQLite3 REQUIRED)
|
|
|
|
find_package(PostgreSQL REQUIRED)
|
|
|
|
|
2020-11-20 21:15:27 +01:00
|
|
|
add_executable(pgsql2sqlite
|
|
|
|
main.cpp
|
|
|
|
sqlite.cpp
|
|
|
|
)
|
|
|
|
|
2020-11-21 12:24:34 +01:00
|
|
|
target_include_directories(pgsql2sqlite PRIVATE ../../plugins/input/postgis)
|
|
|
|
target_link_libraries(pgsql2sqlite PRIVATE
|
|
|
|
SQLite::SQLite3
|
|
|
|
PostgreSQL::PostgreSQL
|
|
|
|
Boost::program_options
|
|
|
|
mapnik::headers
|
|
|
|
mapnik::mapnik
|
|
|
|
)
|
|
|
|
|
2020-11-20 21:15:27 +01:00
|
|
|
install(TARGETS pgsql2sqlite
|
|
|
|
EXPORT MapnikTargets
|
|
|
|
RUNTIME DESTINATION bin
|
2020-11-21 12:24:34 +01:00
|
|
|
)
|