[CMake] CMakelists.txt non-trivial examples?

2006-07-24 Thread Richard Fuchs








I’m setting up the build environment for our project
and I’ve been looking around to find some examples of how to create
CMakelists.txt files and the only examples I’ve come across so far are
the trivial ones on the cmake page and the crazy convoluted ones (well, from my
novice perspective) from kde, vtk and such.

 

Are there any other places that I can look to find some
examples while I wait for my cmake book to arrive in the mail?  Any
pointers would be useful.  Thanks

 

The project is a mixture of java and C++.  I’ll
have multiple executables created from common libraries (in our jargon, many
Products reusing the same Component(s)) and there’s a code generator that
creates an unknown number of files that the rest of the project has a
dependency on.  The dir structure looks kinda like what’s below

 

Project

    Common
(same structure as below)

    Components
(same structure as below)

    Products
(same structure as below)

    Services

    Service_a
(same structure as below)

    Service_b
(same structure as below)

    Service_c

    Bin

    Docs

    Lib

    Src

    Test

 

I just downloaded the cmake source, so maybe that’ll
shed some light on things.

 

Thanks

Richard






___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMakelists.txt non-trivial examples?

2006-07-24 Thread Scott Amort

Hi Richard,

Richard Fuchs wrote:
Are there any other places that I can look to find some examples while I 
wait for my cmake book to arrive in the mail?  Any pointers would be 
useful.  Thanks


I found the latest Scribus (http://www.scribus.net) CVS source to be 
quite helpful as an example when I made the switch over to CMake for my 
project.


Best,
Scott
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMakelists.txt non-trivial examples?

2006-07-24 Thread Filipe Sousa
Richard Fuchs wrote:

> 
> Are there any other places that I can look to find some examples while I
> wait for my cmake book to arrive in the mail?  Any pointers would be
> useful.  Thanks
> 


http://www.cmake.org/Wiki/CMake_Projects

-- 
Filipe Sousa



signature.asc
Description: OpenPGP digital signature
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMakelists.txt non-trivial examples?

2006-07-24 Thread Brandon J. Van Every




Richard Fuchs wrote:

  
  
   I’m setting up the build environment for our project
and I’ve been looking around to find some examples of how to create
CMakelists.txt files and the only examples I’ve come across so far are
the trivial ones on the cmake page and the crazy convoluted ones (well,
from my
novice perspective) from kde, vtk and such.  
  



I actively develop the CMake build for the Chicken Scheme compiler.
http://www.call-with-current-continuation.org/index.html
Chicken is a fairly small project.  There is only 1 subdirectory and 2
CMakeLists.txt files.  It has a lot of non-trivial stuff for the
problem of bootstrapping a
compiler.  In particular, a lot of dependencies on generated files and
exes.  You can get the latest CMake build from the Darcs repository. 
We still don't ship the CMake build in the official tarballs as the
build is still provisional.  Only today did I wipe out the last major
build impediment, I think.  Directions for how to obtain and build the
CMake build are in the official tarball sources though.  Look for
INSTALL-CMake.txt.


Cheers,
Brandon Van Every





___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake