CMakeLists.txt 606 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#------------------------------------------------------------------------------
if(ENABLE_SENSEI)
  set(sources AutocorrelationAnalysisAdaptor.cxx)
else()
  set(sources analysis.cpp)
endif()

add_library(autocorrelation STATIC ${sources})
target_compile_options(autocorrelation PRIVATE "-std=c++11")
target_compile_definitions(autocorrelation INTERFACE ENABLE_AUTOCORRELATION)
target_include_directories(autocorrelation INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(autocorrelation PUBLIC mpi PRIVATE diy grid)
if (ENABLE_SENSEI)
  target_link_libraries(autocorrelation PUBLIC core)
endif()