Initial commit
This commit is contained in:
commit
c71c7da2ff
17 files changed
+804
No files matched your search
@@ -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()
|
||||
Reference in new issue
Block a user