-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
34 lines (24 loc) · 1.07 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
cmake_minimum_required(VERSION 3.14)
project(heatdis)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
add_executable(heatdis_resil)
add_executable(heatdis_veloc)
add_executable(heatdis_synthesis_benchmark)
add_subdirectory(src)
find_package(MPI REQUIRED)
target_link_libraries(heatdis_resil PRIVATE MPI::MPI_CXX)
target_link_libraries(heatdis_veloc PRIVATE MPI::MPI_CXX)
target_link_libraries(heatdis_synthesis_benchmark PRIVATE MPI::MPI_CXX)
find_package(Kokkos REQUIRED)
target_link_libraries(heatdis_resil PRIVATE Kokkos::kokkos)
target_link_libraries(heatdis_veloc PRIVATE Kokkos::kokkos)
target_link_libraries(heatdis_synthesis_benchmark PRIVATE Kokkos::kokkos)
find_package(resilience REQUIRED)
target_link_libraries(heatdis_resil PRIVATE Kokkos::resilience)
target_link_libraries(heatdis_synthesis_benchmark PRIVATE Kokkos::resilience)
find_package(VeloC REQUIRED)
target_link_libraries(heatdis_veloc PRIVATE veloc::veloc)
add_subdirectory(tpl)
# Install rules
include(GNUInstallDirs)
install(TARGETS heatdis_resil heatdis_veloc heatdis_synthesis_benchmark)