]> git.openstreetmap.org Git - nominatim.git/blobdiff - CMakeLists.txt
introduce InstallPath, so that stuff can be executed from build dir
[nominatim.git] / CMakeLists.txt
index e5587741a125892e7ac6a756854a577d5498a448..ceffb6fccd217d39e5594694ddc963f8b93afc50 100644 (file)
@@ -53,6 +53,26 @@ find_package(BZip2 REQUIRED)
 find_package(LibXml2 REQUIRED)
 include_directories(${LIBXML2_INCLUDE_DIR})
 
+#-----------------------------------------------------------------------------
+#
+# Setup settings and paths
+#
+#-----------------------------------------------------------------------------
+
+configure_file(
+    ${PROJECT_SOURCE_DIR}/settings/settings.php
+    ${PROJECT_BINARY_DIR}/settings/settings.php
+)
+
+configure_file(
+    ${PROJECT_SOURCE_DIR}/settings/phrase_settings.php
+    ${PROJECT_BINARY_DIR}/settings/phrase_settings.php
+)
+
+execute_process(
+    COMMAND ln -s -t ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR}/utils
+)
+
 #-----------------------------------------------------------------------------
 
 add_subdirectory(module)