KAI is cross-platform across maxOS, Linux and Windows system with many internal and external components. It also has 3rd party dependencies. Don't worry too much: if the 3rd party systems can't be found to make things like a Windowed gui you will still get the TestSuite and colored text-base Console.
> git clone git@github.com:cschladetsch/KAI.git
> git submodule init
> git submodule updateCurrently the list of external git repos are:
- ENet. Cross-platform networking.
- rang. Cross-platform Colored console output.
- imgui. Cross-platform Immediate-mode windowing system.
Install Boost 1.72 or higher.
For Windows:
> .\bootstrap.bat
> .\b2 install debug --date-time --build=complete --with-chrono --with-filesystem --with-system --with-program_optionsThe same is true for Linux or macOS, just use ./ instead of .\
Please see BUILD.md for detailed instructions on building KAI.
# Using helper script (recommended)
./b # Build with Clang++ (default)
# or
./b --gcc # Build with GCC
# Alternative: Use the Makefile
make # Build with Clang++ (default)
# or
make gcc # Build with GCC> mkdir -p build && cd build
> cmake .. # Uses Clang++ by default
# or
> cmake .. -DBUILD_GCC=ON # Use GCC
> cmake --build .You will need cmake and boost installed with at least chrono, system and filesystem libraries.
:: Clean any existing CMake artifacts and set up build directory
.\clean_build.bat
:: Build the project
.\build.bat> mkdir build
> cd build
> cmake ..
> cmake --build .
:: Or open the solution file
> start *.slnFrom there, build the "ALL_BUILD" project, or select a specific Test or App to test.
I suggest you include the GoogleTest integration extension for Visual Studio under windows.
The resulting interesting folders:
- KAI/Bin. Executables and test suites.
- KAI/Include. Root C++ include folder for KAI systems.
- KAI/Lib. C++ static and shared libraries