提交 3b6dcc34 编写于 作者: J Julien Schueller

Add Travis script

上级 857889e6
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
......@@ -145,10 +145,15 @@ SET ( NLOPT_SOURCES
OPTION(BUILD_SHARED_LIBS "Build NLOPT as a shared library" OFF )
IF(BUILD_SHARED_LIBS)
if (BUILD_SHARED_LIBS)
ADD_DEFINITIONS(-DNLOPT_DLL)
ADD_DEFINITIONS(-DNLOPT_DLL_EXPORT )
ENDIF(BUILD_SHARED_LIBS)
if (NOT CMAKE_INSTALL_PREFIX MATCHES "^/usr")
set (CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
endif ()
endif ()
INSTALL ( FILES ${NLOPT_HEADERS} DESTINATION include )
......
[![Build Status](https://travis-ci.org/stevengj/nlopt.svg?branch=master)](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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册