allow project to be imported

change local references to global references using built-in cmake
variables