2026-03-27 14:12:49 +01:00
|
|
|
#*******************************************************************************
|
|
|
|
|
# Copyright (c) 2025-2026 ZF Friedrichshafen AG
|
|
|
|
|
#
|
|
|
|
|
# This program and the accompanying materials are made available under the
|
|
|
|
|
# terms of the Apache License Version 2.0 which is available at
|
|
|
|
|
# https://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
#
|
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
#*******************************************************************************
|
|
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
|
# Define project
|
|
|
|
|
project(uds_win_sockets VERSION 1.0 LANGUAGES CXX)
|
|
|
|
|
|
|
|
|
|
# Define target
|
2026-04-02 17:37:00 +02:00
|
|
|
add_library(uds_win_sockets STATIC
|
|
|
|
|
channel_mgnt.cpp
|
|
|
|
|
connection.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_include_directories(uds_win_sockets
|
|
|
|
|
PUBLIC
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
|
./include/
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(uds_win_sockets
|
|
|
|
|
PUBLIC
|
|
|
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
|
|
|
Ws2_32.lib
|
|
|
|
|
)
|
2026-03-27 14:12:49 +01:00
|
|
|
|
|
|
|
|
set_target_properties(uds_win_sockets PROPERTIES PREFIX "")
|
|
|
|
|
set_target_properties(uds_win_sockets PROPERTIES SUFFIX ".sdv")
|
|
|
|
|
|
|
|
|
|
# Build dependencies
|
|
|
|
|
add_dependencies(uds_win_sockets CompileCoreIDL)
|
|
|
|
|
|
|
|
|
|
# Appending the service in the service list
|
|
|
|
|
set(SDV_Service_List ${SDV_Service_List} uds_win_sockets PARENT_SCOPE)
|
|
|
|
|
|
|
|
|
|
endif()
|