blob: 039ed94abe0d332b70698e3a6496149584996069 (
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
|
###########################################################################
# @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/.
#
# @licence end@
###########################################################################
message(STATUS "LOG-REPLAYER")
message(STATUS "WITH_DLT = ${WITH_DLT}")
message(STATUS "WITH_TESTS = ${WITH_TESTS}")
find_package(PkgConfig)
set(LIB_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/log-replayer.c)
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()
add_executable(log-replayer ${LIB_SRCS})
target_link_libraries(log-replayer ${LIBRARIES})
install(TARGETS log-replayer DESTINATION bin)
message(STATUS "---------------------------------------------------------")
|