Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Source directories in Visual Studio 2010

I am using OF in my project and I want to use some add-ons but I have to add .cpp files to my project in order to compile them. I don't like it. Is there any option so I could specify a folder to scan for source files and compile every .cpp file it finds?

I thought it might be Source Directories in VC++ Directories section but it didn't work. Then I don't really get what it does.

like image 730
Pijusn Avatar asked Jan 14 '11 17:01

Pijusn


People also ask

What is a source directory?

The directory/folder from which data are obtained.


1 Answers

If you want to compile sources using Visual Studio, you will have to add them to your project. There is nothing wrong about adding external sources to your project in a nice filter.

You can also create a makefile to be used by Visual Studio which will list sources you need.

like image 193
Xavier V. Avatar answered Oct 08 '22 17:10

Xavier V.