moved some code from opencmisspetscconfig to actual main cmakelists file so that slepc could include the file for its own config