[CMake] How to recursively copy directories and subdirectories...

2012-02-24 Thread Sumit Kumar
Hello 

I would like to recursively copy folders/subfolders when I do a make install. 
In addition, I would like to copy certain file patterns (typically *.h) files 
that may be in these folders. I can do this for individual files (by doing a  
glob / glob recurse). However, in doing this I lose the directory structure. 
Any help will be appreciated.

 
Thanks and Regards
Sumit--

Powered by www.kitware.com

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

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

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

[CMake] CMake does not recurse subdirectores

2007-12-01 Thread Sumit Kumar
Hello
I have written a CMakeLists.txt which calls several
individual CMakeLists.txt files in subdirectories.

that is

DIR
|
-- SDir1
   |
   --SDir2a
   |
   --SDir2b
and so on
The CMakeLists.txt file in DIR calls
SUBDIRS(SDir1)

The CMakeLists.txt file in SDir1 has
SUBDIRS(
SDir2a
SDir2b
)
SDir2a and SDir2b have their own CMakeLists.txt files

CMake successfully generates makefiles. However when I
am trying to compile the code (I use MinGW compiler)
it only compiles code from the last listing amongst
the subdirectories in SDir1 (which in this case would
be SDir2b). It does not enter SDir2a !!
Can anyone tell me what I am missing here ?
Thanks

Sumit K. Nath, Ph.d
Department of Electrical, Computer and Systems Engg,
Rensselaer Polytechnic Institute
Troy, NY - 12180
U.S.A

Phone - +1-(573)-529-6522


  Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake