summaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindOpenLMI.cmake
blob: d4338ca35b9f25db5be52630e2437522585a02f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

find_path(OPENLMI_INCLUDE_DIR
    NAMES openlmi.h
    HINTS $ENV{OPENLMI_INCLUDE_DIR}
    PATH_SUFFIXES include/openlmi
    PATHS /usr /usr/local
)

find_library(OPENLMICOMMON_LIBRARY
    NAMES openlmicommon
    HINTS $ENV{OPENLMI_LIB_DIR}
    PATH_SUFFIXES lib64 lib
    PATHS /usr /usr/local
)

set(OPENLMI_LIBRARIES ${OPENLMICOMMON_LIBRARY})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(OPENLMI DEFAULT_MSG OPENLMI_LIBRARIES OPENLMI_INCLUDE_DIR)

mark_as_advanced(OPENLMI_INCLUDE_DIR OPENLMI_LIBRARIES)