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

Reply via email to