I am new to CMake build process. I have a list of sub directories and each sub directory requires a set of include_directories ( files from different libraries).
My question is: is it efficient to add the include_directory call right at the main CMakeList so that it is reference in all the sub directories (i.e. I wouldn't need to add in all the sub directories) or is it efficient to add it every sub directory.
Please let me know what are the pros and cons of such a process.
Note: I do understand that I can add the common include files in the main cmakelist file but, what if I were to add the project specific include directories in the main CMakefile? Are all the include_directories included in the created static libraries for each sub directory ?