mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
446 B
16 lines
446 B
#!/bin/sh |
|
|
|
if [ $# -gt 0 ] ; then |
|
base=`basename $1 .c` |
|
echo "compiling $base" |
|
gcc -ggdb `pkg-config opencv --cflags --libs` $base.c -o $base |
|
else |
|
for i in *.c; do |
|
echo "compiling $i" |
|
gcc -ggdb `pkg-config --cflags opencv` -o `basename $i .c` $i `pkg-config --libs opencv`; |
|
done |
|
for i in *.cpp; do |
|
echo "compiling $i" |
|
g++ -ggdb `pkg-config --cflags opencv` -o `basename $i .cpp` $i `pkg-config --libs opencv`; |
|
done |
|
fi
|
|
|