lfreist / hwinfo

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

I'm literally lost with cmake... please help #49

Closed LukasFratzl closed 1 year ago

LukasFratzl commented 1 year ago

Hey, thanks for this awesome framework, I'm building a private simple monitoring software to monitor my PC on the tablet. I'm going to choose Unreal Engine for the UI design ...

Unreal Engine only supports .dll for windows, .dylib for mac and .so for linux, I'm literary lost how to generate the build folder to these formats, mainly for windows and linux....

Please add support for Dynamic Libraries in the CMake File and mention it in the Project Readme.

Thanks a lot I hope I get a reply back soon, best wishes....

lfreist commented 1 year ago

Hi and thank you - Sounds like a nice project.

I am currently on holidays and will only be able to fix this in about two weeks.

However, you should be able to adjust the CMakeLists.txt in the src directory to build a dynamic library by just removing the STATIC keyword (https://github.com/lfreist/hwinfo/blob/d388ad493fc1b8b1b6ef086d8022876c017bf1b0/src/CMakeLists.txt#L1).

Let me know, if you need more information!

LukasFratzl commented 1 year ago

Thanks a lot for the reply,

I end up using the cmake project for my server part ... for the client I can send the data through my local network... The server doesn't need to be pretty, a default console application will do it well and for the client on the tablet I can use any rendering I want because I send the info over the network