Commit d1ba1d0a authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel

vtkRenderingQt: update to the new module system

parent 7c25c44d
include(vtkQt)
set(LibSrcs
vtkQImageToImageSource.cxx
vtkQtInitialization.cxx
vtkQtLabelRenderStrategy.cxx
vtkQtStringToImage.cxx
vtkQtTreeRingLabelMapper.cxx
set(classes
vtkQImageToImageSource
vtkQtInitialization
vtkQtLabelRenderStrategy
vtkQtStringToImage
vtkQtTreeRingLabelMapper
)
find_package(Qt5 COMPONENTS Widgets REQUIRED QUIET)
include_directories(${Qt5Widgets_INCLUDE_DIRS})
add_definitions(${Qt5Widgets_DEFINITIONS})
set(QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
vtk_module_add_module(VTK::RenderingQt
CLASSES ${classes})
# When this module is loaded by an app, load Qt too.
vtk_module_export_code_find_package(Qt5 COMPONENTS Widgets)
vtk_module_library(${vtk-module} ${LibSrcs})
vtk_module_link_libraries(${vtk-module} LINK_PRIVATE ${QT_LIBRARIES})
vtk_module_find_package(
PACKAGE Qt5
COMPONENTS Widgets
FORWARD_VERSION_REQ MINOR
VERSION_VAR Qt5_VERSION)
vtk_module_link(VTK::RenderingQt PUBLIC Qt5::Widgets)
vtk_add_test_cxx(vtkRenderingQtCxxTests tests
NO_VALID
TestQtInitialization.cxx
)
vtk_test_cxx_executable(vtkRenderingQtCxxTests tests)
vtk_module(vtkRenderingQt
GROUPS
Qt
TEST_DEPENDS
vtkTestingCore
DEPENDS
vtkCommonCore
vtkCommonExecutionModel
vtkRenderingCore
vtkRenderingLabel
PRIVATE_DEPENDS
vtkCommonDataModel
vtkCommonSystem
vtkFiltersSources
vtkFiltersTexture
vtkGUISupportQt
)
\ No newline at end of file
NAME
VTK::RenderingQt
LIBRARY_NAME
vtkRenderingQt
GROUPS
Qt
DEPENDS
VTK::CommonCore
VTK::CommonExecutionModel
VTK::RenderingCore
VTK::RenderingLabel
PRIVATE_DEPENDS
VTK::CommonDataModel
VTK::CommonSystem
VTK::FiltersSources
VTK::FiltersTexture
VTK::GUISupportQt
TEST_DEPENDS
VTK::TestingCore
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment