2024-10-05 21:17:22 +00:00
|
|
|
cmake_minimum_required(VERSION 3.21)
|
|
|
|
|
2024-10-07 12:52:32 +00:00
|
|
|
project(twnlua LANGUAGES C)
|
2024-10-05 21:17:22 +00:00
|
|
|
|
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
|
|
set(CMAKE_BUILD_TYPE Debug)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_subdirectory($ENV{TWNROOT} $ENV{TWNBUILDDIR})
|
|
|
|
|
|
|
|
set(SOURCE_FILES
|
|
|
|
game.c
|
|
|
|
state.h
|
|
|
|
|
|
|
|
lua/src/lapi.c
|
|
|
|
lua/src/lapi.h
|
|
|
|
lua/src/lauxlib.c
|
|
|
|
lua/src/lauxlib.h
|
|
|
|
lua/src/lbaselib.c
|
|
|
|
lua/src/lcode.c
|
|
|
|
lua/src/lcode.h
|
|
|
|
lua/src/lcorolib.c
|
|
|
|
lua/src/lctype.c
|
|
|
|
lua/src/lctype.h
|
|
|
|
lua/src/ldblib.c
|
|
|
|
lua/src/ldebug.c
|
|
|
|
lua/src/ldebug.h
|
|
|
|
lua/src/ldo.c
|
|
|
|
lua/src/ldo.h
|
|
|
|
lua/src/ldump.c
|
|
|
|
lua/src/lfunc.c
|
|
|
|
lua/src/lfunc.h
|
|
|
|
lua/src/lgc.c
|
|
|
|
lua/src/lgc.h
|
|
|
|
lua/src/linit.c
|
|
|
|
lua/src/liolib.c
|
|
|
|
lua/src/ljumptab.h
|
|
|
|
lua/src/llex.c
|
|
|
|
lua/src/llex.h
|
|
|
|
lua/src/llimits.h
|
|
|
|
lua/src/lmathlib.c
|
|
|
|
lua/src/lmem.c
|
|
|
|
lua/src/lmem.h
|
|
|
|
lua/src/loadlib.c
|
|
|
|
lua/src/lobject.c
|
|
|
|
lua/src/lobject.h
|
|
|
|
lua/src/lopcodes.c
|
|
|
|
lua/src/lopcodes.h
|
|
|
|
lua/src/lopnames.h
|
|
|
|
lua/src/loslib.c
|
|
|
|
lua/src/lparser.c
|
|
|
|
lua/src/lparser.h
|
|
|
|
lua/src/lprefix.h
|
|
|
|
lua/src/lstate.c
|
|
|
|
lua/src/lstate.h
|
|
|
|
lua/src/lstring.c
|
|
|
|
lua/src/lstring.h
|
|
|
|
lua/src/lstrlib.c
|
|
|
|
lua/src/ltable.c
|
|
|
|
lua/src/ltable.h
|
|
|
|
lua/src/ltablib.c
|
|
|
|
lua/src/ltm.c
|
|
|
|
lua/src/ltm.h
|
|
|
|
lua/src/lua.h
|
|
|
|
lua/src/luaconf.h
|
|
|
|
lua/src/lualib.h
|
|
|
|
lua/src/lundump.c
|
|
|
|
lua/src/lundump.h
|
|
|
|
lua/src/lutf8lib.c
|
|
|
|
lua/src/lvm.c
|
|
|
|
lua/src/lvm.h
|
|
|
|
lua/src/lzio.c
|
|
|
|
lua/src/lzio.h
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2024-10-07 15:55:25 +00:00
|
|
|
use_townengine(${PROJECT_NAME} "${SOURCE_FILES}" ${CMAKE_CURRENT_SOURCE_DIR})
|