Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
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
Karen Tsai
VTK
Commits
5f4a89a7
Commit
5f4a89a7
authored
7 years ago
by
Robert Maynard
Browse files
Options
Downloads
Patches
Plain Diff
Export: VTK-m module is now exported into the VTKConfig.cmake
parent
aae5e8c2
No related branches found
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMake/VTKConfig.cmake.in
+14
-0
14 additions, 0 deletions
CMake/VTKConfig.cmake.in
ThirdParty/vtkm/CMakeLists.txt
+7
-2
7 additions, 2 deletions
ThirdParty/vtkm/CMakeLists.txt
with
21 additions
and
2 deletions
CMake/VTKConfig.cmake.in
+
14
−
0
View file @
5f4a89a7
...
...
@@ -80,6 +80,20 @@ else()
endif ()
endif()
# Setup VTK-m if it was enabled
set(VTK_HAS_VTKM @Module_vtkm@)
if(VTK_HAS_VTKM AND __vtk_install_tree)
set(VTKM_CMAKE_DIR "${VTKM_CMAKE_DIR}")
get_filename_component(VTKM_CMAKE_DIR "${VTKM_CMAKE_DIR}" PATH)
find_package(VTKm
PATHS "${CMAKE_CURRENT_LIST_DIR}"
"${VTKM_CMAKE_DIR}"
"${VTK_RUNTIME_DIRS}"
NO_DEFAULT_PATH
)
endif()
#-----------------------------------------------------------------------------
# Load requested modules.
...
...
This diff is collapsed.
Click to expand it.
ThirdParty/vtkm/CMakeLists.txt
+
7
−
2
View file @
5f4a89a7
...
...
@@ -31,8 +31,13 @@ if (NOT GLEW_INCLUDE_DIR)
set
(
GLEW_needs_unset ON
)
endif
()
set
(
vtkm_LIBRARIES vtkm vtkm_cont
)
vtk_module_export_info
()
add_subdirectory
(
vtk-m
)
vtk_target_export
(
vtkm
)
vtk_target_export
(
vtkm_cont
)
if
(
GLEW_needs_unset
)
unset
(
GLEW_INCLUDE_DIR CACHE
)
unset
(
GLEW_LIBRARY CACHE
)
...
...
@@ -40,7 +45,7 @@ if (GLEW_needs_unset)
endif
()
set
(
vtkm_INCLUDE_DIRS
${
CMAKE_CURRENT_BINARY_DIR
}
/vtk-m/include
)
set
(
vtkm_LIBRARIES vtkm_cont
)
vtk_module_export_info
()
set_target_properties
(
vtkm PROPERTIES INTERFACE_LINK_LIBRARIES vtkm_cont
)
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