36 lines
689 B
CMake
36 lines
689 B
CMake
set (SOURCES
|
|
gstkayaplugin.c
|
|
gstkayasink.c
|
|
gstkayasrc.c
|
|
)
|
|
|
|
set (HEADERS
|
|
gstkayasink.h
|
|
gstkayasrc.h)
|
|
|
|
include_directories (AFTER
|
|
${GSTREAMER_INCLUDE_DIR}/..
|
|
${KAYA_INCLUDE_DIR}
|
|
${PROJECT_SOURCE_DIR}/common
|
|
)
|
|
|
|
set (libname gstkaya)
|
|
|
|
add_library (${libname} MODULE
|
|
${SOURCES}
|
|
${HEADERS})
|
|
|
|
target_link_libraries (${libname}
|
|
${GLIB2_LIBRARIES}
|
|
${GOBJECT_LIBRARIES}
|
|
${GSTREAMER_LIBRARY}
|
|
${GSTREAMER_BASE_LIBRARY}
|
|
${GSTREAMER_VIDEO_LIBRARY}
|
|
${KAYA_LIBRARIES}
|
|
)
|
|
|
|
if (WIN32)
|
|
install (FILES $<TARGET_PDB_FILE:${libname}> DESTINATION ${PDB_INSTALL_DIR} COMPONENT pdb OPTIONAL)
|
|
endif ()
|
|
install(TARGETS ${libname} LIBRARY DESTINATION ${PLUGIN_INSTALL_DIR})
|