source: trunk/test_more/CMakeLists.txt @ 3675

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

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

commit bf9459823c22b7b496d632ebde31ca166a1cc81b
Author: Brad Bell <bradbell@…>
Date: Tue May 5 06:53:28 2015 -0700

New doxygen requires GENERATE_HTML (default has changed from YES to NO).


doxyfile.sh: set GENERATE_HTML to YES.
cskip_op.hpp: fix error in doxygen command, remove trailing white space.

commit 158a03f245d13ec00b5474a428645f6712c9ea9f
Author: Brad Bell <bradbell@…>
Date: Tue May 5 06:09:24 2015 -0700

Remove trailing white space.

commit d501584454b6d99e639fafcaeead55f0158965f6
Author: Brad Bell <bradbell@…>
Date: Tue May 5 06:04:14 2015 -0700

  1. Add the inverse hyperbolic sine function asinh.
  2. Change the asin test name from Asin to asin.


base_require.hpp: remove spelling commands that are no longer used.
remove include: remove include commands that are no longer needed.
asin.cpp: use machine epsilon to gauge accuracy of this test result.

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