Recursive CMake search for header and source files
You’re probably missing one or more include_directories calls. Adding headers to the list of files in the add_executable call doesn’t actually add then to the compiler’s search path – it’s a convenience feature whereby they are only added to the project’s folder structure in IDEs. So, in your root, say you have /my_lib/foo.h, and you … Read more