File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,18 @@ depends: [
115
115
vcpkg install tomlplusplus
116
116
```
117
117
118
+ ### CMake FetchContent
119
+ ```
120
+ include (FetchContent)
121
+ FetchContent_Declare (
122
+ tomlplusplus
123
+ GIT_REPOSITORY https://github.com/marzer/tomlplusplus.git
124
+ GIT_TAG 0fcbfbe655917738c39321fcbcbdc7b048a40e33
125
+ )
126
+ FetchContent_MakeAvailable (tomlplusplus)
127
+ ```
128
+ > ℹ️ _[What is FetchContent?](https://cmake.org/cmake/help/latest/module/FetchContent.html)_
129
+
118
130
### Other environments and package managers
119
131
`toml++` is a fairly new project and I'm not up-to-speed with all of the available packaging and integration options
120
132
in the modern C++ ecosystem. I'm also a cmake novice, for better or worse. If there's an integration option missing be
Original file line number Diff line number Diff line change 466
466
///
467
467
//////////////////////////////////
468
468
///
469
+ /// \subsection mainpage-adding-lib-cmake-fetch-content CMake FetchContent
470
+ /// \bash
471
+ /// include(FetchContent)
472
+ /// FetchContent_Declare(
473
+ /// tomlplusplus
474
+ /// GIT_REPOSITORY https://github.com/marzer/tomlplusplus.git
475
+ /// GIT_TAG 0fcbfbe655917738c39321fcbcbdc7b048a40e33
476
+ /// )
477
+ /// FetchContent_MakeAvailable(tomlplusplus)
478
+ /// \ebash
479
+ ///
480
+ /// \see [What is FetchContent?](https://cmake.org/cmake/help/latest/module/FetchContent.html)
481
+ ///
482
+ //////////////////////////////////
483
+ ///
469
484
/// \subsection mainpage-adding-lib-other Other environments and package managers
470
485
/// toml++ is a fairly new project and I'm not up-to-speed with all of the available packaging and integration options
471
486
/// in the modern C++ ecosystem. I'm also a cmake novice, for better or worse. If there's an integration option missing
You can’t perform that action at this time.
0 commit comments