summaryrefslogtreecommitdiff
path: root/AudioManagerDaemon/CMakeLists.txt
diff options
context:
space:
mode:
authorChristian Mueller <christian@lmuc329619u.(none)>2011-08-03 12:37:16 +0200
committerChristian Mueller <christian@lmuc329619u.(none)>2011-08-03 12:37:16 +0200
commit2d849dd0b5b1558e92cd0f2cd6dbc556950d631d (patch)
tree7b0bf4fda11eaae332f0b932990c1808875dc7e2 /AudioManagerDaemon/CMakeLists.txt
parentdf88fefdd7df890aaf2a3206483678851cffc5c5 (diff)
downloadaudiomanager-2d849dd0b5b1558e92cd0f2cd6dbc556950d631d.tar.gz
Dbus restructured
Diffstat (limited to 'AudioManagerDaemon/CMakeLists.txt')
-rw-r--r--AudioManagerDaemon/CMakeLists.txt18
1 files changed, 15 insertions, 3 deletions
diff --git a/AudioManagerDaemon/CMakeLists.txt b/AudioManagerDaemon/CMakeLists.txt
index bb3ced5..7508d72 100644
--- a/AudioManagerDaemon/CMakeLists.txt
+++ b/AudioManagerDaemon/CMakeLists.txt
@@ -17,6 +17,9 @@ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xlinker -export-dynamic")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic")
set(CMAKE_CXX_FLAGS "-g -pipe -g -Wall -W -D_REENTRANT")
+##todo only when dbus needed!
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}")
+
set(STD_INCLUDE_DIRS "/usr/include")
set(EXECUTABLE_OUTPUT_PATH ../../bin/)
set(DOC_OUTPUT_PATH ../../doc/)
@@ -29,17 +32,23 @@ file(MAKE_DIRECTORY ${DOC_OUTPUT_PATH})
FIND_PACKAGE(PkgConfig)
pkg_check_modules(SQLITE REQUIRED sqlite3)
pkg_check_modules(DLT REQUIRED automotive-dlt)
+
+##todo: only when dbus is reuqired !
+find_package (Threads)
+FIND_PACKAGE(DBUS REQUIRED)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR} ${STD_INCLUDE_DIRS})
#all source files go here
SET(AUDIOMAN_SRCS_CXX
+ main.cpp
AudioManagerCore.cpp
- RoutingReceive.cpp
+ CommandHandler.cpp
CommandReceive.cpp
- Router.cpp
DataBaseHandler.cpp
- main.cpp
HookEngine.cpp
+ Router.cpp
+ RoutingReceive.cpp
+ dbusRoothandler.cpp
)
INCLUDE_DIRECTORIES(
@@ -55,9 +64,12 @@ INCLUDE_DIRECTORIES(
ADD_EXECUTABLE(AudioManager ${AUDIOMAN_SRCS_CXX})
+##todo only when dbus is required
TARGET_LINK_LIBRARIES(AudioManager
${SQLITE_LIBRARIES}
${DLT_LIBRARIES}
+ ${DBUS_LIBRARY}
+ ${CMAKE_THREAD_LIBS_INIT}
)
#add a target to generate API documentation with Doxygen