Debian Codegraph @

doc/users/CMakeLists.txt.sample2

raw
1 find_package(deal.II 9.5.0 REQUIRED
2 HINTS
3 ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR}
4 # You can specify additional hints for search paths here, e.g.
5 # $ENV{HOME}/workspace/deal.II
6 )
7
8 # Set the name of the project and target:
9 set(TARGET "step-1")
10
11 # Declare all source files the target consists of. Here, this is only
12 # the one step-X.cc file, but as you expand your project you may wish
13 # to add other source files as well. If your project becomes much larger,
14 # you may want to either replace the following statement by something like
15 # FILE(GLOB_RECURSE TARGET_SRC "source/*.cc")
16 # FILE(GLOB_RECURSE TARGET_INC "include/*.h")
17 # SET(TARGET_SRC ${TARGET_SRC} ${TARGET_INC})
18 # or switch altogether to the large project CMakeLists.txt file discussed
19 # in the "CMake in user projects" page accessible from the "User info"
20 # page of the documentation.
21 set(TARGET_SRC
22 ${TARGET}.cc
23 )
24
25 cmake_minimum_required(VERSION 3.13.4)
26 deal_ii_initialize_cached_variables()
27 project(${TARGET} CXX)
28 deal_ii_invoke_autopilot()