Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alxvth authored Nov 8, 2024
1 parent d4491fc commit 53ac8c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ExampleDependencies/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Exemplary setup for automatically installing runtime dependencies.

A plugin developer can use `mv_install_dependencies` to set up automatic plugin runtime dependency gathering and installation with this command:
```cmake
cmake_minimum_required(VERSION 3.21.0)
[...] // projet setup
mv_install_dependencies(${PROJECT_NAME} "hwy" "hwy_contrib")
```
Dependencies that are linked to our plugin `${PROJECT_NAME}` and found with `find_package` are automatically resolve (given that their respective cmake export files are nicely setup). This even works with dependency chains, as shown in this example: we link to Faiss, which in turn depends on Lapack and OpenBlas which in turn depends on other libraries.
Expand Down

0 comments on commit 53ac8c9

Please sign in to comment.