mirror of
https://github.com/marzer/tomlplusplus.git
synced 2024-09-04 05:59:37 +00:00
Added CMake FetchContent information
This commit is contained in:
parent
a29ecda102
commit
ac923d81bb
12
README.md
12
README.md
@ -115,6 +115,18 @@ depends: [
|
||||
vcpkg install tomlplusplus
|
||||
```
|
||||
|
||||
### CMake FetchContent
|
||||
```
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
tomlplusplus
|
||||
GIT_REPOSITORY https://github.com/marzer/tomlplusplus.git
|
||||
GIT_TAG 0fcbfbe655917738c39321fcbcbdc7b048a40e33
|
||||
)
|
||||
FetchContent_MakeAvailable(tomlplusplus)
|
||||
```
|
||||
> ℹ️ _[What is FetchContent?](https://cmake.org/cmake/help/latest/module/FetchContent.html)_
|
||||
|
||||
### Other environments and package managers
|
||||
`toml++` is a fairly new project and I'm not up-to-speed with all of the available packaging and integration options
|
||||
in the modern C++ ecosystem. I'm also a cmake novice, for better or worse. If there's an integration option missing be
|
||||
|
@ -466,6 +466,21 @@
|
||||
///
|
||||
//////////////////////////////////
|
||||
///
|
||||
/// \subsection mainpage-adding-lib-cmake-fetch-content CMake FetchContent
|
||||
/// \bash
|
||||
/// include(FetchContent)
|
||||
/// FetchContent_Declare(
|
||||
/// tomlplusplus
|
||||
/// GIT_REPOSITORY https://github.com/marzer/tomlplusplus.git
|
||||
/// GIT_TAG 0fcbfbe655917738c39321fcbcbdc7b048a40e33
|
||||
/// )
|
||||
/// FetchContent_MakeAvailable(tomlplusplus)
|
||||
/// \ebash
|
||||
///
|
||||
/// \see [What is FetchContent?](https://cmake.org/cmake/help/latest/module/FetchContent.html)
|
||||
///
|
||||
//////////////////////////////////
|
||||
///
|
||||
/// \subsection mainpage-adding-lib-other Other environments and package managers
|
||||
/// toml++ is a fairly new project and I'm not up-to-speed with all of the available packaging and integration options
|
||||
/// in the modern C++ ecosystem. I'm also a cmake novice, for better or worse. If there's an integration option missing
|
||||
|
Loading…
Reference in New Issue
Block a user