diff options
author | Jens Lorenz <jlorenz@de.adit-jv.com> | 2015-09-15 14:32:18 +0200 |
---|---|---|
committer | Christian Linke <christian.linke@bmw.de> | 2015-10-06 19:28:39 +0100 |
commit | 276ec7d3e207f089cf9cd1dd375bf8508fc4cde3 (patch) | |
tree | 85168407994ee90d2aecbfd2c5f2ed6c379fea89 /CMakeLists.txt | |
parent | af5b8d11ef93907ea9593fd61b56340f0a410ea2 (diff) | |
download | audiomanager-276ec7d3e207f089cf9cd1dd375bf8508fc4cde3.tar.gz |
Utilities now build as a static or as a shared library on demand.
Signed-off-by: Jens Lorenz <jlorenz@de.adit-jv.com>
Diffstat (limited to 'CMakeLists.txt')
-rwxr-xr-x | CMakeLists.txt | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 12b1da0..c5ef194 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,14 +58,17 @@ option ( USE_BUILD_LIBS option ( GLIB_DBUS_TYPES_TOLERANT "Build dbus with tolerance towards glib 16bit/32bit handling" ON) -option ( WITH_DATABASE_STORAGE - "Build with sqlite as in memory storage" OFF) - option ( WITH_CAPI_WRAPPER "Build with commonapi wrapper" ON) option ( WITH_DBUS_WRAPPER "Build with Dbus wrapper" OFF) + +option ( WITH_SHARED_UTILITIES + "Build audio manager utilities as dynamic library" OFF) + +option ( WITH_DATABASE_STORAGE + "Build with sqlite as in memory storage" OFF) set(DBUS_SERVICE_PREFIX "org.genivi.audiomanager" CACHE PROPERTY "The dbus service prefix for the AM - only changable for legacy dbus") @@ -101,8 +104,8 @@ set(DOC_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/doc CACHE STRINGS "The doxygen documentation will be placed here") set(AM_SHARE_FOLDER ${CMAKE_INSTALL_PREFIX}/share/audiomanager - CACHE STRINGS "The share folder for the AM. Some DBus xmls will be placed here and so on") - + CACHE STRINGS "The share folder for the AM. Some DBus xmls will be placed here and so on") + set(AUDIOMANAGER_INCLUDE_FOLDER ${CMAKE_BINARY_DIR}/include) set(AUDIO_INCLUDE_FOLDER ${CMAKE_SOURCE_DIR}/include) set(AUDIOMANAGER_UTILITIES ${CMAKE_SOURCE_DIR}/AudioManagerUtilities) @@ -177,6 +180,7 @@ write_basic_package_version_file( COMPATIBILITY SameMajorVersion ) add_subdirectory (AudioManagerDaemon) +add_subdirectory (AudioManagerUtilities) if(EXISTS "${CMAKE_SOURCE_DIR}/Plugins/") add_subdirectory (${CMAKE_SOURCE_DIR}/Plugins) |