23 lines
533 B
CMake
23 lines
533 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(fantasize)
|
|
|
|
set(CMAKE_BUILD_TYPE Debug)
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
find_package(Boost 1.79.0 COMPONENTS json)
|
|
|
|
add_executable(app
|
|
src/main.cxx
|
|
src/sensor/NvidiaTemperatureSensor.cxx
|
|
src/fan/Pwm.cxx
|
|
src/fan/PwmControl.cxx
|
|
src/SensorsWrapper.cxx
|
|
src/sensor/HwmonTemperatureSensor.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})
|