2 # Dlt - Diagnostic Log and Trace
5 # Copyright (C) 2011-2014, BMW AG - Alexander Wenzel <alexander.aw.wenzel@bmw.de>
7 # Contributions are licensed to the GENIVI Alliance under one or more
8 # Contribution License Agreements.
10 # This Source Code Form is subject to the terms of the
11 # Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with
12 # this file, You can obtain one at http://mozilla.org/MPL/2.0/.
18 # DLT example implementation
21 cmake_minimum_required( VERSION 2.6 )
22 project( automotive-dlt-example1 )
28 set( CMAKE_INSTALL_PREFIX "/usr" )
31 # find dependency packages
34 find_package(PkgConfig)
35 pkg_check_modules(DLT REQUIRED automotive-dlt)
49 set(dlt_example1_SRCS example1.c)
50 add_executable(dlt-example1 ${dlt_example1_SRCS})
51 target_link_libraries(dlt-example1 ${DLT_LIBRARIES})
52 set_target_properties(dlt-example1 PROPERTIES LINKER_LANGUAGE C)
54 install(TARGETS dlt-example1
55 RUNTIME DESTINATION bin