Experimental implementation of the Snowblind engine
This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2023-10-28 04:48:05 +13:00
buildscripts starting world reading 2021-04-01 23:49:11 +01:00
CuttownTest Readded the Linux linker settings I forgot, updated readme 2023-10-28 04:48:05 +13:00
snowlib (Used Razzy's credentials by accident the first time) Fix includes 2023-10-23 17:55:23 +13:00
snowlib_test initial commit 2020-02-06 00:23:46 +00:00
TestApp (Used Razzy's credentials by accident the first time) Fix includes 2023-10-23 17:55:23 +13:00
.gitignore build fixes 2021-03-18 13:02:43 +00:00
BoostTestHelpers.cmake initial commit 2020-02-06 00:23:46 +00:00
CMakeLists.txt Readded the Linux linker settings I forgot, updated readme 2023-10-28 04:48:05 +13:00
CMakeSettings.json qt skeleton 2021-03-15 22:03:37 +00:00
README.md Readded the Linux linker settings I forgot, updated readme 2023-10-28 04:48:05 +13:00

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

https://github.com/microsoft/vcpkg/blob/master/docs/examples/installing-and-using-packages.md#cmake-toolchain-file

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)