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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user