mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-25 13:42:54 -05:00
Added DMI reader (Windows only).
This commit is contained in:
25
src/hw/dmi/dmi.cmake
Normal file
25
src/hw/dmi/dmi.cmake
Normal file
@@ -0,0 +1,25 @@
|
||||
if (WITH_DMI)
|
||||
add_definitions(/DXMRIG_FEATURE_DMI)
|
||||
|
||||
list(APPEND HEADERS
|
||||
src/hw/dmi/DmiBoard.h
|
||||
src/hw/dmi/DmiMemory.h
|
||||
src/hw/dmi/DmiReader.h
|
||||
src/hw/dmi/DmiTools.h
|
||||
)
|
||||
|
||||
list(APPEND SOURCES
|
||||
src/hw/dmi/DmiBoard.cpp
|
||||
src/hw/dmi/DmiMemory.cpp
|
||||
src/hw/dmi/DmiReader.cpp
|
||||
src/hw/dmi/DmiTools.cpp
|
||||
)
|
||||
|
||||
if (XMRIG_OS_WIN)
|
||||
list(APPEND SOURCES src/hw/dmi/DmiReader_win.cpp)
|
||||
elseif(XMRIG_OS_LINUX)
|
||||
list(APPEND SOURCES src/hw/dmi/DmiReader_unix.cpp)
|
||||
endif()
|
||||
else()
|
||||
remove_definitions(/DXMRIG_FEATURE_DMI)
|
||||
endif()
|
||||
Reference in New Issue
Block a user