[CMake] Make CPack usable from all dune modules.