c++ - How to add additional dll search directories for native unit tests? -
i'm working on big code base has many solutions , many more projects. when write unit tests depend on number of dlls being present built other solutions different output folders current solution. i add build steps copy required dll's current solution's output folder can found when run unit tests. can end in lot of wasted space , confusion duplicate dlls , master copy of each dll 1 should go installer. is there better way of adding additional search directories? i considering having test_module_initialize adddlldirectory() , marking dll's delay loaded when load added dll directory searched. but, don't think works have mark dll's delay loaded in exe. but, exe testrunner out of control. it may not best method, since you're using visual studio 2013, should test settings control deployed when run tests. inside of test settings can specify files or folders in deployment section allow select files outside of current solution. can create mult