C++ & OpenGL | Box3D engine
There are two general ways to use this solution:
- Build the libraries in the solution and run their unit tests.
- Build the engine program and its plugins, and configure and run the engine.
Each library in the solution comes with unit tests. There are two main ways to run the tests:
- Use CTest.
- Run individual unit test runners directly (e.g. build/Box3D/test/Debug/Box3DTests.exe).
- Boost provides free peer-reviewed portable C++ source libraries.
- googletest Google Testing and Mocking Framework.
- json for Modern C++.
- MySQL Connector/C++ provides developers a JDBC-like API driver for MySQL.
The following are recommended toolchains for popular platforms.
- Windows -- Visual Studio (Microsoft Visual C++)
- Linux -- clang or gcc
- MacOS -- Xcode (clang)
There are two distinct steps in the build process:
- Generation of the build system, using CMake
- Compiling, linking, etc., using CMake-compatible toolchain
- CMake version 3.8 or newer
- C++17 toolchain compatible with CMake for your development platform (e.g. Visual Studio on Windows)
git clone https://github.com/Campeanu/Box3D.git
git submodule init
git submodule update
mkdir build
cd build
cmake -G "Visual Studio 16 2019" -A "x64" ..
Either use CMake or your toolchain's IDE to build. For CMake:
cd build
cmake --build . --config Debug