Commit 30c96c98 authored by Fernando Herrero's avatar Fernando Herrero
Browse files

Install to subfolder. Add plural cmake variables. Add gitignore

Modified the necessary files to save the headers, the library and all the related files on the subdirectory iri/<package_name>
Add plural _INCLUDE_DIRS and _LIBRARIES find cmake variables.
Add .gitignore file to ignore bin, build and lib directories
parent 7ebe214e
bin
build
lib
#edit the following line to add the librarie's header files
FIND_PATH(dynamixel_motor_cont_INCLUDE_DIR dynamixel.h /usr/include/iridrivers /usr/local/include/iridrivers)
FIND_PATH(dynamixel_motor_cont_INCLUDE_DIR dynamixel.h /usr/include/iri/dynamixel_motor_cont /usr/local/include/iri/dynamixel_motor_cont)
FIND_LIBRARY(dynamixel_motor_cont_LIBRARY
NAMES dynamixel_motor_cont
PATHS /usr/lib /usr/local/lib /usr/local/lib/iridrivers)
PATHS /usr/lib /usr/local/lib /usr/local/lib/iri/dynamixel_motor_cont)
SET(dynamixel_motor_cont_INCLUDE_DIRS ${dynamixel_motor_cont_INCLUDE_DIR})
SET(dynamixel_motor_cont_LIBRARIES ${dynamixel_motor_cont_LIBRARY})
IF (dynamixel_motor_cont_INCLUDE_DIR AND dynamixel_motor_cont_LIBRARY)
SET(dynamixel_motor_cont_FOUND TRUE)
......
......@@ -27,11 +27,11 @@ ADD_DEPENDENCIES(dynamixel_motor_cont xsd_files_gen)
INSTALL(TARGETS dynamixel_motor_cont
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib/iridrivers
ARCHIVE DESTINATION lib/iridrivers
LIBRARY DESTINATION lib/iri/${PROJECT_NAME}
ARCHIVE DESTINATION lib/iri/${PROJECT_NAME}
)
INSTALL(FILES ${headers} DESTINATION include/iridrivers)
INSTALL(FILES ${headers} DESTINATION include/iri/${PROJECT_NAME})
INSTALL(FILES ../Finddynamixel_motor_cont.cmake DESTINATION ${CMAKE_ROOT}/Modules/)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment