I’m trying to use some functions from user32.dll in a firebreath plugin, and i can’t for the life of me figure out how to link the library to my project. I’ve tried adding
find_library(USER32_LIBRARY user32) and some variations like user32.dll user32.lib, adding the path to system32, etc. It keeps saying USER32_LIBRARY is defined but set to NOT_FOUND.
I haven’t found any good examples of how to link libraries from the system32 folder, anyone have an example?
In fact your Microsoft Visual Studio should link user32.lib by default if you properly install it.
There is nothing to do with cmake find_library(). CMake is cross-platform makefile generator, while your question is Windows specific.
The better way to start – is MSDN site.