-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
45 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
find_path(BROADCOM_INCLUDE_DIR | ||
NAMES bcm_host.h | ||
DOC "Broadcom include directory" | ||
PATHS /opt/vc/include) | ||
mark_as_advanced(BCM_INCLUDE_DIR) | ||
|
||
find_library(VCOS_LIBRARY | ||
NAMES libvcos.so | ||
DOC "Path to VCOS Library" | ||
PATHS /opt/vc/lib) | ||
mark_as_advanced(VCOS_LIBRARY) | ||
|
||
find_library(VCHIQ_LIBRARY | ||
NAMES libvchiq_arm.so | ||
DOC "Path to VCHIQ Library" | ||
PATHS /opt/vc/lib) | ||
mark_as_advanced(VCHIQ_LIBRARY) | ||
|
||
find_library(OPENMAXIL_LIBRARY | ||
NAMES libopenmaxil.so | ||
DOC "Path to OpenMAX IL Library" | ||
PATHS /opt/vc/lib) | ||
mark_as_advanced(OPENMAXIL_LIBRARY) | ||
|
||
find_library(BCM_HOST_LIBRARY | ||
NAMES libbcm_host.so | ||
DOC "Path to Broadcom Host Library" | ||
PATHS /opt/vc/lib) | ||
mark_as_advanced(BCM_HOST_LIBRARY) | ||
|
||
include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Broadcom-OMX DEFAULT_MSG BROADCOM_INCLUDE_DIR VCOS_LIBRARY VCHIQ_LIBRARY OPENMAXIL_LIBRARY BCM_HOST_LIBRARY) | ||
|
||
set(BROADCOM_OMX_LIBRARIES ${BCM_HOST_LIBRARY} ${OPENMAXIL_LIBRARY} ${VCHIQ_LIBRARY} ${VCOS_LIBRARY}) | ||
set(BROADCOM_INCLUDE_DIRS ${BROADCOM_INCLUDE_DIR} ${BROADCOM_INCLUDE_DIR}/interface/vmcs_host/linux ${BROADCOM_INCLUDE_DIR}/interface/vcos/pthreads) | ||
set(BROADCOM_OMX_DEFINITIONS USE_VCHIQ_ARM HAVE_LIBOPENMAX=2 OMX OMX_SKIP64BIT USE_EXTERNAL_OMX HAVE_LIBBCM_HOST USE_EXTERNAL_LIBBCM_HOST) |