diff --git a/CMakeLists.txt b/CMakeLists.txt index c606f477..25e2b93c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,15 +67,23 @@ target_include_directories( date INTERFACE # adding header sources just helps IDEs target_sources( date INTERFACE $$/date/date.h - # the rest of these are not currently part of the public interface of the library: - $ - $ - $ - $ + $$/date/solar_hijri.h> + $$/date/islamic.h> + $$/date/iso_week.h> + $$/date/julian.h> ) + +set(TARGET_HEADERS + include/date/date.h + include/date/solar_hijri.h + include/date/islamic.h + include/date/iso_week.h + include/date/julian.h +) + if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.15) # public headers will get installed: - set_target_properties( date PROPERTIES PUBLIC_HEADER include/date/date.h ) + set_target_properties( date PROPERTIES PUBLIC_HEADER "${TARGET_HEADERS}" ) endif () # These used to be set with generator expressions, @@ -174,7 +182,7 @@ install( TARGETS date export( TARGETS date NAMESPACE date:: FILE dateTargets.cmake ) if (CMAKE_VERSION VERSION_LESS 3.15) install( - FILES include/date/date.h + FILES "${TARGET_HEADERS}" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/date ) endif ()