forked from intel/AVBStreamHandler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.avb_streamhandler_demo.txt
36 lines (27 loc) · 1.25 KB
/
CMakeLists.avb_streamhandler_demo.txt
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
#
# Copyright (C) 2018 Intel Corporation. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
#------------------------------------------------------------------
# Build the Stream Handler demo executable
#------------------------------------------------------------------
add_executable( avb_streamhandler_demo
private/src/avb_streamhandler_demo/main.cpp
)
# for version header
include_directories(${CMAKE_CURRENT_BINARY_DIR})
#find_package(PkgConfig)
#pkg_check_modules(DLT REQUIRED automotive-dlt)
#pkg_check_modules(DLT REQUIRED automotive-dlt-c++)
target_link_libraries( avb_streamhandler_demo dlt )
target_link_libraries( avb_streamhandler_demo ias-media_transport-avb_streamhandler )
target_link_libraries( avb_streamhandler_demo ias-media_transport-avb_watchdog )
# set capabilities if building for Linux host execution
if (${IAS_IS_HOST_BUILD})
add_custom_command(TARGET avb_streamhandler_demo POST_BUILD
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/setcap.sh $<TARGET_FILE:avb_streamhandler_demo>
)
endif()
install(TARGETS avb_streamhandler_demo DESTINATION ${CMAKE_INSTALL_BINDIR})
install(CODE "execute_process(COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/setcap.sh ${CMAKE_INSTALL_PREFIX}/bin/avb_streamhandler_demo)")