Introduce ChecksumGenerator (chsgen)
[platform/core/security/cynara.git] / src / CMakeLists.txt
1 # Copyright (c) 2014-2015 Samsung Electronics Co., Ltd All Rights Reserved
2 #
3 #    Licensed under the Apache License, Version 2.0 (the "License");
4 #    you may not use this file except in compliance with the License.
5 #    You may obtain a copy of the License at
6 #
7 #        http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #    Unless required by applicable law or agreed to in writing, software
10 #    distributed under the License is distributed on an "AS IS" BASIS,
11 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #    See the License for the specific language governing permissions and
13 #    limitations under the License.
14 #
15 # @file        CMakeLists.txt
16 # @author      Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
17 #
18
19 SET(COMMON_DEPS
20     libsystemd-daemon
21     libsystemd-journal
22     )
23
24 IF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
25 SET(COMMON_DEPS
26     ${COMMON_DEPS}
27     libunwind
28     )
29 ENDIF (CMAKE_BUILD_TYPE MATCHES "DEBUG")
30
31 PKG_CHECK_MODULES(CYNARA_DEP
32     REQUIRED
33     ${COMMON_DEPS}
34     )
35
36 INCLUDE_DIRECTORIES(SYSTEM
37     ${CYNARA_DEP_INCLUDE_DIRS}
38     )
39
40 SET(CYNARA_PATH ${PROJECT_SOURCE_DIR}/src)
41
42 INCLUDE_DIRECTORIES(
43     ${CYNARA_PATH}/common
44     )
45
46 ADD_SUBDIRECTORY(include)
47 ADD_SUBDIRECTORY(common)
48 ADD_SUBDIRECTORY(client)
49 ADD_SUBDIRECTORY(client-async)
50 ADD_SUBDIRECTORY(client-common)
51 ADD_SUBDIRECTORY(cyad)
52 ADD_SUBDIRECTORY(chsgen)
53 ADD_SUBDIRECTORY(admin)
54 ADD_SUBDIRECTORY(agent)
55 ADD_SUBDIRECTORY(storage)
56 ADD_SUBDIRECTORY(service)
57 ADD_SUBDIRECTORY(helpers/creds-commons)
58 ADD_SUBDIRECTORY(helpers/creds-dbus)
59 ADD_SUBDIRECTORY(helpers/creds-socket)
60 ADD_SUBDIRECTORY(helpers/session)