Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 13 and Version 14 of code/tools/CMake


Ignore:
Timestamp:
Dec 1, 2007, 4:33:11 PM (17 years ago)
Author:
nicolasc
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/tools/CMake

    v13 v14  
    22= CMake Build System =
    33
     4== Using CMake ==
     5CMake is a build tool which created Makefile for you.
     6{{{
     7$ cmake .
     8}}}
     9With those Makefiles, the project the can be built.
     10{{{
     11$ make -j2 all
     12}}}
     13
     14
     15== Rebuilding the CMakeCache ==
     16Sometime it happens, that CMake won't accept the new setting you added some where in a CMakeLists.txt. As a workaround -- I have not found a better solution yet -- delete the the toplevel CMakeCache, and rebuild every Makefile.
     17{{{
     18$ cd <some/branch/or/trunk> && rm -f CMakeCache && cmake .
     19}}}
     20
     21
    422== Writing CMakeLists.txt ==
    5 Just as an simple example for how to write a CMakeLists.txt (CMake counterpart to Makefile.am and alike).[[br]]
     23Just as an simple example for how to write a CMakeLists.txt.[[br]]
    624{{{
    725PROJECT(Orxonox)
     
    2240CMake is capable of creating .kdevelop files, which are used as project files in (guess where) KDevelop. To create them simply use the following command
    2341
    24 {{{cmake . -GKDevelop3}}}
     42{{{
     43$ cmake . -GKDevelop3
     44}}}
    2545
    2646