[CMake] Files in source_group
Rolf Eike Beer
eike at sf-mail.de
Sat Jul 3 03:51:38 EDT 2010
Am Saturday 03 July 2010 schrieb Ilpo Ilves:
> Hi,
>
> Is it possible to retrieve a list of those files which I have mentioned in
> multiple source_group commands?
None I'm aware of.
> Since I will group my sources anyway, it would seem redundant to have to
> list those files again to give them to the add_library command.
Put them in a list and then use that:
set(my_hdrs foo.h bar.h)
source_group(headers FILES ${my_hdrs})
add_library(baz ${my_hdrs} ${my_srcs})
Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100703/31d5192f/attachment.pgp>
More information about the CMake
mailing list