AmigaPorts / AmigaCMakeCrossToolchains

Mozilla Public License 2.0
11 stars 3 forks source link

AmigaCMakeCrossToolchains

This repo contains CMake toolchain files for configuring CMake-based projects to build binaries for Amiga-like systems.

Typical usage is as follows:

cd /project/to/build
mkdir build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchainFile.cmake -D<TOOLCHAIN_FILE_SPECIFIC_DEFINES>

Setting up the CMake for m68k-amigaos target

In order to use the m68k-amigaos.cmake toolchain file, you need to do a tiny change to your CMake install:

this is due to toolchain file changing CMAKE_SYSTEM_NAME to AmigaOS. On unchanged installations, this could throw an error because there's no platform file.