blob: 969f012a521cbe0a40a1149ff6e7f60fde9146dd (
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: Logger
#
# Author: Helmut Schmidt
#
# 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 (2015/07/10) : Helmut Schmidt <https://github.com/huirad>,
# - first version derived from log-replayer CMakeLists.txt
#
# @licence end@
###########################################################################
message(STATUS "LOGGER")
message(STATUS "WITH_DLT = ${WITH_DLT}")
message(STATUS "WITH_TESTS = ${WITH_TESTS}")
include_directories("${PROJECT_SOURCE_DIR}/inc")
find_package(PkgConfig)
set(LIB_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/poslog.cpp)
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()
set(LIB_SRC_LOGGER ${CMAKE_CURRENT_SOURCE_DIR}/poslog.cpp)
add_library(poslog SHARED ${LIB_SRC_LOGGER})
install(TARGETS poslog DESTINATION lib)
|