73 lines
1.2 KiB
Text
73 lines
1.2 KiB
Text
|
cmake_minimum_required(VERSION 3.7)
|
||
|
|
||
|
project( LuaLib )
|
||
|
|
||
|
|
||
|
# find -name '*.c' -o -name '*.h' | sed 's:./::' | sed 's/\(.*\)/"\1"/g' | sort
|
||
|
# The recommended way to collect sources in variable by explicitly specifying the source files
|
||
|
set (LUA_RUNTIME_SOURCES
|
||
|
"src/lapi.c"
|
||
|
"src/lapi.h"
|
||
|
"src/lauxlib.c"
|
||
|
"src/lauxlib.h"
|
||
|
"src/lbaselib.c"
|
||
|
"src/lcode.c"
|
||
|
"src/lcode.h"
|
||
|
"src/lcorolib.c"
|
||
|
"src/lctype.c"
|
||
|
"src/lctype.h"
|
||
|
"src/ldblib.c"
|
||
|
"src/ldebug.c"
|
||
|
"src/ldebug.h"
|
||
|
"src/ldo.c"
|
||
|
"src/ldo.h"
|
||
|
"src/ldump.c"
|
||
|
"src/lfunc.c"
|
||
|
"src/lfunc.h"
|
||
|
"src/lgc.c"
|
||
|
"src/lgc.h"
|
||
|
"src/linit.c"
|
||
|
"src/liolib.c"
|
||
|
"src/ljumptab.h"
|
||
|
"src/llex.c"
|
||
|
"src/llex.h"
|
||
|
"src/llimits.h"
|
||
|
"src/lmathlib.c"
|
||
|
"src/lmem.c"
|
||
|
"src/lmem.h"
|
||
|
"src/loadlib.c"
|
||
|
"src/lobject.c"
|
||
|
"src/lobject.h"
|
||
|
"src/lopcodes.c"
|
||
|
"src/lopcodes.h"
|
||
|
"src/lopnames.h"
|
||
|
"src/loslib.c"
|
||
|
"src/lparser.c"
|
||
|
"src/lparser.h"
|
||
|
"src/lprefix.h"
|
||
|
"src/lstate.c"
|
||
|
"src/lstate.h"
|
||
|
"src/lstring.c"
|
||
|
"src/lstring.h"
|
||
|
"src/lstrlib.c"
|
||
|
"src/ltable.c"
|
||
|
"src/ltable.h"
|
||
|
"src/ltablib.c"
|
||
|
"src/ltm.c"
|
||
|
"src/ltm.h"
|
||
|
#"src/lua.c"
|
||
|
#"src/luac.c"
|
||
|
"src/luaconf.h"
|
||
|
#"src/lua.h"
|
||
|
"src/lualib.h"
|
||
|
"src/lundump.c"
|
||
|
"src/lundump.h"
|
||
|
"src/lutf8lib.c"
|
||
|
"src/lvm.c"
|
||
|
"src/lvm.h"
|
||
|
"src/lzio.c"
|
||
|
"src/lzio.h")
|
||
|
|
||
|
add_library( LuaLib ${LUA_RUNTIME_SOURCES} )
|
||
|
|
||
|
target_include_directories ( LuaLib PUBLIC "${PROJECT_SOURCE_DIR}/src")
|