I agree, but afair it didn't work with add_dependencies, maybe it will work here. This is cmake, after all...