--- /dev/null
+language: cpp
+sudo: false
+
+addons:
+ apt:
+ packages:
+ - swig
+ - python-dev
+ - python-numpy
+ - guile-2.0-dev
+ - octave3.2-headers
+ - cmake
+
+script:
+ - ./autogen.sh --no-configure
+ - mkdir build && pushd build
+ - ../configure --prefix=$HOME/.local --enable-shared --enable-maintainer-mode --enable-cxx
+ - make -j2
+ - make install
+ - python ../test/test_std.py
+ - rm -rf * ~/.local
+ - cmake -DCMAKE_INSTALL_PREFIX=~/.local -DBUILD_SHARED_LIBS=ON ..
+ - make install -j2
+ - python ../test/test_std.py
\r
OPTION(BUILD_SHARED_LIBS "Build NLOPT as a shared library" OFF )\r
\r
-IF(BUILD_SHARED_LIBS)\r
+if (BUILD_SHARED_LIBS)\r
ADD_DEFINITIONS(-DNLOPT_DLL)\r
ADD_DEFINITIONS(-DNLOPT_DLL_EXPORT )\r
-ENDIF(BUILD_SHARED_LIBS)\r
+ \r
+ if (NOT CMAKE_INSTALL_PREFIX MATCHES "^/usr")\r
+ set (CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})\r
+ set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)\r
+ endif ()\r
+endif ()\r
\r
INSTALL ( FILES ${NLOPT_HEADERS} DESTINATION include )\r
\r
+[](https://travis-ci.org/stevengj/nlopt)
+
NLopt is a library for nonlinear local and global optimization, for
functions with and without gradient information. It is designed as
as simple, unified interface and packaging of several free/open-source