summaryrefslogtreecommitdiff
path: root/vsomeip3Config.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'vsomeip3Config.cmake.in')
-rw-r--r--vsomeip3Config.cmake.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/vsomeip3Config.cmake.in b/vsomeip3Config.cmake.in
new file mode 100644
index 0000000..d689970
--- /dev/null
+++ b/vsomeip3Config.cmake.in
@@ -0,0 +1,19 @@
+# Config file for the vSomeIP package, defines the following variables:
+# Exports the following targets:
+# vsomeip3 - CMake target for vSomeIP
+# Additionally, the following variables are defined:
+# VSOMEIP_LIBRARIES - list of libraries to link against, contains only
+# "vsomeip3"
+
+# Compute paths
+get_filename_component (VSOMEIP_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+# Legacy variable, no longer used but kept for compatibility
+get_filename_component(VSOMEIP_INCLUDE_DIRS "" PATH)
+
+# Our library dependencies (contains definitions for IMPORTED targets)
+if (NOT TARGET vsomeip AND NOT vsomeip_BINARY_DIR)
+ include ("${VSOMEIP_CMAKE_DIR}/vsomeip3Targets.cmake")
+endif ()
+
+# These are IMPORTED targets created by vsomeipTargets.cmake
+set (VSOMEIP_LIBRARIES vsomeip3)