diff --git a/README.md b/README.md index 213076f..534d98c 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,16 @@ By default CMake will use the pre-generated bindings that are include in the pro Build Dependencies ------------------ -Optional dependency for re-generating Lua bindings from `*.nobj.lua` files: +Optional dependencies for re-generating Lua bindings from `*.nobj.lua` files: -* [LuaNativeObjects](https://github.com/Neopallium/LuaNativeObjects), this is the bindings generator used to convert the `*.nobj.lua` files into a native Lua module. +* [LuaNativeObjects](https://github.com/Neopallium/LuaNativeObjects), this is the bindings generator used to convert the `*.nobj.lua` files into a native Lua module. To use it, there are two options: + - clone the repository to ../LuaNativeObjects; or + - install the LuaRocks packages: + - `luanativeobjects` + - `luanativeobjects-luadoc` (only if also generating docs) +- [`lua-json`](https://github.com/neoxic/lua-json) + +Optional dependency for generating docs: + +- [`ldoc`](https://lunarmodules.github.io/ldoc/) diff --git a/cmake/LuaNativeObjects.cmake b/cmake/LuaNativeObjects.cmake index d7a090a..f1cea42 100644 --- a/cmake/LuaNativeObjects.cmake +++ b/cmake/LuaNativeObjects.cmake @@ -2,8 +2,9 @@ # Lua Native Objects # -find_program(LUA_NATIVE_OBJECTS_EXECUTABLE native_objects.lua - PATHS ${CMAKE_SOURCE_DIR}/../LuaNativeObjects +find_program(LUA_NATIVE_OBJECTS_EXECUTABLE + NAMES native_objects.lua native_objects + PATHS ${CMAKE_SOURCE_DIR}/../LuaNativeObjects ENV PATH DOC "LuaNativeObjects executable path") set(USE_PRE_GENERATED_BINDINGS TRUE CACHE BOOL "Set this to FALSE to re-generate bindings using LuaNativeObjects")