fprime/docs/user-manual/build-system/cmake-platforms.md
M Starch 21faffa6f8
CMake documentation refactor (#3981)
* CMake documentation refactor

* sp

* Update cmake-implementations.md
2025-08-05 16:52:14 -07:00

849 B
Raw Blame History

F´ and CMake Platforms

Users can create platform-specific build files for the purposes of tailoring fprime for given platform targets. Any CMake toolchain file should work, but it will require a platform file created here to add target-specific configuration using the name "${FPRIME_PLATFORM}.cmake".

Platforms should register a configuration module using register_fprime_config that sets the AUTOCODER_INPUTS, HEADERS and CHOOSES_IMPLEMENTATIONS directives.

AUTOCODER_INPUTS: must include one .fpp file defining the platform's platform types HEADERS: lists the PlatformTypes.h header defining PlatformPointerCastType CHOOSES_IMPLEMENTATIONS: lists all implementations chosen for the current platform. See: CMake Implementations.