Migrate to openssl3
[platform/core/security/ode.git] / tests / CMakeLists.txt
1 #
2 # Copyright (c) 2015 - 2019 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/encryption/ext4-engine.cpp
26                                 ../server/engine/encryption/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                                 ../server/misc.cpp
32 )
33
34 ADD_EXECUTABLE(${PROJECT_NAME} ${TEST_SRC})
35
36 PKG_CHECK_MODULES(TEST_DEPS REQUIRED    klay
37                                                                                 glib-2.0
38                                                                                 gio-2.0
39                                                                                 openssl3
40                                                                                 vconf
41                                                                                 ext2fs
42                                                                                 com_err
43 )
44
45 INCLUDE_DIRECTORIES(SYSTEM ${TEST_DEPS_INCLUDE_DIRS} ../server ../)
46
47 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${TEST_DEPS_LIBRARIES})
48
49 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)