diff --git a/README.md b/README.md index af5468e..3f2bfd0 100644 --- a/README.md +++ b/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( diff --git a/docs/pages/main_page.dox b/docs/pages/main_page.dox index d9d0382..227d2d8 100644 --- a/docs/pages/main_page.dox +++ b/docs/pages/main_page.dox @@ -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(