I have been adding support for cmake in SLEPc. My simple approach is: 1) generate a SLEPcConfig.cmake file 2) generate CMakeLists.txt with a cmakegen module adapted from petsc-dev 3) run cmake with a cmakeboot module adapted from petsc-dev
Step 3 loads RDict and uses 'script' to process all PETSc configuration. The problem comes with prefix-based installations of PETSc, since 'script' is not available. Can anyone suggest a solution for this? Maybe use Jed's FindPETSc.cmake module? Thanks. Jose