How to make a project dependent on an external file? The file could be a library built by custom tool or by another cmake project which is not the part of this one. I mean the project target should be built when the file is newer than this. -- Regards Krzysztof J.