I developed cross platform software in c++. As I know, Linux .so exported all the symbols by default, well through "gcc -fvisibility=hidden"
I can set all the exported symbols as hidden, then set __attribute__(visibility("default"))
for the class and function I want to export, so I can control what I want to export.
My question is, using CMake, how can I do the work as "gcc -fvisibility=hidden" control?