I am a beginner in C++.
I have created a CMake library project, and I added 2 libraries, one is called mosaic (shared) and mosaic_s (static).
And the problem is that how can I use macros to automatically set a macro for __declspec(dllexport) when building shared library and set it to nothing when building a static one.