blob: 3af87ea0e54734e056adcdcea0687b483d27f6cc (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
###########################################################################
# @licence app begin@
# SPDX-License-Identifier: MPL-2.0
#
# Component Name: Replayer
#
# Author: Marco Residori
#
# Copyright (C) 2013, XS Embedded GmbH
#
# License:
# 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/.
#
# Update (2014/12/02) : Philippe Colliot <philippe.colliot@mpsa.com>,
# PSA Peugeot Citroen
# - introduce debug flag to disable verbosity
# @licence end@
###########################################################################
message(STATUS "TEST-LOG-REPLAYER")
message(STATUS "WITH_DLT = ${WITH_DLT}")
message(STATUS "WITH_DEBUG = ${WITH_DEBUG}")
include_directories("${PROJECT_SOURCE_DIR}/src")
find_package(PkgConfig)
set(SRCS ${CMAKE_CURRENT_SOURCE_DIR}/test-log-replayer.c)
add_executable(test-log-replayer ${SRCS})
set(LIBRARIES pthread)
if(WITH_DLT)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}")
find_package(DLT REQUIRED)
add_definitions("-DDLT_ENABLED=1")
include_directories( ${DLT_INCLUDE_DIRS} )
set(LIBRARIES ${LIBRARIES} ${DLT_LIBRARIES})
endif()
if(WITH_DEBUG)
add_definitions("-DDEBUG_ENABLED=1")
endif()
target_link_libraries(test-log-replayer ${LIBRARIES})
install(TARGETS test-log-replayer DESTINATION bin)
|