vcpkg/ports/luafilesystem/CMakeLists.txt
Stephen E. Baker 46d0f05e2d
[luafilesystem][lpeg] Bump versions (#11554)
* Bump luafilesytem to 1.8.0 and lpeg to 1.0.2

* Code review changes for lpeg / luafilesystem

* [lpeg][luafilesystem] Remove windows only gates

* Remove failures from baseline
2020-05-26 21:32:47 -07:00

18 lines
495 B
CMake

cmake_minimum_required(VERSION 3.0)
project(luafilesystem)
find_path(LUA_INCLUDE_DIR lua.h PATH_SUFFIXES lua)
find_library(LUA_LIBRARY lua)
set(LFS_INCLUDES ${LUA_INCLUDE_DIR})
set(LFS_LIBRARIES ${LUA_LIBRARY})
add_library( lfs src/lfs.h src/lfs.c src/lfs.def)
target_include_directories(lfs PRIVATE ${LFS_INCLUDES})
target_link_libraries(lfs PRIVATE ${LFS_LIBRARIES})
install(TARGETS lfs
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)