-
Notifications
You must be signed in to change notification settings - Fork 15
/
CMakeLists.txt
61 lines (42 loc) · 2.75 KB
/
CMakeLists.txt
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
include(FindPkgConfig)
pkg_check_modules(PETSC PETSc)
if(PETSC_FOUND)
find_package(MPI)
add_executable(finite-volume-heat heat.cpp)
target_link_libraries(finite-volume-heat samurai CLI11::CLI11 ${PETSC_LINK_LIBRARIES} ${MPI_LIBRARIES})
add_executable(finite-volume-heat-heterogeneous heat_heterogeneous.cpp)
target_link_libraries(finite-volume-heat-heterogeneous samurai CLI11::CLI11 ${PETSC_LINK_LIBRARIES} ${MPI_LIBRARIES})
add_executable(finite-volume-heat-nonlinear heat_nonlinear.cpp)
target_link_libraries(finite-volume-heat-nonlinear samurai CLI11::CLI11 ${PETSC_LIBRARIES} ${MPI_LIBRARIES})
add_executable(finite-volume-stokes-2d stokes_2d.cpp)
target_link_libraries(finite-volume-stokes-2d samurai CLI11::CLI11 ${PETSC_LINK_LIBRARIES} ${MPI_LIBRARIES})
add_executable(finite-volume-lid-driven-cavity lid_driven_cavity.cpp)
target_link_libraries(finite-volume-lid-driven-cavity samurai CLI11::CLI11 ${PETSC_LINK_LIBRARIES} ${MPI_LIBRARIES})
add_executable(finite-volume-nagumo nagumo.cpp)
target_link_libraries(finite-volume-nagumo samurai CLI11::CLI11 ${PETSC_LINK_LIBRARIES} ${MPI_LIBRARIES})
add_executable(manual_block_matrix_assembly manual_block_matrix_assembly.cpp)
target_link_libraries(manual_block_matrix_assembly samurai CLI11::CLI11 ${PETSC_LINK_LIBRARIES} ${MPI_LIBRARIES})
endif()
add_executable(finite-volume-amr-burgers-hat AMR_Burgers_Hat.cpp)
target_link_libraries(finite-volume-amr-burgers-hat samurai CLI11::CLI11)
add_executable(finite-volume-level-set level_set.cpp)
target_link_libraries(finite-volume-level-set samurai CLI11::CLI11)
add_executable(finite-volume-level-set-from-scratch level_set_from_scratch.cpp)
target_link_libraries(finite-volume-level-set-from-scratch samurai CLI11::CLI11)
if(MSVC)
target_compile_options(finite-volume-level-set-from-scratch PUBLIC /bigobj)
target_compile_options(finite-volume-level-set PUBLIC /bigobj)
endif()
add_executable(finite-volume-advection-1d advection_1d.cpp)
target_link_libraries(finite-volume-advection-1d samurai CLI11::CLI11)
add_executable(finite-volume-advection-2d advection_2d.cpp)
target_link_libraries(finite-volume-advection-2d samurai CLI11::CLI11)
add_executable(finite-volume-advection-2d-user-bc advection_2d_user_bc.cpp)
target_link_libraries(finite-volume-advection-2d-user-bc samurai CLI11::CLI11)
add_executable(finite-volume-scalar-burgers-2d scalar_burgers_2d.cpp)
target_link_libraries(finite-volume-scalar-burgers-2d samurai CLI11::CLI11)
add_executable(finite-volume-linear-convection linear_convection.cpp)
target_link_libraries(finite-volume-linear-convection samurai CLI11::CLI11)
add_executable(finite-volume-burgers burgers.cpp)
target_link_libraries(finite-volume-burgers samurai CLI11::CLI11)
# add_subdirectory(BZ)