[CMake] Problem added file dependency to a library.
Josef Karthauser
joe.karthauser at geomerics.com
Wed Mar 26 05:54:07 EDT 2008
> -----Original Message-----
> From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On
Behalf Of
> Alexander Neundorf
> Sent: 25 March 2008 16:58
> To: cmake at cmake.org
> Subject: Re: [CMake] Problem added file dependency to a library.
>
> I'd suggest use add_custom_command(OUTPUT .../ext.obj ... ) for that
> and then add the object file to the source files for the library.
>
> Does that work ?
>
Yes that works great. I've had lots of trouble getting
add_custom_command(OUTPUT ...) rules working in the past, but this
appears to do the trick nicely. Thanks.
Joe
More information about the CMake
mailing list