Re: [CMake] Getting file list from build directory

2011-06-26 Thread Andreas Naumann
You could run ar -x at cmake runtime using execute_process(...) and then glob the objects. If your archive is created by cmake, you could write a shell script, that unpacks the archive and do what you wants with the object files. Andreas Am 26.06.2011 07:38, schrieb Dan Furtney: I

[CMake] Getting file list from build directory

2011-06-25 Thread Dan Furtney
I have a CMakeLists.txt file file that creates an archive from several files. It includes a custom command that dumps the list of objects from the archive using ar –x. I need to link these objects with another custom command. What is the best way to get the list of objects into the link line? C