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.
8 lines
230 B
CMake
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)
|