Target for finding new files in IMAGE_DIRS
A problem with using the IMAGE_DIRS
option is that if you add a file to that directory, the make files will not know about it until cmake
is run again. This can be confusing and annoying, especially when working on a project with multiple developers. You can a pull a new version of the LaTeX document and it fails to build because someone added an image file.
To get around this, it would be nice to create a target for each directory of IMAGE_DIRS
that compares the expected image files to the files that actually exist and re-runs CMake if they do not match.