mirror of
https://github.com/eclipse-openvehicle-api/openvehicle-api.git
synced 2026-08-30 12:15:12 +00:00
connection between 2 systems and bug fixes (#14)
This commit is contained in:
@@ -12,22 +12,57 @@ if(UNIX)
|
||||
# Define project
|
||||
project(uds_unix_tunnel VERSION 1.0 LANGUAGES CXX)
|
||||
|
||||
# Define target
|
||||
add_library(uds_unix_tunnel STATIC
|
||||
set(UDS_UNIX_TUNNEL_SOURCES
|
||||
channel_mgnt.cpp
|
||||
connection.cpp
|
||||
watchdog.cpp
|
||||
)
|
||||
|
||||
# Define targets
|
||||
add_library(uds_unix_tunnel STATIC
|
||||
${UDS_UNIX_TUNNEL_SOURCES}
|
||||
)
|
||||
|
||||
target_link_libraries(uds_unix_tunnel rt ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT})
|
||||
add_library(uds_unix_tunnel_module SHARED
|
||||
${UDS_UNIX_TUNNEL_SOURCES}
|
||||
)
|
||||
|
||||
target_include_directories(uds_unix_tunnel PRIVATE ./include/)
|
||||
set_target_properties(uds_unix_tunnel PROPERTIES PREFIX "")
|
||||
set_target_properties(uds_unix_tunnel PROPERTIES SUFFIX ".sdv")
|
||||
target_link_libraries(uds_unix_tunnel
|
||||
PRIVATE
|
||||
uds_unix_sockets_static
|
||||
rt
|
||||
${CMAKE_DL_LIBS}
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
)
|
||||
|
||||
target_link_libraries(uds_unix_tunnel_module
|
||||
PRIVATE
|
||||
uds_unix_sockets_static
|
||||
rt
|
||||
${CMAKE_DL_LIBS}
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
)
|
||||
|
||||
target_include_directories(uds_unix_tunnel
|
||||
PRIVATE
|
||||
./include/
|
||||
../uds_unix_sockets/
|
||||
)
|
||||
|
||||
target_include_directories(uds_unix_tunnel_module
|
||||
PRIVATE
|
||||
./include/
|
||||
../uds_unix_sockets/
|
||||
)
|
||||
set_target_properties(uds_unix_tunnel_module PROPERTIES PREFIX "")
|
||||
set_target_properties(uds_unix_tunnel_module PROPERTIES SUFFIX ".sdv")
|
||||
set_target_properties(uds_unix_tunnel_module PROPERTIES OUTPUT_NAME "uds_unix_tunnel")
|
||||
|
||||
# Build dependencies
|
||||
add_dependencies(uds_unix_tunnel CompileCoreIDL)
|
||||
add_dependencies(uds_unix_tunnel_module CompileCoreIDL)
|
||||
|
||||
# Appending the service in the service list
|
||||
set(SDV_Service_List ${SDV_Service_List} uds_unix_tunnel PARENT_SCOPE)
|
||||
set(SDV_Service_List ${SDV_Service_List} uds_unix_tunnel_module PARENT_SCOPE)
|
||||
|
||||
endif()
|
||||
Reference in New Issue
Block a user