Add mapping logic and serialization for writing

This commit is contained in:
2022-09-20 23:17:40 +02:00
parent df1c8f3821
commit 8ceb762fe1
68 changed files with 49901 additions and 14 deletions

View File

@@ -5,7 +5,7 @@ project(fantasize)
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
find_package(Boost 1.79.0 COMPONENTS json)
find_package(nlohmann_json 3.11.2 REQUIRED)
add_executable(app
src/main.cxx
@@ -17,9 +17,10 @@ add_executable(app
src/fan/PwmControl.cxx
src/fan/HwmonFan.cxx
src/Mapping.cxx
src/Serializer.cxx
)
set_property(TARGET app PROPERTY CXX_STANDARD 17)
target_include_directories(app PUBLIC include /opt/cuda)
target_link_libraries(app PUBLIC sensors nvidia-ml ${Boost_LIBRARIES})
target_link_libraries(app PUBLIC sensors nvidia-ml nlohmann_json::nlohmann_json)