source: trunk/test_more/CMakeLists.txt @ 3741

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

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: f75f1beb91433287505fbcb2cda2081a775c05e2
end hash code: cd48f5689e158e2758a3bfb57f2e6285b62b8ec1

commit cd48f5689e158e2758a3bfb57f2e6285b62b8ec1
Author: Brad Bell <bradbell@…>
Date: Tue Oct 6 18:54:45 2015 -0700

Run reduce_index on files that were changed today.


reduce_index.py: add some more words to ignore.

commit cf4a8e3a59f06d919ef9a2d911d7c1e462896b39
Author: Brad Bell <bradbell@…>
Date: Tue Oct 6 18:35:02 2015 -0700

Change depreciated to deprecated (typo).

commit 37e09901ab78be253fa50004cdc041b042015eeb
Author: Brad Bell <bradbell@…>
Date: Tue Oct 6 18:17:29 2015 -0700

Remove invisible white space.

commit 5ffd5cb372caac6c371af5718b8bfc437c8d7f97
Author: Brad Bell <bradbell@…>
Date: Tue Oct 6 18:17:09 2015 -0700

Add the deprecation date to some features that were missing it.

commit de437774c18eda2c619cfd8676985113207eb736
Author: Brad Bell <bradbell@…>
Date: Tue Oct 6 15:35:52 2015 -0700

whats_new_15.omh: update from previous commit.
test_more.cpp: alphabetize and white space.

commit e8f32f25fe12edf8a8ffa29eb8d2848fef007bd1
Author: Brad Bell <bradbell@…>
Date: Tue Oct 6 15:21:17 2015 -0700

  1. Alphabatize list.
  2. remove old_mat_mul.hpp (deprecated).
  3. Correct $cref -> $rref.

commit f205c22e6c4bcabd516214d40e18c4bc4d61a9d1
Author: Brad Bell <bradbell@…>
Date: Tue Oct 6 14:44:00 2015 -0700

Remove invisible white space.

commit 1a73e41a8880f8fe351ba4d620cd25055b2a8e8d
Author: Brad Bell <bradbell@…>
Date: Tue Oct 6 14:43:43 2015 -0700

Move some deprecated examples from example directory to test_more directory.

commit 2ea5990965e3f8fd00a6393a60b0a59152b41e15
Author: Brad Bell <bradbell@…>
Date: Tue Oct 6 14:36:34 2015 -0700

check_user_def.sh: must not include check_user_def.sh in files searched.

commit 26ae3bc6ec918032701b7c1aa37c5b8f9acc6d55
Author: Brad Bell <bradbell@…>
Date: Tue Oct 6 13:16:26 2015 -0700

Remove invisible white space.

commit 6cbc289840bc232aff1f676d9ab3b795028aaa36
Author: Brad Bell <bradbell@…>
Date: Tue Oct 6 13:16:22 2015 -0700

Add some of the missing dates when certain features were deprecated.

commit 8e5544f467fec5d60eeb1a3739fc024bd5305014
Author: Brad Bell <bradbell@…>
Date: Tue Oct 6 09:23:13 2015 -0700

Automatic check of user API preprocessor symbols and its indicated corrections.

  • Property svn:keywords set to Id
File size: 3.9 KB
Line 
1# $Id: CMakeLists.txt 3740 2015-10-07 03:47:28Z 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 test_more directory tests
13# Inherit environment from ../CMakeList.txt
14
15# Specifies build type for this directory. Possible values are
16# empty, Debug, Release, RelWithDebInfo and MinSizeRel
17SET(CMAKE_BUILD_TYPE DEBUG)
18
19# This directory now contains omp_alloc.cpp which uses multi-threading, so
20# so no longer can set CPPAD_MAX_NUM_THREADS equal to one (its smallest value)
21# ADD_DEFINITIONS("-DCPPAD_MAX_NUM_THREADS=1")
22
23# adolc_prefix
24SET(sources base_adolc.cpp)
25sources_libs_define(adolc "${sources}" adolc ADOLC_TEST)
26
27# colpack_prefix
28SET(sources ../cppad/local/cppad_colpack.cpp)
29sources_libs_define(colpack "${sources}" ColPack COLPACK_TEST)
30
31# ipopt_prefix
32SET(sources ipopt_solve.cpp)
33sources_libs_define(ipopt "${sources}" "${ipopt_LIBRARIES}" IPOPT_TEST)
34
35# sources that use eigen
36IF ( eigen_prefix )
37        # compile eigen library separately so can use different compiler flags
38        ADD_LIBRARY(test_more_eigen_lib EXCLUDE_FROM_ALL
39                cppad_eigen.cpp
40        )
41        # Adds -D define flags to the compilation of source files.
42        ADD_DEFINITIONS("-DCPPAD_EIGEN_TEST")
43        # Add other compiler flags
44        add_cppad_cxx_flags(test_more_eigen_lib)
45        #
46        # Add eigen to list of libraries
47        SET(eigen_libs test_more_eigen_lib)
48ELSE ( eigen_prefix )
49        SET(eigen_sources "")
50        SET(eigen_libs "")
51ENDIF ( eigen_prefix )
52
53# Copy a file to another location and modify its contents.
54# configure_file(InputFile OutputFile [COPYONLY] [ESCAPE_QUOTES] [@ONLY])
55CONFIGURE_FILE(
56        ${CMAKE_CURRENT_SOURCE_DIR}/test_one.sh.in
57        ${CMAKE_CURRENT_SOURCE_DIR}/test_one.sh
58)
59
60# add_executable(<name> [WIN32] [MACOSX_BUNDLE] [EXCLUDE_FROM_ALL]
61#                 source1 source2 ... sourceN
62# )
63ADD_EXECUTABLE(test_more EXCLUDE_FROM_ALL test_more.cpp
64        old_usead_2.cpp
65        old_usead_1.cpp
66        old_tan.cpp
67        old_reciprocal.cpp
68        old_mat_mul.cpp
69        ${adolc_sources}
70        ${colpack_sources}
71        ${ipopt_sources}
72        abs.cpp
73        acos.cpp
74        acosh.cpp
75        adfun_copy.cpp
76        asin.cpp
77        asinh.cpp
78        assign.cpp
79        add.cpp
80        add_eq.cpp
81        add_zero.cpp
82        atan.cpp
83        atanh.cpp
84        atan2.cpp
85        azmul.cpp
86        base_alloc.cpp
87        check_simple_vector.cpp
88        checkpoint.cpp
89        compare.cpp
90        compare_change.cpp
91        cond_exp.cpp
92        cond_exp_ad.cpp
93        cond_exp_rev.cpp
94        copy.cpp
95        cos.cpp
96        cosh.cpp
97        dbl_epsilon.cpp
98        div.cpp
99        div_eq.cpp
100        div_zero_one.cpp
101        erf.cpp
102        exp.cpp
103        expm1.cpp
104        extern_value.cpp
105        for_hess.cpp
106        for_sparse_jac.cpp
107        forward.cpp
108        forward_dir.cpp
109        forward_order.cpp
110        from_base.cpp
111        fun_check.cpp
112        jacobian.cpp
113        num_limits.cpp
114        log.cpp
115        log1p.cpp
116        log10.cpp
117        mul.cpp
118        mul_cskip.cpp
119        mul_eq.cpp
120        mul_level.cpp
121        mul_cond_rev.cpp
122        mul_zdouble.cpp
123        mul_zero_one.cpp
124        near_equal_ext.cpp
125        neg.cpp
126        ode_err_control.cpp
127        omp_alloc.cpp
128        optimize.cpp
129        parameter.cpp
130        poly.cpp
131        pow.cpp
132        pow_int.cpp
133        print_for.cpp
134        romberg_one.cpp
135        rosen_34.cpp
136        runge_45.cpp
137        reverse.cpp
138        rev_sparse_hes.cpp
139        rev_sparse_jac.cpp
140        rev_two.cpp
141        simple_vector.cpp
142        sin.cpp
143        sin_cos.cpp
144        sinh.cpp
145        sparse_hessian.cpp
146        sparse_jacobian.cpp
147        sparse_vec_ad.cpp
148        sqrt.cpp
149        std_math.cpp
150        sub.cpp
151        sub_eq.cpp
152        sub_zero.cpp
153        tan.cpp
154        test_vector.cpp
155        track_new_del.cpp
156        value.cpp
157        vec_ad.cpp
158        vec_ad_par.cpp
159        vec_unary.cpp
160        zdouble.cpp
161)
162
163# Compiler flags for cppad source
164add_cppad_cxx_flags(test_more)
165
166# List of libraries to be linked into the specified target
167TARGET_LINK_LIBRARIES(test_more
168        ${colpack_libs}
169        ${adolc_libs}
170        ${ipopt_libs}
171        ${eigen_libs}
172)
173
174# Add the check_test_more target
175ADD_CUSTOM_TARGET( check_test_more test_more DEPENDS test_more )
Note: See TracBrowser for help on using the repository browser.