[CMake] Adding a custom_command dependency to all sources

2018-02-22 Thread Pentecost, Caleb
Howdy, I'm looking to add a dependency to all source files to ensure that a generated file is up-to-date before compilation. This generated file is "passed in" to the compiler via a global compiler definition. Is there an easy or built-in way to do this, or will I need to manually add a made-up

[CMake] set_source_files_properties and custom targets

2018-03-01 Thread Pentecost, Caleb
Howdy, I'm running into an issue with a custom target dependency that I want to assign to all source files. In this case, I have a helper library (lets call it utils) that builds a couple source files that each depend on an output file from a separate process. It would look something like this: