Closed aminya closed 4 months ago
Fixes #94 Related to #54
Implements https://github.com/lfreist/hwinfo/issues/94#issuecomment-2215053551
All components are available via the hwinfo::hwinfo target, or via individual CMake targets, which you can choose and link against depending on your needs.
hwinfo::hwinfo
target_link_libraries(your_target PRIVATE hwinfo::hwinfo)
or
target_link_libraries( your_target PRIVATE hwinfo::cpu hwinfo::gpu hwinfo::ram hwinfo::mainboard hwinfo::disk hwinfo::os hwinfo::battery)
The CMake options control which components will be built and available in the library:
HWINFO_OS
ON
HWINFO_MAINBOARD
HWINFO_CPU
HWINFO_DISK
HWINFO_RAM
HWINFO_GPU
HWINFO_GPU_OPENCL
OFF
HWINFO_BATTERY
Fixes #94 Related to #54
Implements https://github.com/lfreist/hwinfo/issues/94#issuecomment-2215053551
All components are available via the
hwinfo::hwinfo
target, or via individual CMake targets, which you can choose and link against depending on your needs.or
The CMake options control which components will be built and available in the library:
HWINFO_OS
"Enable OS detection" (default toON
)HWINFO_MAINBOARD
"Enable mainboard detection" (default toON
)HWINFO_CPU
"Enable CPU detection" (default toON
)HWINFO_DISK
"Enable disk detection" (default toON
)HWINFO_RAM
"Enable RAM detection" (default toON
)HWINFO_GPU
"Enable GPU detection" (default toON
)HWINFO_GPU_OPENCL
"Enable usage of OpenCL in GPU information" (default toOFF
)HWINFO_BATTERY
"Enable battery detection" (default toON
)