1.4 KiB
Building
Windows
Visual Studio with vcpkg
Use vcpkg
to install packages. See https://github.com/Microsoft/vcpkg
> git clone https://github.com/Microsoft/vcpkg.git
> cd vcpkg
PS> .\bootstrap-vcpkg.bat
Linux:~/$ ./bootstrap-vcpkg.sh
.\vcpkg integrate install
You will want to install the following packages as follows:
vcpkg install sdl2:x64-windows glm:x64-windows glew:x64-windows boost:x64-windows
Then you can open the directory in Visual Studio and it will be recognised as a CMake project.
Whether you use the open folder functionality or call cmake
on the command line you will need to
set the toolchain file to the vcpkg
one. This lives in the vcpkg
directory under scripts\buildsystems\vcpkg.cmake
Note that if you do vcpkg integrate install
then you don't need to set the toolchain when using visual studio 2019
Qt specifics
Installing Qt from the installer requires some mods to work. The path to Qt is hardcoded in the cmake file for the moment and when running from Visual Studio Code you need something like the following in the launch config so that the DLLs are found.
"env": {
"path": "C:\\Qt\\6.0.2\\msvc2019_64\\bin;%PATH%"
}
Linux
CMake
From the base directory:
mkdir build
cd build
cmake ..
make -j$(nproc)