Added cmake support (#11)

* Update README.md

* added submodules

* moved submodules to release tag

* fix include for fixed width integer

* added cmake support and build instruction

* Update README.md

* fix cmake links

* upd CMakeLists.txt
This commit is contained in:
Che10VeK
2023-08-02 05:44:09 +03:00
committed by GitHub
parent d535c74f6d
commit 30ad8385c9
7 changed files with 63 additions and 0 deletions
+16
View File
@@ -12,6 +12,16 @@
`$ ./voxel_engine`
#### Build with CMake
```sh
git clone --recursive https://github.com/MihailRis/VoxelEngine-Cpp.git
cd VoxelEngine-Cpp
mkdir build
cd build
cmake ../
cmake --build .
```
## Instal libs:
#### Debian-based distro:
`$ sudo apt install libglfw3-dev libglfw3 libglew-dev libglm-dev libpng-dev libopenal-dev`
@@ -19,6 +29,12 @@
#### RHEL-based distro:
`$ sudo dnf install glfw-devel glfw glew-devel glm-devel libpng-devel openal-devel`
#### Arch-based distro:
If you use X11
`$ sudo pacman -S glfw-x11 glew glm libpng openal`
If you use Wayland
`$ sudo pacman -S glfw-wayland glew glm libpng openal`
# Note for MinGW compiling:
To fix problem with `#include <mingw.thread.h>` get headers `mingw.thread.h` and `mingw.invoke.h` from: