Hi all,
I've been searching the manuals, but couldn't find a way to add sources
to a target library *after* the add_library() command, e.g., using
set_target_properties()? Is this possible at all?
Best regards,
Marcel Loose.
___
Powered by www.kitware
I highly doubt it. Best practice is to just use conditionals to add
the necessary source files to a list variable prior to the
add_library() call.
On Sat, Jan 9, 2010 at 5:48 PM, Marcel Loose wrote:
> Hi all,
>
> I've been searching the manuals, but couldn't find a way to add sources
> to a targ
Too bad. I was hoping I could do this without having to use a list
variable to collect all my sources. In my case, the use of conditionals
is somewhat awkward.
Best regards,
Marcel Loose.
On Sat, 2010-01-09 at 18:38 -0500, Philip Lowman wrote:
> I highly doubt it. Best practice is to just use co
2010/1/11 Marcel Loose :
> Too bad. I was hoping I could do this without having to use a list
> variable to collect all my sources. In my case, the use of conditionals
> is somewhat awkward.
Personnally I sometime use several variable like:
add_library(blah
${BLAH_SOURCE}
Hi Eric,
Your solution is one possibility to tackle my problem.
What I am trying to accomplish is to record version information into
some (but not all) of the libraries/executables in my project.
So, this version file -- let's call it version.cc -- may, or may not be
part of the list of sources t