source: trunk/example/atomic/CMakeLists.txt @ 3928

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

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

commit 50e67821490174a876874dae9dbfa83365212e2d
Author: Brad Bell <bradbell@…>
Date: Wed May 17 09:52:27 2017 -0700

  1. Move example/*.cpp -> example/general/*.cpp.
  2. Make example/CMakeLists.txt control debug/release for all subdirectories.
  3. Advanmce to cppad-20170517.
  • Property svn:keywords set to Id
File size: 1.5 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#
12# eigen_sources and CPPAD_HAS_EIGEN
13IF( cppad_has_eigen )
14        SET(eigen_sources eigen_mat_inv.cpp eigen_cholesky.cpp eigen_mat_mul.cpp)
15ELSE( cppad_has_eigen )
16        SET(eigen_sources "")
17ENDIF( cppad_has_eigen )
18#
19ADD_EXECUTABLE(example_atomic EXCLUDE_FROM_ALL
20        ${eigen_sources}
21        atomic.cpp
22        checkpoint.cpp
23        extended_ode.cpp
24        for_sparse_hes.cpp
25        for_sparse_jac.cpp
26        forward.cpp
27        get_started.cpp
28        mat_mul.cpp
29        mul_level.cpp
30        norm_sq.cpp
31        ode.cpp
32        reciprocal.cpp
33        rev_sparse_hes.cpp
34        rev_sparse_jac.cpp
35        reverse.cpp
36        set_sparsity.cpp
37        tangent.cpp
38)
39
40# Extra compiler flags
41add_cppad_cxx_flags( example_atomic )
42
43# Add the check_example_atomic target
44ADD_CUSTOM_TARGET(check_example_atomic
45        example_atomic
46        DEPENDS example_atomic
47)
48MESSAGE(STATUS "make check_example_atomic: available")
49
50# add to check check_example_depends in parent environment
51add_to_list(check_example_depends check_example_atomic)
52SET(check_example_depends "${check_example_depends}" PARENT_SCOPE)
Note: See TracBrowser for help on using the repository browser.