Improvements of the CMake system calls

(references OpenFLUID/openfluid#179)