[CMake] Adding a reference to Windows Media Player library using CMake + CSharp support

Cyril Boucher cyril.boucher94260 at gmail.com
Thu Feb 1 15:57:16 EST 2018


Hi all,

I am trying to use CMake and the CSharp support for a small project of mine
but I cannot seem to find a way to add a reference to the Windows Media
Player library. One of the reason for that is that I need to link my
project to wmp.dll which then needs to generate Interop.WMPLib.dll and a
reference needs to be added with its path pointing to the latter library.

Adding wmp.dll to my project is as simple as a target_link_libraries call
but this does not seem to trigger the whole generation and add reference
sort of process.

Has anyone ever had an experience with adding such libraries? Is there
support for these scenarios?

Thanks!
Cyril Boucher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180201/31d105fd/attachment.html>


More information about the CMake mailing list