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.
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.