Building using CMake: Difference between revisions

Jump to navigation Jump to search
Line 33: Line 33:
export OSG_DIR=/opt/my-osg-path
export OSG_DIR=/opt/my-osg-path
export PLIBDIR=/opt/my-plib-path</pre>
export PLIBDIR=/opt/my-plib-path</pre>
Note: In order to set the CFLAGS/CXXFLAGS variables for make/gcc, simply configure cmake and define
CMAKE_C_FLAGS and CMAKE_CXX__FLAGS.
For example, to enable gprof:
<pre>
cmake ../flightgear -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_FLAGS=-pg -DCMAKE_CXX_FLAGS=-pg
</pre>


===Mac===
===Mac===

Navigation menu