[CMake] How to integrate autoconf based library into my cmake build tree
Albert Z
amzproject at gmail.com
Sun Feb 28 20:45:58 EST 2010
Thanks, Luigi. However, I read the CMake 2.8 doc and tried to use function
"ExternalProject_Add". When I ran cmake in the root of my project, I got the
following error
Unknown CMake command "ExternalProject_Add"
I tried on both linux and mac and got the same error. And I am sure the
version of the cmake is 2.8
Best,
Meng
On Sun, Feb 28, 2010 at 4:50 AM, Luigi Calori <l.calori at cineca.it> wrote:
> Albert Z wrote:
>
>> Hello,
>> Our project now uses a bunch of 3rd party libraries such as apr,
>> protobuf, libcurl, etc. Almost all of these libraries use autoconf (
>> configure.in <http://configure.in>) based build system. Since we have
>> some modifications to most of the libraries, we have to integrate these
>> libraries to our cmake build tree. What is the easiest way to integrate such
>> a 3rd-party library to a cmake build with keeping the maximum portability?
>>
> Try to look at ExternalProject module
> http://www.cmake.org/cmake/help/cmake-2-8-docs.html#module:ExternalProject
> and page 10 of
> http://www.kitware.com/products/archive/kitware_quarterly1009.pdf
>
> I have used it (with some mods): it allow to automate download pactch,build
> and install)
> Anyway, curl have recently included a CMakeLists in its distribution. I
> have used it even if had to apply some patches.
> I am trying to collect some cmake build recipes for some libraries I need.
> If you are interested, grab the stuff at
> bzr branch http://3d.cineca.it/storage/bazaar_repo/CmakeDeps/lib
>
> HTH
>
> Luigi
>
> ------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100228/da04e778/attachment.htm>
More information about the CMake
mailing list