Skip to content

Commit 3b90c26

Browse files
authored
Merge pull request #64 from mwinters-stuff/main
Fixes CMakeLists.txt to properly import the paths into any location. pico-sdk compatible.
2 parents 6a1f9d1 + 5a878e4 commit 3b90c26

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

cmake/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
add_library(TaskManagerIO
1+
cmake_minimum_required(VERSION 3.13)
2+
3+
add_library(TaskManagerIO
24
../src/SimpleSpinLock.cpp
35
../src/TaskManagerIO.cpp
46
../src/TaskTypes.cpp
@@ -10,7 +12,7 @@ target_compile_definitions(TaskManagerIO
1012
)
1113

1214
target_include_directories(TaskManagerIO PUBLIC
13-
${PROJECT_SOURCE_DIR}/lib/TaskManagerIO/src
15+
../src
1416
)
1517

1618
target_link_libraries(TaskManagerIO PUBLIC TcMenuLog pico_stdlib pico_sync)

src/BasicInterruptAbstraction.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
#ifndef TASKMANAGERIO_BASICINTERRUPTABSTRACTION_H
77
#define TASKMANAGERIO_BASICINTERRUPTABSTRACTION_H
88

9-
#include <TaskPlatformDeps.h>
10-
#include <TaskManagerIO.h>
9+
#include "TaskPlatformDeps.h"
10+
#include "TaskManagerIO.h"
1111

1212
#ifdef IOA_USE_ARDUINO
1313

src/TaskBlock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
#ifndef _TASKMANAGERIO_TASKBLOCK_H_
77
#define _TASKMANAGERIO_TASKBLOCK_H_
88

9-
#include <TaskPlatformDeps.h>
10-
#include <TaskTypes.h>
9+
#include "TaskPlatformDeps.h"
10+
#include "TaskTypes.h"
1111

1212
/**
1313
* @file TaskBlock.h

src/TmLongSchedule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @brief long schedule support for task manager
1212
*/
1313

14-
#include <TaskManagerIO.h>
14+
#include "TaskManagerIO.h"
1515

1616
/**
1717
* A task manager task that can be scheduled safely in hours and days. If you need more than this, you'll probably need to

0 commit comments

Comments
 (0)