Zitat von Vladislav Vaintroub <vvaintr...@googlemail.com>:
For the Windows platform I am generating the .DEF files with all
defined
symbols to be exported. For this I need to get the list of all object
files (.obj)
participating into a library.
Are you trying to export all symbols from a shared library, something that
emulates Unix linkers behavior (Microsoft linker has no option for it=?
If it is so, then you can create a static library first. Then add custom
command that e.g runs dumpbin with you static library to extract symbols
and produces .DEF (for example using a script like this one
http://kenai.com/projects/mysql-jvm/sources/source/content/win/create_def_fi
le.js?rev=25 ). Finally, to produce DLL, use a dummy source file , and
your generated .DEF and link the DLL to the static library, like
ADD_LIBRARY(mydll SHARED dummy.c generated.def)
TARGET_LINK_LIBRARIES(mydll staticlib)
It's better to have a well-defined API, so you should know what
symbols to export...
Additionally, since gcc can also be selective about the symbols to
export, maybe adding the proper export flags in the code would also be
a solution.
HS
_______________________________________________
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