## ------------------------------------------------------------------------
##
## SPDX-License-Identifier: LGPL-2.1-or-later
## Copyright (C) 2017 - 2025 by the deal.II authors
##
## This file is part of the deal.II library.
##
## Part of the source code is dual licensed under Apache-2.0 WITH
## LLVM-exception OR LGPL-2.1-or-later. Detailed license information
## governing the source code and code contributions can be found in
## LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
##
## ------------------------------------------------------------------------

add_subdirectory(ad)
add_subdirectory(sd)


set(_src)
set(_inst)

file(GLOB _header CONFIGURE_DEPENDS
  ${CMAKE_SOURCE_DIR}/include/deal.II/differentiation/*.h
  )

define_object_library(object_differentiation OBJECT ${_src} ${_header} ${_inst})
expand_instantiations(object_differentiation "${_inst}")

collect_source_and_header_files("${_src}" "${_header}")
