diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7b393358b9775038ab920b98f2d002b1dcebb66c..a5c0258ac6fe2bda97a030515cf74ad457d36603 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 )