mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-06-10 16:45:59 +00:00
cmake: Added sources and includes
This commit is contained in:
parent
0340543d0b
commit
60ac80c7cf
20
CMakeLists.txt
Normal file
20
CMakeLists.txt
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.10)
|
||||||
|
|
||||||
|
set(TACOS_SOURCES
|
||||||
|
src/thread.cpp
|
||||||
|
src/statemachine.cpp
|
||||||
|
src/can_bus.cpp
|
||||||
|
src/startup.cpp
|
||||||
|
src/watchdog.cpp
|
||||||
|
src/tacos.cpp
|
||||||
|
src/debug.cpp
|
||||||
|
src/events.cpp
|
||||||
|
)
|
||||||
|
list(TRANSFORM TACOS_SOURCES PREPEND "${CMAKE_CURRENT_SOURCE_DIR}/")
|
||||||
|
|
||||||
|
# Define includes
|
||||||
|
set(TACOS_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||||
|
|
||||||
|
# Propagate to the parent scope
|
||||||
|
set(TACOS_SOURCES ${TACOS_SOURCES} PARENT_SCOPE)
|
||||||
|
set(TACOS_INCLUDES ${TACOS_INCLUDES} PARENT_SCOPE)
|
@ -5,6 +5,7 @@
|
|||||||
#include <sta/debug/assert.hpp>
|
#include <sta/debug/assert.hpp>
|
||||||
#include <sta/tacos/statemachine.hpp>
|
#include <sta/tacos/statemachine.hpp>
|
||||||
#include <sta/tacos.hpp>
|
#include <sta/tacos.hpp>
|
||||||
|
#include <can.h>
|
||||||
|
|
||||||
extern CAN_HandleTypeDef STA_STM32_CAN_HANDLE;
|
extern CAN_HandleTypeDef STA_STM32_CAN_HANDLE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user