Setting up libraries that are represented in the model for generating C++ code (C++ code)
If you have libraries represented in the model, for each library class you can specify the #include statement to be generated for any classes or structs that use that library class. You can specify the #include statement for a Package and then propagate that #include statement to all its sub-Packages and items.
1. If you have not done so already, add the C++ Profile package to your Model.
How?
2. Apply the «C++ Library» stereotype to the Package that owns the library classes.
3. Open the Package's Property Pages, and then click the C++ Library tab.
4. Set the tagged value of the C++ LIB_INCLUDE tag definition to the #include statement that you want to generate for a class or struct that uses the library, including the '#include' text.