Add functionality of supporting CMake