I'm using CMake to build my code. CMakeLists.txt contains the list of all the .C or .CPP files and all the include directories.
How can I implement CMakeLists.txt so that I can have a make
option that generates cscope.files for me containing the list of all the .C and .CPP (or .CXX) files and also all the .h files from the include directories in it?
For e.g. I should be able to run make cscopefiles
and it will generate cscope.files for me.
Or is there already such an option?
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ...)
. – Overdevelop