[CMake] libtool to cmake static-libs combine howto
luxInteg
lux-integ at btconnect.com
Sun Jan 16 11:48:52 EST 2011
Greetings
suppose one had a libtool project that did the following
1)
filaA1.c
fileA2.c
-------compiled into liaA.a
(links libA.a to say libD.a (external to project))
2)
filaB1.c
fileB2.c
-------compiled into libB.a
(links libB.a to say libA.a)
3)
--------created libC.a from libA.a libB.a
4)
--------created libC.so from libA.a libB.a
############
I am really unsure of how to port steps 3 and 4 to cmake. If I do the
following:-
------------------
a) compile
filaA1.c
fileA2.c
------- into libA.a
(then link libA.a to say libD.a (external to project)
b) compile
filaA1.c
fileA2.c
filaB1.c
fileB2.c
------- into libC.a and libC.so
(and link to libA.a and libD.a (external to project))
----------------
would this be equivalent to how it is done via libtool?
advice would be appreciated
luxInteg
More information about the CMake
mailing list