# $Id: CMakeLists.txt 2683 2012-12-30 18:17:03Z bradbell $ # ----------------------------------------------------------------------------- # CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell # # CppAD is distributed under multiple licenses. This distribution is under # the terms of the # GNU General Public License Version 3. # # A copy of this license is included in the COPYING file of this distribution. # Please visit http://www.coin-or.org/CppAD/ for information on other licenses. # ----------------------------------------------------------------------------- # Build the cppad_ipopt/* directory tests # Inherit environment from ../CMakeList.txt # Initialize list of tests as empty SET(list_ipopt_nlp "") # assert ipopt_prefix is defined IF ( NOT ipopt_prefix ) MESSAGE(FATAL_ERROR "cppad_ipopt/speed/CMakeLists.txt: ipopt_prefix = ${ipopt_prefix}" ) ENDIF ( NOT ipopt_prefix ) # The CMakeLists.txt file in the specified source directory is processed # before the current input file continues beyond this command. # add_subdirectory(source_dir [binary_dir] [EXCLUDE_FROM_ALL]) ADD_SUBDIRECTORY(src) # ADD_SUBDIRECTORY(example) add_to_list(list_ipopt_nlp check_example_ipopt_nlp) # ADD_SUBDIRECTORY(speed) add_to_list(list_ipopt_nlp check_speed_ipopt_nlp) # ADD_SUBDIRECTORY(test) add_to_list(list_ipopt_nlp check_test_more_ipopt_nlp) # Add the check_ipopt_nlp target ADD_CUSTOM_TARGET(check_ipopt_nlp DEPENDS ${list_ipopt_nlp} )