[CMake] How to integrate 3rd-party software into cmake system
Clark J. Wang
dearvoid at gmail.com
Sat Jun 9 02:51:16 EDT 2007
On 6/9/07, Brandon Van Every <bvanevery at gmail.com> wrote:
>
> On 6/9/07, Clark J. Wang <dearvoid at gmail.com> wrote:
> > ADD_CUSTOM_COMMAND(
> > OUTPUT ${hellolib} ${helloexe}
> > COMMAND make -C ${hellodir}
> > COMMAND cp ${hellodir}/libhello.so ${hellolib}
> > COMMAND cp ${hellodir}/hello ${helloexe}
> > )
>
> Unfortunately you've discovered the difference between file level
> dependencies and target level dependencies. You're going to need an
> ADD_CUSTOM_TARGET and an ADD_DEPENDENCIES.
It works. Thank you so much.
Unfortunately the FAQ
> doesn't have an entry for this, and I'm too tired to write one.
>
>
> Cheers,
> Brandon Van Every
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070609/fcada5e7/attachment.html
More information about the CMake
mailing list