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:
6 files changed
+161
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user