forked from joaofaro/KCFcpp
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (25 loc) · 758 Bytes
/
setup.py
File metadata and controls
29 lines (25 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from distutils.core import setup, Extension
from Cython.Distutils import build_ext
import numpy
libdr = ['/usr/local/lib']
incdr = [numpy.get_include(), '/usr/local/include/']
ext = [
Extension('cvt', ['python/cvt.pyx'],
language = 'c++',
extra_compile_args = ['-std=c++11'],
include_dirs = incdr,
library_dirs = libdr,
libraries = ['opencv_core']),
Extension('KCF', ['python/KCF.pyx', 'src/kcftracker.cpp', 'src/fhog.cpp'],
language = 'c++',
extra_compile_args = ['-std=c++11'],
include_dirs = incdr,
library_dirs = libdr,
libraries = ['opencv_core', 'opencv_imgproc'])
]
setup(
name = 'app',
cmdclass = {'build_ext':build_ext},
ext_modules = ext
)
#python setup.py build_ext --inplace