Patrick M: Export cmake config file to function for both local and installed setup.