Lemma is an Electromagnetics API
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.

12345678910111213141516
  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()
  11. SUBDIRLIST(SUBDIRS ${CMAKE_CURRENT_SOURCE_DIR})
  12. FOREACH(subdir ${SUBDIRS})
  13. ADD_SUBDIRECTORY(${subdir})
  14. ENDFOREACH()