From 460bc09b2f749a397a2dce3275e4c5d2b82e8aca Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Tue, 27 Aug 2024 13:36:21 +0200 Subject: [PATCH] Initial CAN files --- src/CAN/CAN_interface.cpp | 1 + src/CAN/CAN_interface.hpp | 1 + src/CAN/CMakeLists.txt | 16 ++++++++++++++++ src/CMakeLists.txt | 1 + tools/CMakeLists.txt | 1 + 5 files changed, 20 insertions(+) create mode 100644 src/CAN/CAN_interface.cpp create mode 100644 src/CAN/CAN_interface.hpp create mode 100644 src/CAN/CMakeLists.txt diff --git a/src/CAN/CAN_interface.cpp b/src/CAN/CAN_interface.cpp new file mode 100644 index 0000000..58c3971 --- /dev/null +++ b/src/CAN/CAN_interface.cpp @@ -0,0 +1 @@ +#include "CAN_interface.hpp" \ No newline at end of file diff --git a/src/CAN/CAN_interface.hpp b/src/CAN/CAN_interface.hpp new file mode 100644 index 0000000..7b9637e --- /dev/null +++ b/src/CAN/CAN_interface.hpp @@ -0,0 +1 @@ +#pragma once \ No newline at end of file diff --git a/src/CAN/CMakeLists.txt b/src/CAN/CMakeLists.txt new file mode 100644 index 0000000..7f2de22 --- /dev/null +++ b/src/CAN/CMakeLists.txt @@ -0,0 +1,16 @@ +add_library(CAN) + +target_sources(CAN PRIVATE + CAN_interface.cpp +) + +target_compile_options(CAN PRIVATE $<$: + -Wall -Wextra -pedantic-errors -Wconversion -Wsign-conversion + >) + +target_include_directories(CAN + PUBLIC + ${CMAKE_CURRENT_LIST_DIR} + PRIVATE +) + diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ac9c9e3..7d3911f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1 +1,2 @@ +add_subdirectory(CAN) add_subdirectory(UI) \ No newline at end of file diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 2a43c53..ede42a6 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -43,4 +43,5 @@ target_link_libraries(server PRIVATE magic_enum::magic_enum spdlog UI + CAN )