Salome HOME
updated copyright message
[samples/component.git] / README
1 *****************************
2 About SALOME COMPONENT sample
3 *****************************
4
5 COMPONENT module implements a sample of SALOME component.
6 It shows how to introduce new functionalities into SALOME platform
7 by implementing custom CORBA-based component engine.
8
9 For more information please visit the SALOME platform web site:
10
11   <https://www.salome-platform.org/>
12
13 =======
14 License
15 =======
16
17 SALOME platform is distributed under the GNU Lesser General Public License.
18 See COPYING file for more details.
19
20 ============
21 Installation
22 ============
23
24 --------------
25 Pre-requisites
26 --------------
27
28 SALOME platform relies on a set of third-party softwares; some of them are needed
29 at build time only, while other ones are needed in runtime also.
30
31 For more information about the pre-requisites please visit SALOME platform web
32 site:
33
34 * Check Release Notes and Software Requirements of the latest SALOME release at
35
36   <https://www.salome-platform.org/?page_id=15/>
37
38 Note: SALOME COMPONENT needs SALOME KERNEL as a pre-requisite.
39
40 ------------------
41 Basic Installation
42 ------------------
43
44 The build procedure of the SALOME platform is implemented with CMake.
45 In order to build the module you have to do the following actions: 
46
47 1. Set up environment for pre-requisites (see "Pre-requisites" section above).
48
49 2. Create a build directory:
50
51    % mkdir COMPONENT_BUILD
52
53 3. Configure the build procedure:
54
55    % cd COMPONENT_BUILD
56    % cmake -DCMAKE_BUILD_TYPE=<mode> -DCMAKE_INSTALL_PREFIX=<installation_directory> <path_to_src_dir>
57
58    where
59    - <mode> is either Release or Debug (default: Release);
60    - <installation_directory> is a destination folder to install SALOME COMPONENT
61      module (default: /usr); 
62    - <path_to_src_dir> is a path to the SALOME COMPONENT sources directory.
63
64    Note: by default (if CMAKE_INSTALL_PREFIX option is not given), SALOME COMPONENT
65    module will be configured for installation to the /usr directory that requires
66    root permissions to complete the installation.
67
68 4. Build and install:
69
70    % make
71    % make install
72
73    This will install SALOME COMPONENT module to the <installation_directory>
74    specified to cmake command on the previous step.
75
76 -------------------
77 Custom installation
78 -------------------
79
80 SALOME COMPONENT module supports a set of advanced configuration options;
81 for more details learn CMakeLists.txt file in the root source directory.
82
83 You can also use other options of cmake command to customize your installation.
84 Learn more about available options by typing
85
86    % cmake --help
87
88 ===============
89 Troubleshooting
90 ===============
91
92 Please, send a mail to webmaster.salome@opencascade.com.