Hi, been searching for a while on this and can't find an answer. Maybe I'm just 
using the wrong keywords..

I have a CMakeLists.txt file that creates a two libraries. I want to generate a 
list of source files that are used in each library so that I can run a script 
on these files.

I cannot find a good way to do this. My best idea right now is to move the part 
of the CMake file that configures the SOURCES variable into a separate .cmake 
file and run CMake in script mode on that with a flag to output the variable. 
But that seems slightly hackish, and I don't like separating the file into two.

Is there a better way? How do programs such as Qt Creator go about reading a 
CMake file and gathering all the source files?

Thanks,
Kevin

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to