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( ...@@ -380,9 +380,8 @@ install(
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# Add Examples subdirectories # Add Examples subdirectories
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
if(BUILD_EXAMPLES) add_subdirectory(Examples)
add_subdirectory(Examples)
endif()
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# Innerbuild dummy test # Innerbuild dummy test
......
...@@ -37,25 +37,26 @@ list(APPEND FILE_LIST ...@@ -37,25 +37,26 @@ list(APPEND FILE_LIST
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# Add Example subdirectories # Add Example subdirectories
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
if(BUILD_EXAMPLES)
macro(listOfSubDir result curdir) macro(listOfSubDir result curdir)
file(GLOB children RELATIVE ${curdir} ${curdir}/*) file(GLOB children RELATIVE ${curdir} ${curdir}/*)
set(dirlist "") set(dirlist "")
foreach(child ${children}) foreach(child ${children})
if(IS_DIRECTORY ${curdir}/${child}) if(IS_DIRECTORY ${curdir}/${child})
list(APPEND dirlist ${child}) list(APPEND dirlist ${child})
endif() endif()
endforeach() endforeach()
set(${result} ${dirlist}) set(${result} ${dirlist})
endmacro() endmacro()
listOfSubDir(subDirs ${CMAKE_CURRENT_SOURCE_DIR}) listOfSubDir(subDirs ${CMAKE_CURRENT_SOURCE_DIR})
foreach(subdir ${subDirs}) foreach(subdir ${subDirs})
add_subdirectory(${subdir}) add_subdirectory(${subdir})
endforeach() endforeach()
endif()
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# Add external data # Add external data
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
imstk_add_data(${PROJECT_NAME} ${FILE_LIST}) imstk_add_data(${PROJECT_NAME} ${FILE_LIST})
\ No newline at end of file
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