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 can add the missing information or you can edit the article to add more information specific to GCC. ----- Mike Jackson BlueQuartz Software www.bluequartz.net On Wed, Apr 22, 2009 at 3:53 PM, Christopher Harvey <ch...@basementcode.com> wrote: > 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 the > defines for the right platform. Then programmers could do this: > > class PUBLIC_API myClass { > public: > void PRIVATE_API someFunction(); > private: > etc... > }; > > > and not have to mess with the headers that I provided a link to. It's > not so bad on a single platform but cross compiling with this stuff is a > real pain. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake