Skip to content
Snippets Groups Projects
Commit ad638a9c authored by Guillem Alenyà's avatar Guillem Alenyà
Browse files

CMake changes for oneiric

parent 787cecc9
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,8 @@ SET(sources dynamixel_motor.cpp dynamixel_motor_group.cpp dynamixel_motor_except
# edit the following line to add all the header files of the library
SET(headers dynamixel_motor.h dynamixel_motor_group.h dynamixel_motor_exceptions.h)
FIND_PACKAGE(iriutils REQUIRED)
FIND_PACKAGE(comm REQUIRED)
FIND_PACKAGE(dynamixel REQUIRED)
......@@ -12,14 +14,14 @@ FIND_PACKAGE(dynamixel REQUIRED)
FIND_PACKAGE(motor_control REQUIRED)
# edit the following line to add the necessary include directories
INCLUDE_DIRECTORIES(${comm_INCLUDE_DIR} ${dynamixel_INCLUDE_DIR} ${motor_control_INCLUDE_DIR} .)
INCLUDE_DIRECTORIES(${iriutils_INCLUDE_DIR} ${comm_INCLUDE_DIR} ${dynamixel_INCLUDE_DIR} ${motor_control_INCLUDE_DIR} .)
SET_SOURCE_FILES_PROPERTIES(${XSD_SOURCES} PROPERTIES GENERATED 1)
ADD_LIBRARY(dynamixel_motor_cont SHARED ${sources} ${XSD_SOURCES})
#edit the following line to add the necessary system libraries (if any)
TARGET_LINK_LIBRARIES(dynamixel_motor_cont ${comm_LIBRARY} ${dynamixel_LIBRARY} ${motor_control_LIBRARY} ${XSD_LIBRARY})
TARGET_LINK_LIBRARIES(dynamixel_motor_cont ${iriutils_LIBRARY} ${comm_LIBRARY} ${dynamixel_LIBRARY} ${motor_control_LIBRARY} ${XSD_LIBRARY})
ADD_DEPENDENCIES(dynamixel_motor_cont xsd_files_gen)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment