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['extfns'] += libconopt |
17 |
|
18 |
if env.get('CAN_INSTALL'): |
19 |
env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")),libconopt) |
20 |
|
21 |
# vim: set syntax=python: |
22 |
|