Files
Lua-compilateur/examples/CMakeLists.txt
T
BlackAngelTV 1ededcd655 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.
2026-11-18 08:48:05 +01:00

8 lines
230 B
CMake

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)