make sure lua works with macos packages

7220-lua-add-a-general-purpose-lexical-parser
Bret Curtis 2 years ago
parent 4032c447e9
commit a708fb4a5c

@ -1,5 +1,10 @@
project (Components)
if(APPLE)
set(BUNDLE_RESOURCES_DIR "${APP_BUNDLE_DIR}/Contents/Resources")
set(OPENMW_RESOURCES_ROOT ${BUNDLE_RESOURCES_DIR})
endif(APPLE)
# Version file
set (VERSION_IN_FILE "${OpenMW_SOURCE_DIR}/files/version.in")
set (VERSION_FILE_PATH_BASE "${OpenMW_BINARY_DIR}")

@ -1,3 +1,7 @@
if (NOT DEFINED OPENMW_RESOURCES_ROOT)
return()
endif()
set(LUA_API_FILES
README.md
coroutine.doclua
@ -18,5 +22,5 @@ set(LUA_API_FILES
)
foreach (f ${LUA_API_FILES})
copy_resource_file("${CMAKE_CURRENT_SOURCE_DIR}/${f}" "${OpenMW_BINARY_DIR}" "resources/lua_api/${f}")
copy_resource_file("${CMAKE_CURRENT_SOURCE_DIR}/${f}" "${OPENMW_RESOURCES_ROOT}" "resources/lua_api/${f}")
endforeach (f)

Loading…
Cancel
Save