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: manual.md
+12-3
Original file line number
Diff line number
Diff line change
@@ -277,18 +277,27 @@ GLM does not depend on external libraries or headers such as `<GL/gl.h>`, [`<GL/
277
277
278
278
### <aname="section1_5"></a> 1.5. Finding GLM with CMake
279
279
280
-
GLM provides the CMake package configuration files `glmConfig.cmake` and `glmConfig-version.cmake`.
280
+
When installed, GLM provides the CMake package configuration files `glmConfig.cmake` and `glmConfigVersion.cmake`.
281
281
282
-
To use these configurations files, you may need to set the `glm_DIR` variable to the directory containing the configuration files `<path to glm root>/cmake/glm/`.
282
+
To use these configurations files, you may need to set the `glm_DIR` variable to the directory containing the configuration files `<installation prefix>/lib/cmake/glm/`.
283
283
284
284
Use the `find_package` CMake command to load the configurations into your project. Lastly, either link your executable against the `glm::glm` target or add `${GLM_INCLUDE_DIRS}` to your target's include directories:
285
285
286
286
```cmake
287
-
set(glm_DIR <path to glm root>/cmake/glm) # if necessary
287
+
set(glm_DIR <installation prefix>/lib/cmake/glm) # if necessary
288
288
find_package(glm REQUIRED)
289
289
target_link_libraries(<your executable> glm::glm)
290
290
```
291
291
292
+
To use GLM as a submodule in a project instead, use `add_subdirectory` to expose the same target, or add the directory to your target's
0 commit comments