Commit 312181d4 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel

vtkIOADIOS: update to the new module system

parent 4e1a98b3
find_package(ADIOS 1.11 REQUIRED)
include_directories(SYSTEM ${ADIOS_INCLUDE_DIRS})
find_package(MPI REQUIRED)
include_directories(SYSTEM ${MPI_C_INCLUDE_PATH})
find_package (Threads)
set(Module_SOURCES
ADIOSDefs.cxx
ADIOSUtilities.cxx
ADIOSWriter.cxx
ADIOSAttribute.cxx
ADIOSVarInfo.cxx
ADIOSScalar.cxx
ADIOSReader.cxx
vtkADIOSUtilities.cxx
vtkADIOSWriter.cxx
vtkADIOSDirTree.cxx
vtkADIOSReader.cxx
)
vtk_module_library(vtkIOADIOS ${Module_SOURCES})
target_link_libraries(vtkIOADIOS
LINK_PRIVATE ${ADIOS_LIBRARIES} ${MPI_C_LIBRARIES} ${MPI_CXX_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}
)
vtk_module_find_package(
PACKAGE ADIOS1
VERSION 1.11)
vtk_module_find_package(
PACKAGE Threads)
set(classes
ADIOSAttribute
ADIOSDefs
ADIOSReader
ADIOSScalar
ADIOSUtilities
ADIOSVarInfo
ADIOSWriter
vtkADIOSDirTree
vtkADIOSReader
vtkADIOSUtilities
vtkADIOSWriter)
vtk_module_add_module(VTK::IOADIOS
CLASSES ${classes})
vtk_module_link(VTK::IOADIOS
PRIVATE
adios1::adios
Threads::Threads)
find_package(ADIOS REQUIRED)
include_directories(SYSTEM ${ADIOS_INCLUDE_DIRS})
find_package(ADIOS1 QUIET)
vtk_add_test_mpi(vtkIOADIOSCxx-MPI tests
NO_DATA NO_VALID NO_OUTPUT
......@@ -8,4 +7,7 @@ vtk_add_test_mpi(vtkIOADIOSCxx-MPI tests
TestADIOSSphereWR.cxx
)
vtk_test_mpi_executable(vtkIOADIOSCxx-MPI tests)
vtk_test_cxx_executable(vtkIOADIOSCxx-MPI tests)
target_link_libraries(vtkIOADIOSCxx-MPI
PRIVATE
adios1::adios)
vtk_module(vtkIOADIOS
TEST_DEPENDS
vtkTestingCore
vtkTestingRendering
EXCLUDE_FROM_ALL
DEPENDS
vtkCommonCore
vtkCommonExecutionModel
vtkParallelCore
PRIVATE_DEPENDS
vtkCommonDataModel
vtkParallelMPI
)
\ No newline at end of file
NAME
VTK::IOADIOS
LIBRARY_NAME
vtkIOADIOS
DEPENDS
VTK::CommonCore
VTK::CommonExecutionModel
VTK::ParallelCore
PRIVATE_DEPENDS
VTK::CommonDataModel
VTK::ParallelMPI
VTK::mpi
TEST_DEPENDS
VTK::FiltersSources
VTK::ParallelMPI
VTK::TestingCore
VTK::TestingRendering
VTK::mpi
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