2022-01-07 14:47:51 +01:00
|
|
|
# Find Broadcom VideoCore firmware installation
|
2013-08-01 17:08:58 +02:00
|
|
|
#
|
|
|
|
# This module defines
|
2022-01-07 14:47:51 +01:00
|
|
|
# BCM_INCLUDE_DIR - The Broadcom VideoCore include directory
|
2022-03-20 14:42:21 +01:00
|
|
|
# BCM_LIBRARY - The Broadcom VideoCore BCM_HOST library.
|
2022-01-07 14:47:51 +01:00
|
|
|
# BCM_FOUND - BCM_HOST is available
|
2013-08-01 17:08:58 +02:00
|
|
|
#
|
|
|
|
|
2022-03-20 14:42:21 +01:00
|
|
|
FIND_PATH(BCM_HOST_INCLUDE_DIR bcm_host.h
|
|
|
|
PATHS
|
2016-05-26 23:44:27 +02:00
|
|
|
/usr/include
|
|
|
|
/usr/local/include
|
2022-03-20 14:42:21 +01:00
|
|
|
/opt/vc/include
|
|
|
|
)
|
2013-08-01 17:08:58 +02:00
|
|
|
|
2022-03-20 14:42:21 +01:00
|
|
|
FIND_LIBRARY(BCM_HOST_LIBRARY
|
2016-05-26 23:44:27 +02:00
|
|
|
NAMES bcm_host
|
2022-03-20 14:42:21 +01:00
|
|
|
PATHS
|
|
|
|
/usr/lib
|
|
|
|
/usr/local/lib
|
|
|
|
/opt/vc/lib
|
|
|
|
)
|
|
|
|
|
|
|
|
if (BCM_HOST_INCLUDE_DIR AND BCM_HOST_LIBRARY)
|
|
|
|
set(BCM_FOUND TRUE)
|
|
|
|
endif (BCM_HOST_INCLUDE_DIR AND BCM_HOST_LIBRARY)
|
|
|
|
|
|
|
|
if (BCM_FOUND)
|
|
|
|
SET (BCM_INCLUDE_DIR
|
|
|
|
${BCM_HOST_INCLUDE_DIR} ${BCM_HOST_INCLUDE_DIR}/interface/vcos/pthreads/
|
|
|
|
${BCM_HOST_INCLUDE_DIR}/interface/vmcs_host/linux/
|
|
|
|
)
|
|
|
|
|
|
|
|
SET (BCM_LIBRARY ${BCM_HOST_LIBRARY})
|
|
|
|
else (BCM_FOUND)
|
|
|
|
SET (BCM_INCLUDE_DIR "")
|
|
|
|
SET (BCM_LIBRARY "")
|
|
|
|
endif (BCM_FOUND)
|
|
|
|
|
|
|
|
mark_as_advanced(BCM_INCLUDE_DIR BCM_LIBRARY)
|