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

30 lines
1001 B
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_iso VERSION 1.0 LANGUAGES CXX)
# build test application
add_executable(sdv_iso main.cpp)
if (WIN32)
target_link_libraries(sdv_iso ${CMAKE_THREAD_LIBS_INIT} Ws2_32 Winmm Rpcrt4.lib)
else()
target_link_libraries(sdv_iso ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT} rt)
endif()
# Build dependencies
add_dependencies(sdv_iso CompileCoreIDL)
# Appending the executable to the service list
set(SDV_Executable_List ${SDV_Executable_List} sdv_iso PARENT_SCOPE)