How do I add an excluded (executable) target to the build. I know that if I
add a library EXCLUDE_FROM_ALL and then create a dependency on that library
then that the library will be built anyway. How do I trigger similar behaviour
from an executable target?
Example:
Directory A contains a CM
You can use a new target, built by all, depending on your initial target:
add_custom_target(build_blah_X ALL)
add_dependencies(build_blah_X blah_X)
Le mer. 4 juil. 2018 à 03:33, Andrew White a
écrit :
> How do I add an excluded (executable) target to the build. I know that if
> I add a librar
Hi Andrew.
All that the EXCLUDE_FROM_ALL argument of add_executable() does is set that
target's property EXCLUDE_FROM_ALL to TRUE. So all you need to do is set
that property to false again:
set_property(TARGET blah PROPERTY EXCLUDE_FROM_ALL FALSE)
Petr
On 4 July 2018 at 08:48, Marc CHEVRIER