Use source file generation functions in cmake-unit