Skip to content

Commit

Permalink
Added description for fetching glm with cmake in readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
uspiritwolf authored and christophe-lunarg committed Jan 20, 2024
1 parent f86092a commit 673a963
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,26 @@ target_link_libraries(main PRIVATE glm::glm-header-only)
vcpkg install glm
```

## CMake using FetchContent
You can add glm to your CMake project to be built together.

Add to the `CMakeLists.txt` file:
```cmake
cmake_minimum_required(VERSION 3.11) # FetchContent is new in version 3.11.
include(FetchContent)
FetchContent_Declare(
glm
GIT_REPOSITORY https:/g-truc/glm.git
GIT_TAG bf71a834948186f4097caa076cd2663c69a10e1e #refs/tags/0.9.9.8
)
FetchContent_MakeAvailable(glm)
target_link_libraries(main PRIVATE glm::glm)
```

## Release notes

### [GLM 0.9.9.9](https:/g-truc/glm/releases/tag/0.9.9.9) - 2024-01-XX
Expand Down

0 comments on commit 673a963

Please sign in to comment.