Some utility functions for imported external projects in CMake