Add lua diff
All checks were successful
Build Dusk / build-linux (push) Successful in 1m51s
Build Dusk / build-psp (push) Successful in 2m2s

This commit is contained in:
2025-12-04 00:39:09 -06:00
parent 77d3c54ebb
commit 8c74ee31e0
2 changed files with 12 additions and 61 deletions

View File

@@ -5,7 +5,17 @@
find_package(cglm REQUIRED)
find_package(libzip REQUIRED)
find_package(lua REQUIRED)
find_package(Lua REQUIRED)
if(Lua_FOUND AND NOT TARGET Lua::Lua)
add_library(Lua::Lua INTERFACE IMPORTED)
set_target_properties(
Lua::Lua
PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${LUA_INCLUDE_DIR}"
INTERFACE_LINK_LIBRARIES "${LUA_LIBRARIES}"
)
endif()
# Libs
target_link_libraries(${DUSK_TARGET_NAME}
@@ -13,8 +23,8 @@ target_link_libraries(${DUSK_TARGET_NAME}
m
cglm
zip
lua
pthread
Lua::Lua
)
# Includes