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>
In order to use the m68k-amigaos.cmake toolchain file, you need to do a tiny change to your CMake install:
- enter the directory where the CMake platform configuration files are stored - specifically the Generic.cmake file.
- On GNU/Linux systems, this is usually stored in
/usr/share/cmake-<VERSION>/Modules/Platforms/Generic.cmake
- On Windows systems, this is usually stored in
C:\Program Files\CMake\share\cmake-<VERSION>\Modules\Platform\Generic.cmake
- On GNU/Linux systems, this is usually stored in
- copy
Generic.cmake
toAmigaOS.cmake
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.