23
edits
(→Compiling: Out-of-source explanation and link to cmake wiki.) |
|||
Line 1: | Line 1: | ||
== Compiling == | == Compiling == | ||
Flightgear, Simgear, and OpenSceneGraph now use <tt>cmake</tt>. See the [http://www.cmake.org/Wiki/CMake_Useful_Variables CMake wiki] for additional documentation. | |||
CMake allows users to create "out-of-source" builds, which means build files are created in a separate directory, and many variants can be maintained. To use out-of-source builds, simply create a new directory and pass the path to source to <code>cmake</code>. | |||
=== Example "out-of-source" build with CMake === | |||
<syntaxhighlight lang="bash"> | |||
simgear $ mkdir ../build.simgear | |||
simgear $ cd ../build.simgear | |||
build.simgear $ cmake ../simgear | |||
</syntaxhighlight> | |||
After CMake has run, you can <code>make && make install</code>. | |||
=== Getting and compiling SimGear === | === Getting and compiling SimGear === |
edits