Skip to content

Commit

Permalink
create local openmw.cfg file for uninstalled version
Browse files Browse the repository at this point in the history
  • Loading branch information
zinnschlag committed Apr 24, 2011
1 parent fc2d659 commit 0c4e9d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions files/openmw.cfg.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
data=./data
resources=./resources

0 comments on commit 0c4e9d9

Please sign in to comment.