CMakeLists.txt
1.38 KB
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
#-----------------------------------------------------------#
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
#-----------------------------------------------------------#
project(HDPI)
#-----------------------------------------------------------#
set (HEADERS hdpi.h
hmpi_err.h
hmpi_partitioning.h
hmpi_partitioning_internal.h
hmpi_partitioning_matrices.h
hmpi_partitioning_sets.h
hmpi_partitioning_graphs.h
hmpi_partitioning_trees.h
hmpi_partitioning_types.h)
#-----------------------------------------------------------#
set (SOURCES hmpi_partitioning_sets.c
hmpi_partitioning_sets_speed_function_of_problem_size.c
hmpi_partitioning_sets_speed_function_of_problem_size_weighted_elements.c
hmpi_partitioning_sets_speed_single_numbers_weighted_elements.c
hmpi_partitioning_graphs.c
hmpi_partitioning_matrices.c)
#-----------------------------------------------------------#
include_directories (${PROJECT_SOURCE_DIR})
#-----------------------------------------------------------#
add_library(hdpi ${HEADERS} ${SOURCES})
#-----------------------------------------------------------#
install(TARGETS hdpi DESTINATION lib)
install(FILES ${HEADERS} DESTINATION include)
#-----------------------------------------------------------#