-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConstruct
39 lines (29 loc) · 913 Bytes
/
SConstruct
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
# -*- python -*-
## Copyright 2013 UCAR, NCAR, All Rights Reserved
import eol_scons
from SCons.Errors import StopError
env = Environment(tools = ['default', 'qt5', 'qtsql', 'qtgui', 'qtwidgets', 'qtnetwork', 'qtcore', 'qwt', 'gsl'])
# Compilation generates numerous warnings relative to the Qt4 code base itself when -Weffc++ is enabled
#env['CXXFLAGS'] = ['-Weffc++','-Wall','-O2' ]
env['CXXFLAGS'] = [ '-Wall','-std=c++11' ]
uis = Split("""
ViewTextDialog.ui
CalibrationPlot.ui
CalibrationForm.ui
""")
env.Uic5(uis)
sources = Split("""
main.cc
MainWindow.cc
CalibrationPlot.cc
CalibrationForm.cc
polyfitgsl.cc
SortFilterProxyModel.cc
ViewTextDialog.cc
""")
caledit = env.Program('caledit', sources)
inode = env.Install('/opt/local/bin', caledit)
env.Clean('install', inode)
options = env.GlobalOptions()
options.Update(env)
Help(options.GenerateHelpText(env))