X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e92e03e2e6b892e6dc7a931fe0e70de9315bd302..9f417d5f64aecf72d4a3bd22d6e9d6c8fac76a51:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 11f7f929..e6d59520 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,6 @@ endif() set(BUILD_IMPORTER on CACHE BOOL "Build everything for importing/updating the database") set(BUILD_API on CACHE BOOL "Build everything for the API server") -set(BUILD_MODULE off CACHE BOOL "Build PostgreSQL module for legacy tokenizer") set(BUILD_TESTS on CACHE BOOL "Build test suite") set(BUILD_OSM2PGSQL on CACHE BOOL "Build osm2pgsql (expert only)") set(INSTALL_MUNIN_PLUGINS on CACHE BOOL "Install Munin plugins for supervising Nominatim") @@ -94,6 +93,27 @@ if (BUILD_IMPORTER) ${PROJECT_BINARY_DIR}/nominatim) endif() +#----------------------------------------------------------------------------- +# Targets for running a development webserver from the build directory. +#----------------------------------------------------------------------------- + +if (BUILD_API) + set(WEBSITEFILES + 403.html + 509.html + crossdomain.xml + favicon.ico + nominatim.xml + robots.txt + taginfo.json + ) + + foreach (webfile ${WEBSITEFILES}) + configure_file(${PROJECT_SOURCE_DIR}/website/${webfile} + ${PROJECT_BINARY_DIR}/website/${webfile}) + endforeach() +endif() + #----------------------------------------------------------------------------- # Tests #----------------------------------------------------------------------------- @@ -139,14 +159,6 @@ if (BUILD_TESTS) endif() endif() -#----------------------------------------------------------------------------- -# Postgres module -#----------------------------------------------------------------------------- - -if (BUILD_MODULE) - add_subdirectory(module) -endif() - #----------------------------------------------------------------------------- # Installation #----------------------------------------------------------------------------- @@ -195,11 +207,6 @@ if (BUILD_OSM2PGSQL) endif() endif() -if (BUILD_MODULE) - install(PROGRAMS ${PROJECT_BINARY_DIR}/module/nominatim.so - DESTINATION ${NOMINATIM_LIBDIR}/module) -endif() - install(FILES settings/env.defaults settings/address-levels.json settings/phrase-settings.json