Pārlūkot izejas kodu

building.md: update cmake instructions

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll 10 gadus atpakaļ
vecāks
revīzija
4bf30df933
1 mainītis faili ar 13 papildinājumiem un 6 dzēšanām
  1. 13
    6
      docs/building.md

+ 13
- 6
docs/building.md Parādīt failu

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