X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/492186716f52f449e7588710dbcdb07af6fcbbc0..b9b6b075cc3cc12daa5ba48742e010b3e5e9550e:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index f3247900..b8a6a2e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,25 +109,31 @@ if (BUILD_IMPORTER) " wget -O ${PROJECT_SOURCE_DIR}/data/country_osm_grid.sql.gz https://www.nominatim.org/data/country_grid.sql.gz") endif() - set(CUSTOMSCRIPTS - check_import_finished.php - country_languages.php - export.php - query.php - setup.php - update.php - warm.php - ) - - foreach (script_source ${CUSTOMSCRIPTS}) - configure_file(${PROJECT_SOURCE_DIR}/cmake/script.tmpl - ${PROJECT_BINARY_DIR}/utils/${script_source}) - endforeach() - configure_file(${PROJECT_SOURCE_DIR}/cmake/tool.tmpl ${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 #----------------------------------------------------------------------------- @@ -273,4 +279,5 @@ install(FILES settings/env.defaults settings/import-address.style settings/import-full.style settings/import-extratags.style + settings/legacy_icu_tokenizer.json DESTINATION ${NOMINATIM_CONFIGDIR})