mirror of
https://github.com/g-truc/glm.git
synced 2025-04-10 07:18:54 +00:00
Update readme
This commit is contained in:
parent
013b2f47fe
commit
7ffd4d2704
1 changed files with 34 additions and 0 deletions
34
readme.md
34
readme.md
|
@ -49,6 +49,40 @@ glm::mat4 camera(float Translate, glm::vec2 const& Rotate)
|
|||
| ------- | ------ |
|
||||
| [GitHub actions](https://github.com/g-truc/glm/actions)| [](https://github.com/g-truc/glm/actions/workflows/ci.yml)
|
||||
|
||||
## Build and Install
|
||||
|
||||
```shell
|
||||
cd /path/to/glm
|
||||
cmake \
|
||||
-DGLM_BUILD_TESTS=OFF \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-B build .
|
||||
cmake --build build -- all
|
||||
cmake --build build -- install
|
||||
```
|
||||
|
||||
Passing `-DBUILD_SHARED_LIBS=ON` to build shared library
|
||||
|
||||
And then in your `CMakeLists.txt`:
|
||||
|
||||
```cmake
|
||||
find_package(glm CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE glm::glm)
|
||||
```
|
||||
|
||||
If your perfer to use header-only version of GLM
|
||||
|
||||
```cmake
|
||||
find_package(glm CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE glm::glm-header-only)
|
||||
```
|
||||
|
||||
## Vcpkg
|
||||
|
||||
```shell
|
||||
vcpkg install glm
|
||||
```
|
||||
|
||||
## Release notes
|
||||
|
||||
### [GLM 0.9.9.9](https://github.com/g-truc/glm/releases/tag/0.9.9.9) - 2024-01-XX
|
||||
|
|
Loading…
Add table
Reference in a new issue