X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b4e6d72fde248153207b0b311af4f46ee30e5e52..b616fab64dcc28e1f4c7f80abfff4fddf63d83d6:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index edad9bbc..17b5cd72 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,8 +45,6 @@ if (NOT ONLY_DOCS) endif() add_subdirectory(osm2pgsql) - find_package(Threads REQUIRED) - unset(PostgreSQL_TYPE_INCLUDE_DIR CACHE) set(PostgreSQL_TYPE_INCLUDE_DIR "/usr/include/") find_package(PostgreSQL REQUIRED) @@ -74,13 +72,6 @@ if (NOT ONLY_DOCS) message(FATAL_ERROR "Postgresql server package not found.") endif() - find_package(ZLIB REQUIRED) - - find_package(BZip2 REQUIRED) - - find_package(LibXml2 REQUIRED) - include_directories(${LIBXML2_INCLUDE_DIR}) - # Setting PHP binary variable as to command line (prevailing) or auto detect if (NOT PHP_BIN) find_program (PHP_BIN php) @@ -109,6 +100,16 @@ set(WEBSITESCRIPTS website/status.php ) +set(WEBSITEFILES + 403.html + 509.html + crossdomain.xml + favicon.ico + nominatim.xml + robots.txt + taginfo.json +) + set(CUSTOMSCRIPTS utils/check_import_finished.php utils/country_languages.php @@ -130,6 +131,11 @@ foreach (script_source ${WEBSITESCRIPTS}) ${PROJECT_BINARY_DIR}/${script_source}) endforeach() +foreach (webfile ${WEBSITEFILES}) + configure_file(${PROJECT_SOURCE_DIR}/website/${webfile} + ${PROJECT_BINARY_DIR}/website/${webfile}) +endforeach() + configure_file(${PROJECT_SOURCE_DIR}/settings/defaults.php ${PROJECT_BINARY_DIR}/settings/settings.php)