The code generation mechanism uses the components and configurations you have created in order to determine where code should be generated.
By default, all files are generated in the directory that represents the configuration for which code is being generated. To have code generated to a different directory:
You can use one or both of the following properties to control the directory structure used for generated code within the output directory:
[lang]_CG::Configuration::DefaultSpecificationDirectory and [lang]_CG::Configuration::DefaultImplementationDirectory - These properties are available for C and C++ since these languages have separate specification and implementation files. Use these properties to specify the names of the subdirectories that should be used to separate the specification files from the implementation files. For example, you can have all the specification files generated to a subdirectory called inc and all the implementation files generated to a subdirectory called src. If you do not provide values for these properties, the specification and implementation files will be generated to the same directory.
For C and C++ you can choose to use these properties in conjunction with the GenerateDirectory property. For example, if you specify "inc" as the specification directory and "src" as the implementation directory, and set the value of GenerateDirectory to True, you will end up with inc and src subdirectories under each package directory.