1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
|
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
# SPDX-FileCopyrightText: Bradley M. Bell <bradbell@seanet.com>
# SPDX-FileContributor: 2003-23 Bradley M. Bell
# ----------------------------------------------------------------------------
# Build the example/general directory tests
#
# adolc_sources
IF( cppad_has_adolc )
SET(adolc_sources mul_level_adolc.cpp mul_level_adolc_ode.cpp)
ELSE( cppad_has_adolc )
SET(adolc_sources "")
ENDIF( cppad_has_adolc )
#
# eigen_sources
IF( cppad_has_eigen )
SET(eigen_sources eigen_det.cpp eigen_array.cpp)
ELSE( cppad_has_eigen )
SET(eigen_sources "")
ENDIF( cppad_has_eigen )
#
# BEGIN_SORT_THIS_LINE_PLUS_4
SET(source_list
${adolc_sources}
${eigen_sources}
abort_recording.cpp
acos.cpp
acosh.cpp
ad_assign.cpp
ad_ctor.cpp
ad_fun.cpp
ad_in_c.cpp
ad_input.cpp
ad_output.cpp
add.cpp
add_eq.cpp
asin.cpp
asinh.cpp
atan.cpp
atan2.cpp
atanh.cpp
azmul.cpp
base2ad.cpp
base2vec_ad.cpp
base_alloc.hpp
base_require.cpp
bender_quad.cpp
bool_fun.cpp
capacity_order.cpp
change_param.cpp
check_for_nan.cpp
compare.cpp
complex_poly.cpp
con_dyn_var.cpp
cond_exp.cpp
cos.cpp
cosh.cpp
div.cpp
div_eq.cpp
equal_op_seq.cpp
erf.cpp
erfc.cpp
exp.cpp
expm1.cpp
fabs.cpp
for_one.cpp
for_two.cpp
forward.cpp
forward_dir.cpp
forward_order.cpp
fun_assign.cpp
fun_check.cpp
fun_property.cpp
function_name.cpp
general.cpp
hes_lagrangian.cpp
hes_lu_det.cpp
hes_minor_det.cpp
hes_times_dir.cpp
hessian.cpp
independent.cpp
integer.cpp
interface2c.cpp
interp_onetape.cpp
interp_retape.cpp
jac_lu_det.cpp
jac_minor_det.cpp
jacobian.cpp
log.cpp
log10.cpp
log1p.cpp
lu_ratio.cpp
lu_vec_ad.cpp
lu_vec_ad.hpp
lu_vec_ad_ok.cpp
mul.cpp
mul_eq.cpp
mul_level.cpp
mul_level_ode.cpp
near_equal_ext.cpp
new_dynamic.cpp
num_limits.cpp
number_skip.cpp
numeric_type.cpp
ode_stiff.cpp
opt_val_hes.cpp
pow.cpp
pow_nan.cpp
print_for.cpp
rev_checkpoint.cpp
rev_one.cpp
rev_two.cpp
reverse_one.cpp
reverse_three.cpp
reverse_two.cpp
sign.cpp
sin.cpp
sinh.cpp
sqrt.cpp
stack_machine.cpp
sub.cpp
sub_eq.cpp
tan.cpp
tanh.cpp
tape_index.cpp
taylor_ode.cpp
unary_minus.cpp
unary_plus.cpp
value.cpp
var2par.cpp
vec_ad.cpp
)
# END_SORT_THIS_LINE_MINUS_2
set_compile_flags( example_general "${cppad_debug_which}" "${source_list}" )
#
ADD_EXECUTABLE(example_general EXCLUDE_FROM_ALL ${source_list})
#
# List of libraries to be linked into the specified target
TARGET_LINK_LIBRARIES(example_general
${adolc_LINK_LIBRARIES}
${cppad_lib}
${colpack_libs}
)
#
# check_example_general
add_check_executable(check_example general)
|