summaryrefslogtreecommitdiff
path: root/NodeStateAccess/interfaces/cmake/someip_stub_config.cmake.in
blob: f53dae2cc2418807af2772ce52b931f01023b4b9 (plain)
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
#######################################################################################################################
#
# Copyright (C) 2020 Mentor Graphics (Deutschland) GmbH
#
# Author: Sven_Hassler@mentor.com
#
# CMake file of NSM Interfaces
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
#######################################################################################################################

# Automatically find dependency packages when using this package:
include(CMakeFindDependencyMacro)

foreach(DEPENDENCY @SOMEIP_STUB_LINK_LIBRARIES@)
    find_dependency(${DEPENDENCY} REQUIRED)
endforeach()

# Include the target file:
get_filename_component(GLUE_LIB_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)

if(NOT TARGET @SOMEIP_STUB_NAME@)
    include("${GLUE_LIB_CMAKE_DIR}/@SOMEIP_STUB_NAME@Targets.cmake")
endif()