1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

Add a directory for builtin lua scripts. Dehardcoded game mechanics are supposed to live there.

This commit is contained in:
Petr Mikheev 2021-03-12 02:05:35 +01:00
parent 9a5229a821
commit b432a1a1c1
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,4 @@
add_subdirectory(mygui)
add_subdirectory(shaders)
add_subdirectory(vfs)
add_subdirectory(builtin_scripts)

View File

@ -0,0 +1,8 @@
file(GLOB_RECURSE BUILTIN_SCRIPTS LIST_DIRECTORIES false RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} CONFIGURE_DEPENDS "*")
foreach (f ${BUILTIN_SCRIPTS})
if (NOT ("CMakeLists.txt" STREQUAL "${f}"))
copy_resource_file("${CMAKE_CURRENT_SOURCE_DIR}/${f}" "${OpenMW_BINARY_DIR}" "resources/vfs/${f}")
endif()
endforeach (f)