Skip to content

Commit

Permalink
Update documentation after repository transfer to upa-url/upa (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmisev authored Jul 20, 2024
1 parent 8354307 commit ffecac1
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ffecac1

Please sign in to comment.