This is probably a bogus question, but I literally looked at the first two pages of Google without success. I am writing only the header library, and I can’t correctly configure CMake so that when building my solution, this one will be main.cppsuitable. How can I do that?
EDIT
Therefore, I probably should give a slightly more detailed explanation.
Let's say I have a folder ./srcwith: ./src/coreand ./src/wrappers. Inside each folder, I have files .hthat should be included in the file main.cpp:
#include <src/core/reader.h>
Also, when I entered CMakeList.txtsomething like:
include_directories(src/core)
add_executable(main main.cpp)
I get a message like: src/core/reader.hthere is no such file or directory.