Skip to content

Commit

Permalink
build: update cmake build system
Browse files Browse the repository at this point in the history
Signed-off-by: NZH <[email protected]>
  • Loading branch information
MRNIU committed Oct 31, 2023
1 parent 5eecf66 commit 2513e06
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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
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
- name: Build
run: |
Expand All @@ -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
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
- name: Build
run: |
Expand All @@ -69,7 +69,7 @@ jobs:

- name: Install dependencies
run: |
brew install doxygen graphviz llvm cppcheck lcov
brew install doxygen graphviz llvm cppcheck lcov spdlog boost freeglut glfw
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"
brew install gcc g++ sdl2 sdl2_ttf libomp
Expand Down
8 changes: 7 additions & 1 deletion deps.md
Original file line number Diff line number Diff line change
@@ -1,5 +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
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
```

osx
```shell
brew install doxygen graphviz llvm cppcheck lcov spdlog freeglut boost

```
5 changes: 2 additions & 3 deletions src/demo2d/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
Boost::headers
Boost::dynamic_linking
CGAL
Eigen
GLUT::GLUT
glfw
glm
Eigen
OpenGL::GL
glut
GLU
OpenGL::GLU
)

0 comments on commit 2513e06

Please sign in to comment.