Skip to content

HELLO module presents example of a simple SALOME module in C++

License

Notifications You must be signed in to change notification settings

SalomePlatform/hello

Repository files navigation

*************************
About SALOME HELLO sample
*************************

SALOME HELLO module presents example of a simple SALOME module, implemented
with C++. This sample demonstrates a way to create a modules which provide
services via the CORBA engine.

For more information about SALOME platform please visit the SALOME web site:

  <https://www.salome-platform.org/>

=======
License
=======

SALOME platform is distributed under the GNU Lesser General Public License.
See COPYING file for more details.

============
Installation
============

--------------
Pre-requisites
--------------

SALOME platform relies on a set of third-party softwares; some of them are needed
at build time only, while other ones are needed in runtime also.

For more information about the pre-requisites please visit SALOME platform web
site:

* Check Release Notes and Software Requirements of the latest SALOME release at

  <https://www.salome-platform.org/?page_id=15/>

Note: SALOME HELLO needs SALOME KERNEL and SALOME GUI as pre-requisites.

------------------
Basic Installation
------------------

The build procedure of the SALOME platform is implemented with CMake.
In order to build the module you have to do the following actions:

1. Set up environment for pre-requisites (see "Pre-requisites" section above).

2. Create a build directory:

   % mkdir HELLO_BUILD

3. Configure the build procedure:

   % cd HELLO_BUILD
   % cmake -DCMAKE_BUILD_TYPE=<mode> -DCMAKE_INSTALL_PREFIX=<installation_directory> <path_to_src_dir>

   where
   - <mode> is either Release or Debug (default: Release);
   - <installation_directory> is a destination folder to install SALOME HELLO
     module (default: /usr);
   - <path_to_src_dir> is a path to the SALOME HELLO sources directory.

   Note: by default (if CMAKE_INSTALL_PREFIX option is not given), SALOME HELLO
   module will be configured for installation to the /usr directory that requires
   root permissions to complete the installation.

4. Build and install:

   % make
   % make install

   This will install SALOME HELLO module to the <installation_directory>
   specified to cmake command on the previous step.

-------------------
Custom installation
-------------------

SALOME HELLO module supports a set of advanced configuration options;
for more details learn CMakeLists.txt file in the root source directory.

You can also use other options of cmake command to customize your installation.
Learn more about available options by typing

   % cmake --help

===============
Troubleshooting
===============

Please, send a mail to [email protected].