-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathSConstruct
More file actions
26 lines (19 loc) · 793 Bytes
/
SConstruct
File metadata and controls
26 lines (19 loc) · 793 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
import os.path
sources = ['main.cpp', 'marker.cpp', 'page.cpp']
target = 'build/extpage'
objs = []
for s in sources:
objs.append(s.replace('.cpp', '.o'))
env = Environment(ENV = {'PATH': os.environ['PATH']})
env.AppendUnique(CCFLAGS = ['-O2'])
env.AppendUnique(CCFLAGS = ['-Wall'])
env.AppendUnique(CCFLAGS = ['-I/opt/local/include/'])
env.AppendUnique(CCFLAGS = ['-I/opt/local/include/opencv'])
env.AppendUnique(CCFLAGS = ['-I/opt/local/include/opencv2'])
env.AppendUnique(LINKFLAGS = ['-L/opt/local/lib'])
env.AppendUnique(LINKFLAGS = ['-lopencv_core'])
env.AppendUnique(LINKFLAGS = ['-lopencv_highgui'])
env.AppendUnique(LINKFLAGS = ['-lopencv_imgproc'])
env.AppendUnique(LINKFLAGS = ['-lopencv_calib3d'])
env.Object(source = sources)
env.Program(target = target, source = objs)