From f88125e2209da5c28c218eec885256955c66f362 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 15 May 2025 22:07:39 -0600 Subject: [PATCH] Also collect a few forgotten header files. --- source/base/CMakeLists.txt | 11 +++++++++++ source/differentiation/CMakeLists.txt | 13 +++++++++++++ 2 files changed, 24 insertions(+) diff --git a/source/base/CMakeLists.txt b/source/base/CMakeLists.txt index 68da9f31d3..7c21ccee5f 100644 --- a/source/base/CMakeLists.txt +++ b/source/base/CMakeLists.txt @@ -161,8 +161,19 @@ set(_inst ) +# Collect the header files inside the base/ header directory. There +# are some headers in sub-folders as well that are not represented by +# a corresponding directory under source/base/, so glob them here as +# well. +# +# Finally, there are also header files in +# include/deal.II/boost_adaptors/ that would be otherwise unaccounted +# for, and we'll collect them here as well, in the absence of a better +# place. file(GLOB _header CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/include/deal.II/base/*.h + ${CMAKE_SOURCE_DIR}/include/deal.II/base/std_cxx*/*.h + ${CMAKE_SOURCE_DIR}/include/deal.II/boost_adaptors/*.h ) define_object_library(object_base OBJECT ${_src} ${_header} ${_inst} diff --git a/source/differentiation/CMakeLists.txt b/source/differentiation/CMakeLists.txt index 503fc04349..ae38b3442c 100644 --- a/source/differentiation/CMakeLists.txt +++ b/source/differentiation/CMakeLists.txt @@ -14,3 +14,16 @@ 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}") -- 2.39.5