From ffecac1dd465db65aa763e4ec967b86d354ab71c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rimas=20Misevi=C4=8Dius?= Date: Sat, 20 Jul 2024 16:10:50 +0300 Subject: [PATCH] Update documentation after repository transfer to upa-url/upa (#55) --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 38acb49..64c2c09 100644 --- a/README.md +++ b/README.md @@ -64,14 +64,25 @@ target_link_libraries(exe-target PRIVATE upa::url) ```cmake include(FetchContent) FetchContent_Declare(upa - GIT_REPOSITORY "https://github.com/rmisev/url_whatwg" - GIT_TAG main + GIT_REPOSITORY https://github.com/upa-url/upa.git + GIT_SHALLOW TRUE + GIT_TAG v0.3.1 ) FetchContent_MakeAvailable(upa) ... target_link_libraries(exe-target PRIVATE upa::url) ``` +#### Embedding with CPM.cmake script + +If you are using the [CPM.cmake script](https://github.com/cpm-cmake/CPM.cmake) and have included it in your CMakeCMakeLists.txt, then: + +```cmake +CPMAddPackage("gh:upa-url/upa@0.3.1") +... +target_link_libraries(exe-target PRIVATE upa::url) +``` + ## Usage In source files, that use this library, the `upa/url.h` must be included: