CMakeLists.txt 856 Bytes
Newer Older
1 2 3 4 5 6
find_package(ADIOS REQUIRED)
include_directories(SYSTEM ${ADIOS_INCLUDE_DIRS})

find_package(MPI REQUIRED)
include_directories(SYSTEM ${MPI_C_INCLUDE_PATH})

7 8
find_package (Threads)

9 10 11
set(Module_SOURCES
  ADIOSDefs.cxx
  ADIOSUtilities.cxx
12

13
  ADIOSWriter.cxx
14 15

  ADIOSAttribute.cxx
16 17 18 19
  ADIOSVarInfo.cxx
  ADIOSScalar.cxx
  ADIOSReader.cxx

20 21 22 23
  vtkADIOSUtilities.cxx

  vtkADIOSWriter.cxx

24 25 26 27 28 29 30
  vtkADIOSDirTree.cxx
  vtkADIOSReader.cxx
  )

set_source_files_properties(
  ADIOSDefs
  ADIOSUtilities
31

32
  ADIOSWriter
33 34 35 36

  ADIOSAttribute
  ADIOSVarInfo
  ADIOSScalar
37 38
  ADIOSReader

39 40
  vtkADIOSUtilities

41 42
  vtkADIOSWriterDefine
  vtkADIOSWriterWrite
43 44

  vtkADIOSDirTree
45 46 47 48 49
  WRAP_EXCLUDE
  )

vtk_module_library(vtkIOADIOS ${Module_SOURCES})
target_link_libraries(vtkIOADIOS
50
  LINK_PRIVATE ${ADIOS_LIBRARIES} ${MPI_C_LIBRARIES} ${MPI_CXX_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}
51
  )