From 0c4e9d92070c606ce0906572d6783973f286a55a Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Sun, 24 Apr 2011 12:39:50 +0200 Subject: [PATCH] create local openmw.cfg file for uninstalled version --- CMakeLists.txt | 6 +++++- files/openmw.cfg.local | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 files/openmw.cfg.local diff --git a/CMakeLists.txt b/CMakeLists.txt index 22ba839b2..3273ccef8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -336,6 +336,10 @@ endif (APPLE) # Other files +configure_file(${OpenMW_SOURCE_DIR}/files/openmw.cfg.local + "${OpenMW_BINARY_DIR}/openmw.cfg" COPYONLY) + + if (WIN32) configure_file(${OpenMW_SOURCE_DIR}/files/plugins.cfg.win32 "${OpenMW_BINARY_DIR}/plugins.cfg" COPYONLY) @@ -424,7 +428,7 @@ if(DPKG_PROGRAM) endif() #Install global configuration files - INSTALL(FILES "${OpenMW_BINARY_DIR}/openmw.cfg" DESTINATION "../etc/openmw/" PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ COMPONENT "openmw") + INSTALL(FILES "${OpenMW_SOURCE_DIR}/openmw.cfg" DESTINATION "../etc/openmw/" PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ COMPONENT "openmw") INSTALL(FILES "${OpenMW_BINARY_DIR}/plugins.cfg" DESTINATION "../etc/openmw/" PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ COMPONENT "openmw") #Install resources diff --git a/files/openmw.cfg.local b/files/openmw.cfg.local new file mode 100644 index 000000000..dd116e108 --- /dev/null +++ b/files/openmw.cfg.local @@ -0,0 +1,2 @@ +data=./data +resources=./resources