pleora: build for various versions of eBUS, and append version to plugin name
Not the prettiest way to handle this, but we have a need for supporting multiple versions of eBUS, and this way we can distribute multiple versions. This also tries to modernize the FindPleora.cmake file.
This commit is contained in:
@@ -2,21 +2,28 @@ add_definitions(-D_XKEYCHECK_H)
|
||||
|
||||
set (SOURCES
|
||||
gstpleora.cpp
|
||||
gstpleorasink.cpp
|
||||
gstpleorasrc.cpp
|
||||
streamingchannelsource.cpp)
|
||||
gstpleorasrc.cpp)
|
||||
|
||||
set (HEADERS
|
||||
gstpleorasink.h
|
||||
gstpleorasrc.h
|
||||
streamingchannelsource.h)
|
||||
gstpleorasrc.h)
|
||||
|
||||
if (Pleora_VERSION_MAJOR GREATER 5)
|
||||
set (SOURCES
|
||||
${SOURCES}
|
||||
gstpleorasink.cpp
|
||||
streamingchannelsource.cpp)
|
||||
set (HEADERS
|
||||
${HEADERS}
|
||||
gstpleorasink.h
|
||||
streamingchannelsource.h)
|
||||
endif ()
|
||||
|
||||
include_directories (AFTER
|
||||
${PLEORA_INCLUDE_DIR})
|
||||
${Pleora_INCLUDE_DIR})
|
||||
|
||||
set (libname libgstpleora)
|
||||
link_directories(${Pleora_LIBRARY_DIR})
|
||||
|
||||
link_directories(${PLEORA_LIBRARIES_DIR})
|
||||
set (libname libgstpleora${Pleora_VERSION_MAJOR})
|
||||
|
||||
add_library (${libname} MODULE
|
||||
${SOURCES}
|
||||
|
||||
Reference in New Issue
Block a user