summaryrefslogtreecommitdiff
path: root/cmake/AudioManagerUtilitiesConfig.cmake.in
diff options
context:
space:
mode:
authorChristian Linke <Christian.Linke@bmw.de>2016-03-02 07:03:03 -0800
committerChristian Linke <Christian.Linke@bmw.de>2016-03-02 07:03:03 -0800
commit1ea95a3a5d2950d3b9a15528a21c181a097cc11d (patch)
tree877f53c27cd9e03232c8b1863a4150e29402d612 /cmake/AudioManagerUtilitiesConfig.cmake.in
parent3b7254a3c3bacef46afebd36f027a16c2845ee11 (diff)
downloadaudiomanager-1ea95a3a5d2950d3b9a15528a21c181a097cc11d.tar.gz
update for yocto
Diffstat (limited to 'cmake/AudioManagerUtilitiesConfig.cmake.in')
-rw-r--r--cmake/AudioManagerUtilitiesConfig.cmake.in42
1 files changed, 39 insertions, 3 deletions
diff --git a/cmake/AudioManagerUtilitiesConfig.cmake.in b/cmake/AudioManagerUtilitiesConfig.cmake.in
index 86eafc1..064c840 100644
--- a/cmake/AudioManagerUtilitiesConfig.cmake.in
+++ b/cmake/AudioManagerUtilitiesConfig.cmake.in
@@ -2,14 +2,50 @@
set_and_check(AudioManagerUtilities_INCLUDE_DIRS ${PACKAGE_PREFIX_DIR}/include/@LIB_INSTALL_SUFFIX@/AudioManagerUtilities)
find_library(AudioManagerUtilities_LIBRARY NAMES AudioManagerUtilities HINTS ${PACKAGE_PREFIX_DIR}/lib})
-set(AudioManagerUtilities_INCLUDE_DIRS ${AudioManagerUtilities_INCLUDE_DIRS} @AUDIOMANAGER_UTILITIES_EXTERNAL_INCLUDE@)
+set(WITH_CAPI_WRAPPER "@WITH_CAPI_WRAPPER@")
+set(WITH_DBUS_WRAPPER "@WITH_DBUS_WRAPPER@")
+set(WITH_SYSTEMD_WATCHDOG "@WITH_SYSTEMD_WATCHDOG@")
+set(WITH_DLT "@WITH_DLT@")
+
+
+if(WITH_SYSTEMD_WATCHDOG)
+ pkg_check_modules(SYSTEMD REQUIRED "libsystemd >= 44")
+
+ set(AUDIOMANAGER_UTILITIES_EXTERNAL_INCLUDE
+ ${AUDIOMANAGER_UTILITIES_EXTERNAL_INCLUDE}
+ ${SYSTEMD_INCLUDEDIR})
+
+endif(WITH_SYSTEMD_WATCHDOG)
+IF (WITH_DBUS_WRAPPER)
+ pkg_check_modules (DBUS REQUIRED "dbus-1 >= 1.4")
+
+ set(AUDIOMANAGER_UTILITIES_EXTERNAL_INCLUDE
+ ${AUDIOMANAGER_UTILITIES_EXTERNAL_INCLUDE}
+ ${DBUS_INCLUDE_DIRS})
+ENDIF (WITH_DBUS_WRAPPER)
+
+IF (WITH_CAPI_WRAPPER)
+ pkg_check_modules(COMMONAPI REQUIRED "CommonAPI >= 3.1.5")
+
+ set(AUDIOMANAGER_UTILITIES_EXTERNAL_INCLUDE
+ ${AUDIOMANAGER_UTILITIES_EXTERNAL_INCLUDE}
+ ${COMMONAPI_INCLUDE_DIRS})
+ENDIF (WITH_CAPI_WRAPPER)
+
+if(WITH_DLT)
+ pkg_check_modules(DLT REQUIRED "automotive-dlt >= 2.2.0")
+
+ SET(AUDIOMANAGER_UTILITIES_EXTERNAL_INCLUDE
+ ${AUDIOMANAGER_UTILITIES_EXTERNAL_INCLUDE}
+ ${DLT_LIBRARY_DIRS})
+endif(WITH_DLT)
+
+set(AudioManagerUtilities_INCLUDE_DIRS ${AudioManagerUtilities_INCLUDE_DIRS} @AUDIOMANAGER_UTILITIES_EXTERNAL_INCLUDE@)
set(AudioManagerUtilities_LIBRARIES @AUDIO_MANAGER_UTILITIES_LIBS@ ${AudioManagerUtilities_LIBRARY})
set(DAEMONVERSION "@DAEMONVERSION@")
set(AUDIOMANAGER_CMAKE_CXX_FLAGS "@AUDIOMANAGER_CMAKE_CXX_FLAGS@")
-set(WITH_CAPI_WRAPPER "@WITH_CAPI_WRAPPER@")
-set(WITH_DBUS_WRAPPER "@WITH_DBUS_WRAPPER@")
set(WITH_SHARED_UTILITIES "@WITH_SHARED_UTILITIES@")