Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Difference between revisions of "Talk:Building using CMake"

From FlightGear wiki
Jump to: navigation, search
(Created page with "These are some handy switches * -D CMAKE_VERBOSE_MAKEFILE=TRUE : get the make-style actual commands instead of just the progress indications. * -D CMAKE_BUILD_TYPE="RELWITHDEBINF...")
 
m
Line 5: Line 5:
 
An example of command-lines for a local build:
 
An example of command-lines for a local build:
 
* OSG/cmake.txt:
 
* OSG/cmake.txt:
  cmake -D CMAKE_BUILD_TYPE:STRING="Release" -D CMAKE_CXX_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall" -D CMAKE_C_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall" -D CMAKE_INSTALL_PREFIX:PATH="$HOME/FlightGear/fg.git" $1
+
  cmake -D CMAKE_BUILD_TYPE:STRING="Release" -D CMAKE_CXX_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall"\
 +
-D CMAKE_C_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall" -D CMAKE_INSTALL_PREFIX:PATH="$HOME/FlightGear/fg.git" $1
 
* SimGear/cmake.txt:
 
* SimGear/cmake.txt:
   cmake -D CMAKE_BUILD_TYPE:STRING="Release" -D CMAKE_CXX_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall" -D CMAKE_C_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall" -D CMAKE_INSTALL_PREFIX:PATH="$HOME/FlightGear/fg.git" -D JPEG_FACTORY:BOOL="ON" $1
+
   cmake -D CMAKE_BUILD_TYPE:STRING="Release" -D CMAKE_CXX_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall"\
 +
-D CMAKE_C_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall" -D CMAKE_INSTALL_PREFIX:PATH="$HOME/FlightGear/fg.git" -D JPEG_FACTORY:BOOL="ON" $1
 
* FlightGear/cmake.txt:
 
* FlightGear/cmake.txt:
  cmake -D CMAKE_BUILD_TYPE:STRING="Release" -D CMAKE_CXX_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall" -D CMAKE_C_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall" -D CMAKE_INSTALL_PREFIX:PATH="$HOME/FlightGear/fg.git" $1
+
  cmake -D CMAKE_BUILD_TYPE:STRING="Release" -D CMAKE_CXX_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall"\
 +
-D CMAKE_C_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall" -D CMAKE_INSTALL_PREFIX:PATH="$HOME/FlightGear/fg.git" $1

Revision as of 12:33, 17 September 2011

These are some handy switches

  • -D CMAKE_VERBOSE_MAKEFILE=TRUE : get the make-style actual commands instead of just the progress indications.
  • -D CMAKE_BUILD_TYPE="RELWITHDEBINFO" : Use some optimization

An example of command-lines for a local build:

  • OSG/cmake.txt:
cmake -D CMAKE_BUILD_TYPE:STRING="Release" -D CMAKE_CXX_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall"\
-D CMAKE_C_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall" -D CMAKE_INSTALL_PREFIX:PATH="$HOME/FlightGear/fg.git" $1
  • SimGear/cmake.txt:
 cmake -D CMAKE_BUILD_TYPE:STRING="Release" -D CMAKE_CXX_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall"\
-D CMAKE_C_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall" -D CMAKE_INSTALL_PREFIX:PATH="$HOME/FlightGear/fg.git" -D JPEG_FACTORY:BOOL="ON" $1
  • FlightGear/cmake.txt:
cmake -D CMAKE_BUILD_TYPE:STRING="Release" -D CMAKE_CXX_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall"\
-D CMAKE_C_FLAGS_RELEASE:STRING="-O3 -g -pipe -march=core2 -mfpmath=sse -Wall" -D CMAKE_INSTALL_PREFIX:PATH="$HOME/FlightGear/fg.git" $1