title: CMake Run Built Executable Before Building Another?
body: <p>How would i tell CMake to build and run an executable before building another? So i have 2 executable files "a" and "b", where "a" is required to run in order to generate header files for "b". So "a" takes 2 folders as a parameter, in which it generates header files from xml files from an input directory to an output directory.</p>
  
  <p>Is there a way to tell CMake to do this as well as to know when the xml files are modified or when project "a" is modified to regenerate the files?</p>