On Windows, for a shared library, the interfaces must be explicitly decorated by proper dllimport and dllexport usage. Otherwise, no imported library (.lib) will be generated for the downstream projects to consume at link time.
This pull request is to add the interface export in a portable way provided by CMake (instead of directly using MSVC specific dllimport and dllexport).
On Windows, for a shared library, the interfaces must be explicitly decorated by proper
dllimport
anddllexport
usage. Otherwise, no imported library (.lib) will be generated for the downstream projects to consume at link time.This pull request is to add the interface export in a portable way provided by
CMake
(instead of directly using MSVC specificdllimport
anddllexport
).This is a rework for #39