Debian Codegraph @

include/CMakeLists.txt

raw
1 ## ------------------------------------------------------------------------
2 ##
3 ## SPDX-License-Identifier: LGPL-2.1-or-later
4 ## Copyright (C) 2012 - 2025 by the deal.II authors
5 ##
6 ## This file is part of the deal.II library.
7 ##
8 ## Part of the source code is dual licensed under Apache-2.0 WITH
9 ## LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10 ## governing the source code and code contributions can be found in
11 ## LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12 ##
13 ## ------------------------------------------------------------------------
14
15
16 #
17 # Recurse into the sub-directories:
18 #
19 add_subdirectory(deal.II)
20
21 #
22 # For CMake versions >= 3.28 onwards, we attach the header files as a
23 # FILE_SET to the target directly, which is then installed in
24 # cmake/config/CMakeLists.txt alongside the target. For older CMake
25 # versions we need to install headers by hand:
26 #
27 if(CMAKE_VERSION VERSION_LESS 3.28)
28 #
29 # Add a rule for how to install the header files that are part of the source tree:
30 #
31 install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/deal.II
32 DESTINATION ${DEAL_II_INCLUDE_RELDIR}
33 COMPONENT library
34 FILES_MATCHING PATTERN "*.h"
35 )
36
37 #
38 # and don't forget to install all generated header files, too:
39 #
40 install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/deal.II
41 DESTINATION ${DEAL_II_INCLUDE_RELDIR}
42 COMPONENT library
43 FILES_MATCHING PATTERN "*.h"
44 )
45 endif()