Main Content

Include directories

Option to add directories containing header and source files

Model Configuration Pane: Simulation Target

Description

The Include directories parameter specifies directories that contain header and source files.

Settings

none (default)

You can separate folder path entries with newlines, commas, spaces or semicolons.

  • Specify absolute or relative paths to the directories.

  • Relative paths must be relative to the folder containing your model files. For more information, see Specify Paths to Source Files and Libraries.

  • The order in which you specify the directories is the order in which they are searched for header, source, and library files.

Note

If you specify a Windows® path containing one or more spaces, you must enclose the character vector in double quotes. For example, the second and third paths in the Include directories entry below must be double-quoted. In this example, the second path C:\Custom Files and the third path C:\Library Files contain spaces, and they are double-quoted.

C:\Project "C:\Custom Files" "C:\Library Files"

If you set the equivalent command-line parameter SimUserIncludeDirs, each path containing spaces must be separately double-quoted within the single-quoted third argument, for example,

>> set_param('mymodel', 'SimUserIncludeDirs', ...
             'C:\Project "C:\Custom Files" "C:\Library Files"')

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution

No recommendation

Programmatic Use

Parameter: SimUserIncludeDirs
Type: character vector or string scalar
Value: any folder path
Default: ""

Version History

Introduced in R2020b