forked from pcafrica/electrophysiology_solver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (30 loc) · 832 Bytes
/
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
cmake_minimum_required(VERSION 3.13.4)
set(TARGET_NAME "monodomain")
project(${TARGET_NAME} CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(OUTPUT_DIR "${CMAKE_BINARY_DIR}/snapshot")
file(MAKE_DIRECTORY ${OUTPUT_DIR})
find_package(Torch REQUIRED)
find_package(deal.II 9.6.0 REQUIRED
HINTS
${DEAL_II_DIR}
../
../../
$ENV{DEAL_II_DIR}
/opt/dealii/v9.6.0/lib/cmake/deal.II/
)
set(TARGET_SRC
monodomain.cpp
applied_current.cpp
ionic.cpp
utils.cpp
)
add_compile_options(-fvisibility=hidden)
add_link_options(-fvisibility=hidden)
add_executable(${PROJECT_NAME} ${TARGET_SRC})
target_link_libraries(${PROJECT_NAME}
${DEAL_II_LIBRARIES}
)
deal_ii_initialize_cached_variables()
deal_ii_setup_target(${PROJECT_NAME})