fprime/docs/UsersGuide/cmake/cmake-toolchains.md
Ani 54d89871e2
Documentation revision (./docs/*.md files) (#1570)
* Corrections and edits for *.md files in the root of /docs

* Edits on docs/UsersGuide/best/*.md

* Edits on docs/UsersGuide/cmake/*.md

* Edits on *.md files at the root of docs/UsersGuide/dev/

* Edits on docs/UsersGuide/{dev,gds,user}/*.md

* Edits on docs/Tutorials/*.md and a few others after a final read

* Revert changes

Co-authored-by: M Starch <LeStarch@googlemail.com>
2023-01-12 15:24:57 -08:00

1.1 KiB
Raw Blame History

CMake Toolchain Files

CMake defines the location, arguments, and properties of build tools using toolchain files. In short, these files specify what configuration of tools to use to build the CMake project. Since CMake toolchain files can be shared between projects, F´ mostly uses them as-is. To set platform-specific fprime settings a parallel Platform file may be created in order to keep those settings out of this more generic file.

See: fprime Platform Files See: https://cmake.org/cmake/help/v3.12/manual/cmake-toolchains.7.html

To create a new toolchain, copy the toolchain.template.cmake file and fill it out. Then create a platform file in the platform directory. Other CMake toolchains (from CMake, other CMake-based projects, etc) can be used. The appropriate platform file must be created if it does not exist.

To understand the toolchain template: Toolchain Template File To use the template: fprime Toolchain Template