CMake - marinus-lab/z88dk GitHub Wiki
It is possible to build z88dk projects with CMake. Use the following extra arguments to your CMake project when generating:
cmake -DZCCTARGET=<target> -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/z88dk/cmake/Toolchain-zcc.cmake <project>
Should you have z88dk installed in different location, the toolchain file is located in cmake/Toolchain-zcc.cmake
of the installed z88dk.
Typical way of generating a project is as follows:
mkdir build
cd build
cmake <args above> ..
make