gst-plugin-linescan/sys/niimaq/CMakeLists.txt
2020-04-14 16:17:45 -04:00

30 lines
638 B
CMake

set (SOURCES
gstniimaq.c)
set (HEADERS
gstniimaq.h)
include_directories (AFTER
${NIIMAQ_INCLUDE_DIR})
set (libname gstniimaq)
add_library (${libname} MODULE
${SOURCES}
${HEADERS})
target_link_libraries (${libname}
${GLIB2_LIBRARIES}
${GOBJECT_LIBRARIES}
${GSTREAMER_LIBRARY}
${GSTREAMER_BASE_LIBRARY}
${GSTREAMER_VIDEO_LIBRARY}
${NIIMAQ_LIBRARIES})
if (WIN32)
set (pdbfile "${CMAKE_CURRENT_BINARY_DIR}/\${CMAKE_INSTALL_CONFIG_NAME}/lib${libname}.pdb")
install (FILES ${pdbfile} DESTINATION lib/gstreamer-1.0 COMPONENT pdb)
endif ()
install(TARGETS ${libname}
LIBRARY DESTINATION lib/gstreamer-1.0)