MATLAB: How to add whole directory structures with DEPLOYTOOL in MATLAB 7.6 (R2008a)

MATLAB Compiler

I am trying to develop a standalone application and I have a few files that are not found automatically when I use DEPLOYTOOL. I would like to add my entire source code directory structure to my project so that all the necessary files are included in the executable.

Best Answer

This enhancement has been incorporated in MATLAB Compiler 4.11 (R2009b). For previous product releases, read below for any possible workarounds:
The ability to add entire directory structures using DEPLOYTOOL is not available in MATLAB Compiler 4.8 (R2008a).
As a workaround, please use the "-a" switch with MCC to include entire directory structures. For example, to include the directory testdir in the compiled application, please use the following command
mcc -m hello.m -a ./testdir