Skip to content

Commit 5889dae

Browse files
authored
Update README.md
add cmake fetch content instructions
1 parent 27ded8e commit 5889dae

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
parse date and times with {fmt} style into`std::chrono::time_point` {WIP}
44

5+
## Fetch library with CMake
6+
7+
```CMake
8+
include(FetchContent)
9+
10+
FetchContent_Declare(
11+
chrono_parse
12+
GIT_REPOSITORY https://github.com/mguludag/chrono_parse.git
13+
GIT_TAG main # or the specific tag or branch you want to use
14+
)
15+
16+
FetchContent_MakeAvailable(chrono_parse)
17+
18+
#...
19+
20+
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE mgutility::chrono_parse)
21+
```
22+
523
## [Usage](https://godbolt.org/z/cTK4977vP)
624

725
```C++

0 commit comments

Comments
 (0)