Newer
Older
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
#------------------------------------------------------------------------------#
# Distributed under the OSI-approved Apache License, Version 2.0. See
# accompanying file Copyright.txt for details.
#------------------------------------------------------------------------------#
if(ADIOS_USE_MPI)
find_package(MPI COMPONENTS C REQUIRED)
add_executable(heatTransfer_write_adios2
main.cpp
HeatTransfer.cpp
Settings.cpp
IO_adios2.cpp
)
target_include_directories(heatTransfer_write_adios2
PRIVATE ${MPI_C_INCLUDE_PATH}
)
target_link_libraries(heatTransfer_write_adios2 adios2 ${MPI_C_LIBRARIES})
if(ADIOS_BUILD_TESTING)
add_test(
NAME Example::heatTransfer::write::adios2
COMMAND heatTransfer_write_adios2
)
endif()
if(ADIOS_USE_ADIOS1)
find_package(ADIOS1 REQUIRED)
find_package(MPI COMPONENTS C REQUIRED)
add_executable(heatTransfer_write_adios1
main.cpp
HeatTransfer.cpp
Settings.cpp
IO_adios1.cpp
)
target_include_directories(heatTransfer_write_adios1
PRIVATE ${MPI_C_INCLUDE_PATH}
)
target_link_libraries(heatTransfer_write_adios1
adios1::adios ${MPI_C_LIBRARIES}
)
if(ADIOS_BUILD_TESTING)
add_test(
NAME Example::heatTransfer::write::adios1
COMMAND heatTransfer_write_adios1
)
endif()
endif()
endif()