-
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.
Update documentation after repository transfer to upa-url/upa (#55)
- Loading branch information
Showing
1 changed file
with
13 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected]") | ||
... | ||
target_link_libraries(exe-target PRIVATE upa::url) | ||
``` | ||
|
||
## Usage | ||
|
||
In source files, that use this library, the `upa/url.h` must be included: | ||
|