File: CMakeLists.txt

package info (click to toggle)
cppad 2026.00.00.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,584 kB
  • sloc: cpp: 112,960; sh: 6,146; ansic: 179; python: 71; sed: 12; makefile: 10
file content (53 lines) | stat: -rw-r--r-- 1,371 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
# SPDX-FileCopyrightText: Bradley M. Bell <bradbell@seanet.com>
# SPDX-FileContributor: 2003-22 Bradley M. Bell
# ----------------------------------------------------------------------------
#
# BEGIN_SORT_THIS_LINE_PLUS_2
SET(source_list sparse.cpp
   colpack_hes.cpp
   colpack_hessian.cpp
   colpack_jac.cpp
   colpack_jacobian.cpp
   conj_grad.cpp
   dependency.cpp
   for_hes_sparsity.cpp
   for_jac_sparsity.cpp
   for_sparse_hes.cpp
   for_sparse_jac.cpp
   rc_sparsity.cpp
   rev_hes_sparsity.cpp
   rev_jac_sparsity.cpp
   rev_sparse_hes.cpp
   rev_sparse_jac.cpp
   sparse_hes.cpp
   sparse_hessian.cpp
   sparse_jac_for.cpp
   sparse_jac_rev.cpp
   sparse_jacobian.cpp
   sparse_sub_hes.cpp
   sparsity_sub.cpp
   sub_sparse_hes.cpp
   subgraph_hes2jac.cpp
   subgraph_jac_rev.cpp
   subgraph_reverse.cpp
   subgraph_sparsity.cpp
)
# END_SORT_THIS_LINE_MINUS_2

IF( cppad_has_eigen )
   SET(source_list sparse2eigen.cpp ${source_list} )
ENDIF( cppad_has_eigen )

set_compile_flags( example_sparse "${cppad_debug_which}" "${source_list}" )
#
ADD_EXECUTABLE(example_sparse EXCLUDE_FROM_ALL ${source_list})

# List of libraries to be linked into the specified target
TARGET_LINK_LIBRARIES(example_sparse
   ${cppad_lib}
   ${colpack_libs}
)

# check_example_sparse
add_check_executable(check_example sparse)