Skip to content

Commit dd45745

Browse files
committed
Update manual to reflect changes
1 parent 5797373 commit dd45745

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

manual.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -277,18 +277,27 @@ GLM does not depend on external libraries or headers such as `<GL/gl.h>`, [`<GL/
277277

278278
### <a name="section1_5"></a> 1.5. Finding GLM with CMake
279279

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`.
281281

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/`.
283283

284284
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:
285285

286286
```cmake
287-
set(glm_DIR <path to glm root>/cmake/glm) # if necessary
287+
set(glm_DIR <installation prefix>/lib/cmake/glm) # if necessary
288288
find_package(glm REQUIRED)
289289
target_link_libraries(<your executable> glm::glm)
290290
```
291291

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
293+
294+
```cmake
295+
add_subdirectory(glm)
296+
target_link_libraries(<your executable> glm::glm)
297+
# or
298+
target_include_directories(<your executable> glm)
299+
```
300+
292301
---
293302
<div style="page-break-after: always;"> </div>
294303

0 commit comments

Comments
 (0)