-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCMakeLists.txt
47 lines (37 loc) · 983 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
44
45
46
47
cmake_minimum_required(VERSION 3.8)
project(bulk)
# The example and test directories are relative to backends/xxx/build
set(EXAMPLE_DIR "../../../examples/")
set(
EXAMPLE_SOURCES
"word_count.cpp"
"cannon.cpp"
"communication.cpp"
"dot_product.cpp"
"hello.cpp"
"messaging.cpp"
"partitioning.cpp"
)
set(TEST_DIR "../../../test")
set(
TEST_SOURCES
"${TEST_DIR}/algorithm.cpp"
"${TEST_DIR}/communication.cpp"
"${TEST_DIR}/initialization.cpp"
"${TEST_DIR}/partitioning.cpp"
"${TEST_DIR}/test_main.cpp"
)
set(
BULK_SUGGESTED_COMPILE_OPTIONS
"-O3"
"-Wall"
"-Werror"
"-Wfatal-errors"
"-Wextra"
"-Wformat-security"
)
add_library(bulk INTERFACE)
target_include_directories(bulk INTERFACE "include")
target_compile_features(bulk INTERFACE cxx_std_20)
add_subdirectory("backends/mpi/build" "bin/mpi" EXCLUDE_FROM_ALL)
add_subdirectory("backends/thread/build" "bin/thread" EXCLUDE_FROM_ALL)