RPG-Engine
A collection of libraries to be pottentially used as a basis for further projects.
Requirements
- vcpkg (for both)
- doctest
- CMake 3.26 or newer (for both)
- Visual Studio 2022 17.4 (19.34) or newer (for windows)
- gcc 11 or newer (for linux)
- Ninja 1.11 or newer (for linux)
Configure, build, test
Based on your platform use one of the presets
- cmake --preset={configurePresets}
- cmake --build --preset={buildPresets}
- debugWin / releaseWin
- debugLinux / releaseLinux
- ctest --preset={testPresets}
-testWin
-testLinux
- cpack --preset={packagePresets}
Requirements installation (for reference)
vcpkg
Windows
- git clone https://github.com/Microsoft/vcpkg.git
- run .\vcpkg\bootstrap-vcpkg.bat
- (mandatory or you must change presets) add VCPKG_ROOT to enviromental variable with path leading to vcpkg
- (optional) add VCPKG_ROOT to PATH variable with path leading to vcpkg
- (optional) vcpkg integrate install
Linux
- git clone https://github.com/Microsoft/vcpkg.git
- .\vcpkg\bootstrap-vcpkg.sh
- (mandatory or you must change presets) add VCPKG_ROOT to enviromental variable with path leading to vcpkg
- nano ~/.bashrc
- add to the end of the file: export VCPKG_ROOT=[wherever it is]
- sudo ln -s [wherever it is]/vcpkg /usr/local/bin/vcpkg
- (optional) vcpkg integrate install
CMake 3.26
Windows
- download https://cmake.org/download/ and install, adding it to path
Linux
- wget https://github.com/Kitware/CMake/releases/download/v3.26.0-rc6/cmake-3.26.0-rc6.tar.gz
- tar xzf cmake-3.26.0-rc6.tar.gz
- cd cmake-3.26.0-rc6
- ./configure
- gmake
- gmake install
Ninja
- sudo wget -qO /usr/local/bin/ninja.gz https://github.com/ninja-build/ninja/releases/latest/download/ninja-linux.zip
- sudo gunzip /opt/ninja/ninja.gz
- sudo chmod a+x /usr/local/bin/ninja