Changes between Version 13 and Version 14 of code/tools/CMake
- Timestamp:
- Dec 1, 2007, 4:33:11 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/tools/CMake
v13 v14 2 2 = CMake Build System = 3 3 4 == Using CMake == 5 CMake is a build tool which created Makefile for you. 6 {{{ 7 $ cmake . 8 }}} 9 With those Makefiles, the project the can be built. 10 {{{ 11 $ make -j2 all 12 }}} 13 14 15 == Rebuilding the CMakeCache == 16 Sometime 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 4 22 == Writing CMakeLists.txt == 5 Just as an simple example for how to write a CMakeLists.txt (CMake counterpart to Makefile.am and alike).[[br]]23 Just as an simple example for how to write a CMakeLists.txt.[[br]] 6 24 {{{ 7 25 PROJECT(Orxonox) … … 22 40 CMake is capable of creating .kdevelop files, which are used as project files in (guess where) KDevelop. To create them simply use the following command 23 41 24 {{{cmake . -GKDevelop3}}} 42 {{{ 43 $ cmake . -GKDevelop3 44 }}} 25 45 26 46