Rename our allwpilib (which is now 2020) to not have 2019 in the name
Change-Id: I3c07f85ed32ab8b97db765a9b43f2a6ce7da964a
diff --git a/cmake/modules/SubDirList.cmake b/cmake/modules/SubDirList.cmake
new file mode 100644
index 0000000..b67160e
--- /dev/null
+++ b/cmake/modules/SubDirList.cmake
@@ -0,0 +1,17 @@
+MACRO(SUBDIR_LIST result curdir)
+ FILE(GLOB children RELATIVE ${curdir} ${curdir}/*)
+ SET(dirlist "")
+ FOREACH(child ${children})
+ IF(IS_DIRECTORY ${curdir}/${child})
+ LIST(APPEND dirlist ${child})
+ ENDIF()
+ ENDFOREACH()
+ SET(${result} ${dirlist})
+ENDMACRO()
+
+MACRO(ADD_ALL_SUBDIRECTORIES curdir)
+ SUBDIR_LIST (_SUBPROJECTS ${curdir})
+ FOREACH (dir ${_SUBPROJECTS})
+ ADD_SUBDIRECTORY (${dir})
+ ENDFOREACH ()
+ENDMACRO()