gst-plugin-linescan/sys/pylon/CMakeLists.txt
Joshua M. Doe c0f68e83d3 pylonsrc: merge Basler Pylon plugin from gst-pylonsrc
Merged from https://github.com/zingmars/gst-pylonsrc

This includes some changes to include running gst-indent, and
modification to allow it to compile with Visual Studio 2012/VC11.
2020-04-06 14:35:50 -04:00

32 lines
652 B
CMake

set (SOURCES
gstpylonsrc.c
)
set (HEADERS
gstpylonsrc.h)
include_directories (AFTER
${GSTREAMER_INCLUDE_DIR}/..
${PYLON_INCLUDE_DIR}
)
set (libname libgstpylon)
add_library (${libname} MODULE
${SOURCES}
${HEADERS})
target_link_libraries (${libname}
${GLIB2_LIBRARIES}
${GOBJECT_LIBRARIES}
${GSTREAMER_LIBRARY}
${GSTREAMER_BASE_LIBRARY}
${GSTREAMER_VIDEO_LIBRARY}
${PYLON_LIBRARIES}
)
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)