diff --git a/CMakeLists.txt b/CMakeLists.txt index ba1b909..8aefbcc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,6 +72,19 @@ target_include_directories(tz PUBLIC > ) +add_library(date INTERFACE) # an interface (not a library), to enable automatic include_directory (for when just date.h, but not "tz.h and its lib" are needed) + +# add include folders to the INTERFACE and targets that consume it +target_include_directories(date INTERFACE + $ + $ +) + + install( TARGETS tz DESTINATION lib ) install( DIRECTORY ${HEADER_FOLDER}/ DESTINATION include/ )