Ccompilers- OpenCL SDK for at least one of your platforms
- Check the
CMakeLists.txtto suits your environment variables and compiler - Setup the toolchain for your compiler
- Run
cmaketo generate the build files - Run
cmake --build .\build --target mainto build the project
An example of building with
ninjaon Windowscmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S .\ -B .\build cmake --build .\build --target main -j 3
Optionally you can execute any version of the code by cahnging the -target from main to the filename of the version to execute without extension
An example of building the version 1.1.1
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S .\ -B .\build cmake --build .\build --target v1.1.1 -j 3