392
edits
m (added category) |
m (cmake option-source order altered) |
||
Line 55: | Line 55: | ||
cmake ../flightgear | cmake ../flightgear | ||
To generate standard Unix Makefiles in fgbuild. | To generate standard Unix Makefiles in fgbuild. | ||
Line 62: | Line 62: | ||
Probably you want to specify an install prefix: | Probably you want to specify an install prefix: | ||
cmake | cmake -DCMAKE_INSTALL_PREFIX=/usr ../flightgear | ||
Note the install prefix is automatically searched for required libraries | Note the install prefix is automatically searched for required libraries | ||
Line 71: | Line 71: | ||
you can specify one or more via CMAKE_PREFIX_PATH: | you can specify one or more via CMAKE_PREFIX_PATH: | ||
cmake | cmake -DCMAKE_PREFIX_PATH="/opt/local;/opt/fgfs" ../flightgear | ||
(note the use of semi-colons to specify multiple prefix paths) | (note the use of semi-colons to specify multiple prefix paths) | ||
Line 84: | Line 84: | ||
By default, we select a release build. To create a debug build, use | By default, we select a release build. To create a debug build, use | ||
cmake ../flightgear | cmake -DCMAKE_BUILD_TYPE=Debug ../flightgear | ||
(or MinSizeRel, or RelWithDbg) | (or MinSizeRel, or RelWithDbg) | ||
Line 110: | Line 110: | ||
To set an optional feature, do | To set an optional feature, do | ||
cmake ../flightgear | cmake -DFEATURE_NAME=ON ../flightgear | ||
(or 'OFF' to disable ) | (or 'OFF' to disable ) | ||
Line 117: | Line 117: | ||
run one of the GUI front ends, or the following command: | run one of the GUI front ends, or the following command: | ||
cmake ../flighgear | cmake -L ../flighgear | ||
Add 'A' to see all the options (including advanced options), or 'H' to see | Add 'A' to see all the options (including advanced options), or 'H' to see | ||
the help for each option (similar to running configure --help under autoconf): | the help for each option (similar to running configure --help under autoconf): | ||
cmake ../flightgear | cmake -LH ../flightgear | ||
== Build Targets == | == Build Targets == |
edits