git clone https://github.com/YGXXD/ktm.git
cd ktm
cmake -S . -B ./build
cmake --install build --config Releasegit clone https://github.com/YGXXD/ntr.git
cd ntr
cmake -S . -B ./build
cmake --build build --config Release
cmake --install build --config Release# macos
brew install lua
# linux
apt-get install lua5.4 liblua5.4-dev
# windows
scoop install luacmake -S . -B ./build
cmake --build build --config Release-- test.lua
package.cpath = './build/?.so;./build/?.dylib;./build/?.dll;'..package.cpath
local ktm = require("ktm")
local vec0 = ktm.fvec3.create(1, 2, 3)
local vec1 = ktm.fvec3.create(4, 5, 6)
print(vec0 + vec1)ktm-lua使用MIT许可证,详细信息请参见LICENSE文件。