From b29b82318c9cc9cfe204defbe0146fdd9a008323 Mon Sep 17 00:00:00 2001
From: flforget <florent.forget1@gmail.com>
Date: Fri, 17 Apr 2015 15:04:39 +0200
Subject: [PATCH] [cmake] Add install for libpinocchio.so

---
 src/CMakeLists.txt | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 7b393358b..a5c0258ac 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -73,10 +73,17 @@ IF(EIGENPY_FOUND)
 ENDIF(EIGENPY_FOUND)
 
 IF (UNIX )  
+    # Create target libpinocchio.so
     ADD_LIBRARY ( ${PROJECT_NAME} SHARED ${HEADERS} ${${PROJECT_NAME}_SOURCES} )
 		SET_TARGET_PROPERTIES( ${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX)
     
 		ADD_HEADERS_GROUP ("math" ${PROJECT_NAME}_MATH_HEADERS )  
+
+    # Install target libpinocchio.so
+    INSTALL(FILES
+      "${CMAKE_BINARY_DIR}/src/lib${PROJECT_NAME}.so"
+      DESTINATION ${CMAKE_INSTALL_LIBDIR})
+
     ADD_HEADERS_GROUP ("tools" ${PROJECT_NAME}_TOOLS_HEADERS )
     ADD_HEADERS_GROUP ("spatial" ${PROJECT_NAME}_SPATIAL_HEADERS )
     ADD_HEADERS_GROUP ("multibody" ${PROJECT_NAME}_MULTIBODY_HEADERS )
-- 
GitLab