1 # - Find LibCh (a cross platform RPC lib/tool)
3 # LibCh_INCLUDE_DIR, where to find LibCh headers
4 # LibCh_LIBS, LibCh libraries
5 # LibCh_FOUND, If false, do not try to use LibCh
7 find_path(LibCh_INCLUDE_DIR ch/continuum.h PATHS
12 set(LibCh_LIB_PATHS /usr/local/lib /opt/local/lib)
13 find_library(LibCh_LIB NAMES ch PATHS ${LibCh_LIB_PATHS})
15 if (LibCh_LIB AND LibCh_INCLUDE_DIR)
17 set(LibCh_LIBS ${LibCh_LIB})
19 set(LibCh_FOUND FALSE)
23 if (NOT LibCh_FIND_QUIETLY)
24 message(STATUS "Found libCh: ${LibCh_LIBS}")
27 if (LibCh_FIND_REQUIRED)
28 message(FATAL_ERROR "Could NOT find libch library.")
30 message(STATUS "libCh NOT found.")