source: trunk/test_more/CMakeLists.txt @ 3788

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

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

commit 431e0a227dbfe6172d265d9d79a2b5b258c5bc18
Author: Brad Bell <bradbell@…>
Date: Tue Feb 9 07:41:29 2016 -0700

  1. Change package.sh to automatically update version on (master branch only).
  2. Change version.sh copy to check and change.

commit a14455414810cfe3c3e4bca90090defc2528a353
Author: Brad Bell <bradbell@…>
Date: Tue Feb 9 06:19:54 2016 -0700

Change check_verbatim to check_srcfile
because all but one of the verbatim commands were changed to srcfile commands.


check_include_omh.sh: old check that file names did not change case (for cygwin development).

commit 4ce45b796b57629332ab46d8ae6df94e0a1ed998
Author: Brad Bell <bradbell@…>
Date: Tue Feb 9 06:04:57 2016 -0700

batch_edit.sh to change $verbatim and $codep to $srcfile and $srccode.


det_by_minor.c: remove some invisible white space.

commit 56553b88c9623c30d2222425a9640b95ce4c8281
Author: Brad Bell <bradbell@…>
Date: Mon Feb 8 18:01:49 2016 -0700

check_jenkins.sh: jenkins.sh no longer takes an argument.
jenkins.sh: fix name of script in error message.

commit 3b8a208cfc7e8ef3c928c17eb291aa3b90ff0050
Author: Brad Bell <bradbell@…>
Date: Mon Feb 8 07:57:02 2016 -0700

new_release.sh: track branches in comments, back to master at OK end, first check of response.

commit 442b7cbc45c022776e8257d3c3404dccdd06c420
Author: Brad Bell <bradbell@…>
Date: Mon Feb 8 06:01:11 2016 -0700

  1. Advance to release 20160000.1.
  2. Check using master version of new_release.sh.
  3. Make sure auto-tools version up to date.
  4. Ask user if doing further testing before commiting new release.

commit f7bdd1f48e72feb05d604da63914022809f45c28
Author: Brad Bell <bradbell@…>
Date: Sun Feb 7 07:59:41 2016 -0700

Add shared library version number to cppad_lib; i.e., cppad_lib.yyyy.mmdd.rel

commit a4c716552e3ad05b337aea58b643c9ad1cbcd4ac
Author: Brad Bell <bradbell@…>
Date: Sun Feb 7 05:25:39 2016 -0700

Make cppad_lib libarary conditional on colpack_prefix being specified.

commit 5e8890eb8de8b0cde146a6ed59c391d7c355ff24
Author: Brad Bell <bradbell@…>
Date: Tue Jan 26 10:49:37 2016 -0700

vector.hpp: fix The -> This.

commit e4e5442b069d7b00e197c31616da32eee20460b3
Merge: c4559d5 ed28b89
Author: Brad Bell <bradbell@…>
Date: Tue Jan 26 09:47:58 2016 -0700

Merge pull request #14 from barak/master


fix spelling in description of cppad_profile_flag on cmake command line

commit ed28b899c9fedab52a578aa7dd73818638081fe6
Author: Barak A. Pearlmutter <barak+git@…>
Date: Tue Jan 26 16:24:32 2016 +0000

typo

  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
1# $Id: CMakeLists.txt 3788 2016-02-09 15:50:06Z bradbell $
2# -----------------------------------------------------------------------------
3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-16 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# ipopt_prefix
28SET(sources ipopt_solve.cpp)
29sources_libs_define(ipopt "${sources}" "${ipopt_LIBRARIES}" IPOPT_TEST)
30
31# sources that use eigen
32IF ( eigen_prefix )
33        # compile eigen library separately so can use different compiler flags
34        ADD_LIBRARY(test_more_eigen_lib EXCLUDE_FROM_ALL
35                cppad_eigen.cpp
36        )
37        # Adds -D define flags to the compilation of source files.
38        ADD_DEFINITIONS("-DCPPAD_EIGEN_TEST")
39        # Add other compiler flags
40        add_cppad_cxx_flags(test_more_eigen_lib)
41        #
42        # Add eigen to list of libraries
43        SET(eigen_libs test_more_eigen_lib)
44ELSE ( eigen_prefix )
45        SET(eigen_sources "")
46        SET(eigen_libs "")
47ENDIF ( eigen_prefix )
48
49# Copy a file to another location and modify its contents.
50# configure_file(InputFile OutputFile [COPYONLY] [ESCAPE_QUOTES] [@ONLY])
51CONFIGURE_FILE(
52        ${CMAKE_CURRENT_SOURCE_DIR}/test_one.sh.in
53        ${CMAKE_CURRENT_SOURCE_DIR}/test_one.sh
54)
55
56# add_executable(<name> [WIN32] [MACOSX_BUNDLE] [EXCLUDE_FROM_ALL]
57#                 source1 source2 ... sourceN
58# )
59ADD_EXECUTABLE(test_more EXCLUDE_FROM_ALL test_more.cpp
60        old_usead_2.cpp
61        old_usead_1.cpp
62        old_tan.cpp
63        old_reciprocal.cpp
64        old_mat_mul.cpp
65        ${adolc_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        azmul.cpp
81        base_alloc.cpp
82        check_simple_vector.cpp
83        checkpoint.cpp
84        compare.cpp
85        compare_change.cpp
86        cond_exp.cpp
87        cond_exp_ad.cpp
88        cond_exp_rev.cpp
89        copy.cpp
90        cos.cpp
91        cosh.cpp
92        dbl_epsilon.cpp
93        div.cpp
94        div_eq.cpp
95        div_zero_one.cpp
96        erf.cpp
97        exp.cpp
98        expm1.cpp
99        extern_value.cpp
100        for_hess.cpp
101        for_sparse_jac.cpp
102        forward.cpp
103        forward_dir.cpp
104        forward_order.cpp
105        from_base.cpp
106        fun_check.cpp
107        jacobian.cpp
108        num_limits.cpp
109        log.cpp
110        log1p.cpp
111        log10.cpp
112        mul.cpp
113        mul_cskip.cpp
114        mul_eq.cpp
115        mul_level.cpp
116        mul_cond_rev.cpp
117        mul_zdouble.cpp
118        mul_zero_one.cpp
119        near_equal_ext.cpp
120        neg.cpp
121        ode_err_control.cpp
122        omp_alloc.cpp
123        optimize.cpp
124        parameter.cpp
125        poly.cpp
126        pow.cpp
127        pow_int.cpp
128        print_for.cpp
129        romberg_one.cpp
130        rosen_34.cpp
131        runge_45.cpp
132        reverse.cpp
133        rev_sparse_hes.cpp
134        rev_sparse_jac.cpp
135        rev_two.cpp
136        simple_vector.cpp
137        sin.cpp
138        sin_cos.cpp
139        sinh.cpp
140        sparse_hessian.cpp
141        sparse_jacobian.cpp
142        sparse_vec_ad.cpp
143        sqrt.cpp
144        std_math.cpp
145        sub.cpp
146        sub_eq.cpp
147        sub_zero.cpp
148        tan.cpp
149        test_vector.cpp
150        to_string.cpp
151        track_new_del.cpp
152        value.cpp
153        vec_ad.cpp
154        vec_ad_par.cpp
155        vec_unary.cpp
156        zdouble.cpp
157)
158
159# Compiler flags for cppad source
160add_cppad_cxx_flags(test_more)
161
162# List of libraries to be linked into the specified target
163TARGET_LINK_LIBRARIES(test_more
164        ${cppad_lib}
165        ${adolc_libs}
166        ${ipopt_libs}
167        ${eigen_libs}
168        ${colpack_libs}
169)
170
171# Add the check_test_more target
172ADD_CUSTOM_TARGET( check_test_more test_more DEPENDS test_more )
Note: See TracBrowser for help on using the repository browser.