mirror of
https://github.com/marzer/tomlplusplus.git
synced 2025-02-23 18:40:04 +00:00
Added CMake FetchContent + tar archive downloading (#103)
This commit is contained in:
parent
a9262c672f
commit
7bf8c03f7a
11
README.md
11
README.md
@ -114,6 +114,17 @@ vcpkg install tomlplusplus
|
||||
```
|
||||
|
||||
### CMake FetchContent
|
||||
Using the tar archive
|
||||
```
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
tomlplusplus
|
||||
URL https://github.com/marzer/tomlplusplus/archive/refs/tags/v2.4.0.tar.gz
|
||||
URL_HASH MD5=546d163e5f37d9bbdc5e19702aaaac8f
|
||||
)
|
||||
FetchContent_MakeAvailable(tomlplusplus)
|
||||
```
|
||||
Using the git tag
|
||||
```
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
|
@ -455,6 +455,19 @@
|
||||
//////////////////////////////////
|
||||
///
|
||||
/// \subsection mainpage-adding-lib-cmake-fetch-content CMake FetchContent
|
||||
///
|
||||
/// Using the tar archive
|
||||
/// \bash
|
||||
/// include(FetchContent)
|
||||
/// FetchContent_Declare(
|
||||
/// tomlplusplus
|
||||
/// URL https://github.com/marzer/tomlplusplus/archive/refs/tags/v2.4.0.tar.gz
|
||||
/// URL_HASH MD5=546d163e5f37d9bbdc5e19702aaaac8f
|
||||
/// )
|
||||
/// FetchContent_MakeAvailable(tomlplusplus)
|
||||
/// \ebash
|
||||
///
|
||||
/// Using the git tag
|
||||
/// \bash
|
||||
/// include(FetchContent)
|
||||
/// FetchContent_Declare(
|
||||
|
Loading…
x
Reference in New Issue
Block a user