mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Merge branch 'document-vtkm-config' into 'master'
Add extra documentation to VTKmConfig.cmake Add a note about the VTKm_COMPILE_OPTIONS. Also make an easy to read list of available components. See merge request !468
This commit is contained in:
commit
94c5b29fdf
@ -18,11 +18,20 @@
|
||||
## this software.
|
||||
##============================================================================
|
||||
|
||||
# When this file is run by CMake (usually through the find_package command),
|
||||
# The following variables will be defined:
|
||||
# When this file is run by CMake through the find_package command, the
|
||||
# following variables will be defined:
|
||||
#
|
||||
# VTKm_INCLUDE_DIRS - Directories containing VTK-m and dependent headers
|
||||
# VTKm_LIBRARIES - The libraries required when using VTK-m
|
||||
# VTKm_COMPILE_OPTIONS - Options VTK-m suggests to add to the compiler
|
||||
#
|
||||
# Note that the VTK-m package supports several components. It is important
|
||||
# to request the components being used (as done through find_package arguments).
|
||||
# If no components are requested, then the dependent packages will not be
|
||||
# found and loaded. The following components are supported:
|
||||
#
|
||||
# @VTKm_AVAILABLE_COMPONENTS_LIST@
|
||||
#
|
||||
|
||||
@PACKAGE_INIT@
|
||||
|
||||
|
@ -235,6 +235,10 @@ endif(VTKm_BUILD_EXAMPLES)
|
||||
# Ready files for find_package
|
||||
include(CMakePackageConfigHelpers)
|
||||
|
||||
string(REPLACE ";" " " VTKm_AVAILABLE_COMPONENTS_LIST
|
||||
"${VTKm_AVAILABLE_COMPONENTS}"
|
||||
)
|
||||
|
||||
set(VTKm_LOAD_COMPONENTS_COMMANDS "
|
||||
foreach(comp \${VTKm_FIND_COMPONENTS})")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user