-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
34 lines (25 loc) · 1013 Bytes
/
CMakeLists.txt
File metadata and controls
34 lines (25 loc) · 1013 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
30
31
32
33
34
cmake_minimum_required(VERSION 3.16)
project(ManifoldFlow LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
enable_testing()
add_library(manifoldflow
src/core/Grid3D.cpp
src/geometry/Metric3D.cpp
src/geometry/Christoffel.cpp
src/geometry/RicciTensor.cpp
src/flow/RicciFlow.cpp
src/io/VTKWriter.cpp
)
target_include_directories(manifoldflow PUBLIC include)
add_executable(s3_example examples/s3_round_flow.cpp)
target_link_libraries(s3_example manifoldflow)
add_executable(test_finite_difference tests/test_finite_difference.cpp)
target_link_libraries(test_finite_difference manifoldflow)
add_executable(test_christoffel tests/test_christoffel.cpp)
target_link_libraries(test_christoffel manifoldflow)
add_executable(test_ricci tests/test_ricci.cpp)
target_link_libraries(test_ricci manifoldflow)
add_test(NAME finite_difference COMMAND test_finite_difference)
add_test(NAME christoffel COMMAND test_christoffel)
add_test(NAME ricci COMMAND test_ricci)