[CMake] Identify used source files

Roman Wüger roman.wueger at gmx.at
Tue Apr 28 01:00:25 EDT 2015


Hello,

is there a proper solution to get all used source files for all defined librarys and executables?

My first idea was to overload the main functions such as add_executable() and add_library() temporarily in the main CMakeLists.txt and write a text file or whatever, but I thought there were a better way.

Did anybody know a better way?

Maybe CMake has a way to get a list of used files?

The reason is to clean a big old source tree.

Thanks in advance

Best regards
Roman


More information about the CMake mailing list