########################################################################### # @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 , # - 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) pkg_check_modules(DLT REQUIRED automotive-dlt) 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)