X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4002bee0c160c4d8137d5f58b0134a37a66b91b3..2bd6c761b0e573189a03e8819c6db715eb711eb1:/CMakeLists.txt?ds=inline diff --git a/CMakeLists.txt b/CMakeLists.txt index 8360d549..67746f78 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -125,6 +125,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 #-----------------------------------------------------------------------------