Add mapping logic and serialization for writing
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user