Skip to content
Snippets Groups Projects
Commit 1228108a authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

ENH: Download external data even if examples are not built

parent 11fbc47a
No related branches found
No related tags found
No related merge requests found
......@@ -380,9 +380,8 @@ install(
#--------------------------------------------------------------------------
# Add Examples subdirectories
#--------------------------------------------------------------------------
if(BUILD_EXAMPLES)
add_subdirectory(Examples)
endif()
add_subdirectory(Examples)
#--------------------------------------------------------------------------
# Innerbuild dummy test
......
......@@ -37,25 +37,26 @@ list(APPEND FILE_LIST
#-----------------------------------------------------------------------------
# Add Example subdirectories
#-----------------------------------------------------------------------------
macro(listOfSubDir 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()
listOfSubDir(subDirs ${CMAKE_CURRENT_SOURCE_DIR})
foreach(subdir ${subDirs})
add_subdirectory(${subdir})
endforeach()
if(BUILD_EXAMPLES)
macro(listOfSubDir 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()
listOfSubDir(subDirs ${CMAKE_CURRENT_SOURCE_DIR})
foreach(subdir ${subDirs})
add_subdirectory(${subdir})
endforeach()
endif()
#-----------------------------------------------------------------------------
# Add external data
#-----------------------------------------------------------------------------
imstk_add_data(${PROJECT_NAME} ${FILE_LIST})
\ No newline at end of file
imstk_add_data(${PROJECT_NAME} ${FILE_LIST})
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