Skip to content

GHS custom commands and target support

Fred Baksik requested to merge fred23/cmake:ghs_custom into master

Fully implement add_custom_command() and add_custom_target().

The top-level project structure has been updated to accommodate custom targets.

Previously only the targets that were part of the ALL target were listed in the GUI. Excluded targets may have been left out or commented out so that they would not be part of build. When building from the GUI the ALL target can be selected and all the correct targets will be built. Otherwise any known targets can be selected and will be built.

When using cmake --build <dir> the ALL target will be built. Care should be taken when using gbuild --top proj.top.gpj because it will build all projects listed in the top-level project, the command gbuild --top proj.top.gpj proj.ALL_BUILD.tgt.gpj should be used instead.

Edited by Fred Baksik

Merge request reports