ENH: SEMMacroBuildCLI - Add possibility to associate FOLDER with CLI tar... #39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
...gets
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 can be enabled in your 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 associated CLI test with the same folder, a variable named
<MODULE_NAME>_TARGETS_FOLDER is set in the current scope each time
the macro SEMMacroBuildCLI is called.