+ 4.3. Build SALOME using cmake
+
+ Some (but not all) SALOME modules can be built using
+ cmake. If you want to learn what modules can be built with
+ cmake, just check the root source directory and look for
+ CMakeLists.txt file or build_cmake script.
+
+ This paragraph describes the steps that should be done in
+ order to build SALOME modules using cmake.
+
+ For example, to build KERNEL module:
+
+ - go to installation root directory (/home/user/salome in this example):
+
+ cd /home/user/salome
+
+ - to set environment variables use bash or csh script, depending on
+ your shell:
+
+ source ./env_products.csh
+ or
+ source ./env_products.sh
+
+ - generate CMakeLists.txt files:
+
+ cd KERNEL_SRC_6.5.0
+ ./build_cmake
+ cd ..
+
+ Note, that this step is not required for PARAVIS module,
+ since it is already supplied with the CMakeLists.txt
+ files. For other modules, build_cmake script generates
+ CMakeLists.txt files from the Makefile.am files.
+
+ - create build directory for the KERNEL module:
+
+ mkdir KERNEL_build
+ cd KERNEL_build
+
+ - run cmake
+
+ cmake -DCMAKE_INSTALL_PREFIX=/home/user/salome/KERNEL-6.5.0 ../KERNEL_SRC_6.5.0
+
+ Note, that -DCMAKE_INSTALL_PREFIX option defines the directory where you want to
+ install KERNEL module after 'make install' procedure. You
+ can supply additional options to the cmake (for example, to
+ build the module in the Release mode use -DCMAKE_BUILD_TYPE=Release option).
+
+ - build and install KERNEL module:
+
+ make
+ make install
+
+ After you have completed this scenario, KERNEL module is built and
+ installed into /home/user/salome/KERNEL-6.5.0 directory.
+
+ - modify your environment scripts:
+
+ * for bash:
+
+ export KERNEL_ROOT_DIR=/home/user/salome/KERNEL-6.5.0
+
+ * for csh:
+
+ setenv KERNEL_ROOT_DIR /home/user/salome/KERNEL-6.5.0
+