forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@PACKAGE_INIT@ | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/unofficial-lpeg-targets.cmake") | ||
set(UNOFFICIAL_LPEG_LUA_FILES "${PACKAGE_PREFIX_DIR}/share/lua/re.lua") | ||
check_required_components(lpeg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
lpeg provides CMake targets: | ||
|
||
find_package(unofficial-lpeg CONFIG REQUIRED) | ||
target_link_libraries(main PRIVATE unofficial::lpeg::lpeg) | ||
|
||
UNOFFICIAL_LPEG_LUA_FILES will be set to the path of re.lua | ||
|
||
add_custom_command(TARGET main POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy | ||
${UNOFFICIAL_LPEG_LUA_FILES} | ||
$<TARGET_FILE_DIR:main>) | ||
|
||
install(FILES ${UNOFFICIAL_LPEG_LUA_FILES} DESTINATION my_lua_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
{ | ||
"name": "lpeg", | ||
"version": "1.1.0", | ||
"port-version": 1, | ||
"description": "LPeg is a pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs).", | ||
"homepage": "https://www.inf.puc-rio.br/~roberto/lpeg", | ||
"license": "MIT", | ||
"dependencies": [ | ||
"lua", | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
}, | ||
{ | ||
"name": "vcpkg-cmake-config", | ||
"host": true | ||
} | ||
] | ||
} |