mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 00:38:08 +08:00
doc: update example tag/version
This commit is contained in:
@@ -126,7 +126,7 @@ include(FetchContent)
|
|||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
toml11
|
toml11
|
||||||
GIT_REPOSITORY https://github.com/ToruNiina/toml11.git
|
GIT_REPOSITORY https://github.com/ToruNiina/toml11.git
|
||||||
GIT_TAG v4.1.0
|
GIT_TAG v4.3.0
|
||||||
)
|
)
|
||||||
FetchContent_MakeAvailable(toml11)
|
FetchContent_MakeAvailable(toml11)
|
||||||
|
|
||||||
@@ -141,14 +141,14 @@ After [adding cpm to your project](https://github.com/cpm-cmake/CPM.cmake?tab=re
|
|||||||
```cmake
|
```cmake
|
||||||
include(cmake/CPM.cmake)
|
include(cmake/CPM.cmake)
|
||||||
|
|
||||||
CPMAddPackage("gh:ToruNiina/toml11@4.2.0")
|
CPMAddPackage("gh:ToruNiina/toml11@4.3.0")
|
||||||
|
|
||||||
# OR
|
# OR
|
||||||
|
|
||||||
CPMAddPackage(
|
CPMAddPackage(
|
||||||
NAME toml11
|
NAME toml11
|
||||||
GITHUB_REPOSITORY "ToruNiina/toml11"
|
GITHUB_REPOSITORY "ToruNiina/toml11"
|
||||||
VERSION 4.2.0
|
VERSION 4.3.0
|
||||||
OPTIONS "TOML11_PRECOMPILE ON" # to pre-compile
|
OPTIONS "TOML11_PRECOMPILE ON" # to pre-compile
|
||||||
)
|
)
|
||||||
|
|
||||||
|
54
README_ja.md
54
README_ja.md
@@ -20,6 +20,12 @@ toml11は、C++11,14,17,20のための豊富な機能を持つTOML言語ライ
|
|||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
|
```toml
|
||||||
|
# example.toml
|
||||||
|
title = "an example toml file"
|
||||||
|
nums = [3, 1, 4, 1, 5] # pi!
|
||||||
|
```
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
#include <toml.hpp>
|
#include <toml.hpp>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@@ -71,16 +77,31 @@ int main()
|
|||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
- [Integration](#integration)
|
- [toml11](#toml11)
|
||||||
- [Features](#features)
|
- [Example](#example)
|
||||||
- [parsing a file](#parsing-a-file)
|
- [Table of Contents](#table-of-contents)
|
||||||
- [finding a value](#finding-a-value)
|
- [Integration](#integration)
|
||||||
- [comments](#comments)
|
- [Single Include File](#single-include-file)
|
||||||
- [error messages](#error-messages)
|
- [git submodule](#git-submodule)
|
||||||
- [serialization](#serialization)
|
- [CMake `FetchContent`](#cmake-fetchcontent)
|
||||||
- [Breaking Changes from v3](#changes-from-v3)
|
- [CMake Package Manager (CPM)](#cmake-package-manager-cpm)
|
||||||
- [Contributors](#contributors)
|
- [Install Using CMake](#install-using-cmake)
|
||||||
- [Licensing Terms](#licensing-terms)
|
- [Precompile Library](#precompile-library)
|
||||||
|
- [Building Example](#building-example)
|
||||||
|
- [Building Tests](#building-tests)
|
||||||
|
- [Features](#features)
|
||||||
|
- [Parsing a File](#parsing-a-file)
|
||||||
|
- [finding a value](#finding-a-value)
|
||||||
|
- [comments](#comments)
|
||||||
|
- [error messages](#error-messages)
|
||||||
|
- [serialization](#serialization)
|
||||||
|
- [Configuring Types](#configuring-types)
|
||||||
|
- [Examples](#examples)
|
||||||
|
- [Changes from v3](#changes-from-v3)
|
||||||
|
- [Breaking Changes](#breaking-changes)
|
||||||
|
- [Added features](#added-features)
|
||||||
|
- [Contributors](#contributors)
|
||||||
|
- [Licensing terms](#licensing-terms)
|
||||||
|
|
||||||
## Integration
|
## Integration
|
||||||
|
|
||||||
@@ -106,7 +127,7 @@ include(FetchContent)
|
|||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
toml11
|
toml11
|
||||||
GIT_REPOSITORY https://github.com/ToruNiina/toml11.git
|
GIT_REPOSITORY https://github.com/ToruNiina/toml11.git
|
||||||
GIT_TAG v4.0.3
|
GIT_TAG v4.3.0
|
||||||
)
|
)
|
||||||
FetchContent_MakeAvailable(toml11)
|
FetchContent_MakeAvailable(toml11)
|
||||||
|
|
||||||
@@ -121,7 +142,16 @@ target_link_libraries(main PRIVATE toml11::toml11)
|
|||||||
```cmake
|
```cmake
|
||||||
include(cmake/CPM.cmake)
|
include(cmake/CPM.cmake)
|
||||||
|
|
||||||
CPMAddPackage("gh:ToruNiina/toml11@4.1.0")
|
CPMAddPackage("gh:ToruNiina/toml11@4.3.0")
|
||||||
|
|
||||||
|
# OR
|
||||||
|
|
||||||
|
CPMAddPackage(
|
||||||
|
NAME toml11
|
||||||
|
GITHUB_REPOSITORY "ToruNiina/toml11"
|
||||||
|
VERSION 4.3.0
|
||||||
|
OPTIONS "TOML11_PRECOMPILE ON" # to pre-compile
|
||||||
|
)
|
||||||
|
|
||||||
add_executable(main main.cpp)
|
add_executable(main main.cpp)
|
||||||
target_link_libraries(main PUBLIC toml11::toml11)
|
target_link_libraries(main PUBLIC toml11::toml11)
|
||||||
|
Reference in New Issue
Block a user