Debian Codegraph @

examples/step-97/CMakeLists.txt

raw
1 ##
2 # CMake script for the step-97 tutorial program:
3 ##
4
5 # Set the name of the project and target:
6 set(TARGET "step-97")
7
8 # Declare all source files the target consists of. Here, this is only
9 # the one step-X.cc file, but as you expand your project you may wish
10 # to add other source files as well. If your project becomes much larger,
11 # you may want to either replace the following statement by something like
12 # file(GLOB_RECURSE TARGET_SRC "source/*.cc")
13 # file(GLOB_RECURSE TARGET_INC "include/*.h")
14 # set(TARGET_SRC ${TARGET_SRC} ${TARGET_INC})
15 # or switch altogether to the large project CMakeLists.txt file discussed
16 # in the "CMake in user projects" page accessible from the "User info"
17 # page of the documentation.
18 set(TARGET_SRC
19 ${TARGET}.cc
20 )
21
22 # Define the output that should be cleaned:
23 set(CLEAN_UP_FILES *.vtu *.tex)
24
25 # Usually, you will not need to modify anything beyond this point...
26
27 cmake_minimum_required(VERSION 3.13.4)
28
29 find_package(deal.II 9.7.0
30 HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR}
31 )
32 if(NOT ${deal.II_FOUND})
33 message(FATAL_ERROR "\n"
34 "*** Could not locate a (sufficiently recent) version of deal.II. ***\n\n"
35 "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n"
36 "or set an environment variable \"DEAL_II_DIR\" that contains this path."
37 )
38 endif()
39
40 deal_ii_initialize_cached_variables()
41 project(${TARGET})
42 deal_ii_invoke_autopilot()