Skip to content

Commit

Permalink
[device] remove duplicated SUBDIRLIST cmake macro
Browse files Browse the repository at this point in the history
  • Loading branch information
prashanthr05 committed Nov 13, 2020
1 parent 4e1a6f6 commit 2b370c9
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions devices/FloatingBaseEstimatorDevice/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b370c9

Please sign in to comment.