Add post-build usage info for Lua port. (#9934)

* Add post-build usage info for Lua port.

* Fix CMake command that moves info file

* Update Lua package version number
This commit is contained in:
paul-reilly 2020-02-06 19:07:19 +00:00 committed by GitHub
parent 6f2fba24dc
commit aaddcb1afb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View File

@ -1,5 +1,5 @@
Source: lua
Version: 5.3.5-2
Version: 5.3.5-3
Homepage: https://www.lua.org
Description: a powerful, fast, lightweight, embeddable scripting language

View File

@ -51,4 +51,6 @@ vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/lua)
# Handle copyright
file(COPY ${CMAKE_CURRENT_LIST_DIR}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/lua/copyright)
# Handle post-build CMake instructions
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/lua)
vcpkg_copy_pdbs()

9
ports/lua/usage Normal file
View File

@ -0,0 +1,9 @@
Use this package via the module FindLua that comes with CMake. To use in your CMakeLists.txt:
include(FindLua)
find_package(lua REQUIRED)
target_link_libraries(main PRIVATE ${LUA_LIBRARIES})
target_include_directories(main PRIVATE ${LUA_INCLUDE_DIR})
For more information about the variables set by this module, please see:
https://cmake.org/cmake/help/latest/module/FindLua.html