source: trunk/test_more/CMakeLists.txt @ 3683

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

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

commit 494270b7d9413bba508ae4944e44e33b6f7be05b
Author: Brad Bell <bradbell@…>
Date: Sat May 9 19:20:51 2015 -0700

  1. Fix duplicate expm1 in example and test_more makefile.am, CMakeLists.txt.
  2. Extend log theory to include log1p function.


log_forward.omh: remove trailing white space
log_reverse.omh: remove trailing white space

commit d2e5c615a1d620d364c7c73f47f9db18aa4bcba3
Author: Brad Bell <bradbell@…>
Date: Sat May 9 10:09:24 2015 -0700

Add new flags to configure.ac and include auto-tools automatic changes.


test_one.sh.in: handel case where space between name and (void).
exp_reverse.omh: change plural to singular.
test_one.sh.in: handel case where space between name and (void).

commit c62e0f95b359b188556d49fb7e3a75b0eaad12e4
Author: Brad Bell <bradbell@…>
Date: Sat May 9 07:14:17 2015 -0700

Remove trialing white space.

commit f443608ff6f29ed5ff05fa136543d6f2baab7757
Author: Brad Bell <bradbell@…>
Date: Sat May 9 07:13:53 2015 -0700

Fix some warnings when using eigen_vector for the test vector.


configure.ac: Comments for auto-tool commands that will result in many makefile.in changes.
makefile.in: automatic change from corresponding makefile.am.
test_one.sh.in: use cppad_cxx_flags to determine if c++11.
makefile.in: automatic change from corresponding makefile.am.
exp_forward.omh: Fix z{(0)} to be correct for both cases.
makefile.in: automatic change from corresponding makefile.am.

commit 003b9c373b2b77fde81427f57ee3db364fea5eff
Author: Brad Bell <bradbell@…>
Date: Sat May 9 04:53:44 2015 -0700

Add expm1 function.

commit a2b3d2fd72cda066e110368860452c5299211c30
Author: Brad Bell <bradbell@…>
Date: Fri May 8 19:39:12 2015 -0700

CMakeLists.txt: simplify ENDFOREACH command.

commit 31016ed04a3fd618456de115fd98c58f07b89f3e
Author: Brad Bell <bradbell@…>
Date: Fri May 8 17:04:34 2015 -0700

check_example.sh: Fix check that all examples are in list, remove trailing white space.
exp.cpp: minor white space edit.
example_list.omh: add examples that were missing.

commit e48ff330292e90ba40baffa8b2d1b2d12c44f099
Author: Brad Bell <bradbell@…>
Date: Fri May 8 16:31:28 2015 -0700

  1. Add expm1 funtion to exp theory.
  2. Change Exp -> exp.
  3. Remove redundant index commands.
  4. Remove trailing white space.


exp.cpp: more modern names in example.

  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1# $Id: CMakeLists.txt 3683 2015-05-10 02:24:16Z 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 does not contain any multi-threading tests, so
20# test using CPPAD_MAX_NUM_THREADS equal to one (its smallest value)
21ADD_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        ${adolc_sources}
65        ${colpack_sources}
66        ${ipopt_sources}
67        abs.cpp
68        acos.cpp
69        acosh.cpp
70        adfun_copy.cpp
71        asin.cpp
72        asinh.cpp
73        assign.cpp
74        add.cpp
75        add_eq.cpp
76        add_zero.cpp
77        atan.cpp
78        atanh.cpp
79        atan2.cpp
80        base_alloc.cpp
81        check_simple_vector.cpp
82        checkpoint.cpp
83        compare.cpp
84        compare_change.cpp
85        cond_exp.cpp
86        cond_exp_ad.cpp
87        cond_exp_rev.cpp
88        copy.cpp
89        cos.cpp
90        cosh.cpp
91        dbl_epsilon.cpp
92        div.cpp
93        div_eq.cpp
94        div_zero_one.cpp
95        erf.cpp
96        exp.cpp
97        expm1.cpp
98        extern_value.cpp
99        for_hess.cpp
100        for_sparse_jac.cpp
101        forward.cpp
102        forward_dir.cpp
103        forward_order.cpp
104        from_base.cpp
105        fun_check.cpp
106        jacobian.cpp
107        limits.cpp
108        log.cpp
109        log10.cpp
110        mul.cpp
111        mul_eq.cpp
112        mul_level.cpp
113        mul_zero_one.cpp
114        near_equal_ext.cpp
115        neg.cpp
116        ode_err_control.cpp
117        optimize.cpp
118        parameter.cpp
119        poly.cpp
120        pow.cpp
121        pow_int.cpp
122        print_for.cpp
123        romberg_one.cpp
124        rosen_34.cpp
125        runge_45.cpp
126        reverse.cpp
127        rev_sparse_hes.cpp
128        rev_sparse_jac.cpp
129        rev_two.cpp
130        simple_vector.cpp
131        sin.cpp
132        sin_cos.cpp
133        sinh.cpp
134        sparse_hessian.cpp
135        sparse_jacobian.cpp
136        sparse_vec_ad.cpp
137        sqrt.cpp
138        std_math.cpp
139        sub.cpp
140        sub_eq.cpp
141        sub_zero.cpp
142        tan.cpp
143        test_vector.cpp
144        track_new_del.cpp
145        value.cpp
146        vec_ad.cpp
147        vec_ad_par.cpp
148        vec_unary.cpp
149)
150
151# Compiler flags for cppad source
152add_cppad_cxx_flags(test_more)
153
154# List of libraries to be linked into the specified target
155TARGET_LINK_LIBRARIES(test_more
156        ${colpack_libs}
157        ${adolc_libs}
158        ${ipopt_libs}
159        ${eigen_libs}
160)
161
162# Add the check_test_more target
163ADD_CUSTOM_TARGET( check_test_more test_more DEPENDS test_more )
Note: See TracBrowser for help on using the repository browser.