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 b87c9106468ed198a309bd6c3392468b8b4a6ab0..625508968234e187627e276b1bc49e0ac3eb8bda 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})