From ReactOS Wiki
Revision as of 23:35, 5 September 2010 by CycleGeek (talk | contribs) (copyedit: Reorganize into sections, remove: generic build commands (link through "See also" section))
Jump to: navigation, search

CMake is a cross-platform build system. It is a proposed alternative to RBuild.

Preparing the Build Environment

To build using CMake the cmake-bringup branch must first be checked out. After obtaining the source, the following two subfolders must be created:

  • build
  • build-ros

Navigate to the tools subfolder in the RosBE folder and copy make.exe to mingw32-make.exe.


To build the branch the build tools must first be compiled using CMake. This needs to be done for the first build and whenever there is a change to the build tools.

cd build
cmake -G "MinGW Makefiles" ..\
cd ..

With the build tools compiled, ReactOS can now be compiled. In the case of CMakeLists being updated it is best to remove the content of the build-ros folder and rebuild ReactOS.

cd build-ros
cmake -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain-mingw32.cmake ..\

See also