[BioLib-dev] CMakeLists.txt

Pjotr Prins pjotr.public14 at thebird.nl
Thu May 14 06:03:56 UTC 2009


CMake is the back bone of biolib sorting out all dependencies and
locations. Fortunately CMake is very straightforward, it is really a
little programming language (macro language) that generates the make
files. Rather like the often used autoconf tools (i.e. 'configure').
Unlike autoconf it is easy to understand and rather nice at status
messages. I have learned to love it, despite the fact it is another
little language to learn.

The most important thing to remember is that when you change a CMake
file you have to remove the cache files. CMake caches all settings -
probably necessary for big build systems like KDE.

Initially just copy the CMakeLists.txt file from other places and
adapt it to your tree. If there is 'deeper' functionality required I can
always help get it to work.

Read the CMake online documentation (take an hour, and the FAQ). It'll
pay off.

Pj.

On Thu, May 14, 2009 at 12:22:10AM -0400, Xin Shuai wrote:
> HI! It seems that writing CMakeLists.txt is a big job in BioLib. And I have
> create a CMakeLists.txt file for each directory. Do I have to specially
> study related command of writing a CMakeLIsts.txt file?
> 
> -- 
> Xin Shuai (David)
> PhD of Complex System in School of Informatics
> Indiana University Bloomington
> 812-606-8019
> _______________________________________________
> BioLib-dev mailing list
> BioLib-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biolib-dev
> 



More information about the BioLib-dev mailing list