[Ipopt] CMake build scripts for Ipopt
victor.zverovich at gmail.com
victor.zverovich at gmail.com
Tue Apr 29 15:12:09 EDT 2014
Hi,
I've implemented CMake build scripts for Ipopt (and Cbc). There are two
scripts, one for the C/C++
part<https://github.com/ampl/coin/blob/master/CMakeLists.txt> and
one for the Fortran
part<https://github.com/ampl/coin/blob/master/Ipopt/CMakeLists.txt>so
that they could be built using different toolchains. It requires stock
version of lapack <http://www.netlib.org/lapack/> that has native CMake
support placed in ThirdParty/lapack.
The scripts have been tested on Linux with gcc, Mac OSX with clang and
Windows with Visual C++ and MinGW gfortran.
To avoid duplication, most information such as the list of source files is
extracted from Makefile.am and configure.ac files. This makes the scripts
more complicated but will hopefully require less maintenance when used
together with autotools. Pure CMake solution would have been much simpler
of course.
These scripts can be used for generating project files for various IDEs:
Eclipse CDT, different versions of Visual C++ (no need to maintain project
files for each version!) or Xcode, as well as makefiles. It even supports
mixed configurations such as Visual C++/gfortran.
Hope it might be useful to someone.
Best regards,
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20140429/d7f7a3f9/attachment.html>
More information about the Ipopt
mailing list