lunarmodules / luafilesystem

LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution.
https://lunarmodules.github.io/luafilesystem/
MIT License
900 stars 291 forks source link

add cmake #131

Closed sonoro1234 closed 4 years ago

sonoro1234 commented 4 years ago

This allows building with

cmake -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLUA_LIB=c:/anima/lua51.dll -DLUA_INC=C:/supercolliderrepos/Lua2SC/lua-5.1.5/src -DLUA_LIBDIR=c:/anima ../../luafilesystem

mingw32-make install

Of course it will work with other compilers, system, toolchains setting LUA_LIB LUA_INC LUA_LIBDIR

and using make install, nmake install or whatever

Tested on win32 mingw, win32 nmake(MSVC) and linux gcc

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 80.234% when pulling bcbefe7dd56ced1783d55e0ce89910968f1e7634 on sonoro1234:cmake into 04bdaf9a1eb1406f83321e98daf08b0f06a8401b on keplerproject:master.

sonoro1234 commented 4 years ago

coveralls seems not a person @hishamhm has something to say?

hishamhm commented 4 years ago

This package builds on all platforms with luarocks using builtin mode. There are no plans to support additional build systems, sorry!