My CMake modules, scripts, templates
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MacroSubdirList.cmake 276B

12345678910
  1. MACRO(SUBDIRLIST result curdir)
  2. FILE(GLOB children RELATIVE ${curdir} ${curdir}/*)
  3. SET(dirlist "")
  4. FOREACH(child ${children})
  5. IF(IS_DIRECTORY ${curdir}/${child})
  6. LIST(APPEND dirlist ${child})
  7. ENDIF()
  8. ENDFOREACH()
  9. SET(${result} ${dirlist})
  10. ENDMACRO()