building.md: update cmake instructions

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll 2014-11-09 12:25:48 +00:00
parent 44b1ff7f75
commit 4bf30df933

View File

@ -15,20 +15,27 @@ cmake ..
make make
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
Our cmake configure has a number of options, `cmake -i` will ask you all sorts Our cmake configure has a number of options, cmake-gui or ccmake can show you
of interesting questions, you can disable swig modules, build documentation all the options. The interesting ones are detailed below:
etc...
Few recommended options:
Changing install path from /usr/local to /usr Changing install path from /usr/local to /usr
-DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_PREFIX:PATH=/usr
Building debug build: Building debug build:
-DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_BUILD_TYPE=DEBUG
Using clang instead of gcc: Using clang instead of gcc:
-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang
Building with an older version of swig (swig 2.0+) requires the disabling of javascript:
-DBUILDSWIGNODE=OFF
Disabling python module building
-DBUILDSWIGPYTHON=OFF
Building doxygen doc
-BUILDDOC=ON
Often developers are only interested in building one module or even just the Often developers are only interested in building one module or even just the
python/node module to do some quick testing using scripting. In order to do python/node module to do some quick testing using scripting. In order to do
this you need to use the target name for the python or node module you want to this you need to use the target name for the python or node module you want to