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 )