Its a personal project there for its not good code or optimized. This is not regulary tested / used on linux there are linux needed files included like lfs.so for linux.
Configure CMake in lua.
The goal is to make writing complex system in cmake easier by making you able to configure in lua. The way it works is it generates a cmake file based on the configuration, this makes you able to use all the cmake features.
- clone repo
- Use lua-cmake files in bin directory
Add luacmake.lua
(default) in your repo root and everything can be configured over the cmake
global.
For command options use lua-cmake -h
.
.config/luacmake.lua
is where lua-cmake
will look for a config.
As prescribed in config-dir.
lua_cmake
config: string
: Default entry file forlua-cmake
.cmake: string
: Default output file forlua-cmake
.optimize: boolean
: Default if optimizer should be enabled.verbose: boolean
: Default iflua-cmake
should give a verbose output.plugins: string[]
: Plugins that need to be loaded before configuration starts. If one fails or is missinglua-cmake
will stop the process and report back. A plugin can be asingle file
or adirectory
, if a directory is given it will search forinit.lua
as entry point.
- In order to over engineer this a class system is builtin with the two gobal functions
class
,interface
. (can be required withrequire("lua-cmake.third_party.derFreemaker.class_system")
) - Metadata for all apis are included.