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

Annotation of /trunk/solvers/conopt/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1517 - (hide annotations) (download)
Thu Jun 28 01:36:22 2007 UTC (15 years, 7 months ago) by jpye
File size: 519 byte(s)
Correcting conditional build of CONOPT wrapper.
1 jpye 1504 Import('env')
2    
3     # To run the test, type
4     # ascend johnpye/conopt/conopt.a4c
5    
6 jpye 1517 if env.get('WITH_CONOPT'):
7 jpye 1504
8 jpye 1517 solver_env = env.Copy()
9    
10 jpye 1504 solver_env.AppendUnique(CPPPATH=[solver_env.get('CONOPT_CPPPATH')])
11    
12 jpye 1517 libconopt = [solver_env.SharedLibrary("conopt",["asc_conopt.c"]
13     ,LIBS = ['ascend']
14     ,LIBPATH = ['#']
15     )]
16 jpye 1504
17 jpye 1517 env.Depends(libconopt,env['libascend'])
18 jpye 1510
19 jpye 1517 env['extfns'] += libconopt
20 jpye 1504
21 jpye 1517 if env.get('CAN_INSTALL'):
22     env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")),libconopt)
23 jpye 1504
24     # vim: set syntax=python:
25    

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