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.
43 lines
921 B
CMake
43 lines
921 B
CMake
add_definitions(-D_XKEYCHECK_H)
|
|
|
|
set (SOURCES
|
|
gstpleora.cpp
|
|
gstpleorasrc.cpp)
|
|
|
|
set (HEADERS
|
|
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})
|
|
|
|
link_directories(${Pleora_LIBRARY_DIR})
|
|
|
|
set (libname libgstpleora${Pleora_VERSION_MAJOR})
|
|
|
|
add_library (${libname} MODULE
|
|
${SOURCES}
|
|
${HEADERS})
|
|
|
|
target_link_libraries (${libname}
|
|
${GLIB2_LIBRARIES}
|
|
${GOBJECT_LIBRARIES}
|
|
${GSTREAMER_LIBRARY}
|
|
${GSTREAMER_BASE_LIBRARY}
|
|
${GSTREAMER_VIDEO_LIBRARY})
|
|
|
|
set (pdbfile "${CMAKE_CURRENT_BINARY_DIR}/\${CMAKE_INSTALL_CONFIG_NAME}/${libname}.pdb")
|
|
install (FILES ${pdbfile} DESTINATION lib/gstreamer-1.0 COMPONENT pdb)
|
|
install(TARGETS ${libname}
|
|
LIBRARY DESTINATION lib/gstreamer-1.0)
|