source: trunk/example/ipopt_solve/CMakeLists.txt @ 2683

Last change on this file since 2683 was 2681, checked in by bradbell, 7 years ago
  1. Add an ipopt::solve test to the test_more directory.
  2. Change CppAD_IPOPT_CPPAD to CppAD_IPOPT (no longer just used by cppad_ipopt).

makefile.in: update to agree with corresponding makefile.am.
test_one.sh.in: add #! /bash -e at front.
test_one.sh.in: add #! /bash -e at front.

  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: CMakeLists.txt 2681 2012-12-30 17:23:09Z bradbell $
2# -----------------------------------------------------------------------------
3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
4#
5# CppAD is distributed under multiple licenses. This distribution is under
6# the terms of the
7#                     Eclipse Public License Version 1.0.
8#
9# A copy of this license is included in the COPYING file of this distribution.
10# Please visit http://www.coin-or.org/CppAD/ for information on other licenses.
11# -----------------------------------------------------------------------------
12# Build the example/ipopt_solve directory tests
13
14# Specifies build type for this directory. Possible values are
15# empty, Debug, Release, RelWithDebInfo and MinSizeRel
16SET(CMAKE_BUILD_TYPE DEBUG)
17
18# Local link directories to search, as determined by pkg-config for ipopt
19LINK_DIRECTORIES( ${ipopt_LIBRARY_DIRS} )
20
21#
22ADD_EXECUTABLE(example_ipopt_solve EXCLUDE_FROM_ALL
23        solve.cpp
24        get_started.cpp
25        ode_inverse.cpp
26        retape.cpp
27)
28
29# Extra compiler flags
30add_cppad_cxx_flags( example_ipopt_solve )
31
32# libraries to be linked into the specified target,
33# as determined by pkg-config for ipopt
34TARGET_LINK_LIBRARIES(example_ipopt_solve ${ipopt_LIBRARIES})
35
36# Add the check_example_ipopt_solve target
37ADD_CUSTOM_TARGET(check_example_ipopt_solve
38        example_ipopt_solve
39        DEPENDS example_ipopt_solve
40)
Note: See TracBrowser for help on using the repository browser.