Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
GetSubdirectories.h
Go to the documentation of this file.
1 get_subdirectories(){ Name)
14  set(Name)
15  file(GLOB LS *)
16  foreach(FILENAME ${LS})
17  if(IS_DIRECTORY ${FILENAME} AND EXISTS ${FILENAME}/CMakeLists.txt)
18  get_directory_name(${FILENAME} DIRNAME)
19  # ignore .svn
20  if (NOT ${DIRNAME} STREQUAL ".svn")
21  set(${Name} ${${Name}} ${DIRNAME})
22  endif()
23  endif()
24  endforeach()
25 end(){)
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
get_subdirectories()
macro get_subdirectories get the names of all the subdirectories that contains a CMakeLists.txt
Definition: GetSubdirectories.h:13