function addIncludePaths(h, varargin)
% ADDINCLUDEPATHS - The addIncludePaths function adds specified include
% paths to the model's build information. Real-Time Workshop stores the
% include paths in a vector. The function adds the paths to the end of the
% vector in the order that you specify them.
%
% Argument    description
% buildinfo   Build information handle returned by RTW.Buildinfo.
%
% paths       A character array or cell array of character arrays that
%             specifies include file paths to be added to the build
%             information. The function adds the paths to the end of a
%             vector in the order that you specify them.
%             The function removes duplicate include file entries that
%               - Already exist in the include path vector
%               - Have a path that matches the path of a matching filename
%             A duplicate entry consists of an exact match of a path string
%             and corresponding filename.
%
% groups      (optional) A character array or cell array of character arrays
%             that groups specified include paths
%
% example 1:   
%   myModelBuildInfo = RTW.BuildInfo;
%   addIncludePaths(myModelBuildInfo, '/etcproj/etc/etc_build');
%
% example 2:
%   myModelBuildInfo = RTW.BuildInfo;
%   addIncludePaths(myModelBuildInfo,...
%                   {'/etcproj/etclib' '/etcproj/etc/etc_build'},'etc');
%
% Please refer to the documentation for more information.
%

% Copyright 2005-2019 The MathWorks, Inc.
[varargin{:}] = convertStringsToChars(varargin{:});   
h.addPaths('include', varargin{:});
