mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 04:31:50 +00:00
FS-7515: automake and pkg-config detection for mod_cv/opencv
This commit is contained in:
committed by
Michael Jerris
parent
de3cb5da30
commit
e2f24fbcd0
@@ -0,0 +1,18 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_cv
|
||||
|
||||
if HAVE_OPENCV
|
||||
|
||||
mod_LTLIBRARIES = mod_cv.la
|
||||
mod_cv_la_SOURCES = mod_cv.cpp
|
||||
mod_cv_la_CXXFLAGS = $(AM_CXXFLAGS) $(OPENCV_CFLAGS)
|
||||
mod_cv_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(OPENCV_LIBS)
|
||||
mod_cv_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lm -lz
|
||||
|
||||
else
|
||||
install: error
|
||||
all: error
|
||||
error:
|
||||
$(error You must install libopencv-dev to build mod_cv)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user