[CMake] Custom target
Alexander Neundorf
a.neundorf-work at gmx.net
Wed Jun 5 17:34:56 EDT 2013
On Wednesday 05 June 2013, Ian Liu Rodrigues wrote:
> Dear all,
>
> Is it possible to create a target for all sub-directories with the
> same name? For instance, I want to create a "benchmark" target so that
> every subdir implements a way of bench-marking its own program.
>
> I tried adding a "add_custom_target(benchmark ...)" in the
> CMakeLists.txt of each subdir, but cmake complains about duplicate
> target names.
no, this is currently not supported.
There is a ticket for that somewhere in the bug tracker:
http://public.kitware.com/Bug/view.php?id=6348
Alex
More information about the CMake
mailing list