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
27 SET(E2EE_ADAPTATION_LAYER_SOURCES
28 e2ee-adaptation-layer.cpp
31 ADD_LIBRARY(${TARGET_E2EE_ADAPTATION_LAYER}
32 STATIC ${E2EE_ADAPTATION_LAYER_SOURCES}
35 TARGET_INCLUDE_DIRECTORIES(${TARGET_E2EE_ADAPTATION_LAYER}
36 SYSTEM PUBLIC ${E2EE_ADAPTATION_LAYER_DEP_INCLUDE_DIRS}
39 TARGET_LINK_LIBRARIES(${TARGET_E2EE_ADAPTATION_LAYER}
40 ${E2EE_ADAPTATION_LAYER_DEP_LIBRARIES}
45 SET(E2EE_TESTS_SOURCES
49 ADD_EXECUTABLE(${TARGET_E2EE_TESTS} ${E2EE_TESTS_SOURCES})
51 TARGET_INCLUDE_DIRECTORIES(${TARGET_E2EE_TESTS}
52 PRIVATE ${PROJECT_SOURCE_DIR}/src/common
53 PRIVATE ${PROJECT_SOURCE_DIR}/src/ckm
56 TARGET_LINK_LIBRARIES(${TARGET_E2EE_TESTS}
57 ${TARGET_E2EE_ADAPTATION_LAYER}
58 ${TARGET_CKM_TEST_COMMON}
61 INSTALL(TARGETS ${TARGET_E2EE_TESTS}