source: trunk/example/CMakeLists.txt @ 3680

Last change on this file since 3680 was 3680, checked in by bradbell, 5 years ago

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: 071875a4beba3363e5fa9752426aec4762cd1caa
end hash code: 0bef506513a519e1073c6279d5c4cba9e5c3b180

commit 0bef506513a519e1073c6279d5c4cba9e5c3b180
Author: Brad Bell <bradbell@…>
Date: Thu May 7 12:14:32 2015 -0700

Add the acosh function (as an atomic operation when defined by compiler).

commit b3264fa17b2f65b65800423a0e243c9c3ccfe06a
Author: Brad Bell <bradbell@…>
Date: Wed May 6 20:25:38 2015 -0700

CMakeLists.txt: Change so test only check for compliation.

commit dcbac4d4f20cc383f2bd9edb02036659df40b791
Author: Brad Bell <bradbell@…>
Date: Wed May 6 15:06:28 2015 -0700

asinh.cpp: check higher orders, relax accuracy on test.

commit 5f8881993fedd18cccc3c74831133a8f8a9d17b0
Author: Brad Bell <bradbell@…>
Date: Wed May 6 14:36:18 2015 -0700

Change Acos to acos.
acos.cpp: remove trailing white space.

commit e828fa1f7c4c3848c727f14b1b7a8030071ee705
Author: Brad Bell <bradbell@…>
Date: Wed May 6 12:07:35 2015 -0700

Change Acos to acos.
acos.cpp: remove redundant index commands, remove trailing with space.

commit 3d16e5b9fe1bdafa4ad01d1d466bb72b792650fa
Author: Brad Bell <bradbell@…>
Date: Wed May 6 11:30:49 2015 -0700

op_code.hpp: Minor edits to AcosOp? commnets.

commit 58beaaad149b4ac29fae44589d7f8900bf8f4c40
Author: Brad Bell <bradbell@…>
Date: Wed May 6 10:51:43 2015 -0700

for_jac_sweep.hpp: Add missing AsinhOp? case.

commit 623c134870c522ae5e80bcf0f89d230902594c80
Author: Brad Bell <bradbell@…>
Date: Wed May 6 10:27:39 2015 -0700

Fix comment about AsinhOp? operator.

commit 226b14f6f4810f5abf1ca247aae541963efaf4d6
Author: Brad Bell <bradbell@…>
Date: Wed May 6 10:14:08 2015 -0700

Add derivative of F to make order zero case clearer.
acos_reverse.omh: Fix some sign errors.
asin_reverse.omh: Fix typo.
acos_forward.omh: Simplify by distributing minus sign.

commit 4682f4ee73e33b600b180086576e986f636a24dc
Author: Brad Bell <bradbell@…>
Date: Wed May 6 08:15:50 2015 -0700

acos_forward.omh: fix sign that depends on acos versus acosh.

commit 906ae10adf019ddda7f57dd165aab08fc55289c4
Author: Brad Bell <bradbell@…>
Date: Wed May 6 07:09:47 2015 -0700

  1. Fix inclusion of some temporary files in package (e.g., git_commit.sh).
  2. Simplify and improve using git ls-files and ls bin/check_*.
  3. Remove trailing white space.

commit 5096f4706a547bd76caa3766aa2c62802ef7f0bf
Author: Brad Bell <bradbell@…>
Date: Wed May 6 06:41:20 2015 -0700

Combine base type documentation for erf, asinh
(will add more functions to this list list).

commit b3535db5ad95bee90672abcaa686032d23bce2fc
Author: Brad Bell <bradbell@…>
Date: Tue May 5 18:01:11 2015 -0700

  1. Change Arc Cosine/Sine? to Inverse Cosine/Sine?.
  2. Change arcsin-> asin and arccos->acos.
  3. Remove index commands that are duplicates of words in titles.


acos_reverse.omh: Add acosh case to this page.

  • Property svn:keywords set to Id
File size: 4.4 KB
Line 
1# $Id: CMakeLists.txt 3680 2015-05-07 19:17:37Z 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 example 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# initialize check_depends
20SET(check_depends example)
21
22# atomic examples
23ADD_SUBDIRECTORY(atomic)
24add_to_list(check_depends check_example_atomic)
25
26# adolc_prefix
27SET(sources mul_level_adolc.cpp mul_level_adolc_ode.cpp)
28sources_libs_define(adolc "${sources}" adolc ADOLC_EXAMPLES)
29
30# colpack_prefix
31SET(sources
32        colpack_hes.cpp
33        colpack_jac.cpp
34        ../cppad/local/cppad_colpack.cpp
35)
36sources_libs_define(colpack "${sources}" ColPack COLPACK_EXAMPLES)
37
38# eigen_prefix
39IF ( eigen_prefix )
40        # compile eigen library separately so can use different compiler flags
41        ADD_LIBRARY(example_eigen_lib EXCLUDE_FROM_ALL
42                eigen_det.cpp
43                eigen_array.cpp
44        )
45        # Adds -D define flags to the compilation of source files.
46        ADD_DEFINITIONS("-DCPPAD_EIGEN_EXAMPLES")
47        add_cppad_cxx_flags(example_eigen_lib)
48        #
49        # Add eigen to list of libraries
50        SET(eigen_libs example_eigen_lib)
51ELSE ( eigen_prefix )
52        SET(eigen_libs "")
53ENDIF ( eigen_prefix )
54
55# ipopt_prefix
56IF( ipopt_prefix )
57        ADD_SUBDIRECTORY(ipopt_solve)
58        add_to_list(check_depends check_example_ipopt_solve)
59ENDIF( ipopt_prefix )
60
61
62# Copy a file to another location and modify its contents.
63# configure_file(InputFile OutputFile [COPYONLY] [ESCAPE_QUOTES] [@ONLY])
64CONFIGURE_FILE(
65        ${CMAKE_CURRENT_SOURCE_DIR}/test_one.sh.in
66        ${CMAKE_CURRENT_SOURCE_DIR}/test_one.sh
67)
68
69
70# add_executable(<name> [WIN32] [MACOSX_BUNDLE] [EXCLUDE_FROM_ALL]
71#                 source1 source2 ... sourceN
72# )
73ADD_EXECUTABLE(example EXCLUDE_FROM_ALL example.cpp
74        ${adolc_sources}
75        ${colpack_sources}
76        abort_recording.cpp
77        abs.cpp
78        acos.cpp
79        acosh.cpp
80        add.cpp
81        add_eq.cpp
82        ad_assign.cpp
83        ad_ctor.cpp
84        ad_fun.cpp
85        ad_in_c.cpp
86        ad_input.cpp
87        ad_output.cpp
88        asin.cpp
89        asinh.cpp
90        atan.cpp
91        atan2.cpp
92        base_alloc.hpp
93        base_require.cpp
94        bender_quad.cpp
95        bool_fun.cpp
96        capacity_order.cpp
97        change_const.cpp
98        check_for_nan.cpp
99        check_numeric_type.cpp
100        check_simple_vector.cpp
101        compare.cpp
102        compare_change.cpp
103        complex_poly.cpp
104        cond_exp.cpp
105        conj_grad.cpp
106        cos.cpp
107        cosh.cpp
108        cppad_vector.cpp
109        div.cpp
110        div_eq.cpp
111        equal_op_seq.cpp
112        erf.cpp
113        error_handler.cpp
114        exp.cpp
115        for_one.cpp
116        for_two.cpp
117        forward.cpp
118        forward_dir.cpp
119        forward_order.cpp
120        for_sparse_jac.cpp
121        fun_assign.cpp
122        fun_check.cpp
123        hes_lagrangian.cpp
124        hes_lu_det.cpp
125        hes_minor_det.cpp
126        hessian.cpp
127        hes_times_dir.cpp
128        independent.cpp
129        index_sort.cpp
130        integer.cpp
131        interface2c.cpp
132        interp_onetape.cpp
133        interp_retape.cpp
134        jac_lu_det.cpp
135        jac_minor_det.cpp
136        jacobian.cpp
137        limits.cpp
138        log.cpp
139        log10.cpp
140        lu_factor.cpp
141        lu_invert.cpp
142        lu_ratio.cpp
143        lu_solve.cpp
144        lu_vec_ad.cpp
145        lu_vec_ad.hpp
146        lu_vec_ad_ok.cpp
147        mul.cpp
148        mul_eq.cpp
149        mul_level.cpp
150        mul_level_ode.cpp
151        nan.cpp
152        near_equal.cpp
153        near_equal_ext.cpp
154        number_skip.cpp
155        numeric_type.cpp
156        ode_err_control.cpp
157        ode_err_maxabs.cpp
158        ode_gear.cpp
159        ode_gear_control.cpp
160        ode_stiff.cpp
161        ode_taylor.cpp
162        omp_alloc.cpp
163        opt_val_hes.cpp
164        optimize.cpp
165        par_var.cpp
166        poly.cpp
167        pow.cpp
168        pow_int.cpp
169        print_for.cpp
170        reverse_any.cpp
171        reverse_one.cpp
172        reverse_three.cpp
173        reverse_two.cpp
174        rev_one.cpp
175        rev_sparse_hes.cpp
176        rev_sparse_jac.cpp
177        rev_two.cpp
178        romberg_mul.cpp
179        romberg_one.cpp
180        rosen_34.cpp
181        runge45_1.cpp
182        runge45_2.cpp
183        seq_property.cpp
184        simple_vector.cpp
185        sign.cpp
186        sin.cpp
187        sinh.cpp
188        sparse_hessian.cpp
189        sparse_jacobian.cpp
190        sqrt.cpp
191        stack_machine.cpp
192        sub.cpp
193        sub_eq.cpp
194        sub_sparse_hes.cpp
195        tan.cpp
196        tanh.cpp
197        tape_index.cpp
198        thread_alloc.cpp
199        unary_minus.cpp
200        unary_plus.cpp
201        value.cpp
202        var2par.cpp
203        vec_ad.cpp
204        vector_bool.cpp
205)
206
207# Compiler flags for cppad source
208add_cppad_cxx_flags(example)
209
210# List of libraries to be linked into the specified target
211TARGET_LINK_LIBRARIES(example
212        ${adolc_libs}
213        ${colpack_libs}
214        ${eigen_libs}
215)
216
217# Add the check_example target
218ADD_CUSTOM_TARGET(check_example example DEPENDS ${check_depends})
Note: See TracBrowser for help on using the repository browser.