source: trunk/example/multi_thread/pthread/CMakeLists.txt @ 3931

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

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

commit f4ce6b2601ca057b41100ab6787a8d9cb178e945
Author: Brad Bell <bradbell@…>
Date: Fri May 19 04:52:28 2017 -0700

Move multi_thread -> example/multi_thread.

  • Property svn:keywords set to Id
File size: 2.0 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 example/multi_thread/pthread directory tests
12# Inherit build type from ../CMakeList.txt
13
14# Local include directories to search (not in package_prefix/include)
15INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR}/.. )
16
17# add_executable(<name> [WIN32] [MACOSX_BUNDLE] [EXCLUDE_FROM_ALL]
18#                 source1 source2 ... sourceN
19# )
20ADD_EXECUTABLE(example_multi_thread_pthread EXCLUDE_FROM_ALL ../thread_test.cpp
21        ${CMAKE_SOURCE_DIR}/speed/src/microsoft_timer.cpp
22        ../multi_newton_time.cpp
23        ../multi_newton.cpp
24        ../multi_newton_work.cpp
25        ../team_example.cpp
26        ../harmonic_time.cpp
27        ../harmonic.cpp
28        ../harmonic_work.cpp
29        a11c_pthread.cpp
30        simple_ad_pthread.cpp
31        team_pthread.cpp
32)
33
34# Compiler flags for cppad source
35add_cppad_cxx_flags( example_multi_thread_pthread )
36
37# Paths in which the linker will search for libraries,
38# only applies to targets created after it is called
39LINK_DIRECTORIES( ${pthread_lib_path} )
40
41# List of libraries to be linked into the specified target
42TARGET_LINK_LIBRARIES(example_multi_thread_pthread ${pthread_lib})
43
44# Add the check_example_multi_thread_pthread target
45ADD_CUSTOM_TARGET(check_example_multi_thread_pthread
46        example_multi_thread_pthread simple_ad
47        DEPENDS example_multi_thread_pthread
48)
49MESSAGE(STATUS "make check_example_multi_thread_pthread: available")
50
51# Change check depends in parent environment
52add_to_list(check_example_multi_thread_depends check_example_multi_thread_pthread)
53SET(check_example_multi_thread_depends "${check_example_multi_thread_depends}" PARENT_SCOPE)
Note: See TracBrowser for help on using the repository browser.