Skip to content

Commit b273cef

Browse files
authored
Update README.md
1 parent 907bac5 commit b273cef

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ This library is inspired by [Rust Traits](https://doc.rust-lang.org/book/ch10-02
1919
*traits* is a single header C++20 library. To use the library, make sure you meet the [minimum requirements](#minimum-requirements) and just include the header file [traits.h](https://github.com/VolumeGraphics/traits/blob/main/include/traits.h) in your source code.
2020
Alternatively, you can first try it out in [Compiler Explorer](https://godbolt.org/z/be31xGjrK).
2121

22-
CMake projects might build, install and use `find_package(traits)` or just fetch its content like here: https://github.com/VolumeGraphics/traits/blob/dc18223f46b47ae1d0cfd363aa6db9a98662faf0/examples/CMakeLists.txt#L7-L10
22+
CMake projects might build, install and `find_package(traits)` or use fetch content:
23+
24+
```cmake
25+
include(FetchContent)
26+
FetchContent_Declare(traits URL https://github.com/VolumeGraphics/traits/releases/latest/download/Traits.zip)
27+
FetchContent_MakeAvailable(traits)
28+
```
2329

2430
There are currently no plans to support [vcpkg](https://learn.microsoft.com/en-us/vcpkg/get_started/overview) or [conan](https://conan.io/), as I do not recommend using the library in a productive environment ([see below](#motivation)).
2531

0 commit comments

Comments
 (0)