summaryrefslogtreecommitdiff
path: root/test/benchmark_tests/CMakeLists.txt
blob: 24905ecdd6e4efa6465bfcd0b2769b645b406f59 (plain)
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
# Copyright (C) 2015-2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

project ("benchmark_tests_bin" LANGUAGES CXX)

file (GLOB SRCS main.cpp **/*.cpp ../common/utility.cpp)

set(THREADS_PREFER_PTHREAD_FLAG ON)

find_package(Threads REQUIRED)
find_package(Boost 1.55 COMPONENTS filesystem system REQUIRED)

# ----------------------------------------------------------------------------
# Executable and libraries to link
# ----------------------------------------------------------------------------
add_executable (${PROJECT_NAME} ${SRCS} )
target_link_libraries (
    ${PROJECT_NAME}
    vsomeip3
    vsomeip3-cfg
    Threads::Threads
    ${Boost_LIBRARIES}
    ${DL_LIBRARY}
    benchmark::benchmark
    gtest
)

add_dependencies(build_benchmark_tests ${PROJECT_NAME})