I have seen many c++ header file under MSVC environment like this:
#ifdef somelib_EXPORTS
#define DLLEXPORTS __declspec(dllexport)
#else
#define DLLEXPORTS __declspec(dllimport)
#endif
Where does the <libname>_EXPORTS
convention come from ?
Is it a Visual Studio's default macro ? Or is it generated by CMake ?
I can't find any document about this convention.