Added CMake FetchContent information

This commit is contained in:
Evgeny Proydakov 2021-05-19 13:24:25 +03:00 committed by GitHub
parent a29ecda102
commit ac923d81bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 0 deletions

View File

@ -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

View File

@ -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