mirror of
https://github.com/marzer/tomlplusplus.git
synced 2024-10-02 21:12:24 +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++:
|
||||
|
||||
```cpp
|
||||
#include <toml.hpp>
|
||||
#include <toml++/toml.hpp>
|
||||
|
||||
auto config = toml::parse_file( "configuration.toml" );
|
||||
|
||||
@ -169,6 +169,7 @@ FetchContent_Declare(
|
||||
GIT_TAG v3.4.0
|
||||
)
|
||||
FetchContent_MakeAvailable(tomlplusplus)
|
||||
# Example add library: target_link_libraries(MyApp tomlplusplus::tomlplusplus)
|
||||
```
|
||||
|
||||
> ℹ️ _[What is FetchContent?](https://cmake.org/cmake/help/latest/module/FetchContent.html)_
|
||||
|
Loading…
Reference in New Issue
Block a user