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