简体   繁体   中英

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.

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.

I'm not aware of an option that does what you ask for in VS. The Source directories configuration is used for locating source files that go along with libraries that you are using in your project. This way you can use the library in its binary format without the need to recompile it every time you rebuild your project, but you can also step into its code while debugging.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM