Compiling using CMake - 5.2 English - 68552

AOCL API Guide (68552)

Document ID
68552
Release Date
2025-12-29
Version
5.2 English

A CMakeLists.txt file is supplied in the examples folder of your installation. You will need to set AOCL_ROOT to point to your AOCL installation. On Windows, you may also need to source the ifort compiler using e.g. C:\Program Files (x86)\Intel\oneAPI\setvars.bat. To configure cmake and compile, you can then use commands such as:

mkdir build
cd build
cmake -G Ninja -DCMAKE_CXX_COMPILER=clang-cl ..
cmake --build .