Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/henrygerardmoore/grav
N-body gravity simulator
https://github.com/henrygerardmoore/grav
cmake conan cpp eigen entt quill sfml
Last synced: 23 days ago
JSON representation
N-body gravity simulator
- Host: GitHub
- URL: https://github.com/henrygerardmoore/grav
- Owner: henrygerardmoore
- Created: 2024-04-15T22:52:31.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-18T19:55:54.000Z (9 months ago)
- Last Synced: 2024-10-10T19:22:38.644Z (3 months ago)
- Topics: cmake, conan, cpp, eigen, entt, quill, sfml
- Language: C++
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# grav
https://github.com/henrygerardmoore/grav/assets/44307180/ba8dc1bc-df7a-4407-86e5-d2142297b42f
N-body gravity simulator using C++, EnTT, SFML, CMake, Quill, Eigen, and Conan
## Building
### Requirements
- [Conan 2](https://docs.conan.io/2/installation.html), then use the following commands
- [CMake](https://cmake.org/download/)If you are using vscode, you can copy the `.vscode_recommended` folder to `.vscode` and use those (as defaults or as-is) to build.
Or, you can build and install with
```bash
conan install . -of . --build=missing
source build/Release/generators/conanbuild.sh
cmake --preset conan-release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake --build --preset conan-release --parallel
```Then run with `./build/Release/grav`.
## Contributing
Feel free to open an issue (feature requests, bugs, or bad code that needs to be cleaned up) or make a pull request!
If you want to make a pull request, please [install pre-commit](https://pre-commit.com/#install) and run `pre-commit install` in the directory prior to making your pull request (until CI is set up).