lesi/modules/luafilesystem.cmake
2023-11-16 16:01:55 -07:00

8 lines
280 B
CMake

list(APPEND EMBEDDED_MODULE_TARGETS lua-filesystem)
list(APPEND EMBEDDED_MODULE_NAMES "lfs/luaopen_lfs")
set(LFS_SRC lfs-912e067/lfs.c)
include_directories(BEFORE ${LUA_INCLUDE})
add_library(lua-filesystem STATIC ${LFS_SRC})
target_link_libraries(lua-filesystem ${LUA_LIBRARY})