ROS: include C++ source code to be installed

To make one of my ros-nodes running i need to install an exeternal library ( with the standard cmake proceadure: mkdir build , cd build , cmake … , sudo make install) how can I include this library into my snap (ROS + qt ) ??
thanks in advance