jrl-umi3218 / jrl-cmakemodules

CMake utility toolbox
https://jrl-cmakemodules.readthedocs.io/en/master/
Other
61 stars 47 forks source link

forward COMPONENT parametert in install instruction #715

Closed jorisv closed 4 days ago

jorisv commented 2 months ago

CMake install instruction support the COMPONENT parameter that allow to install some subpart of the package by doing cmake -DCOMPONENT=<component_name> -P build/cmake_install.cmake.

This will allow to more easily split our package into subpackage by creating custom installation rules.

Add the ADD_INSTALL_TARGET function to easily create a target to install a specific component.