http://www.cmake.org/Wiki/BuildingWinDLL
Will get you started. While it is targeted at Windows DLLs there is
some mention of using it with GCC.
Take a look and see if the information is useful for GCC. If it is
only partially useful or GCC information is missing from the article
let me know and I
Does cmake provide a mechanism to let a programmer define what
functions/classes should be exported from a library?
Basically I'd like an easy way to use this:
http://gcc.gnu.org/wiki/Visibility (the step-by-step part at the bottom)
I was thinking cmake could take care of that header and fill in