add_library() isn't aware of h-file location like add_executable()
greenduck opened this issue · comments
If I use add_executable()
it automatically "knows" where to find every h-file.
However, add_library()
with the same source files (except for main.cpp) requires adding target_include_directories()
with the locations of all the h-files.
Shouldn't CPM find the h-files "for everyone" ?