add_mlir_library(
  ConcretelangSupport
  Pipeline.cpp
  Jit.cpp
  CompilationFeedback.cpp
  CompilerEngine.cpp
  TFHECircuitKeys.cpp
  Encodings.cpp
  JITSupport.cpp
  LambdaArgument.cpp
  V0Parameters.cpp
  ClientParametersGeneration.cpp
  logging.cpp
  Jit.cpp
  LLVMEmitFile.cpp
  Utils.cpp
  DEPENDS
  mlir-headers
  LINK_LIBS
  PUBLIC
  FHELinalgDialect
  FHELinalgDialectTransforms
  FHETensorOpsToLinalg
  FHEDialectTransforms
  FHEToTFHECrt
  FHEToTFHEScalar
  SimulateTFHE
  ExtractSDFGOps
  MLIRLowerableDialectsToLLVM
  FHEDialectAnalysis
  FHEDialectTransforms
  RTDialectAnalysis
  ConcretelangTransforms
  ConcretelangConcreteTransforms
  ConcretelangSDFGTransforms
  ConcretelangSDFGInterfaces
  LinalgExtras
  TFHEDialectTransforms
  concrete_optimizer
  MLIRExecutionEngine
  ${LLVM_PTHREAD_LIB}
  ConcretelangRuntime
  ConcretelangClientLib
  ConcretelangServerLib
  TFHEDialectAnalysis
  ConcreteDialectAnalysis)

target_include_directories(ConcretelangSupport PUBLIC ${CONCRETE_CPU_INCLUDE_DIR})
