-
Notifications
You must be signed in to change notification settings - Fork 13
/
CMakeLists.txt
61 lines (37 loc) · 1.69 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
add_metall_executable(simple simple.cpp)
add_metall_executable(vector_of_vectors vector_of_vectors.cpp)
add_metall_executable(string string.cpp)
add_metall_executable(string_map string_map.cpp)
add_metall_executable(complex_map complex_map.cpp)
add_metall_executable(offset_pointer offset_pointer.cpp)
add_metall_executable(snapshot snapshot.cpp)
add_metall_executable(csr_graph csr_graph.cpp)
add_metall_executable(fallback_allocator fallback_allocator.cpp)
add_metall_executable(datastore_description datastore_description.cpp)
add_metall_executable(object_attribute object_attribute.cpp)
add_metall_executable(object_attribute_api_list object_attribute_api_list.cpp)
add_metall_executable(multilevel_containers multilevel_containers.cpp)
add_metall_executable(adjacency_list_graph adjacency_list_graph.cpp)
add_metall_executable(static_mutex static_mutex.cpp)
add_metall_executable(concurrent_map concurrent_map.cpp)
add_metall_executable(metall_containers metall_containers.cpp)
add_metall_executable(allocator_aware_type allocator_aware_type.cpp)
add_metall_executable(logger logger.cpp)
add_metall_executable(concurrent concurrent.cpp)
add_metall_executable(custom_logger custom_logger.cpp)
target_compile_definitions(custom_logger PRIVATE METALL_LOGGER_EXTERN_C=1)
if (BUILD_C)
add_c_executable(c_api c_api.c)
target_link_libraries(c_api PRIVATE metall_c)
endif()
include(setup_mpi)
if (MPI_CXX_FOUND)
add_metall_executable(mpi_create mpi_create.cpp)
setup_mpi_target(mpi_create)
add_metall_executable(mpi_open mpi_open.cpp)
setup_mpi_target(mpi_open)
else()
message(STATUS "Will skip building the MPI examples")
endif()
add_subdirectory(json)
add_subdirectory(container)