Ignore:
Timestamp:
Feb 24, 2014 4:44:26 PM (6 years ago)
Author:
bradbell
Message:

Add option to use ColPack?, as well as CppAD, sparse coloring algorithm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/example/ipopt_solve/CMakeLists.txt

    r2681 r3116  
    11# $Id$
    22# -----------------------------------------------------------------------------
    3 # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-14 Bradley M. Bell
    44#
    55# CppAD is distributed under multiple licenses. This distribution is under
     
    1919LINK_DIRECTORIES( ${ipopt_LIBRARY_DIRS} )
    2020
     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
    2132#
    2233ADD_EXECUTABLE(example_ipopt_solve EXCLUDE_FROM_ALL
     
    2536        ode_inverse.cpp
    2637        retape.cpp
     38        ${colpack_sources}
    2739)
    2840
     
    3244# libraries to be linked into the specified target,
    3345# as determined by pkg-config for ipopt
    34 TARGET_LINK_LIBRARIES(example_ipopt_solve ${ipopt_LIBRARIES})
     46TARGET_LINK_LIBRARIES(example_ipopt_solve ${ipopt_LIBRARIES} ${colpack_libs})
    3547
    3648# Add the check_example_ipopt_solve target
Note: See TracChangeset for help on using the changeset viewer.