17 lines
512 B
Markdown
17 lines
512 B
Markdown
# CMake Fetch example
|
|
|
|

|
|

|
|

|
|
|
|
|
|
Here is an example of the cmake fetch if the `find_package()` cannot be used. Fetch is useful when building custom version of popular libraries.
|
|
|
|
## Building
|
|
|
|
In the root directory launch the following:
|
|
```bash
|
|
mkdir build && cd build
|
|
cmake ..
|
|
cmake --build .
|
|
```
|