[CMake] Unpredictable ADD_CUSTOM_TARGET behaviour

2012-03-08 Thread Sumit Kumar
Hello, I am facing a weird scenario when using the ADD_CUSTOM_TARGET / ADD_CUSTOM_COMMAND in building an executable for my project. I have scoured the internet for a solution but to no avail. Let me illustrate my case: I need to do a pre-build operation by checking the presence of an already bui

[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 th

[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