From b3ef3cffec2c8eb2446f9cf0de88b29d3f8fc99d Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 14 Mar 2024 14:28:36 -0400 Subject: [PATCH] Provide directory of library's header as the include directory Avoid having consumers need to know or declare internal structure of project. Facilitate use with `FetchContent_Declare` to get the repo and then simply use `target_include_directories( their_proj PRIVATE csv)`. --- include/internal/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/include/internal/CMakeLists.txt b/include/internal/CMakeLists.txt index 42cac240..019208f9 100644 --- a/include/internal/CMakeLists.txt +++ b/include/internal/CMakeLists.txt @@ -25,3 +25,4 @@ target_sources(csv set_target_properties(csv PROPERTIES LINKER_LANGUAGE CXX) target_link_libraries(csv PRIVATE Threads::Threads) +target_include_directories(csv INTERFACE ../)