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
|
|
|
|
2022-01-10 20:04:07 +00:00
|
|
|
set(LUA_AUX_FILES
|
|
|
|
openmw_aux/util.lua
|
|
|
|
openmw_aux/time.lua
|
|
|
|
openmw_aux/calendar.lua
|
|
|
|
)
|
|
|
|
|
2021-12-07 10:31:41 +00:00
|
|
|
set(DDIRRELATIVE resources/vfs/openmw_aux)
|
2022-01-10 20:04:07 +00:00
|
|
|
copy_all_resource_files(${CMAKE_CURRENT_SOURCE_DIR} ${OPENMW_RESOURCES_ROOT} ${DDIRRELATIVE} "${LUA_AUX_FILES}")
|
2021-12-07 10:31:41 +00:00
|
|
|
|
|
|
|
set(LUA_SCRIPTS_FILES
|
2022-02-08 23:43:44 +00:00
|
|
|
scripts/omw/ai.lua
|
2021-12-07 10:31:41 +00:00
|
|
|
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}")
|
2022-02-11 18:57:59 +00:00
|
|
|
|
|
|
|
set(DDIRRELATIVE resources/vfs/i18n/Calendar)
|
|
|
|
copy_all_resource_files(${CMAKE_CURRENT_SOURCE_DIR} ${OPENMW_RESOURCES_ROOT} ${DDIRRELATIVE} "i18n/Calendar/en.lua")
|