summaryrefslogtreecommitdiff
path: root/sensors-service/FindDLT.cmake
blob: cb3e93aa552f881593812d052deb6f5f41c140d9 (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
###########################################################################
# @licence app begin@
# SPDX-License-Identifier: MPL-2.0
#
# Component Name: SensorsService
#
# Author: Marco Residori
#
# Copyright (C) 2014, 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@
###########################################################################

set(DLT_INCLUDE_DIRS /usr/local/include/dlt)
set(DLT_LIBRARIES dlt)
set(DLT_LIBRARY_DIRS /usr/local/lib)

find_package(PkgConfig)
pkg_check_modules(DLT REQUIRED automotive-dlt)

if(${DLT_FOUND})
    #message(STATUS "found and use automotive-dlt: version ${DLT_VERSION}")
else()
    message("missing DLT - check with 'pkg-config automotive-dlt --cflags-only-I'")
endif()