source: trunk/test_more/general/CMakeLists.txt @ 3935

Last change on this file since 3935 was 3935, checked in by bradbell, 2 years ago

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: 59032b5b7861ee32953478a68b477c42445eaad7
end hash code: 4f7a9e1bd57be3d81361ce359222bd61f26e2a79

commit 4f7a9e1bd57be3d81361ce359222bd61f26e2a79
Author: Brad Bell <bradbell@…>
Date: Fri May 19 18:50:24 2017 -0700

Move compare_c -> test_more/compare_c.

commit 7cd305684b06892664571e312277f94c2f0dcd1c
Author: Brad Bell <bradbell@…>
Date: Fri May 19 17:32:15 2017 -0700

Specify separate built type for each test_more subdirectory.

File size: 3.3 KB
Line 
1# -----------------------------------------------------------------------------
2# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-17 Bradley M. Bell
3#
4# CppAD is distributed under multiple licenses. This distribution is under
5# the terms of the
6#                     Eclipse Public License Version 1.0.
7#
8# A copy of this license is included in the COPYING file of this distribution.
9# Please visit http://www.coin-or.org/CppAD/ for information on other licenses.
10# -----------------------------------------------------------------------------
11# Build the test_more/general tests
12
13# Specifies build type for test_more/general
14SET(CMAKE_BUILD_TYPE DEBUG)
15
16# adolc_sources, adolc_libs
17IF( cppad_has_adolc )
18        SET(adolc_sources base_adolc.cpp)
19        SET(adolc_libs adolc)
20ELSE( cppad_has_adolc )
21        SET(adolc_sources "")
22        SET(adolc_libs "")
23ENDIF( cppad_has_adolc )
24
25# eigen_sources
26IF( cppad_has_eigen )
27        SET(eigen_sources cppad_eigen.cpp eigen_mat_inv.cpp)
28ELSE( cppad_has_eigen )
29        SET(eigen_sources "")
30ENDIF( cppad_has_eigen )
31
32# ipopt_prefix
33IF( cppad_has_ipopt )
34        SET(ipopt_sources ipopt_solve.cpp)
35        SET(ipopt_libs "${ipopt_LIBRARIES}")
36ELSE( cppad_has_ipopt )
37        SET(ipopt_sources "")
38        SET(ipopt_libs "")
39ENDIF( cppad_has_ipopt )
40
41ADD_EXECUTABLE(test_more_general EXCLUDE_FROM_ALL general.cpp
42        ${adolc_sources}
43        ${eigen_sources}
44        ${ipopt_sources}
45        fabs.cpp
46        acos.cpp
47        acosh.cpp
48        adfun_copy.cpp
49        asin.cpp
50        asinh.cpp
51        assign.cpp
52        add.cpp
53        add_eq.cpp
54        add_zero.cpp
55        atan.cpp
56        atanh.cpp
57        atan2.cpp
58        atomic_sparsity.cpp
59        azmul.cpp
60        base_alloc.cpp
61        bool_sparsity.cpp
62        check_simple_vector.cpp
63        checkpoint.cpp
64        compare.cpp
65        compare_change.cpp
66        cond_exp.cpp
67        cond_exp_ad.cpp
68        cond_exp_rev.cpp
69        copy.cpp
70        cos.cpp
71        cosh.cpp
72        dbl_epsilon.cpp
73        dependency.cpp
74        div.cpp
75        div_eq.cpp
76        div_zero_one.cpp
77        erf.cpp
78        exp.cpp
79        expm1.cpp
80        extern_value.cpp
81        for_hess.cpp
82        for_sparse_hes.cpp
83        for_sparse_jac.cpp
84        forward.cpp
85        forward_dir.cpp
86        forward_order.cpp
87        from_base.cpp
88        fun_check.cpp
89        hes_sparsity.cpp
90        jacobian.cpp
91        num_limits.cpp
92        log.cpp
93        log1p.cpp
94        log10.cpp
95        mul.cpp
96        mul_cskip.cpp
97        mul_eq.cpp
98        mul_level.cpp
99        mul_cond_rev.cpp
100        mul_zdouble.cpp
101        mul_zero_one.cpp
102        near_equal_ext.cpp
103        neg.cpp
104        ode_err_control.cpp
105        optimize.cpp
106        parameter.cpp
107        poly.cpp
108        pow.cpp
109        pow_int.cpp
110        print_for.cpp
111        romberg_one.cpp
112        rosen_34.cpp
113        runge_45.cpp
114        reverse.cpp
115        rev_sparse_jac.cpp
116        rev_two.cpp
117        simple_vector.cpp
118        sin.cpp
119        sin_cos.cpp
120        sinh.cpp
121        sparse_hessian.cpp
122        sparse_jacobian.cpp
123        sparse_sub_hes.cpp
124        sparse_vec_ad.cpp
125        sqrt.cpp
126        std_math.cpp
127        sub.cpp
128        sub_eq.cpp
129        sub_zero.cpp
130        tan.cpp
131        test_vector.cpp
132        to_string.cpp
133        value.cpp
134        vec_ad.cpp
135        vec_ad_par.cpp
136        vec_unary.cpp
137
138        local/vector_set.cpp
139)
140
141# must first build cppad_lib
142ADD_DEPENDENCIES(test_more_general cppad_lib)
143
144# Compiler flags for cppad source
145add_cppad_cxx_flags(test_more_general)
146
147# List of libraries to be linked into the specified target
148TARGET_LINK_LIBRARIES(test_more_general
149        ${cppad_lib}
150        ${adolc_libs}
151        ${ipopt_libs}
152        ${colpack_libs}
153)
154
155# Add the check_test_more_general target
156ADD_CUSTOM_TARGET(check_test_more_general
157        test_more_general
158        DEPENDS
159        test_more_general
160)
161MESSAGE(STATUS "make check_test_more_general: available")
162
163# Change check depends in parent environment
164add_to_list(check_test_more_depends check_test_more_general)
165SET(check_test_more_depends "${check_test_more_depends}" PARENT_SCOPE)
Note: See TracBrowser for help on using the repository browser.