-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.py
46 lines (42 loc) · 1.9 KB
/
setup.py
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
from optparse import OptionParser
from distutils.core import setup, Extension
import sys
# Set to include and library directory of halcon
HalconIncludeDirs = ['/usr/local/halcon/include',
'/usr/local/halcon/include/cpp']
HalconLibraryDir = '/usr/local/halcon/lib/x64-linux2.4-gcc40/'
module1 = Extension('_hirsch',
include_dirs = ['./src/'] + HalconIncludeDirs,
library_dirs = [HalconLibraryDir],
libraries=['halcon','halconcpp'],
language = "c++",
sources = ['src/pyhirsch.cc',
'src/pyhaffinetrans2d.cc',
'src/pyhellipse.cc',
'src/pyhcircle.cc',
'src/pyhrectangle1.cc',
'src/pyhrectangle2.cc',
'src/pyhpixval.cc',
'src/pyhtemplate.cc',
'src/pyhimagearray.cc',
'src/pyhpoint2d.cc',
'src/pyhdpoint2d.cc',
'src/pyhregion.cc',
'src/pyhregionarray.cc',
'src/pyhimage.cc',
'src/pyhxldcont.cc',
'src/pyhxldcontarray.cc',
'src/pyhtuple.cc',
'src/pyhdatacode2d.cc',
'src/pyhbarcode.cc',
'src/pyhxld.cc',
'src/pyhxldarray.cc',
'src/pyhline2d.cc',
],
)
setup (name = 'Hirsch',
version = '0.1',
description = 'Python binding to MVTec HALCON',
ext_modules = [module1],
py_modules=['hirsch.giv']
)