30 lines
654 B
CMake
30 lines
654 B
CMake
set (SOURCES
|
|
gstsaperasrc.cpp)
|
|
|
|
set (HEADERS
|
|
gstsaperasrc.h)
|
|
|
|
include_directories (AFTER
|
|
${SAPERA_INCLUDE_DIR})
|
|
|
|
set (libname gstsapera)
|
|
|
|
add_library (${libname} MODULE
|
|
${SOURCES}
|
|
${HEADERS})
|
|
|
|
target_link_libraries (${libname}
|
|
${GLIB2_LIBRARIES}
|
|
${GOBJECT_LIBRARIES}
|
|
${GSTREAMER_LIBRARY}
|
|
${GSTREAMER_BASE_LIBRARY}
|
|
${GSTREAMER_VIDEO_LIBRARY}
|
|
${SAPERA_LIBRARIES}
|
|
"C:\\Program Files\\Teledyne DALSA\\Sapera\\Lib\\Win64\\corapi.lib"
|
|
)
|
|
|
|
if (WIN32)
|
|
install (FILES $<TARGET_PDB_FILE:${libname}> DESTINATION ${PDB_INSTALL_DIR} COMPONENT pdb OPTIONAL)
|
|
endif ()
|
|
install(TARGETS ${libname} LIBRARY DESTINATION ${PLUGIN_INSTALL_DIR})
|