diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 830e2d7a6966698a366ad6098a5b91247164359f..26b899230de257e66801bf79636009ce407de148 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -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)