mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 02:04:35 +00:00
Update readme
This commit is contained in:
parent
46b796dd79
commit
89850e6f4b
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)| [![.github/workflows/ci.yml](https://github.com/g-truc/glm/actions/workflows/ci.yml/badge.svg)](https://github.com/g-truc/glm/actions/workflows/ci.yml)
|
| [GitHub actions](https://github.com/g-truc/glm/actions)| [![.github/workflows/ci.yml](https://github.com/g-truc/glm/actions/workflows/ci.yml/badge.svg)](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
|
## Release notes
|
||||||
|
|
||||||
### [GLM 0.9.9.9](https://github.com/g-truc/glm/releases/tag/0.9.9.9) - 2024-01-XX
|
### [GLM 0.9.9.9](https://github.com/g-truc/glm/releases/tag/0.9.9.9) - 2024-01-XX
|
||||||
|
Loading…
Reference in New Issue
Block a user