# @author Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
#
-PKG_CHECK_MODULES(CYNARA_DEP
+SET(COMMON_DEPS
libsystemd-daemon
+ libsystemd-journal
+ )
+
+IF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
+SET(COMMON_DEPS
+ ${COMMON_DEPS}
+ libunwind
+ )
+ENDIF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
+
+PKG_CHECK_MODULES(CYNARA_DEP
REQUIRED
+ ${COMMON_DEPS}
)
INCLUDE_DIRECTORIES(SYSTEM
SET(CYNARA_PATH ${PROJECT_SOURCE_DIR}/src)
INCLUDE_DIRECTORIES(
- ${CYNARA_PATH}/include
${CYNARA_PATH}/common
)
ADD_SUBDIRECTORY(include)
ADD_SUBDIRECTORY(common)
ADD_SUBDIRECTORY(client)
+ADD_SUBDIRECTORY(client-async)
+ADD_SUBDIRECTORY(client-common)
ADD_SUBDIRECTORY(admin)
+ADD_SUBDIRECTORY(agent)
+ADD_SUBDIRECTORY(storage)
ADD_SUBDIRECTORY(service)
+ADD_SUBDIRECTORY(helpers/creds-commons)
+ADD_SUBDIRECTORY(helpers/creds-dbus)
+ADD_SUBDIRECTORY(helpers/creds-socket)
+ADD_SUBDIRECTORY(helpers/session)