mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-25 14:25:38 +00:00
* Feature: Implement scanning for sub projects.
This commit is contained in:
parent
b23554295c
commit
74faab3fb4
3 changed files with 35 additions and 3 deletions
|
|
@ -36,3 +36,14 @@ function(installTemplate templateName)
|
|||
|
||||
add_subdirectory("${CMAKE_SOURCE_DIR}/Templates/${templateName}")
|
||||
endfunction()
|
||||
|
||||
MACRO(SUBDIRLIST 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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue