cpm-cmake / CPM.cmake

📦 CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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" ?