On 2010-11-04 11:58-0700 mina adel wrote:

Thank you so much for your help

I have another problem, I have successfully created all the 3rd-party libraries.
I used ADD_CUSTOM_COMMAND to call the makefiles that are provided using these 
libraries.

Now, I want to combine all these libraries to one library. I will link against 
this library
later.
I have searched google and cmake wiki. it seems that there is no straight 
forward way to do
that.

one suggested using ar command to combine the files.

what is the vest way to merge all these [make-built] libraries in one library.

Switch to using CMake to configure Makefiles rather than using
3rd-party generated Makefiles.  Once you have switched completely to
CMake, that gives you complete control of which source code files are
compiled into which libraries, i.e., you will have complete control of
the organization of your libraries.  For example, if you want to use
a giant library (not necessarily the best organization, by the way), then
accumulate a list of all the relevant source files then, e.g.,

add_library(giant_library ${giant_library_src_LIST})

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
_______________________________________________
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