Adding a library to a qt6 cmake project

Hello guys,

i am just trying to use a library for a robot in my qt6 project.

in my cmake file i have added the library.h file to the project sources and i have added the library.lib file like follows:

target_link_libraries(RadiationMaster PRIVATE C:/git/RadiationMaster/DobotM1Dll/DobotDllM1.lib)

there are also .dll files, i have added those to the Windows/System32 folder so they can be found.

But i still get undefined reference errors when trying to compile my program.

This is the first time i try to use dlls and have no idea how to properly add libs like that to a project.

Some help or even a link to a good tutorial on the topic would be very helpful!

Thanks a lot Michael