CMakeLists.txt 1.38 KB

#-----------------------------------------------------------#

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)

#-----------------------------------------------------------#