Compiling using CMake

From OdaWiki
Revision as of 22:38, 9 July 2011 by AlexMax (Talk | contribs) (Windows)

According to the Wikipedia page, CMake is a unified, cross-platform, open-source build system that enables developers to build, test and package software by specifying build parameters in simple, portable text files. It works in a compiler-independent manner and the build process works in conjunction with native build environments, such as make, Apple's Xcode and Microsoft Visual Studio. It also has minimal dependencies, C++ only. CMake is open source software and is developed by Kitware.

CMake can:

  • Create libraries
  • Generate wrappers
  • Compile source code
  • Build executables in arbitrary combinations

Since the CMake build files are not in Odamex's source tree yet, you can grab a patch file that can be applied against the base directory of an SVN checkout link here. The correct patch is by Alexander Mayfield, the one by Albert Brown has not been updated since 2007.

Windows

The latest version of CMake can be downloaded from Kitware's website here.

Linux