X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/45344575c628b0ca10e39ec67df6ecc4f6bce8ad..b6a831443c8f46bfe1be59ecd1cb7a6847fdf948:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index af9c546e..052695c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,6 +114,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 #----------------------------------------------------------------------------- @@ -200,7 +221,7 @@ endif() #----------------------------------------------------------------------------- if (BUILD_MANPAGE) - add_subdirectory(manual) + add_subdirectory(man) endif() #-----------------------------------------------------------------------------