From dd457459b22d56ec2afc65b2b552013d4b212a05 Mon Sep 17 00:00:00 2001 From: Krzysztof Kurek Date: Sun, 31 Jan 2021 14:10:15 +0100 Subject: [PATCH] Update manual to reflect changes --- manual.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/manual.md b/manual.md index 9267a08f..f98c24b8 100644 --- a/manual.md +++ b/manual.md @@ -277,18 +277,27 @@ GLM does not depend on external libraries or headers such as ``, [` 1.5. Finding GLM with CMake -GLM provides the CMake package configuration files `glmConfig.cmake` and `glmConfig-version.cmake`. +When installed, GLM provides the CMake package configuration files `glmConfig.cmake` and `glmConfigVersion.cmake`. -To use these configurations files, you may need to set the `glm_DIR` variable to the directory containing the configuration files `/cmake/glm/`. +To use these configurations files, you may need to set the `glm_DIR` variable to the directory containing the configuration files `/lib/cmake/glm/`. 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: ```cmake -set(glm_DIR /cmake/glm) # if necessary +set(glm_DIR /lib/cmake/glm) # if necessary find_package(glm REQUIRED) target_link_libraries( glm::glm) ``` +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 + +```cmake +add_subdirectory(glm) +target_link_libraries( glm::glm) +# or +target_include_directories( glm) +``` + ---