Export a CMake config file

This will allow users to import the project via CMake methods, i.e `find_package` rather than doing it manually.
This commit is contained in:
Tommy Nguyen 2018-01-09 19:53:06 -05:00 committed by Howard Hinnant
parent 3b8372f4fa
commit 3e5a57467a

View File

@ -94,6 +94,8 @@ target_include_directories(date_interface INTERFACE
)
install( TARGETS date_prj EXPORT DateConfig )
install( EXPORT DateConfig DESTINATION lib/cmake/date )
install( TARGETS tz DESTINATION lib )
install( DIRECTORY ${HEADER_FOLDER}/ DESTINATION include/ )