Add function to install external CMake projects

Add a function to execute the install script of a CMake-based external project as part of the install target for the invoking project.