[CMake] list of targets
James Bigler
bigler at cs.utah.edu
Tue Nov 6 08:59:49 EST 2007
Is it possible to get a list of targets, such as the list of
libraries or executables? I have dozens of libraries and executables
I need to install as part of my package, and was wondering if there
was something easier than adding the install rule for each one by
hand. It would be great if I could just get this list, and with a
for loop generate the INSTALL command.
I've toyed with the notion of replacing ADD_LIBRARY with my own macro
ADD_LIBRARY_AND_INSTALL, but the thought of having to deal with and
pass along all the parameters of ADD_LIBRARY seems scary and prone to
error.
Thanks,
James
More information about the CMake
mailing list