/[ascend]/trunk/solvers/ipopt/SConscript
ViewVC logotype

Contents of /trunk/solvers/ipopt/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1636 - (show annotations) (download)
Wed Oct 24 13:04:05 2007 UTC (12 years, 3 months ago) by jpye
File size: 584 byte(s)
IPOPT gets installed if built.
added relman_hessian_count placeholder.
1 Import('env')
2
3 if env.get('WITH_IPOPT'):
4 solver_env = env.Copy()
5
6 solver_env.AppendUnique(CPPPATH=[solver_env.get('IPOPT_CPPPATH')])
7
8 solver_env.Append(
9 CPPDEFINES=[
10 'ASC_WITH_IPOPT'
11 ]
12 )
13
14 lib = solver_env.SharedLibrary("ipopt",["asc_ipopt.c"]
15 ,LIBS = ['ascend','ipopt']
16 ,LIBPATH = ['#']
17 ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
18 ,SHLIBPREFIX = env['EXTLIB_PREFIX']
19 )
20
21 env.Depends(lib,env['libascend'])
22
23 env['extfns'] += [lib]
24
25 if env.get('CAN_INSTALL'):
26 dir = Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS"))
27 env.InstallShared(dir,lib)
28
29 # vim: set syntax=python:

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22