Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Visual Studio 2010 C++ inherit include path from referenced projects?

Visual Studio C++'s project reference (Accessible in Property Pages/Common Properties/Add New Reference...) feature allows you to use the symbol definitions in one project (e.g. project A a static lib) in another (e.g. project B an executable).

Adding a reference 'automates' adding project A's output directory into project B's Property Pages/Linker/General/Additional Library Dependencies, and adding the name of A's output lib into project B's Property Pages/Linker/Input/Additional Dependencies.

Q: Is there a way to make project B automatically include the include path from project A, e.g. through a macro in project B's Property Pages/C,C++/General/Additional Include Directories?

Thankyou.

like image 707
Elliot Woods Avatar asked Feb 28 '12 05:02

Elliot Woods


1 Answers

You may want to have a look at Property Sheet.

like image 133
Camford Avatar answered Oct 12 '22 06:10

Camford