b7b8bc5666a889c11a2c4babc8e5a74102f15480
[platform/core/security/ode.git] / tests / CMakeLists.txt
1 #
2 # Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16 PROJECT(${PROJECT_NAME}-engine-unit-tests)
17
18 SET(TEST_SRC    main.cpp
19                                 ext4-engine.cpp
20                                 dmcrypt-engine.cpp
21                                 ecryptfs-engine.cpp
22                                 af.cpp
23                                 ../server/file-footer.cpp
24                                 ../server/kernel-keyring.cpp
25                                 ../server/engine/ext4-engine.cpp
26                                 ../server/engine/ecryptfs-engine.cpp
27                                 ../server/key-manager/key-generator.cpp
28                                 ../server/key-manager/anti-forensics.cpp
29                                 ../server/ext4-tool.cpp
30                                 ../server/progress-bar.cpp
31 )
32
33 ADD_EXECUTABLE(${PROJECT_NAME} ${TEST_SRC})
34
35 PKG_CHECK_MODULES(TEST_DEPS REQUIRED    klay
36                                                                                 glib-2.0
37                                                                                 gio-2.0
38                                                                                 openssl
39                                                                                 vconf
40 )
41
42 INCLUDE_DIRECTORIES(SYSTEM ${TEST_DEPS_INCLUDE_DIRS} ../server)
43
44 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${TEST_DEPS_LIBRARIES})
45
46 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)