2016-09-02 07:41:27 +02:00
|
|
|
INCLUDE (CheckIncludeFiles)
|
2016-05-26 23:44:27 +02:00
|
|
|
|
|
|
|
# Define the current source locations
|
|
|
|
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/grabber)
|
|
|
|
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/grabber/amlogic)
|
|
|
|
|
2017-08-04 23:08:15 +02:00
|
|
|
FILE ( GLOB AmlogicSOURCES "${CURRENT_HEADER_DIR}/Amlogic*.h" "${CURRENT_SOURCE_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.cpp" )
|
2016-05-26 23:44:27 +02:00
|
|
|
|
2016-09-02 07:41:27 +02:00
|
|
|
CHECK_INCLUDE_FILES ("amcodec/amports/amstream.h" HAVE_AML_HEADER)
|
|
|
|
IF (${HAVE_AML_HEADER})
|
|
|
|
ADD_DEFINITIONS( -DHAVE_AML_HEADER )
|
|
|
|
ENDIF()
|
|
|
|
|
2017-08-04 23:08:15 +02:00
|
|
|
add_library(amlogic-grabber ${AmlogicSOURCES} )
|
2016-05-26 23:44:27 +02:00
|
|
|
|
|
|
|
target_link_libraries(amlogic-grabber
|
|
|
|
hyperion
|
|
|
|
${QT_LIBRARIES})
|