forked from intel/AVBStreamHandler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.avb_streamhandler_app_socket.txt
56 lines (41 loc) · 2.62 KB
/
CMakeLists.avb_streamhandler_app_socket.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# Copyright (C) 2018 Intel Corporation. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
#------------------------------------------------------------------
# Build the Stream Handler demo executable
#------------------------------------------------------------------
add_executable( avb_streamhandler_app_socket
private/src/avb_streamhandler_app_socket/server.cpp
)
add_executable( avb_streamhandler_client_app_socket
private/src/avb_streamhandler_app_socket/client.cpp
)
# for version header
include_directories(${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries( avb_streamhandler_app_socket ${DLT_LDFLAGS} )
target_compile_options( avb_streamhandler_app_socket PUBLIC ${DLT_CFLAGS_OTHER})
target_include_directories( avb_streamhandler_app_socket PUBLIC ${DLT_INCLUDE_DIRS})
target_link_libraries( avb_streamhandler_client_app_socket ${DLT_LDFLAGS} )
target_compile_options( avb_streamhandler_client_app_socket PUBLIC ${DLT_CFLAGS_OTHER})
target_include_directories( avb_streamhandler_client_app_socket PUBLIC ${DLT_INCLUDE_DIRS})
target_link_libraries( avb_streamhandler_app_socket ias-media_transport-avb_streamhandler )
target_link_libraries( avb_streamhandler_app_socket boost_system )
target_link_libraries( avb_streamhandler_app_socket boost_serialization )
target_link_libraries( avb_streamhandler_app_socket ias-media_transport-avb_watchdog)
target_link_libraries( avb_streamhandler_client_app_socket ias-media_transport-avb_streamhandler )
target_link_libraries( avb_streamhandler_client_app_socket boost_system )
target_link_libraries( avb_streamhandler_client_app_socket boost_serialization )
target_link_libraries( avb_streamhandler_client_app_socket ias-media_transport-avb_watchdog)
# set capabilities if building for Linux host execution
if (${IAS_IS_HOST_BUILD})
add_custom_command(TARGET avb_streamhandler_app_socket POST_BUILD
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/setcap.sh $<TARGET_FILE:avb_streamhandler_app_socket>)
add_custom_command(TARGET avb_streamhandler_client_app_socket POST_BUILD
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/setcap.sh $<TARGET_FILE:avb_streamhandler_client_app_socket>)
endif()
install(TARGETS avb_streamhandler_app_socket DESTINATION ${CMAKE_INSTALL_BINDIR})
install(CODE "execute_process(COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/setcap.sh ${CMAKE_INSTALL_PREFIX}/bin/avb_streamhandler_app_socket)")
install(TARGETS avb_streamhandler_client_app_socket DESTINATION ${CMAKE_INSTALL_BINDIR})
install(CODE "execute_process(COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/setcap.sh ${CMAKE_INSTALL_PREFIX}/bin/avb_streamhandler_client_app_socket)")