I have a project in MSVC which I want to migrate to TI CCS3.3.
I have a complex directory structure as sown below for my codebase in which both C and H fles exists at 2nd, 3rd and 4th level of directory structure and any c file could include any header file. I am facing a problem in giving relative path in include search path (-i option) in TI project.
In MSVC and other tools relative path is always relative to Project file or executable but it seems that it is not the case with CCS.
It seems that CCS expects header include path relative to the file and not the project but I want it the other way.
1. Is there any way to make all the include path relative to the project and not to every 'c' file? I don't want to use environmental variable to be used in project file.
2. Second problem is that when I put program level optimization as -pm -op2, CCS starts taking all path as relative to project but I want to make it work in pure Debug mode and don't want to change it in Debug and Release configuration.
Exmample directory structure :
root
API
inc
src
Module
m1
inc
src
m2
m21
inc
src
m22
inc
src