A C++23 compatible compiler is required. Visual Studio 2022 is recommended. Compilers other than MSVC have not been tested.
CMake is required.
git clone git@github.com:praydog/REFramework.git
git clone https://github.com/praydog/REFramework
git submodule update --init --recursive
cmake -S . -B build ./build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release
cmake --build ./build --config Release
Keep in mind that not supplying a target will build multiple targets, when you may only need one of them.
For example, to build only the RE2 target, you can use the following command:
cmake --build ./build --config Release --target RE2
- Install the CMake Tools extension
- Open the REFramework folder in VSCode
- Press
Ctrl+Shift+P
and selectCMake: Configure
- When "Select a kit" appears, select
Visual Studio Community 2022 Release - amd64
- Select the desired build config (usually
Release
orRelWithDebInfo
) near the bottom of the window - Select the desired build target near the bottom of the window, otherwise all targets will be built
- You should now be able to compile REFramework by pressing
Ctrl+Shift+P
and selectingCMake: Build
or by pressingF7
In the root of the repository there is a build_vs2022.bat
script that will build all targets in Release mode.