From bfd265e1f818c9eb4142178bf9f82edfef63b8dd Mon Sep 17 00:00:00 2001 From: hyzboy Date: Wed, 19 Aug 2020 12:01:06 +0800 Subject: [PATCH] append GetCpuInfo test program --- CMakeLists.txt | 3 +++ GetCpuInfo.cpp | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 GetCpuInfo.cpp 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: "<