9 Generates Green Hills MULTI project files (experimental, work-in-progress).
11 The buildsystem has predetermined build-configuration settings that can be controlled
12 via the :variable:`CMAKE_BUILD_TYPE` variable.
17 .. versionadded:: 3.13
19 The variable ``GHS_PRIMARY_TARGET`` can be used to select the target platform.
21 | Sets ``primaryTarget`` entry in project file.
25 * ``cmake -G "Green Hills MULTI" -D GHS_PRIMARY_TARGET=ppc_integrity.tgt``
27 Otherwise the ``primaryTarget`` will be composed from the values of :variable:`CMAKE_GENERATOR_PLATFORM`
28 and ``GHS_TARGET_PLATFORM``. Defaulting to the value of ``arm_integrity.tgt``
30 * The :variable:`CMAKE_GENERATOR_PLATFORM` variable may be set, perhaps
31 via the :option:`cmake -A` option.
33 | Typical values of ``arm``, ``ppc``, ``86``, etcetera, are used.
35 * The variable ``GHS_TARGET_PLATFORM`` may be set, perhaps via the :option:`cmake -D`
38 | Defaults to ``integrity``.
39 | Usual values are ``integrity``, ``threadx``, ``uvelosity``, ``velosity``,
40 ``vxworks``, ``standalone``.
44 * ``cmake -G "Green Hills MULTI"`` for ``arm_integrity.tgt``.
45 * ``cmake -G "Green Hills MULTI" -A 86`` for ``86_integrity.tgt``.
46 * ``cmake -G "Green Hills MULTI" -D GHS_TARGET_PLATFORM=standalone`` for ``arm_standalone.tgt``.
47 * ``cmake -G "Green Hills MULTI" -A ppc -D GHS_TARGET_PLATFORM=standalone`` for ``ppc_standalone.tgt``.
52 .. versionadded:: 3.13
54 The generator searches for the latest compiler or can be given a location to use.
55 ``GHS_TOOLSET_ROOT`` is the directory that is checked for the latest compiler.
57 * The :variable:`CMAKE_GENERATOR_TOOLSET` option may be set, perhaps
58 via the :option:`cmake -T` option, to specify the location of the toolset.
59 Both absolute and relative paths are valid. Paths are relative to ``GHS_TOOLSET_ROOT``.
61 * The variable ``GHS_TOOLSET_ROOT`` may be set, perhaps via the :option:`cmake -D`
64 | Root path for toolset searches and relative paths.
65 | Defaults to ``C:/ghs`` in Windows or ``/usr/ghs`` in Linux.
67 For example, setting a specific compiler:
69 * ``cmake -G "Green Hills MULTI" -T comp_201754`` for ``/usr/ghs/comp_201754``.
70 * ``cmake -G "Green Hills MULTI" -T comp_201754 -D GHS_TOOLSET_ROOT=/opt/ghs`` for ``/opt/ghs/comp_201754``.
71 * ``cmake -G "Green Hills MULTI" -T /usr/ghs/comp_201554``
72 * ``cmake -G "Green Hills MULTI" -T C:/ghs/comp_201754``
74 For example, searching for latest compiler:
76 * ``cmake -G "Green Hills MULTI"`` for searching ``/usr/ghs``.
77 * ``cmake -G "Green Hills MULTI -D GHS_TOOLSET_ROOT=/opt/ghs"`` for searching ``/opt/ghs``.
80 The :variable:`CMAKE_GENERATOR_TOOLSET` should use CMake style paths.
87 Certain target platforms, like Integrity, require an OS. The RTOS directory path
88 can be explicitly set using ``GHS_OS_DIR``. Otherwise ``GHS_OS_ROOT`` will be
89 searched for the latest Integrity RTOS.
91 If the target platform, like Integrity, requires a BSP name then it can be set via
92 the ``GHS_BSP_NAME`` variable.
94 * ``GHS_OS_DIR`` and ``GHS_OS_DIR_OPTION``
96 | Sets ``-os_dir`` entry in project file.
98 | ``GHS_OS_DIR_OPTION`` default value is ``-os_dir``.
100 .. versionadded:: 3.15
101 The ``GHS_OS_DIR_OPTION`` variable.
105 * ``cmake -G "Green Hills MULTI" -D GHS_OS_DIR=/usr/ghs/int1144``
109 | Root path for RTOS searches.
110 | Defaults to ``C:/ghs`` in Windows or ``/usr/ghs`` in Linux.
114 * ``cmake -G "Green Hills MULTI" -D GHS_OS_ROOT=/opt/ghs``
118 | Sets ``-bsp`` entry in project file.
119 | Defaults to ``sim<arch>`` for ``integrity`` platforms.
123 * ``cmake -G "Green Hills MULTI"`` for ``simarm`` on ``arm_integrity.tgt``.
124 * ``cmake -G "Green Hills MULTI" -A 86`` for ``sim86`` on ``86_integrity.tgt``.
125 * ``cmake -G "Green Hills MULTI" -A ppc -D GHS_BSP_NAME=sim800`` for ``sim800``
126 on ``ppc_integrity.tgt``.
127 * ``cmake -G "Green Hills MULTI" -D GHS_PRIMARY_TARGET=ppc_integrity.tgt -D GHS_BSP_NAME=fsl-t1040``
128 for ``fsl-t1040`` on ``ppc_integrity.tgt``.
133 .. versionadded:: 3.14
135 The following properties are available:
137 * :prop_tgt:`GHS_INTEGRITY_APP`
138 * :prop_tgt:`GHS_NO_SOURCE_GROUP_FILE`
140 MULTI Project Variables
141 ^^^^^^^^^^^^^^^^^^^^^^^
143 .. versionadded:: 3.3
145 Adding a Customization file and macros are available through the use of the following
148 * ``GHS_CUSTOMIZATION`` - CMake path name to Customization File.
149 * ``GHS_GPJ_MACROS`` - CMake list of Macros.
152 This generator is deemed experimental as of CMake |release|
153 and is still a work in progress. Future versions of CMake
154 may make breaking changes as the generator matures.