Skip to content

AmigaPorts/AmigaCMakeCrossToolchains

Repository files navigation

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:

  • 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
  • copy Generic.cmake to AmigaOS.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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages