From d39bea917387dd1e2fb37fabbc91950bfe3960d8 Mon Sep 17 00:00:00 2001
From: Alopez <alopez@iri.upc.edu>
Date: Thu, 29 Aug 2019 12:04:57 +0200
Subject: [PATCH] Moved .h files to include folder. Adapted CMakeLists.txt file
 to this change.

---
 {src => include}/exceptions/exceptions.h            | 0
 {src => include}/exceptions/lidar_lite_exceptions.h | 0
 {src => include}/lidar_lite.h                       | 0
 src/CMakeLists.txt                                  | 5 +++--
 4 files changed, 3 insertions(+), 2 deletions(-)
 rename {src => include}/exceptions/exceptions.h (100%)
 rename {src => include}/exceptions/lidar_lite_exceptions.h (100%)
 rename {src => include}/lidar_lite.h (100%)

diff --git a/src/exceptions/exceptions.h b/include/exceptions/exceptions.h
similarity index 100%
rename from src/exceptions/exceptions.h
rename to include/exceptions/exceptions.h
diff --git a/src/exceptions/lidar_lite_exceptions.h b/include/exceptions/lidar_lite_exceptions.h
similarity index 100%
rename from src/exceptions/lidar_lite_exceptions.h
rename to include/exceptions/lidar_lite_exceptions.h
diff --git a/src/lidar_lite.h b/include/lidar_lite.h
similarity index 100%
rename from src/lidar_lite.h
rename to include/lidar_lite.h
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d69bf8b..a36778f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -2,7 +2,7 @@
 SET(sources lidar_lite.cpp exceptions/exceptions.cpp exceptions/lidar_lite_exceptions.cpp)
 
 # application header files
-SET(headers lidar_lite.h exceptions/exceptions.h exceptions/lidar_lite_exceptions.h)
+SET(headers ../include/lidar_lite.h ../include/exceptions/exceptions.h ../include/exceptions/lidar_lite_exceptions.h)
 
 # locate the necessary dependencies
 FIND_PACKAGE(usb_i2c_adapter REQUIRED)
@@ -10,7 +10,8 @@ FIND_PACKAGE(comm REQUIRED)
 FIND_PACKAGE(iriutils REQUIRED)
 
 # add the necessary include directories
-INCLUDE_DIRECTORIES(.)
+INCLUDE_DIRECTORIES(../include/)
+INCLUDE_DIRECTORIES(../include/exceptions)
 INCLUDE_DIRECTORIES(${usb_i2c_adapter_INCLUDE_DIR})
 INCLUDE_DIRECTORIES(${comm_INCLUDE_DIRS})
 INCLUDE_DIRECTORIES(${iriutils_INCLUDE_DIR})
-- 
GitLab