<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>RE: [CMake] Changing the default name &quot;CMakeLists.txt&quot;</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>
<BR>
<BR>

<P><FONT SIZE=2><BR>
<BR>
&gt;&gt; I know this option, but I have very good reasons which makes this<BR>
&gt;&gt; option less usefull :)<BR>
&gt;&gt; So I would need to change the cmake source code I suppose ?<BR>
&gt;&gt;<BR>
&gt;Yes, you're right.<BR>
&gt;By the way, could you tell us why it is so important to not have any<BR>
&gt;CMakeLists.txt ?<BR>
<BR>
&gt;--Sylvain<BR>
<BR>
The thing is that I am trying to make a sort of &quot;unified&quot; or &quot;common build system&quot; (cbs) for which I<BR>
use cmake. The idea was that open source projects could maintain such a cbs-makefile, which combined<BR>
with a set of common cmake files would make it very easy to to use 3rd party libraries within your own code.<BR>
<BR>
A short intro is on the very preliminary web page (cpaf.sourceforge.net) repeated here:<BR>
---------------------------------------------------------------<BR>
The cmake based build system along with associated python helper scripts have been factored out as a seperate project located in cpaf/cbs for now. The general idea is to supply a general and very simple way to produce a cbs/cmake file(s) for a project (e.g. a library) and then this library can build seamlessly together with other &quot;cbs-enabled&quot; libs/apps.<BR>
<BR>
In your top level directory of your own project you also keep a myprj.BuildConfig.cmake file which contains a use entry/line for every library you want to enable/use in your project like this:<BR>
<BR>
# --- 3RD PARTY LIBRARIES ---<BR>
SET ( z_USE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYSTEM&nbsp;&nbsp; )&nbsp; # Use system installed version<BR>
SET ( png_USE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUILD&nbsp;&nbsp;&nbsp; )&nbsp; # Build from local source code<BR>
SET ( bz2_USE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DISABLED )&nbsp; # Don't use this lib at all<BR>
SET ( boost_USE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PREBUILT )&nbsp; # Use allready locally (cbs) compiled version of boost.<BR>
<BR>
# Other build options<BR>
SET ( z_LINK_TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATIC&nbsp;&nbsp;&nbsp; ) # Force static version of zlib even when cbmake.py -l shared is used.&nbsp;&nbsp;<BR>
<BR>
<BR>
<BR>
So the (perhaps naive) hope is that many open source SW projects will pick up the idea and provide cbs build files for their code. See the &quot;CBS Introduction&quot; page how simple it really is to use this system.<BR>
<BR>
--------------------------------------<BR>
<BR>
The reason I would like another default CMakeLists.txt name is that I don't want to conflict with projects&nbsp; using cmake allready for their build process.<BR>
-Martin L<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>