Visual Studio: Link executable
Posted
by smerlin
on Stack Overflow
See other posts from Stack Overflow
or by smerlin
Published on 2010-04-22T16:48:32Z
Indexed on
2010/05/14
3:44 UTC
Read the original article
Hit count: 237
Lets say I have: a static library project called "LIB" a application project called "LIBAPP" a application project called "APP" a application project called "APPTEST"
When i add "LIB" to LIBAPP Project Dependencies, Visual Studio automatically links "LIBAPP" against LIB. But when i add APP to APPTEST Project Dependencies, it doesnt.
Since i am doing unit tests of APP's classes in APPTEST, i have to link against APP, therefore i am currently manually linking against all *.obj files of APP (hundreds...)
Since i have to change the link targets of APPTEST everytime i add or remove a *.cpp file from APP, this isnt a nice solution.
So is there a way to force Visual Studio to do this for me automatically, like it does when adding a static library Project Dependency ?
© Stack Overflow or respective owner