Skip to content

Commit

Permalink
Provide directory of library's header as the include directory (#220)
Browse files Browse the repository at this point in the history
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)`.
  • Loading branch information
grosscol authored May 18, 2024
1 parent 798e151 commit 6d40fe8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/internal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ../)

0 comments on commit 6d40fe8

Please sign in to comment.