build: add build script and CMake helper for compiled packages

Compiling the compiler, the example and the demo by hand is error prone, so a
single script keeps the whole flow reproducible and ignores build outputs.
This commit is contained in:
BlackAngelTV committed 2026-11-18 08:48:05 +01:00
1 parent ab5ff6978a
commit 1ededcd655
6 files changed
+161

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
add_lua_package(luacpp_example_lua
ROOT "${CMAKE_CURRENT_SOURCE_DIR}/lua"
MODULES mathx.lua greet.lua
NAMESPACE demo)
add_executable(luacpp_example main.cpp)
target_link_libraries(luacpp_example PRIVATE luacpp_example_lua)