# $Id: CMakeLists.txt 3754 2015-11-26 22:23:05Z bradbell $
# -----------------------------------------------------------------------------
# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-15 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/src library
# Inherit environment from ../CMakeList.txt
# CMAKE_BUILD_TYPE determined by parent directory

#  add_library(<name> [STATIC | SHARED | MODULE] [EXCLUDE_FROM_ALL]
#	source1 source2 ... sourceN)
# )
# Make libspeed_src a static library because this is just for testing
# and is not installed (do not have to worry about library search path).
ADD_LIBRARY(speed_src STATIC EXCLUDE_FROM_ALL
	link_det_lu.cpp
	link_det_minor.cpp
	link_mat_mul.cpp
	link_ode.cpp
	link_poly.cpp
	link_sparse_hessian.cpp
	link_sparse_jacobian.cpp
	microsoft_timer.cpp
)

# Compiler flags for cppad source
add_cppad_cxx_flags( speed_src )
