Imported shared library on Windows without IMPORTED_IMPLIB
Hi, I would like to:
- create an imported shared library on Windows
- it imports a third party library over which I have no control
- the library does NOT produce a .lib, so I have to manually LoadLibrary/GetProcAddress the given functions
- I would still like to have a regular CMake target for the library, so that I could forward the IMPORTED_LOCATION of the .DLL as a compile definition to the library which consumes this 3rd party library
How can I achieve that? After spending a bit of time on cmComputeLinkInformation.cxx it appears this is not controllable with any target option. Should I force "/NOIMPLIB" as a LINK_FLAGS property in this case? Thanks, Tibor