1 |
Import('env') |
2 |
|
3 |
# To run the test, type |
4 |
# ascend johnpye/conopt/conopt.a4c |
5 |
|
6 |
solver_env = env.Copy() |
7 |
|
8 |
if solver_env.get('WITH_CONOPT'): |
9 |
solver_env.AppendUnique(CPPPATH=[solver_env.get('CONOPT_CPPPATH')]) |
10 |
|
11 |
libconopt = [solver_env.SharedLibrary("conopt",["asc_conopt.c"] |
12 |
,LIBS = ['ascend'] |
13 |
,LIBPATH = ['#'] |
14 |
)] |
15 |
|
16 |
env.Depends(libconopt,env['libascend']) |
17 |
|
18 |
env['extfns'] += libconopt |
19 |
|
20 |
if env.get('CAN_INSTALL'): |
21 |
env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")),libconopt) |
22 |
|
23 |
# vim: set syntax=python: |
24 |
|