Files
openvehicle-api/sdv_services/data_dispatch_service/CMakeLists.txt
2026-03-27 14:12:49 +01:00

36 lines
1.3 KiB
CMake

#*******************************************************************************
# 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
#
# Contributors:
# Erik Verhoeven - initial API and implementation
#*******************************************************************************
# Define project
project(sdv_service_datadispatchservice VERSION 1.0 LANGUAGES CXX)
# Define target
add_library(data_dispatch_service SHARED
"dispatchservice.cpp"
"dispatchservice.h"
"transaction.cpp"
"transaction.h"
"signal.cpp"
"signal.h" "trigger.h" "trigger.cpp")
target_link_libraries(data_dispatch_service ${CMAKE_THREAD_LIBS_INIT})
target_link_options(data_dispatch_service PRIVATE)
target_include_directories(data_dispatch_service PRIVATE ./include/)
set_target_properties(data_dispatch_service PROPERTIES PREFIX "")
set_target_properties(data_dispatch_service PROPERTIES SUFFIX ".sdv")
# Build dependencies
add_dependencies(data_dispatch_service CompileCoreIDL)
# Appending the service in the service list
set(SDV_Service_List ${SDV_Service_List} data_dispatch_service PARENT_SCOPE)