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
Latest commit
29 lines (25 loc) · 758 Bytes
/
Copy pathsetup.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
fromdistutils.coreimportsetup, Extension
fromCython.Distutilsimportbuild_ext
importnumpy
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