Fix the build process to support OpenCV 2 (Ubuntu)

This commit is contained in:
Bradlee Speice
2012-06-22 20:06:28 -04:00
parent 403a00435d
commit a01bf54b5d
3 changed files with 25 additions and 1 deletions

View File

@ -1,6 +1,10 @@
#Need to include the -Ilibcvautomation so that libcvautomation.h can find everything that it needs
AM_CFLAGS = -Wall -O2 -I$(top_srcdir)/include #-I$(top_srcdir)/include/libcvautomation
if USEOPENCV2
AM_LDFLAGS = -L../libcvautomation/.libs -lcvautomation `pkg-config --libs x11` -lopencv_imgproc -lopencv_core -lopencv_highgui
else
AM_LDFLAGS = -L../libcvautomation/.libs -lcvautomation `pkg-config --libs x11` `pkg-config --libs opencv`
endif
#Build only if we're building the examples
bin_PROGRAMS = cva-match