Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1494189
AddCMakeTools.cmake
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Size
696 B
Referenced Files
None
Subscribers
None
AddCMakeTools.cmake
View Options
# Stores a list of subdirectories of directory ${curdir} into result.
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
()
# Adds all subdirs of the current list directory.
# Values that are passed as optional arguments will be excluded.
macro
(
ADDALLSUBDIRS
)
SUBDIRLIST
(
subdirs
${
CMAKE_CURRENT_SOURCE_DIR
}
)
if
(
subdirs
)
list
(
REMOVE_ITEM
subdirs
""
${
ARGN
}
)
foreach
(
subdir
${
subdirs
}
)
add_subdirectory
(
${
subdir
}
)
endforeach
()
endif
()
endmacro
()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 1, 6:34 PM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
281245
Default Alt Text
AddCMakeTools.cmake (696 B)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline
Log In to Comment