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

Last change on this file since 3803 was 3803, checked in by bradbell, 4 years ago

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: d75b0cba62a41b958b974a326168299773bc4614
end hash code: 8dd8b10d36b325a3f4bbf3c03f1ea00e288331ae

commit 8dd8b10d36b325a3f4bbf3c03f1ea00e288331ae
Author: Brad Bell <bradbell@…>
Date: Fri Mar 18 20:25:17 2016 -0700

  1. replace multiple */test_one.sh.in by one bin/test_one.sh.
  2. remove test_one.sh.in from auto-tools build.

commit e524af11d04938103d42963e393b3637616dc278
Author: Brad Bell <bradbell@…>
Date: Fri Mar 18 10:02:38 2016 -0700

Move solve.cpp -> ipopt_solve.cpp so has same name as its directory.

commit 4714099e4eef9226536760e206f988440eec2f48
Author: Brad Bell <bradbell@…>
Date: Fri Mar 18 09:50:37 2016 -0700

Use system include option to supress all warnings in eigen and fadbad source.

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: CMakeLists.txt 3803 2016-03-19 05:07:48Z bradbell $
2# -----------------------------------------------------------------------------
3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-16 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        get_started.cpp
24        ipopt_solve.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
35        ${cppad_lib}
36        ${ipopt_LIBRARIES}
37        ${colpack_libs}
38)
39
40# Add the check_example_ipopt_solve target
41ADD_CUSTOM_TARGET(check_example_ipopt_solve
42        example_ipopt_solve
43        DEPENDS example_ipopt_solve
44)
Note: See TracBrowser for help on using the repository browser.