Skip to content
Snippets Groups Projects

Implement features and fix bugs

Merged Raghunandan Netrapalli Madhusudhan requested to merge feature/before-clang-tidy into develop
Files
183
################################################################################
################################################################################
# Copyright (c) 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
# Copyright (c) 2021-2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
#
#
# This program and the accompanying materials are made available under the
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# terms of the Eclipse Public License 2.0 which is available at
@@ -11,9 +11,9 @@
@@ -11,9 +11,9 @@
# Find Package Adapter for OSI (Open Simulation Interface)
# Find Package Adapter for OSI (Open Simulation Interface)
#
#
# Creates the follwoing imported targets (if available):
# Creates the follwoing imported targets (if available):
# - osi::shared
# - open_simulation_interface::open_simulation_interface_shared
# - osi::static
# - open_simulation_interface::open_simulation_interface_static
# - osi::pic
# - open_simulation_interface::open_simulation_interface_pic
set(OSI_SHARED_NAMES
set(OSI_SHARED_NAMES
open_simulation_interface.lib
open_simulation_interface.lib
@@ -66,11 +66,11 @@ find_library(OSI_PIC_LIBRARY NAMES ${OSI_PIC_NAMES}
@@ -66,11 +66,11 @@ find_library(OSI_PIC_LIBRARY NAMES ${OSI_PIC_NAMES}
if(OSI_SHARED_LIBRARY)
if(OSI_SHARED_LIBRARY)
message(STATUS "Found OSI (shared): ${OSI_SHARED_LIBRARY}")
message(STATUS "Found OSI (shared): ${OSI_SHARED_LIBRARY}")
get_filename_component(OSI_SHARED_LIBRARY_DIR "${OSI_SHARED_LIBRARY}" DIRECTORY)
get_filename_component(OSI_SHARED_LIBRARY_DIR "${OSI_SHARED_LIBRARY}" DIRECTORY)
add_library(osi::shared IMPORTED SHARED)
add_library(open_simulation_interface::open_simulation_interface_shared IMPORTED SHARED)
set_target_properties(osi::shared
set_target_properties(open_simulation_interface::open_simulation_interface_shared
PROPERTIES
PROPERTIES
IMPORTED_LOCATION ${OSI_SHARED_LIBRARY}
IMPORTED_LOCATION ${OSI_SHARED_LIBRARY}
IMPORTED_IMPLIB ${OSI_SHARED_LIBRARY}
IMPORTED_IMPLIB ${OSI_SHARED_LIBRARY}
@@ -83,8 +83,8 @@ endif()
@@ -83,8 +83,8 @@ endif()
if(OSI_STATIC_LIBRARY)
if(OSI_STATIC_LIBRARY)
message(STATUS "Found OSI (static): ${OSI_STATIC_LIBRARY}")
message(STATUS "Found OSI (static): ${OSI_STATIC_LIBRARY}")
get_filename_component(OSI_STATIC_LIBRARY_DIR "${OSI_STATIC_LIBRARY}" DIRECTORY)
get_filename_component(OSI_STATIC_LIBRARY_DIR "${OSI_STATIC_LIBRARY}" DIRECTORY)
add_library(osi::static IMPORTED STATIC)
add_library(open_simulation_interface::open_simulation_interface_static IMPORTED STATIC)
set_target_properties(osi::static
set_target_properties(open_simulation_interface::open_simulation_interface_static
PROPERTIES
PROPERTIES
IMPORTED_LOCATION ${OSI_STATIC_LIBRARY}
IMPORTED_LOCATION ${OSI_STATIC_LIBRARY}
INTERFACE_INCLUDE_DIRECTORIES ${OSI_STATIC_LIBRARY_DIR}/../../include
INTERFACE_INCLUDE_DIRECTORIES ${OSI_STATIC_LIBRARY_DIR}/../../include
@@ -96,8 +96,8 @@ endif()
@@ -96,8 +96,8 @@ endif()
if(OSI_PIC_LIBRARY)
if(OSI_PIC_LIBRARY)
message(STATUS "Found OSI (pic): ${OSI_PIC_LIBRARY}")
message(STATUS "Found OSI (pic): ${OSI_PIC_LIBRARY}")
get_filename_component(OSI_PIC_LIBRARY_DIR "${OSI_PIC_LIBRARY}" DIRECTORY)
get_filename_component(OSI_PIC_LIBRARY_DIR "${OSI_PIC_LIBRARY}" DIRECTORY)
add_library(osi::pic IMPORTED STATIC)
add_library(open_simulation_interface::open_simulation_interface_pic IMPORTED STATIC)
set_target_properties(osi::pic
set_target_properties(open_simulation_interface::open_simulation_interface_pic
PROPERTIES
PROPERTIES
IMPORTED_LOCATION ${OSI_PIC_LIBRARY}
IMPORTED_LOCATION ${OSI_PIC_LIBRARY}
INTERFACE_INCLUDE_DIRECTORIES ${OSI_PIC_LIBRARY_DIR}/../../include
INTERFACE_INCLUDE_DIRECTORIES ${OSI_PIC_LIBRARY_DIR}/../../include
Loading