From cb8cfd6da87eca57ee735a73f5e63dcfba16f919 Mon Sep 17 00:00:00 2001 From: unai_71 Date: Tue, 10 Mar 2026 17:08:09 +0100 Subject: [PATCH] I forgot about the CMakeFile --- CMakeLists.txt | 20 ++++++++++++++++++++ tests/test_sysfs_read.cxx | 5 +++++ 2 files changed, 25 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 tests/test_sysfs_read.cxx diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..8a55ac0 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,20 @@ +# Root cmake file sketch (might change it later) +# Author: Unai Blazquez +# License: GPL-3-or-later + +cmake_minimum_required(VERSION 3.16) +project(azkoyen_ipc_test LANGUAGES CXX) + +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +# Core library +add_library(core + src/core/SysfsRead.cxx +) + +target_include_directories(core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include) + +#tests +enable_testing() +add_subdirectory(tests) diff --git a/tests/test_sysfs_read.cxx b/tests/test_sysfs_read.cxx new file mode 100644 index 0000000..0294220 --- /dev/null +++ b/tests/test_sysfs_read.cxx @@ -0,0 +1,5 @@ +#include + +#include + +#include "SysfsRead.hpp"