Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
iMSTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ruiliang Gao
iMSTK
Commits
1228108a
Commit
1228108a
authored
6 years ago
by
Sreekanth Arikatla
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+2
-3
2 additions, 3 deletions
CMakeLists.txt
Examples/CMakeLists.txt
+19
-18
19 additions, 18 deletions
Examples/CMakeLists.txt
with
21 additions
and
21 deletions
CMakeLists.txt
+
2
−
3
View file @
1228108a
...
...
@@ -380,9 +380,8 @@ install(
#--------------------------------------------------------------------------
# Add Examples subdirectories
#--------------------------------------------------------------------------
if
(
BUILD_EXAMPLES
)
add_subdirectory
(
Examples
)
endif
()
add_subdirectory
(
Examples
)
#--------------------------------------------------------------------------
# Innerbuild dummy test
...
...
This diff is collapsed.
Click to expand it.
Examples/CMakeLists.txt
+
19
−
18
View file @
1228108a
...
...
@@ -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
}
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment