Skip to content
Snippets Groups Projects
Commit 377fafe2 authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Fix recursively listing directories for documentation

parent da539891
No related branches found
No related tags found
No related merge requests found
......@@ -54,15 +54,34 @@ function(SimoxQtLibrary name srcs incs mocFiles uiFiles)
TARGET_LINK_LIBRARIES(${name} PUBLIC GraspStudio Saba)
endfunction()
macro(simox_subdirs result curdir)
file(GLOB children ${curdir}/*)
set(${result})
foreach(child ${children})
if(IS_DIRECTORY ${child})
list(APPEND ${result} ${child})
function(simox_subdirs RESULT DIRECTORY)
file(GLOB CHILDREN ${DIRECTORY}/*)
# message("## children of ${DIRECTORY}: ${CHILDREN}")
set(DIR_CHILDREN "")
foreach(CHILD ${CHILDREN})
if (IS_DIRECTORY "${CHILD}")
list(APPEND DIR_CHILDREN ${CHILD})
endif()
endforeach()
endmacro()
set(${RESULT} "${DIR_CHILDREN}" PARENT_SCOPE)
endfunction()
function(simox_subdirs_recursive RESULT DIRECTORY)
simox_subdirs(TOP_CHILDREN "${DIRECTORY}")
set(ALL_CHILDREN ${TOP_CHILDREN})
foreach(TOP_CHILD ${TOP_CHILDREN})
simox_subdirs_recursive(REC_CHILDREN ${TOP_CHILD})
list(APPEND ALL_CHILDREN ${REC_CHILDREN})
endforeach()
set(${RESULT} "${ALL_CHILDREN}" PARENT_SCOPE)
endfunction()
macro(simox_update_file file content) #macro since we want to provide simox_file_up_to_date
set(simox_file_up_to_date 0)
......
......@@ -35,9 +35,8 @@ IF(DOXYGEN_FOUND)
"${CMAKE_CURRENT_SOURCE_DIR}/../SimoxQtUtility"
)
simox_subdirs(SIMOX_SUBDIRS "${CMAKE_CURRENT_SOURCE_DIR}/../SimoxUtility")
SET (CMAKE_DOXYGEN_INPUT_LIST ${CMAKE_DOXYGEN_INPUT_LIST}
${SIMOX_SUBDIRS})
simox_subdirs_recursive(SIMOX_UTILITY_SUBDIRS "${CMAKE_CURRENT_SOURCE_DIR}/../SimoxUtility")
LIST (APPEND CMAKE_DOXYGEN_INPUT_LIST ${SIMOX_UTILITY_SUBDIRS})
# consider visualization setup
IF (Simox_USE_COIN_VISUALIZATION)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment