<div dir="ltr"><div>Hi,</div><div><br></div><div>I&#39;ve implemented CMake build scripts for Ipopt (and Cbc). There are two scripts, <a href="https://github.com/ampl/coin/blob/master/CMakeLists.txt">one for the C/C++ part</a> and <a href="https://github.com/ampl/coin/blob/master/Ipopt/CMakeLists.txt">one for the Fortran part</a> so that they could be built using different toolchains. It requires stock version of <a href="http://www.netlib.org/lapack/">lapack</a> that has native CMake support placed in ThirdParty/lapack.</div>

<div><br></div><div>The scripts have been tested on Linux with gcc, Mac OSX with clang and Windows with Visual C++ and MinGW gfortran.</div><div><br></div><div>To avoid duplication, most information such as the list of source files is extracted from Makefile.am and <a href="http://configure.ac">configure.ac</a> 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.</div>

<div><br></div><div>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.</div>

<div><br></div><div>Hope it might be useful to someone.</div><div><br></div><div>Best regards,</div><div>Victor</div></div>