

Note As the dependencies are built during the configure stage of CMake, you must specify the desired CMAKE_BUILD_TYPE via command-line. You can configure it by setting OGRE_DEPENDENCIES_DIR in cmake. Ogre will install the dependencies into the subfolder Dependencies in the build dir by default. for Android and for Linux) all working from the same Ogre source.īy default ogre will build the recommended dependencies automatically when you run cmake configure the first time. This way, the Ogre source dir stays clean, and you can have multiple build directories (e.g. This is the directory where CMake will create the build system for your chosen platform and compiler, and this is also where the Ogre libraries will be compiled. You should now create a build directory for Ogre somewhere outside Ogre's sources. Ogre provides several options which you can use to customise your build. The build process is configurable via CMake. It is a program which, from a set of CMake scripts, creates a native build system for your platform that allows you to build Ogre. You need a CMake version >= 3.10.ĬMake is a cross-platform build system - or perhaps more accurately a build configurator.

This guide will explain to you how to use CMake to build Ogre from source. Ogre uses CMake as its build system on all supported platforms.
