From 619c6ab7148e906e0214eea7c82a710b9e224eab Mon Sep 17 00:00:00 2001
From: Jeremie Deray <jeremie.deray@pal-robotics.com>
Date: Wed, 10 Aug 2016 18:07:27 +0200
Subject: [PATCH] export install targets

---
 src/CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 53302ff3a..00eb48277 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -376,11 +376,13 @@ ENDIF (YAMLCPP_FOUND)
 
 #install library
 #=============================================================
-INSTALL(TARGETS ${PROJECT_NAME}
+INSTALL(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Targets
       RUNTIME DESTINATION bin
       LIBRARY DESTINATION lib/iri-algorithms
       ARCHIVE DESTINATION lib/iri-algorithms)
 
+install(EXPORT ${PROJECT_NAME}Targets DESTINATION lib/cmake/${PROJECT_NAME})
+
 #install headers
 INSTALL(FILES ${HDRS_BASE}
     DESTINATION include/iri-algorithms/wolf)
-- 
GitLab