diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..36ad073 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,3 @@ +add_executable(GetCpuInfo GetCpuInfo.cpp) + +target_link_libraries(GetCpuInfo CMCore CMPlatform) diff --git a/GetCpuInfo.cpp b/GetCpuInfo.cpp new file mode 100644 index 0000000..32e9a01 --- /dev/null +++ b/GetCpuInfo.cpp @@ -0,0 +1,17 @@ +#include +#include + +void main() +{ + hgl::CpuInfo ci; + + hgl::GetCpuInfo(&ci); + + std::cout<<"CPU: "<