[CMake] Installing files: modification dates, directory trees
David Cole
david.cole at kitware.com
Mon Mar 21 09:20:42 EST 2005
Brad King wrote:
> Jaroslav Snajdr wrote:
>
>> 2. I have a directory tree of auxiliary files in my project I need to
>> copy to the destination, i.e. copy the whole directory tree to the
>> destination without any change. However, the INSTALL_FILES command
>> can only install files in a single directory. Is there any way to
>> solve this problem without creating a CMakeLists.txt file in each and
>> every directory and changing the SUBDIRS line every time I add or
>> remove a directory from the tree?
>
>
> Installing an entire directory sounds useful. Please submit this as a
> feature request in the bug tracker mentioned above. I can't think of
> a simple work around that would be more maintainable than the
> SUBDIRS/INSTALL_FILES option right now.
>
I would think that you could come up with some custom CMake EXEC_PROGRAM
statements to copy directory trees that might be more maintainable than
the multiple CMakeLists.txt files and SUBDIRs commands. It depends on
the complexity of your directory structure and the number of target
platforms you have to build on. You should be able to do an xcopy on
Windows and its equivalent on Mac/Unix (cp ?) until such time as the
"directory copy" feature can be added to CMake...
Just a suggestion. Hope it helps,
David
More information about the CMake
mailing list