gst-plugin-linescan/sys/pylon/CMakeLists.txt
2021-02-18 06:02:24 -05:00

38 lines
738 B
CMake

set (SOURCES
gstpylonsrc.c
)
set (HEADERS
gstpylonsrc.h)
include_directories (AFTER
${GSTREAMER_INCLUDE_DIR}/..
${PYLON_INCLUDE_DIR}
)
set (libname gstpylon)
add_library (${libname} MODULE
${SOURCES}
${HEADERS})
target_link_libraries (${libname}
${GLIB2_LIBRARIES}
${GOBJECT_LIBRARIES}
${GSTREAMER_LIBRARY}
${GSTREAMER_BASE_LIBRARY}
${GSTREAMER_VIDEO_LIBRARY}
${PYLON_LIBRARIES}
)
if(MSVC)
target_compile_options(${libname} PRIVATE /W4)
else()
target_compile_options(${libname} PRIVATE -Wall)
endif()
if (WIN32)
install (FILES $<TARGET_PDB_FILE:${libname}> DESTINATION ${PDB_INSTALL_DIR} COMPONENT pdb OPTIONAL)
endif ()
install(TARGETS ${libname} LIBRARY DESTINATION ${PLUGIN_INSTALL_DIR})