You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-3Lines changed: 26 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -70,9 +70,9 @@ Then remember to properly configure your compiler include paths.
70
70
*[Conan](https://conan.io): read [here](https://conan.io/center/recipes/clove-unit) for details on how to import it.
71
71
72
72
### Using CMake
73
-
In case you still need dependency management, but you want to avoid Package Manager configuration complexity, you can use standard mechansim provided by `CMake` such as [FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html) and [add_subdirectory](https://cmake.org/cmake/help/latest/command/add_subdirectory.html).
73
+
In case you still need dependency management, but you want to avoid Package Manager configuration complexity, you can use standard mechansim provided by `CMake` such as [FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html), [add_subdirectory](https://cmake.org/cmake/help/latest/command/add_subdirectory.html) and [find_package](https://cmake.org/cmake/help/latest/command/find_package.html).
First download `CLove-Unit` repository and then point properly to it like this:
100
100
@@ -108,6 +108,29 @@ Here a few examples:
108
108
target_link_libraries(tests clove-unit)
109
109
```
110
110
111
+
***find_package**
112
+
113
+
First download `CLove-Unit` repository and then run cmake install command on it.
114
+
115
+
Package will be installed in at following path: `<CMAKE_INSTALL_PREFIX/clove-unit/<CLOVE_VERSION>`
116
+
117
+
Eventually you may want to customize [CMAKE_INSTALL_PREFIX](https://cmake.org/cmake/help/latest/variable/CMAKE_INSTALL_PREFIX.html) variable to override cmake default installation path for packages.
0 commit comments