Hi list!
I am currently trying to migrate a autotools project to cmake.
The project used modules intensively. It was possible to compile all these
modules also statically and link them together to a single static library.
Is this supported out of the box by cmake? How?
This was realized by exporting all symbols with following shell code:
for lib in "$@"
do
if [ -r $lib ]; then
echo "Get objects files for $lib ..."
@AR@ t $lib | @AWK@ -v "dir=`dirname $lib`" '/^[^_]/ {printf
"%s/%s ",
dir,$0}' >> objects
else
echo "SKIPED: $lib doesn't exist."
fi
done
echo "" >> objects
and then add it to the library with:
libelektra_a_LIBADD = `cat objects`
Step 1 could stay as is (even thouch a solution not requiring a shell and ar
program would be prefered), but how to add specific symbols to a static
library using cmake?
best regards
Markus
--
http://www.markus-raab.org | Sei nicht ungeduldig, wenn man deine
-o) | Argumente nicht gelten läßt. -- Goethe,
Kernel 2.6.24-1-a /\ | Maximen und Reflexionen
on a x86_64 _\_v |
_______________________________________________
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