CMakeLists.txt 1.36 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
16
17
18
  if(ENABLE_ADIOS)
    list(APPEND sensei_sources ADIOSAnalysisAdaptor.cxx
      ADIOSDataAdaptor.cxx)
    list(APPEND sensei_libs adios)
19
  endif()
Burlen Loring's avatar
Burlen Loring committed
20
21
22
23
24

  if(ENABLE_LIBSIM)
    list(APPEND sensei_sources LibsimAnalysisAdaptor.cxx
      LibsimImageProperties.cxx)
    list(APPEND sensei_libs libsim)
Burlen Loring's avatar
Burlen Loring committed
25
  endif()
Burlen Loring's avatar
Burlen Loring committed
26
27
28

  if(ENABLE_VTK_XMLP)
    list(APPEND sensei_sources VTKPosthocIO.cxx)
29
30
  endif()

Burlen Loring's avatar
Burlen Loring committed
31
  add_library(sensei ${sensei_sources})
32

Burlen Loring's avatar
Burlen Loring committed
33
34
35
  target_include_directories(sensei PUBLIC
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
    $<INSTALL_INTERFACE:include>)
36

Burlen Loring's avatar
Burlen Loring committed
37
  target_link_libraries(sensei PUBLIC ${sensei_libs})
38

Burlen Loring's avatar
Burlen Loring committed
39
40
41
42
43
  install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/"
    DESTINATION include FILES_MATCHING PATTERN "*.h")

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

Burlen Loring's avatar
Burlen Loring committed
45
46
  install(EXPORT sensei DESTINATION lib/cmake
    EXPORT_LINK_INTERFACE_LIBRARIES)
47

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