CMakeLists.txt 1.15 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# ----------------------------------------------------------------------------
#   Copyright (c) 2018 Armin Sobhani <arminms@gmail.com>
# 
#   Distributed under the Boost Software License Version 1.0.
#   (See accompanying file LICENSE_1_0.txt or copy at
#   http:www.boost.org/LICENSE_1_0.txt)
# 
# ----------------------------------------------------------------------------

include_directories(../include)

set(BOOST_COMPONENTS system timer chrono program_options)

if(BOOST_COMPONENTS)
  list(REMOVE_DUPLICATES BOOST_COMPONENTS)
endif()
17
find_package(Boost 1.61 REQUIRED COMPONENTS ${BOOST_COMPONENTS})
18
19
20
21
22
23
24

set(BENCHMARKS
  stl_random_sequence
  stl_reverse_complement
)

foreach(BENCHMARK ${BENCHMARKS})
25
26
27
28
29
30
31
  set(PERF_TARGET perf_${BENCHMARK})
  add_executable(${PERF_TARGET} perf_${BENCHMARK}.cpp)
  target_link_libraries(${PERF_TARGET} ${Boost_LIBRARIES})
endforeach()

set(BOOST_COMPUTE_BENCHMARKS
  bc_random_sequence
32
  bc_reverse_complement
33
34
35
)

foreach(BENCHMARK ${BOOST_COMPUTE_BENCHMARKS})
36
37
38
  set(PERF_TARGET perf_${BENCHMARK})
  add_executable(${PERF_TARGET} perf_${BENCHMARK}.cpp)
  target_link_libraries(${PERF_TARGET} ${OpenCL_LIBRARIES} ${Boost_LIBRARIES})
39
endforeach()