Sanatan Rai wrote: > Unfortunately, I am stuck with the paradigm of having to kludge loading an > entire library. For various reasons the one may not have a reference to > the hosted object in main, which must remain agnostic. Indeed, in my > particular line of business (finance), this happens to be a `standard' > pattern. Whether good or bad is a discussion that'd be too off > topic...(though am happy to continue the discussion off/on list if people > are so inclined!).
What about your application calling an initStaticLibs() function which is defined in an header. That header is written by CMake using FILE(WRITE ...) because CMake knows which libs are there and by this which init functions need to be called. They just have to be somehow related to the library name. Eike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ 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