mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 03:19:00 +08:00
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:
parent
6f2fba24dc
commit
aaddcb1afb
@ -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
|
||||
|
||||
|
@ -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
9
ports/lua/usage
Normal 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
|
Loading…
Reference in New Issue
Block a user