-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[device] remove duplicated SUBDIRLIST cmake macro
- Loading branch information
1 parent
4e1a6f6
commit 2b370c9
Showing
1 changed file
with
0 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,6 @@ | |
# This software may be modified and distributed under the terms of the | ||
# GNU Lesser General Public License v2.1 or any later version. | ||
|
||
# Thanks to Stefano Dafarra <[email protected]> for this CMakeLists.txt | ||
|
||
# List the subdirectory (http://stackoverflow.com/questions/7787823/cmake-how-to-get-the-name-of-all-subdirectories-of-a-directory) | ||
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() | ||
|
||
# Get list of models | ||
subdirlist(subdirs ${CMAKE_CURRENT_SOURCE_DIR}/robots/) | ||
# Install each model | ||
|