Improve component install feature
Component install is a nice feature but it could be improved upon for more ease of use and usefulness.
project is a 4 installable component project, with comp4 part of EXCLUDE_FROM_ALL
- Multi comnponent install
cmake --install ./ --component comp1,comp2,comp3,comp4
install all four components
- Exclude component from command line
cmake --install ./ --exclude-component comp3
install comp1 and comp2
- List available component (do not perform install but list components only)
cmake --install ./ --list-components
comp1
comp2
comp3
comp4 (EXCLUDE_FROM_ALL)
- Install everything even EXCLUDE_FROM_ALL
cmake --install ./ --even-exclude-from-all
Of course, this is some usecases that came into my mind, maybe this is not realistic, maybe other usecases should be supported.