-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
29 lines (23 loc) · 864 Bytes
/
CMakeLists.txt
File metadata and controls
29 lines (23 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
cmake_minimum_required(VERSION 3.12)
set(CMAKE_CXX_STANDARD 20)
project(cut_norm)
find_package(deal.II 9.6 QUIET
HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR})
if (NOT ${deal.II_FOUND})
message(
FATAL_ERROR
"\n"
"*** Could not locate deal.II. ***\n\n"
"You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake\n"
"or set an environment variable \"DEAL_II_DIR\" that contains this path.")
endif ()
message("-- deal.II found: ${DEAL_II_DIR}")
if (NOT DEAL_II_WITH_P4EST)
message(
FATAL_ERROR
"\nThis library requires a deal.II installation built with support for p4est but it appears to be missing!\n"
)
endif ()
DEAL_II_INITIALIZE_CACHED_VARIABLES()
add_executable(cut_norm cut_norm.cpp)
deal_ii_setup_target(cut_norm)