summaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindKonkretCMPI.cmake
blob: b888cfdb8e7117c23ea586d136e4cc41d57f9c88 (plain)
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

find_path(KONKRETCMPI_INCLUDE_DIR
    NAMES konkret.h
    HINTS $ENV{KONKTRETCMPI_INCLUDE_DIR}
    PATH_SUFFIXES include/konkret include
    PATHS /usr /usr/local
)

find_library(KONKRETCMPI_LIBRARY
    NAMES konkret
    HINTS $ENV{KONKRETCMPI_LIB_DIR}
    PATH_SUFFIXES lib64 lib
    PATHS /usr /usr/local
)

find_program(KONKRETCMPI_KONKRET
    NAMES konkret
    HINTS $ENV{KONKRETCMPI_BIN_DIR}
    PATH_SUFFIXES bin
    PATHS /usr/ /usr/local
)

find_program(KONKRETCMPI_KONKRETREG
    NAMES konkretreg
    HINTS $ENV{KONKRETCMPI_BIN_DIR}
    PATH_SUFFIXES bin
    PATHS /usr/ /usr/local
)

set(KONKRETCMPI_LIBRARIES ${KONKRETCMPI_LIBRARY})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(KonkretCMPI DEFAULT_MSG KONKRETCMPI_LIBRARIES KONKRETCMPI_INCLUDE_DIR)

mark_as_advanced(KONKRETCMPI_INCLUDE_DIR KONKRETCMPI_LIBRARIES)