From 6946a2885aa2367ff4bad6a5add404121f89e166 Mon Sep 17 00:00:00 2001
From: Alopez <alopez@iri.upc.edu>
Date: Tue, 9 Jul 2019 17:15:38 +0200
Subject: [PATCH] Moved .h files to include folder. Adapted CMakeLists.txt file
 to this change.

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

diff --git a/src/usb_i2c.h b/include/usb_i2c.h
similarity index 100%
rename from src/usb_i2c.h
rename to include/usb_i2c.h
diff --git a/src/usb_i2c_exceptions.h b/include/usb_i2c_exceptions.h
similarity index 100%
rename from src/usb_i2c_exceptions.h
rename to include/usb_i2c_exceptions.h
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index b87c910..6255089 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,14 +1,14 @@
 # edit the following line to add all the source code files of the library
 SET(sources usb_i2c.cpp usb_i2c_exceptions.cpp)
 # edit the following line to add all the header files of the library
-SET(headers usb_i2c.h usb_i2c_exceptions.h)
+SET(headers ../include/usb_i2c.h ../include/usb_i2c_exceptions.h)
 
 # edit the following line to find the necessary packages
 FIND_PACKAGE(iriutils REQUIRED)
 FIND_PACKAGE(comm REQUIRED)
 
 # edit the following line to add the necessary include directories
-INCLUDE_DIRECTORIES(. ${iriutils_INCLUDE_DIR} ${comm_INCLUDE_DIR})
+INCLUDE_DIRECTORIES(../include/ ${iriutils_INCLUDE_DIR} ${comm_INCLUDE_DIR})
 
 ADD_LIBRARY(usb_i2c_adapter SHARED ${sources})
 
-- 
GitLab