lfreist / hwinfo

cross platform C++ library for hardware information (CPU, RAM, GPU, ...)
MIT License
433 stars 74 forks source link

Make HWinfo header-only #58

Closed troldal closed 10 months ago

troldal commented 10 months ago

Refactored the HWinfo library to be header-only, in order to simplify integration with other projects.

troldal commented 10 months ago

Tested on Windows (MSVC and Clang-cl) both with and without OpenCL support. Tested on Linux with GCC (using WSL) without OpenCL Tested on macOS with GCC and Clang without OpenCL support.

lfreist commented 10 months ago

Hi and thanks for contributing!

In general, I do not want HWinfo to be header only because of the compile time overhead. However, I am fine with an additional option to use a header only version.

My proposal would be to add a directory "single_include" containing a header only (and/or a single header only) version of HWinfo (similar to [nlohmann/json]((and/or a single header only)).