add method to inject general dependencies into the cmake steps for a module

issue #224
Use ExternalProject_Add for RMF so that we don't duplicate RMF code in IMP

issue #224