I used add_subdirectory(third_party/clickhouse-cpp EXCLUDE_FROM_ALL) to import the targets of clickhouse library.
However in the root CMakeLists.txt of this project, the directories required is specified by INCLUDE_DIRECTORIES, not TARGET_INCLUDE_DIRECTORIES. So only linking the target in CMake is not enough, which is not encouraged by modern CMake practice.
Is it feasible to modify the CMake files, so external projects can import clickhouse more conveniently?
I used
add_subdirectory(third_party/clickhouse-cpp EXCLUDE_FROM_ALL)to import the targets of clickhouse library.However in the root
CMakeLists.txtof this project, the directories required is specified byINCLUDE_DIRECTORIES, notTARGET_INCLUDE_DIRECTORIES. So only linking the target in CMake is not enough, which is not encouraged by modern CMake practice.Is it feasible to modify the CMake files, so external projects can import clickhouse more conveniently?