[CMake] Help: How to generate one library from multiple directories

Yang, Y. Y.Yang at tue.nl
Fri Jan 11 11:54:48 EST 2008


Hi, all.

I just start to use cmake and a newbie. Now I want to generate one
library from multiple directories.
However, when I use add_library(libname, source_file) in each folder;
I found that the latter generated lib file would overwrite the previous
lib file.

How can I link those objects from multiple folder into one lib file.

Thanks forward.

best regards.

Yang


More information about the CMake mailing list