From 3e5a57467ae8409794a7db3888807e5bc50934a6 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <33887735+remyabel@users.noreply.github.com> Date: Tue, 9 Jan 2018 19:53:06 -0500 Subject: [PATCH] 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. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 091df9f..c9313fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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/ )