Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 9f7cfa8952
Fetching contributors…

Cannot retrieve contributors at this time

83 lines (75 sloc) 1.923 kB
###############################################################################
# Find BCM_HOST (Broadcom VideoCore)
###############################################################################
#
# BCM_HOST_FOUND
# BCM_HOST_INCLUDE_DIRS
# BCM_HOST_LIBRARIES
#
###############################################################################
find_path(BCM_HOST_INCLUDE_DIR bcm_host.h
HINTS $ENV{BCM_HOSTDIR}
PATH_SUFFIXES include
PATHS /usr/local
/usr
/opt/vc
/opt/local
/opt
)
list(APPEND BCM_HOST_INCLUDE_DIRS ${BCM_HOST_INCLUDE_DIR})
find_path(BCM_HOST_PTHREADS_INCLUDE_DIR vcos_platform_types.h
HINTS $ENV{BCM_HOSTDIR}
PATH_SUFFIXES include/interface/vcos/pthreads
PATHS /usr/local
/usr
/opt/vc
/opt/local
/opt
)
list(APPEND BCM_HOST_INCLUDE_DIRS ${BCM_HOST_PTHREADS_INCLUDE_DIR})
find_library(BCM_HOST_LIBRARY bcm_host
HINTS $ENV{BCM_HOSTDIR}
PATH_SUFFIXES lib
PATHS /usr/local
/usr
/opt/vc
/opt/local
/opt
)
list(APPEND BCM_HOST_LIBRARIES ${BCM_HOST_LIBRARY})
find_library(BCM_HOST_vcos_LIBRARY vcos
HINTS $ENV{BCM_HOSTDIR}
PATH_SUFFIXES lib
PATHS /usr/local
/usr
/opt/vc
/opt/local
/opt
)
list(APPEND BCM_HOST_LIBRARIES ${BCM_HOST_vcos_LIBRARY})
find_library(BCM_HOST_vchiq_arm_LIBRARY vchiq_arm
HINTS $ENV{BCM_HOSTDIR}
PATH_SUFFIXES lib
PATHS /usr/local
/usr
/opt/vc
/opt/local
/opt
)
list(APPEND BCM_HOST_LIBRARIES ${BCM_HOST_vchiq_arm_LIBRARY})
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(BCM_HOST DEFAULT_MSG
BCM_HOST_INCLUDE_DIR
BCM_HOST_LIBRARY
BCM_HOST_PTHREADS_INCLUDE_DIR
BCM_HOST_vchiq_arm_LIBRARY
BCM_HOST_vcos_LIBRARY
)
mark_as_advanced(
BCM_HOST_INCLUDE_DIR
BCM_HOST_INCLUDE_DIRS
BCM_HOST_LIBRARIES
BCM_HOST_LIBRARY
BCM_HOST_PTHREADS_INCLUDE_DIR
BCM_HOST_vchiq_arm_LIBRARY
BCM_HOST_vcos_LIBRARY)
Jump to Line
Something went wrong with that request. Please try again.