Commit f1373d89 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel
Browse files

vtkInfovisBoostGraphAlgorithms: update to the new module system

parent fbca6109
find_package(Boost REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
set(classes
vtkBoostBetweennessClustering
vtkBoostBiconnectedComponents
vtkBoostBrandesCentrality
vtkBoostBreadthFirstSearch
vtkBoostBreadthFirstSearchTree
vtkBoostConnectedComponents
vtkBoostDividedEdgeBundling
vtkBoostExtractLargestComponent
vtkBoostKruskalMinimumSpanningTree
vtkBoostLogWeighting
vtkBoostPrimMinimumSpanningTree
vtkBoostRandomSparseArraySource
vtkBoostSplitTableField)
set(Module_SRCS
vtkBoostBetweennessClustering.cxx
vtkBoostBiconnectedComponents.cxx
vtkBoostBrandesCentrality.cxx
vtkBoostBreadthFirstSearch.cxx
vtkBoostBreadthFirstSearchTree.cxx
vtkBoostConnectedComponents.cxx
vtkBoostDividedEdgeBundling.cxx
vtkBoostExtractLargestComponent.cxx
vtkBoostKruskalMinimumSpanningTree.cxx
vtkBoostLogWeighting.cxx
vtkBoostPrimMinimumSpanningTree.cxx
vtkBoostRandomSparseArraySource.cxx
vtkBoostSplitTableField.cxx
set(headers
vtkBoostGraphAdapter.h)
vtkBoostGraphAdapter.h
)
vtk_module_add_module(VTK::InfovisBoostGraphAlgorithms
CLASSES ${classes}
HEADERS ${headers})
vtk_module_library(vtkInfovisBoostGraphAlgorithms ${Module_SRCS})
vtk_module_find_package(
PACKAGE Boost
FORWARD_VERSION_REQ EXACT
VERSION_VAR "@Boost_MAJOR_VERSION@.@Boost_MINOR_VERSION@.@Boost_SUBMINOR_VERSION@")
vtk_module_link(VTK::InfovisBoostGraphAlgorithms
PUBLIC
Boost::boost)
vtk_module_test_data(
Data/Infovis/publications.csv)
add_subdirectory(Cxx)
find_package(Boost REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
vtk_add_test_cxx(vtkInfovisBoostGraphAlgorithmsCxxTests tests
# BoostArrayLogWeighting.cxx # todo (unsatisfied deps)
BoostArrayRandomSparseArraySource.cxx,NO_VALID
......@@ -13,3 +10,8 @@ vtk_add_test_cxx(vtkInfovisBoostGraphAlgorithmsCxxTests tests
TestBoostSplitTableField.cxx,NO_VALID
)
vtk_test_cxx_executable(vtkInfovisBoostGraphAlgorithmsCxxTests tests)
find_package(Boost REQUIRED QUIET)
target_link_libraries(vtkInfovisBoostGraphAlgorithmsCxxTests
PRIVATE
Boost::boost)
vtk_module(vtkInfovisBoostGraphAlgorithms
TEST_DEPENDS
vtkRenderingContextOpenGL2
vtkTestingRendering
vtkInteractionStyle
vtkIOInfovis
vtkViewsInfovis
vtkChartsCore
vtkViewsContext2D
DEPENDS
vtkCommonCore
vtkCommonDataModel
vtkCommonExecutionModel
PRIVATE_DEPENDS
vtkFiltersExtraction
vtkInfovisCore
)
NAME
VTK::InfovisBoostGraphAlgorithms
LIBRARY_NAME
vtkInfovisBoostGraphAlgorithms
DEPENDS
VTK::CommonCore
VTK::CommonDataModel
VTK::CommonExecutionModel
PRIVATE_DEPENDS
VTK::FiltersExtraction
VTK::InfovisCore
TEST_DEPENDS
VTK::ChartsCore
VTK::CommonSystem
VTK::InteractionStyle
VTK::IOInfovis
VTK::RenderingContextOpenGL2
VTK::TestingRendering
VTK::ViewsContext2D
VTK::ViewsInfovis
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