[vtk-developers] Checking if VTK was built with a particular group enabled

David E DeMarle dave.demarle at kitware.com
Fri May 4 09:36:49 EDT 2012


I was thinking along the lines of:

FIND_PACKAGE(VTK)
IF(VTK_FOUND)
  include(${ParaView_BINARY_DIR}/VTK/VTKConfig.cmake)
ENDIF()

Then checking $VTK_MODULES_ENABLED for vtkFiltersParallel.

I don't see a way to get the list of groups that are enabled.

Marcus or Chris or Brad, can you chime in?

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



---------- Forwarded message ----------
From: David Doria <daviddoria at gmail.com>
Date: Thu, May 3, 2012 at 5:21 PM
Subject: Re: [vtk-developers] Checking if VTK was built with a
particular group enabled
To: David E DeMarle <dave.demarle at kitware.com>
Cc: VTK Developers <vtk-developers at vtk.org>


On Thu, May 3, 2012 at 5:06 PM, David E DeMarle
<dave.demarle at kitware.com> wrote:
> The list of modules gets configured into the VTK_MODULES_ENABLED
> variable defined in vtkConfig.cmake, where UseVTK.cmake should pick it
> up from.
>
> David E DeMarle

Sorry, I don't follow. Two things:

1) If I do this:
find_package(VTK REQUIRED vtkFiltersParallel)
include(${VTK_USE_FILE})

even though Module_vtkFiltersParallel is OFF, CMake does not complain,
but then I get a linker error (correctly) "cannot find
-lvtkFiltersParallel". Shouldn't this be caught by the find_package?

2) There doesn't seem to be a similar VTK_GROUPS_ENABLED, or a way to
check for them with CMake. Is that correct?

David



More information about the vtk-developers mailing list