23 # continue process only if there is some file to process
25 foreach(FILENAME ${LS})
26 if(IS_DIRECTORY ${FILENAME} AND EXISTS ${FILENAME}/CMakeLists.txt)
29 if (NOT ${DIRNAME} STREQUAL
".svn")
30 set(${Name} ${${Name}} ${DIRNAME})
35 # create the copy of Name list
38 string(TOLOWER
"${filename}" filenameLower)
39 # build a new variable (map) to associate the key filenameLower to the real filename
40 set(
"map_${filenameLower}" "${filename}")
41 # add the key to a specific list
42 set(NameSorted ${NameSorted}
"${filenameLower}")
45 # sort the key list (all lowercase)
48 foreach(filenameLower ${NameSorted})
50 set(Name ${map_${filenameLower}})
string name
Definition: select.cpp:111
get_directory_name()
macro get_directory_name set the variable VariableName to the name of the last directory of FullPathD...
Definition: GetDirectoryName.h:14
set(CAMITK_TEST_COMMAND_FILE ${CAMITK_TEST_OUTPUT_DIR}/command) set(CAMITK_TEST_COMMAND_RESULT_FILE $
This CMake file run a command and put the output in a given file.
Definition: CamiTKTestPassFile.h:11
string filename
Definition: pml2csv.cpp:109
get_subdirectories()
macro get_subdirectories get the names of all the subdirectories that contains a CMakeLists.txt in case insensitive alphabetical order
Definition: GetSubdirectories.h:19