Visual Studio C ++ includes the whole file in all subfolders of the directory
In a C ++ project in Visual Studio at:
Project Properties
> Linker
> Input
>Addtional Dependencies
I could write $(MyEnvVar)\folderA\*.lib
to include all libraries.
But let's say folder B has many subdirectories, each with a set of header files.
If I want to include them all in one go, in:
Project Properties
> C/C++
> General
>Addtional Include Directories
I would like to write something like: $(MyEnvVar)\folderB\*\
or $(MyEnvVar)\folderB\*\*\
, to go to one subdirectory deeper in each folder.
This does not work.
Optionally I could do $(MyEnvVar)\folderB\
and in my code I would include each file as #include "name_of_subfolder\name_of_file.h"
. (This I want to avoid.)
Is it possible in one line to include all files in all subfolders of a specific folder?
source to share
No one has answered this question yet
See similar questions:
or similar: