Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Alex Siryi edited this page Jul 25, 2022 · 4 revisions

CMake Support

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
Clone this wiki locally