From ff47596f646806c4cd28b29422f5af50ffde659d Mon Sep 17 00:00:00 2001 From: pd3v Date: Tue, 26 Jul 2022 16:27:47 +0100 Subject: [PATCH] add CMakeLists.txt --- CMakeLists.txt | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000000..ca1c81bf5c --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,47 @@ +cmake_minimum_required(VERSION 3.19) + +project(lualib_project C) + +add_library(lua SHARED + lapi.c + lauxlib.c + lbaselib.c + lcode.c + lcorolib.c + lctype.c + ldblib.c + ldebug.c + ldo.c + ldump.c + lfunc.c + lgc.c + linit.c + liolib.c + llex.c + lmathlib.c + lmem.c + loadlib.c + lobject.c + lopcodes.c + loslib.c + lparser.c + lstate.c + lstring.c + lstrlib.c + ltable.c + ltablib.c + ltm.c + lua.c + lundump.c + lutf8lib.c + lvm.c + lzio.c +) + +install(TARGETS lua DESTINATION lib) + +install(DIRECTORY "${CMAKE_SOURCE_DIR}/externals/lua" + DESTINATION include + FILES_MATCHING + PATTERN "*.h" +) \ No newline at end of file