MohammadFakhreddin / CrazyTankGame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to install dependencies

You need to install vulkan and sdl.

using vcpkg

To install vcpkg:

https://vcpkg.io/en/getting-started.html

To install vulkan:

vcpkg install vulkan:x64-windows

For linux replace the windows with linux

To install sdl2:

vcpkg install sdl2[vulkan] --triplet x64-windows

For linux replace the windows with linux

vcpkg install sdl2[vulkan]

Add vcpkg to toochain and then run

cmake .. -DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake

How to build

Create a directory a build directory instead the project folder and change directory to that folder then execute following command:

For make, ninja, etc

For release build:

cmake -DCMAKE_BUILD_TYPE=Release ..

For debug build:

cmake -DCMAKE_BUILD_TYPE=Debug ..

For visual studio

cmake ..

You can use visual studio (recommended) or ninja on windows and make on linux to run the project.

About


Languages

Language:C++ 92.3%Language:C 7.1%Language:CMake 0.4%Language:HLSL 0.1%