Skip to content

Commit

Permalink
3rd: glm
Browse files Browse the repository at this point in the history
Signed-off-by: Zone.N <Zone.Niuzh@hotmail.com>
  • Loading branch information
MRNIU committed Nov 7, 2023
1 parent 7cef114 commit eae637b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: |
sudo apt update
sudo apt install --fix-missing -y doxygen graphviz clang-format clang-tidy cppcheck lcov
sudo apt install --fix-missing -y gcc g++ libspdlog-dev libcgal-dev freeglut3-dev libboost-all-dev libvtk9-dev qtbase5-dev xorg-dev libglu1-mesa-dev
sudo apt install --fix-missing -y gcc g++ libspdlog-dev libcgal-dev freeglut3-dev libboost-all-dev libvtk9-dev qtbase5-dev xorg-dev libglu1-mesa-dev libglm-dev
- name: Build
run: |
Expand All @@ -69,7 +69,7 @@ jobs:

- name: Install dependencies
run: |
brew install doxygen graphviz llvm cppcheck lcov spdlog boost freeglut glfw vtk cgal
brew install doxygen graphviz llvm cppcheck lcov spdlog boost freeglut glfw vtk cgal glm
ln -s "$(brew --prefix llvm)/bin/clang-format" "/usr/local/bin/clang-format"
ln -s "$(brew --prefix llvm)/bin/clang-tidy" "/usr/local/bin/clang-tidy"
Expand Down
16 changes: 7 additions & 9 deletions cmake/3rd.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,6 @@ CPMAddPackage(
"GLFW_BULID_DOCS OFF"
)

# https://github.com/g-truc/glm
set(gRPC_INSTALL ON CACHE BOOL "")
set(gRPC_BUILD_TESTS OFF CACHE BOOL "")
CPMAddPackage(
NAME glm
GITHUB_REPOSITORY g-truc/glm
GIT_TAG 0.9.9.8
)

# https://github.com/TheLartians/PackageProject.cmake
CPMAddPackage("gh:TheLartians/PackageProject.cmake@1.11.0")

Expand Down Expand Up @@ -228,3 +219,10 @@ if (NOT VTK_FOUND)
message(FATAL_ERROR "VTK not found.\n"
"Following https://vtk.org/ to install.")
endif ()

find_package(glm REQUIRED)
if (NOT glm_FOUND)
message(FATAL_ERROR "glm not found.\n"
"Following https://vtk.org/ to install.")
endif ()
# target_link_libraries(<your executable> glm::glm)
4 changes: 2 additions & 2 deletions deps.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

ubuntu
```shell
sudo apt install -y doxygen graphviz clang-format clang-tidy cppcheck lcov gcc g++ libspdlog-dev libcgal-dev freeglut3-dev libboost-all-dev libvtk9-dev qtbase5-dev xorg-dev libglu1-mesa-dev
sudo apt install -y doxygen graphviz clang-format clang-tidy cppcheck lcov gcc g++ libspdlog-dev libcgal-dev freeglut3-dev libboost-all-dev libvtk9-dev qtbase5-dev xorg-dev libglu1-mesa-dev libglm-dev
```

osx
```shell
brew install doxygen graphviz llvm cppcheck lcov spdlog freeglut boost glfw vtk cgal
brew install doxygen graphviz llvm cppcheck lcov spdlog freeglut boost glfw vtk cgal glm

```

0 comments on commit eae637b

Please sign in to comment.