mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 10:08:59 +08:00
0f7284c035
Fixes #38340 - [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [ ] ~SHA512s are updated for each updated download.~ - [ ] ~The "supports" clause reflects platforms that may be fixed by this new version.~ - [ ] ~Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file.~ - [ ] ~Any patches that are no longer applied are deleted from the port's directory.~ - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file.
14 lines
415 B
Plaintext
14 lines
415 B
Plaintext
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)
|