2015-10-13 09:05:27 +00:00
|
|
|
if(CEC_INCLUDE_DIR)
|
|
|
|
# Already in cache, be silent
|
|
|
|
set(CEC_FIND_QUIETLY TRUE)
|
|
|
|
endif(CEC_INCLUDE_DIR)
|
|
|
|
|
|
|
|
if (PKG_CONFIG_FOUND)
|
|
|
|
pkg_check_modules(_CEC QUIET libcec>=2.0)
|
|
|
|
endif (PKG_CONFIG_FOUND)
|
|
|
|
|
|
|
|
Find_Path(CEC_INCLUDE_DIR
|
2015-12-03 14:41:22 +00:00
|
|
|
NAMES cec/cec.h libcec/cec.h
|
2015-10-13 09:05:27 +00:00
|
|
|
PATHS /usr/include usr/local/include
|
2015-12-03 14:41:22 +00:00
|
|
|
PATH_SUFFIXES cec cec/cec libcec cec/include
|
2015-10-13 09:05:27 +00:00
|
|
|
HINTS ${_CEC_INCLUDEDIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
Find_Library(CEC_LIBRARY
|
|
|
|
NAMES cec
|
|
|
|
PATHS /usr/lib usr/local/lib
|
2015-12-03 14:41:22 +00:00
|
|
|
PATH_SUFFIXES cec libcec cec/lib libcec/lib
|
|
|
|
HINTS ${_CEC_LIBDIR}
|
2015-10-13 09:05:27 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(CEC DEFAULT_MSG CEC_LIBRARY CEC_INCLUDE_DIR)
|
|
|
|
|
|
|
|
|