Shout-out to Walter Schell and Walter
Schell's repo.
Main reason behind this repo is to make new CMake file based on Walter Schell's one, but with shared library build option.
Because BLOB
in the repository is not what makes me happy.
Plus I use git submodule feature and official repo as submodule.
And, as I said before, to make shared library build possible.
It's 5.4.4.
Not much. Ubuntu 21.04 works. MINGW and MacOS might work.
Visual studio...
Flag | Meaning | Default |
---|---|---|
-DLUA_BUILD_BINARY |
Build lua interpreter. Builds static library as a dependency |
OFF |
-DLUA_BUILD_SHARED |
Build shared library | ON |
-DLUA_BUILD_STATIC |
Build static library | ON |
-DLUA_BUILD_AS_CXX |
Build library as C++ | ON |
git submodule add https://github.com/Kepler-Br/LuaCMake Lua
And then
git submodule update --init --recursive --progress
add_subdirectory(Lua)
# Shared version
target_link_libraries(<YOURTARGET> lua::shared)
# Static version
target_link_libraries(<YOURTARGET> lua::static)