CMakeLists.txt 1.58 KB
Newer Older
Burlen Loring's avatar
Burlen Loring committed
1
2
if (ENABLE_SENSEI)
  message(STATUS "Enabled: sensei library")
3

Burlen Loring's avatar
Burlen Loring committed
4
5
6
  set(sensei_sources Error.cxx AnalysisAdaptor.cxx Autocorrelation.cxx
    ConfigurableAnalysis.cxx DataAdaptor.cxx PosthocIO.cxx Histogram.cxx
    VTKHistogram.cxx VTKDataAdaptor.cxx)
7

Burlen Loring's avatar
Burlen Loring committed
8
  set(sensei_libs mpi pugixml vtk thread ArrayIO timer diy grid)
9

Burlen Loring's avatar
Burlen Loring committed
10
11
12
  if(ENABLE_CATALYST)
    list(APPEND sensei_sources CatalystAnalysisAdaptor.cxx
      CatalystSlice.cxx CatalystUtilities.cxx)
13
14
  endif()

Burlen Loring's avatar
Burlen Loring committed
15
  if(ENABLE_ADIOS)
16
17
    list(APPEND sensei_sources ADIOSSchema.cxx
      ADIOSAnalysisAdaptor.cxx ADIOSDataAdaptor.cxx)
Burlen Loring's avatar
Burlen Loring committed
18
    list(APPEND sensei_libs adios)
19
  endif()
Burlen Loring's avatar
Burlen Loring committed
20

21
22
23
24
25
26
  if(ENABLE_VTK_M)
    list(APPEND sensei_sources
      VTKmContourAnalysis.cxx
      VTKmContourAnalysis.h)
  endif()

Burlen Loring's avatar
Burlen Loring committed
27
28
29
30
  if(ENABLE_LIBSIM)
    list(APPEND sensei_sources LibsimAnalysisAdaptor.cxx
      LibsimImageProperties.cxx)
    list(APPEND sensei_libs libsim)
Burlen Loring's avatar
Burlen Loring committed
31
  endif()
Burlen Loring's avatar
Burlen Loring committed
32
33
34

  if(ENABLE_VTK_XMLP)
    list(APPEND sensei_sources VTKPosthocIO.cxx)
35
36
  endif()

Burlen Loring's avatar
Burlen Loring committed
37
  add_library(sensei ${sensei_sources})
38

Burlen Loring's avatar
Burlen Loring committed
39
40
41
  target_include_directories(sensei PUBLIC
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
    $<INSTALL_INTERFACE:include>)
42

Burlen Loring's avatar
Burlen Loring committed
43
  target_link_libraries(sensei PUBLIC ${sensei_libs})
44

45
46
47
48
  if (ENABLE_VTK_M)
    target_compile_definitions(sensei PUBLIC ENABLE_VTK_M)
  endif()

Burlen Loring's avatar
Burlen Loring committed
49
50
51
  install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/"
    DESTINATION include FILES_MATCHING PATTERN "*.h")

52

Burlen Loring's avatar
Burlen Loring committed
53
54
  install(TARGETS sensei EXPORT sensei INCLUDES DESTINATION include
    ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
Burlen Loring's avatar
Burlen Loring committed
55

Burlen Loring's avatar
Burlen Loring committed
56
57
  install(EXPORT sensei DESTINATION lib/cmake
    EXPORT_LINK_INTERFACE_LIBRARIES)
58

Burlen Loring's avatar
Burlen Loring committed
59
endif()