After this tutorial you will have a working C++ toolchain, a configured CMake environment, and a built
After this tutorial you will have a working C++ toolchain, a configured CMake environment, and a built
Install
Download the latest CMake and ensure it is added to your system PATH. This is optional if you installed Visual Studio with CMake tools.
We assume you have Git installed. If not, you can download and install it from git-scm.com. Then clone the repository to get the source code. Alternatively, you can download the source code as a ZIP file from the GitHub repository.
git clone https://github.com/cosfer65/beforethemesh.git cd beforethemesh
Use CMake to configure the project and generate Visual Studio solution files. You can do this from the command line or using the CMake GUI.
We recomend using the command line for simplicity. Visual Studio 2026 installs a command prompt with the environment configured for MSVC. You can find it in the Start menu under "Visual Studio 2026" > "x64 Native Tools Command Prompt for VS 2026". Run the following command from the root of the cloned repository:
cmake -A x64 -B build
This will create a "build" directory with the generated solution files. You can open the solution in Visual Studio if you prefer to build from the IDE.
Build the project using CMake. You can specify the configuration (Release or Debug) as needed.
cmake --build build --config Release or cmake --build build --config Debug
After building, you can run the sample applications to verify that everything is working correctly.
Navigate to the 'runtime' directory and you will find a 'Release' or 'Debug' folder depending on the build configuration. Inside, you will find the built binaries and can run the executable:
cd runtime/Release ./[sample_app].exe
You will see the sample application running, confirming that your toolchain, CMake configuration, and framework build are all working correctly.
Here is a brief overview of the folder structure of the
beforethemesh/ ├── cmake/ ├── external/ │ ├── btm_framework/ │ ├── cmake/ │ ├── include/ │ │ ├── core/ │ │ ├── math/ │ │ ├── platform/ │ │ └── render/ │ ├── src/ │ │ ├── core/ │ │ ├── math/ │ │ ├── platform/ │ │ └── render/ │ ├── examples/ │ │ ├── example-app-0/ │ │ ├── example-app-1/ │ │ └── ... │ ├── README.md │ └── CMakeLists.txt ├── projects/ │ ├── project-0/ │ ├── tutorial-0/ │ └── ... ├── README.md └── CMakeLists.txt
The
We continue with