mirror of
https://github.com/marzer/tomlplusplus.git
synced 2024-11-20 05:11:20 +00:00
Update README.md (#222)
This commit is contained in:
parent
482878fcd2
commit
a851257c49
@ -51,7 +51,7 @@ cpp = 17
|
|||||||
Reading it in C++ is easy with toml++:
|
Reading it in C++ is easy with toml++:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
#include <toml.hpp>
|
#include <toml++/toml.hpp>
|
||||||
|
|
||||||
auto config = toml::parse_file( "configuration.toml" );
|
auto config = toml::parse_file( "configuration.toml" );
|
||||||
|
|
||||||
@ -169,6 +169,7 @@ FetchContent_Declare(
|
|||||||
GIT_TAG v3.4.0
|
GIT_TAG v3.4.0
|
||||||
)
|
)
|
||||||
FetchContent_MakeAvailable(tomlplusplus)
|
FetchContent_MakeAvailable(tomlplusplus)
|
||||||
|
# Example add library: target_link_libraries(MyApp tomlplusplus::tomlplusplus)
|
||||||
```
|
```
|
||||||
|
|
||||||
> ℹ️ _[What is FetchContent?](https://cmake.org/cmake/help/latest/module/FetchContent.html)_
|
> ℹ️ _[What is FetchContent?](https://cmake.org/cmake/help/latest/module/FetchContent.html)_
|
||||||
|
Loading…
Reference in New Issue
Block a user