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

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

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: 57d3215cae5e9da7b4c92e89f038d70870ef7327
end hash code: 9aebc1ca2c0949dec7c2d156517db26e60f28159

commit 9aebc1ca2c0949dec7c2d156517db26e60f28159
Author: Brad Bell <bradbell@…>
Date: Sun Nov 8 20:15:38 2015 -0800

Remove invisible white space.

commit a92ac50e9f4c8d0007ea5a245b3e23145dfcebfe
Author: Brad Bell <bradbell@…>
Date: Sun Nov 8 20:15:31 2015 -0800

Use vectorBool with partial sparsity patterns per pass to reduce memory requirements.


solve_callback.hpp: remove invisible white space.
rev_sparse_jac.hpp: fix bug (argument transposed).
bool_sparsity.cpp: remove invisible white space.

commit c09744b13ba2c70d6ffa857206d45560154d800a
Author: Brad Bell <bradbell@…>
Date: Sun Nov 8 03:22:57 2015 -0800

check_for_nan.hpp: fix minor type in documentation.

  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: CMakeLists.txt 3746 2015-11-09 04:50:27Z bradbell $
2# -----------------------------------------------------------------------------
3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-15 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# colpack_prefix
22IF ( colpack_prefix )
23        # Extra source files if we are including colpack
24        SET(colpack_sources ../../cppad/local/cppad_colpack.cpp)
25        # add colpack to list of libraries
26        SET(colpack_libs "ColPack")
27ELSE ( colpack_prefix )
28        SET(colpack_sources "")
29        SET(colpack_libs "")
30ENDIF ( colpack_prefix )
31
32# Copy a file to another location and modify its contents.
33# configure_file(InputFile OutputFile [COPYONLY] [ESCAPE_QUOTES] [@ONLY])
34CONFIGURE_FILE(
35        ${CMAKE_CURRENT_SOURCE_DIR}/test_one.sh.in
36        ${CMAKE_CURRENT_SOURCE_DIR}/test_one.sh
37)
38
39#
40ADD_EXECUTABLE(example_ipopt_solve EXCLUDE_FROM_ALL
41        solve.cpp
42        get_started.cpp
43        ode_inverse.cpp
44        retape.cpp
45        ${colpack_sources}
46)
47
48# Extra compiler flags
49add_cppad_cxx_flags( example_ipopt_solve )
50
51# libraries to be linked into the specified target,
52# as determined by pkg-config for ipopt
53TARGET_LINK_LIBRARIES(example_ipopt_solve ${ipopt_LIBRARIES} ${colpack_libs})
54
55# Add the check_example_ipopt_solve target
56ADD_CUSTOM_TARGET(check_example_ipopt_solve
57        example_ipopt_solve
58        DEPENDS example_ipopt_solve
59)
Note: See TracBrowser for help on using the repository browser.