Initial commit

This commit is contained in:
2025-12-10 14:11:10 +00:00
commit c71c7da2ff
17 changed files with 804 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
macro(SubDirList curdir result)
file(GLOB children RELATIVE ${curdir} ${curdir}/*)
foreach(child ${children})
if(IS_DIRECTORY ${curdir}/${child})
list(APPEND ${result} ${child})
endif()
endforeach()
endmacro()
macro(SubDirListRecurse curdir basedir result)
file(GLOB children RELATIVE ${curdir} ${curdir}/*)
foreach(child ${children})
if(IS_DIRECTORY ${curdir}/${child})
if(${child} STREQUAL ${basedir})
list(APPEND ${result} ${child})
else()
file(RELATIVE_PATH relpath ${basedir} ${curdir}/${child})
list(APPEND ${result} ${relpath})
SubDirListRecurse(${curdir}/${child} ${basedir} ${result})
endif()
endif()
endforeach()
endmacro()