CMake add_custom_command not being run
The add_custom_target(run ALL … solution will work for simple cases when you only have one target you’re building, but breaks down when you have multiple top level targets, e.g. app and tests. I ran into this same problem when I was trying to package up some test data files into an object file so my … Read more