CMAKE: how to link executable file with winmm imm32 version on windows with Visual Studio?

Can these libraries be easily found?

I do not want to reinvent the wheel and write a long find_library call!

Moreover, I just want to put the string "winmm.lib etc." at

"Librarian" => "Additional dependencies"
or
"Linker" => "Additional dependencies"

These libraries are good friends of Windows and Visual Studio, so they know very well how to find them.

+2
source share
1 answer

The solution from Andre is working. In my project, this line did the trick:

target_link_libraries ($ {target_name} winmm.lib)
+6
source

Source: https://habr.com/ru/post/1661378/


All Articles