On Mon, 12 Jul 2010, Craig Silverstein wrote:

> In another opensource project I manage, I got a request to use cmake
> rather than maintain my own .sln and .vcproj files, which is what I do
> now.
> 
> I'd certainly be happy to get out of the .sln-making business, but I'm
> not very familiar with cmake.  Does it require users of my project to
> have cmake installed as well?  Or would I generate the appropriate
> .sln/etc projects via cmake, and just package them with my
> distribution?  What does pcre do?

Craig,

I'm not at all an expert in cmake - somebody else did the necessary work 
to allow PCRE to use it - but I will make a stab at answering your 
questions. Yes, the users who want to build using cmake do have to 
install cmake (at least on Linux, so I assume also for Windows).

> I also know that pcre uses autotools as its 'default' build
> environment.  Does cmake manage to 'inherit' info it needs from
> configure.ac and Makefile.am, or does someone maintain a parallel
> build structure just for cmake?

There's a parallel structure. By imitation, I have updated it from time 
to time to add stuff, but I'm not knowledgeable about the full rules. 
See CMakeLists.txt in a PCRE distribution. There are some supporting 
files in cmake/ and also cmake_install.cmake and config-cmake.h.in.

I hope this helps.

Philip

-- 
Philip Hazel

-- 
## List details at http://lists.exim.org/mailman/listinfo/pcre-dev 

Reply via email to