Roland
You need to install these packages:
depends_on('cereal')
depends_on('googletest')
depends_on('hwloc')
depends_on('jemalloc')
depends_on('mpi')
depends_on('qthreads')
Then you can call cmake, pointing it to these packages in "the usual way", i.e. by passing flags such as "-DCEREAL_ROOT=..." etc. to cmake. If you have pkg-config installed, then cmake should also be able to use it to find external packages if PKG_CONFIG_PATH (?) is set pointing to them. The ".travis.yml" file in FunHPC might also be a good starting point, although it is based on Ubuntu 14.04 and thus a bit more complicated than necessary.
-erik