# ------------------- Source files --------------------

add_library(
  PugsAnalysis
  CubeGaussQuadrature.cpp
  QuadratureManager.cpp
  PrismGaussQuadrature.cpp
  PyramidGaussQuadrature.cpp
  SquareGaussQuadrature.cpp
  TensorialGaussLegendreQuadrature.cpp
  TensorialGaussLobattoQuadrature.cpp
  TetrahedronGaussQuadrature.cpp
  TriangleGaussQuadrature.cpp)

if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
  if((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "12.0.0") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "13.0.0"))
    # Deactivated since it produces false positive warning in this file only ...
    set_source_files_properties(PyramidGaussQuadrature.cpp PROPERTIES COMPILE_FLAGS "-Wno-array-bounds")
  endif()
endif()
