--- CMakeLists.txt.orig	2016-08-09 12:52:52.000000000 -0700
+++ CMakeLists.txt	2019-07-17 07:10:26.000000000 -0700
@@ -43,3 +43,26 @@
 enable_testing              ()
 add_subdirectory            (examples)
 add_subdirectory            (tests)
+
+install                     (DIRECTORY   ${CMAKE_SOURCE_DIR}/include/diy
+                             DESTINATION ${CMAKE_INSTALL_PREFIX}/include/diy2)
+
+add_library(diy INTERFACE)
+target_include_directories(
+    diy
+    INTERFACE
+    "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>"
+    "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
+)
+
+install(
+    TARGETS diy
+    EXPORT diyExport
+    INCLUDES DESTINATION "${CMAKE_INSTALL_PREFIX}/include/diy2"
+)
+
+install(
+    EXPORT diyExport
+    DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/cmake/diy2"
+    FILE "diy2Config.cmake"
+)
