]> git.openstreetmap.org Git - nominatim.git/blobdiff - CMakeLists.txt
add skeleton for new Nominatim executables
[nominatim.git] / CMakeLists.txt
index d1dd69ba6ef6877edd9d44a83f9c92bac456e008..15e34cdb0b65ab63d3893bd1a25d5f7669d3af5b 100644 (file)
@@ -111,29 +111,24 @@ if (BUILD_IMPORTER)
        configure_file(${PROJECT_SOURCE_DIR}/cmake/script.tmpl
                       ${PROJECT_BINARY_DIR}/utils/${script_source})
    endforeach()
+
+   set(NOMINATIM_TOOLS
+       setup
+       update
+       admin
+      )
+
+   foreach (tool_name ${NOMINATIM_TOOLS})
+       configure_file(${PROJECT_SOURCE_DIR}/cmake/tool.tmpl
+                      ${PROJECT_BINARY_DIR}/nominatim-${tool_name})
+   endforeach()
 endif()
 
 #-----------------------------------------------------------------------------
-# webserver scripts (API only)
+# Targets for running a development webserver from the build directory.
 #-----------------------------------------------------------------------------
 
 if (BUILD_API)
-   set(WEBSITESCRIPTS
-       deletable.php
-       details.php
-       lookup.php
-       polygons.php
-       reverse.php
-       search.php
-       status.php
-   )
-
-   foreach (script_source ${WEBSITESCRIPTS})
-       configure_file(${PROJECT_SOURCE_DIR}/cmake/website.tmpl
-                      ${PROJECT_BINARY_DIR}/website/${script_source})
-   endforeach()
-
-
    add_custom_target(serve
            php -S 127.0.0.1:8088
            WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/website