add_executable() with BYPRODUCT

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

add_executable() with BYPRODUCT

Torsten Robitzki
we have some applications for something similar to BYPRODUCTS in add_custom_command() when it comes to add_exectuable(). For example, we want to do some resource calculation based on map files. And in a perfect world, the map file would be a BYPRODUCT of the executable and we could make the resource calculation dependent on the map file. Thus a missing map file would result in a relinking of the executable.

Is it possible to define a BYPRODUCT of an executable, somehow?

Kind regards,



Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe:

signature.asc (849 bytes) Download Attachment