X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/74c39267d94b11258f60bd309813d47f291d938e..8215748ac04689102fcfb5a014ad30c2a4d8ede0:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index e31362fe..e6d59520 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,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 #-----------------------------------------------------------------------------