You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ENH: SEMMacroBuildCLI - Add possibility to associate FOLDER with CLI targets
In project building a lot of modules (i.e Slicer), whenever possible, it
is better to keep the huge list of targets organized. To help with this,
CMake allows to set a FOLDER target property.
See http://www.cmake.org/cmake/help/v2.8.3/cmake.html#prop_tgt:FOLDER
This commit extends the SEMMacroBuildCLI API to accept an optional FOLDER
parameter. If not set, the folder name will default to:
<SlicerExecutionModel_DEFAULT_CLI_TARGETS_FOLDER_PREFIX><MODULE_NAME>
By default the prefix is set to an empty string and the folder will be
named after the module name.
There are two ways to specify a default prefix value:
(1) Set the variable SlicerExecutionModel_DEFAULT_CLI_TARGETS_FOLDER_PREFIX
in the current scope before calling 'SEMMacroBuildCLI'
(2) Configure the SlicerExecutionModel project with the option
SlicerExecutionModel_DEFAULT_CLI_TARGETS_FOLDER_PREFIX
Note that:
- FOLDER support has been introduced in CMake >= 2.8.3
and
- it can optionally be enabled in a project by setting the global
property named USE_FOLDERS.
See http://www.cmake.org/cmake/help/v2.8.3/cmake.html#prop_global:USE_FOLDERS
Finally, to associate CLI test expected to be in the same "FOLDER",
a variable named <MODULE_NAME>_TARGETS_FOLDER is conveniently set in the
current scope each time the macro SEMMacroBuildCLI is called.
0 commit comments