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

A link to a Visual Studio C ++ project (available in the properties page of the properties / general properties / adding a new link ...) allows you to use character definitions in one project (for example, project A static lib) in another (for example, project B an executable )

Adding a link “automates” the addition of a project. The output directory to project B is “Property Pages / Linker / General / Additional Libraries” and the name of the output file is added to Project B. Property Pages / Linker / Input / Additional Dependencies.

Q: Is there a way to make project B automatically include the inclusion path from project A, for example. through a macro in project B Property pages / C, C ++ / General / Additional Include directories?

Thankyou.

+6
source share
2 answers

You can see the Property Sheet .

+4
source

If I understood your question correctly, then you had a similar problem, like me. You can find the answer to this related problem here: Get directories for the custom build phase

+1
source

Source: https://habr.com/ru/post/909513/


All Articles