This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
2022-07-29 21:35:46 +08:00
|
|
|
set(LUA_SRC
|
2022-07-30 01:39:39 +08:00
|
|
|
3rdlibs/lua/src/lapi.c
|
|
|
|
3rdlibs/lua/src/lcode.c
|
|
|
|
3rdlibs/lua/src/lctype.c
|
|
|
|
3rdlibs/lua/src/ldebug.c
|
|
|
|
3rdlibs/lua/src/ldo.c
|
|
|
|
3rdlibs/lua/src/ldump.c
|
|
|
|
3rdlibs/lua/src/lfunc.c
|
|
|
|
3rdlibs/lua/src/lgc.c
|
|
|
|
3rdlibs/lua/src/llex.c
|
|
|
|
3rdlibs/lua/src/lmem.c
|
|
|
|
3rdlibs/lua/src/lobject.c
|
|
|
|
3rdlibs/lua/src/lopcodes.c
|
|
|
|
3rdlibs/lua/src/lparser.c
|
|
|
|
3rdlibs/lua/src/lstate.c
|
|
|
|
3rdlibs/lua/src/lstring.c
|
|
|
|
3rdlibs/lua/src/ltable.c
|
|
|
|
3rdlibs/lua/src/ltm.c
|
|
|
|
3rdlibs/lua/src/lundump.c
|
|
|
|
3rdlibs/lua/src/lvm.c
|
|
|
|
3rdlibs/lua/src/lzio.c
|
|
|
|
3rdlibs/lua/src/lauxlib.c
|
|
|
|
3rdlibs/lua/src/lbaselib.c
|
|
|
|
3rdlibs/lua/src/lcorolib.c
|
|
|
|
3rdlibs/lua/src/ldblib.c
|
|
|
|
3rdlibs/lua/src/liolib.c
|
|
|
|
3rdlibs/lua/src/lmathlib.c
|
|
|
|
3rdlibs/lua/src/loadlib.c
|
|
|
|
3rdlibs/lua/src/loslib.c
|
|
|
|
3rdlibs/lua/src/lstrlib.c
|
|
|
|
3rdlibs/lua/src/ltablib.c
|
|
|
|
3rdlibs/lua/src/lutf8lib.c
|
|
|
|
3rdlibs/lua/src/linit.c
|
2022-07-29 21:35:46 +08:00
|
|
|
)
|
2022-07-30 01:39:39 +08:00
|
|
|
|
2022-07-29 21:35:46 +08:00
|
|
|
add_library(lua STATIC ${LUA_SRC})
|
2022-07-30 01:39:39 +08:00
|
|
|
target_include_directories(lua PUBLIC ./3rdlibs/lua/src)
|
2022-07-29 21:35:46 +08:00
|
|
|
target_compile_features(lua PRIVATE c_std_99)
|
|
|
|
|
|
|
|
# TODO if you use MinGW, maybe you need this
|
|
|
|
# target_compile_options(lua PRIVATE LUA_USE_LINUX)
|
|
|
|
if (NOT WIN32)
|
|
|
|
target_compile_options(lua PRIVATE LUA_USE_LINUX)
|
|
|
|
endif()
|