I have following structure in my project.
project-
include-
src-
ab.cpp
ab.h
tests
CMakeLists.txt
CMakeLists.txt
I create library in project/CMakeLists.txt
directory using add_library
. In tests directory CMake, I use target_link_libraries
. Now my test.cpp it does not find ab.h I have to use target_include_directories
with project/src
path. Does the target_link_libraries
only finds header from include
directory or what I am missing here?