Skip to content

Commit b511041

Browse files
authored
Merge pull request #216 from mwinters-stuff/main
Fixes CMakeLists.txt to properly import the paths into any location. pico-sdk compatible.
2 parents 07b6dec + fce9e8f commit b511041

14 files changed

+23
-20
lines changed

cmake/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
cmake_minimum_required(VERSION 3.13)
2+
13
add_library(IoAbstraction
24
../src/EepromAbstraction.cpp
35
../src/EepromAbstractionWire.cpp
@@ -17,7 +19,7 @@ target_compile_definitions(IoAbstraction
1719
)
1820

1921
target_include_directories(IoAbstraction PUBLIC
20-
${PROJECT_SOURCE_DIR}/lib/IoAbstraction/src
22+
../src
2123
)
2224

2325
target_link_libraries(IoAbstraction PUBLIC

src/AnalogDeviceAbstraction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define _ANALOG_DEVICE_ABSTRACTION_H_
88

99
#include "PlatformDetermination.h"
10-
#include <BasicIoAbstraction.h>
10+
#include "BasicIoAbstraction.h"
1111

1212
/**
1313
* @file AnalogDeviceAbstraction.h

src/DeviceEvents.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
* @brief This file contains events that are associated with the device, such as the Analog Device.
1212
*/
1313

14-
#include "TaskManagerIO.h"
15-
#include "PlatformDetermination.h"
16-
#include "AnalogDeviceAbstraction.h"
14+
#include <TaskManagerIO.h>
15+
#include <PlatformDetermination.h>
16+
#include <AnalogDeviceAbstraction.h>
1717

1818
/**
1919
* An event that triggers when a certain analog condition is reached, based on a made and a threshold. It can either

src/EepromAbstraction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) 2018 https://www.thecoderscorner.com (Dave Cherry).
33
* This product is licensed under an Apache license, see the LICENSE file in the top-level directory.
44
*/
5-
#include <EepromAbstraction.h>
5+
#include "EepromAbstraction.h"
66

77
#ifdef __AVR__
88

src/EepromAbstractionWire.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
*/
55

66
#include "PlatformDetermination.h"
7-
#include "IoLogging.h"
8-
#include <EepromAbstractionWire.h>
7+
#include <IoLogging.h>
8+
#include "EepromAbstractionWire.h"
99

1010
#ifdef WIRE_BUFFER_SIZE
1111
# define MAX_BUFFER_SIZE_TO_USE WIRE_BUFFER_SIZE

src/EepromAbstractionWire.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include "PlatformDeterminationWire.h"
1515
#include "EepromAbstraction.h"
16-
#include <TaskManager.h>
16+
#include "TaskManager.h"
1717

1818
/**
1919
* Defines all the variants of the chip that we can pass to the I2cAt24Eeprom constructor. From this we can determine

src/KeyboardManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
#include "KeyboardManager.h"
10-
#include "IoLogging.h"
10+
#include <IoLogging.h>
1111

1212
MatrixKeyboardManager* MatrixKeyboardManager::INSTANCE = nullptr;
1313

src/MockEepromAbstraction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define _MOCK_EEPROM_ABSTRACTION_H_
33

44
#include "EepromAbstraction.h"
5-
#include "IoLogging.h"
5+
#include <IoLogging.h>
66

77
/**
88
* @ file MockEepromAbstraction.h

src/MockIoAbstraction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Neither of the implementations in this file are designed for use in production.
1313
*/
1414

15-
#include <IoAbstraction.h>
15+
#include "IoAbstraction.h"
1616

1717
/**
1818
* During any call to the mock version of IoAbstraction, any error detected

src/ResistiveTouchScreen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "ResistiveTouchScreen.h"
2-
#include <SwitchInput.h>
2+
#include "SwitchInput.h"
33

44
namespace iotouch {
55

0 commit comments

Comments
 (0)