############################################################################
# CMakeLists.txt file for building ROOT math/smatrix package
############################################################################

include_directories(BEFORE "inc")

ROOT_GENERATE_DICTIONARY(G__Smatrix
    Math/BinaryOperators.h
    Math/BinaryOpPolicy.h
    Math/CholeskyDecomp.h
    Math/Dfact.h
    Math/Dfactir.h
    Math/Dfinv.h
    Math/Dinv.h
    Math/Dsfact.h
    Math/Dsinv.h
    Math/Expression.h
    Math/Functions.h
    Math/HelperOps.h
    Math/MatrixFunctions.h
    Math/MatrixRepresentationsStatic.h
    Math/MConfig.h
    Math/SMatrixDfwd.h
    Math/SMatrixFfwd.h
    Math/SMatrix.h
    Math/StaticCheck.h
    Math/SVector.h
    Math/UnaryOperators.h
  MODULE
    Smatrix
  LINKDEF
    LinkDef.h
  OPTIONS
    -writeEmptyRootPCM
  DEPENDENCIES
    Core
    MathCore
)

ROOT_GENERATE_DICTIONARY(G__Smatrix32
    Math/SMatrix.h
    Math/SMatrixDfwd.h
    Math/SMatrixFfwd.h
    Math/SVector.h
  MULTIDICT
  MODULE
    Smatrix
  LINKDEF
    LinkDefD32.h
  OPTIONS
    -writeEmptyRootPCM
  DEPENDENCIES
    Core
    MathCore
)

ROOT_LINKER_LIBRARY(Smatrix
    G__Smatrix.cxx
    G__Smatrix32.cxx
  DEPENDENCIES
    Core
    MathCore
)

ROOT_INSTALL_HEADERS()
