Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F27036192
AddCMakeTools.cmake
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Authored By
Unknown
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
Tue, Oct 27, 7:40 PM (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
407416
Default Alt Text
AddCMakeTools.cmake (696 B)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline