2021-12-08 13:33:49 +00:00
|
|
|
if (NOT DEFINED OPENMW_RESOURCES_ROOT)
|
2021-12-07 10:31:41 +00:00
|
|
|
return()
|
|
|
|
endif()
|
2021-03-12 01:05:35 +00:00
|
|
|
|
2021-12-07 10:31:41 +00:00
|
|
|
# Copy resource files into the build directory
|
|
|
|
set(SDIR ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
set(DDIRRELATIVE resources/vfs)
|
2021-12-08 13:33:49 +00:00
|
|
|
copy_all_resource_files(${CMAKE_CURRENT_SOURCE_DIR} ${OPENMW_RESOURCES_ROOT} ${DDIRRELATIVE} "builtin.omwscripts")
|
2021-03-12 01:05:35 +00:00
|
|
|
|
2021-12-07 10:31:41 +00:00
|
|
|
set(DDIRRELATIVE resources/vfs/openmw_aux)
|
2021-12-08 13:33:49 +00:00
|
|
|
copy_all_resource_files(${CMAKE_CURRENT_SOURCE_DIR} ${OPENMW_RESOURCES_ROOT} ${DDIRRELATIVE} "openmw_aux/util.lua")
|
2021-12-07 10:31:41 +00:00
|
|
|
|
|
|
|
set(LUA_SCRIPTS_FILES
|
|
|
|
scripts/omw/camera.lua
|
|
|
|
scripts/omw/head_bobbing.lua
|
|
|
|
scripts/omw/third_person.lua
|
|
|
|
)
|
|
|
|
|
|
|
|
set(DDIRRELATIVE resources/vfs/scripts/omw)
|
2021-12-08 13:33:49 +00:00
|
|
|
copy_all_resource_files(${CMAKE_CURRENT_SOURCE_DIR} ${OPENMW_RESOURCES_ROOT} ${DDIRRELATIVE} "${LUA_SCRIPTS_FILES}")
|