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
23 key-manager # >=0.1.48
26 SET(E2EE_ADAPTATION_LAYER_SOURCES
27 e2ee-adaptation-layer.cpp
30 ADD_LIBRARY(${TARGET_E2EE_ADAPTATION_LAYER}
31 STATIC ${E2EE_ADAPTATION_LAYER_SOURCES}
34 TARGET_INCLUDE_DIRECTORIES(${TARGET_E2EE_ADAPTATION_LAYER}
35 SYSTEM PUBLIC ${E2EE_ADAPTATION_LAYER_DEP_INCLUDE_DIRS}
38 TARGET_LINK_LIBRARIES(${TARGET_E2EE_ADAPTATION_LAYER}
39 ${E2EE_ADAPTATION_LAYER_DEP_LIBRARIES}
44 SET(E2EE_TESTS_SOURCES
48 ADD_EXECUTABLE(${TARGET_E2EE_TESTS} ${E2EE_TESTS_SOURCES})
50 TARGET_INCLUDE_DIRECTORIES(${TARGET_E2EE_TESTS}
51 PRIVATE ${PROJECT_SOURCE_DIR}/src/common
52 PRIVATE ${PROJECT_SOURCE_DIR}/src/ckm
55 TARGET_LINK_LIBRARIES(${TARGET_E2EE_TESTS}
56 ${TARGET_E2EE_ADAPTATION_LAYER}
57 ${TARGET_CKM_TEST_COMMON}
60 INSTALL(TARGETS ${TARGET_E2EE_TESTS}