-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
36 lines (26 loc) · 959 Bytes
/
CMakeLists.txt
File metadata and controls
36 lines (26 loc) · 959 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
35
36
cmake_minimum_required(VERSION 3.10)
SET(CMAKE_CXX_COMPILER mpicxx) # use CC for okeanos
project(mpi_lab_03 CXX)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "-lstdc++")
include_directories(.)
add_executable(laplace-seq.exe
laplace-common.h
laplace-common.cpp
laplace-seq.cpp)
add_executable(laplace-par.exe
laplace-common.h
laplace-common.cpp
laplace-par.cpp)
add_executable(laplace-par-non-overlapping.exe
laplace-common.h
laplace-common.cpp
laplace-par-non-overlapping.cpp)
add_executable(ring-nonblocking.exe
ring-nonblocking.cpp)
add_executable(scatter-gather-max.exe
scatter-gather-max.cpp)
target_link_libraries(laplace-par.exe ${MPI_C_LIBRARIES})
target_link_libraries(ring-nonblocking.exe ${MPI_C_LIBRARIES})
target_link_libraries(scatter-gather-max.exe ${MPI_C_LIBRARIES})
target_link_libraries(laplace-par-non-overlapping.exe ${MPI_C_LIBRARIES})