2 .. include:: ../../rst_prolog.rst
9 The **generate** command generates and compile SALOME modules from cpp modules using YACSGEN.
11 .. note:: This command uses YACSGEN to generate the module. It needs to be specified with *--yacsgen* option, or defined in the product or by the environment variable ``$YACSGEN_ROOT_DIR``.
16 * This command will only apply on the CPP modules of the application, those who have both properties: ::
21 * The cpp module are usually computational components, and the generated module brings the CORBA layer which allows distributing the compononent on remore machines. cpp modules should conform to YACSGEN/hxx2salome requirements (please refer to YACSGEN documentation)
26 * Generate all the modules of a product: ::
28 sat generate <application>
30 * Generate only specific modules: ::
32 sat generate <application> --products <list_of_products>
34 Remark: modules which don't have the *generate* property are ignored.
36 * Use a specific version of YACSGEN: ::
38 sat generate <application> --yacsgen <path_to_yacsgen>