1 # Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 INCLUDE(FindPkgConfig)
19 SET(TARGET_E2EE_ADAPTATION_LAYER "e2ee-adaptation-layer")
21 PKG_CHECK_MODULES(E2EE_ADAPTATION_LAYER_DEP
24 device-certificate-manager>=2.1
28 SET(E2EE_ADAPTATION_LAYER_SOURCES
29 e2ee-adaptation-layer.cpp
32 ADD_LIBRARY(${TARGET_E2EE_ADAPTATION_LAYER}
33 STATIC ${E2EE_ADAPTATION_LAYER_SOURCES}
36 TARGET_INCLUDE_DIRECTORIES(${TARGET_E2EE_ADAPTATION_LAYER}
37 SYSTEM PUBLIC ${E2EE_ADAPTATION_LAYER_DEP_INCLUDE_DIRS}
40 TARGET_LINK_LIBRARIES(${TARGET_E2EE_ADAPTATION_LAYER}
41 ${E2EE_ADAPTATION_LAYER_DEP_LIBRARIES}
46 SET(E2EE_TESTS_SOURCES
50 ADD_EXECUTABLE(${TARGET_E2EE_TESTS} ${E2EE_TESTS_SOURCES})
52 TARGET_INCLUDE_DIRECTORIES(${TARGET_E2EE_TESTS}
53 PRIVATE ${PROJECT_SOURCE_DIR}/src/common
54 PRIVATE ${PROJECT_SOURCE_DIR}/src/ckm
57 TARGET_LINK_LIBRARIES(${TARGET_E2EE_TESTS}
58 ${TARGET_E2EE_ADAPTATION_LAYER}
59 ${TARGET_CKM_TEST_COMMON}
62 INSTALL(TARGETS ${TARGET_E2EE_TESTS}