https://bloerg.net/2012/11/10/cmake-and-distutils.html provides an example to install both C++ and python libraries at once.