From fa919a9d7c17df6add8ec1f8a59507b8b6defacd Mon Sep 17 00:00:00 2001
From: Alejandro Lopez Gestoso <alopez@iri.upc.edu>
Date: Thu, 30 May 2019 15:18:34 +0200
Subject: [PATCH] Moved .h files to include folder. Adapted CMakeLists.txt file
 to this change.

---
 {src => include}/dynamixel_pan_tilt.h            | 0
 {src => include}/dynamixel_pan_tilt_exceptions.h | 0
 src/CMakeLists.txt                               | 4 +++-
 3 files changed, 3 insertions(+), 1 deletion(-)
 rename {src => include}/dynamixel_pan_tilt.h (100%)
 rename {src => include}/dynamixel_pan_tilt_exceptions.h (100%)

diff --git a/src/dynamixel_pan_tilt.h b/include/dynamixel_pan_tilt.h
similarity index 100%
rename from src/dynamixel_pan_tilt.h
rename to include/dynamixel_pan_tilt.h
diff --git a/src/dynamixel_pan_tilt_exceptions.h b/include/dynamixel_pan_tilt_exceptions.h
similarity index 100%
rename from src/dynamixel_pan_tilt_exceptions.h
rename to include/dynamixel_pan_tilt_exceptions.h
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a682741..93c9bee 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -4,7 +4,9 @@ ADD_SUBDIRECTORY(xml)
 SET(sources dynamixel_pan_tilt.cpp dynamixel_pan_tilt_exceptions.cpp)
 
 # edit the following line to add all the header files of the library
-SET(headers dynamixel_pan_tilt.h dynamixel_pan_tilt_exceptions.h)
+SET(headers ../include/dynamixel_pan_tilt.h ../include/dynamixel_pan_tilt_exceptions.h)
+
+INCLUDE_DIRECTORIES(../include)
 
 FIND_PACKAGE(iriutils REQUIRED)
 
-- 
GitLab