[CMake] Adding a custom target that depends on top-level `all' target.
Matthew Woehlke
mw_triad at users.sourceforge.net
Tue Jan 27 18:14:58 EST 2009
Eric Lemings wrote:
> If question is already answered somewhere, just point us to it. I
> couldn't find an answer in the CMake Wiki or FAQ.
Did you try Reading The Fine Man[page]? ;-) (Or, 'cmake --help-command
add_custom_target'.)
> How do I create a custom target in a subdirectory that is dependent on
> the top-level target `all'? The simple command `add_dependencies (foo
> all)' doesn't work.
'add_custom_target(my_target ALL ...)'?
--
Matthew
Please do not quote my e-mail address unobfuscated in message bodies.
--
Anyone who is capable of getting themselves made President should on no
account be allowed to do the job. -- Douglas Adams
More information about the CMake
mailing list