I've these project inside Visual Studio 2015:
as you can see, they "share" the same classes (.cpp/.h). If I edit it inside DefaultProject-app
, automatically it change within DefaultProject-vst2
.
Now, I want to make a new class, and I want the same for it. So right click to DefaultProject-app
->Add->Class. But once I create it, it place only in DefaultProject-app
. It should be in both project, and compile when I compile one of the other.
How can I do it? Somethings like "Build Phases" in Xcode?
If you have classes that are used by more than one project, the best approach is to create a new third project that both DefaultProject-app
and DefaultProject-vst2
can both reference. This is one of the foundations of programming: a library with common classes and functions.