# Copyright (c) 2023 Samsung Electronics Co., Ltd All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. INCLUDE(FindPkgConfig) # Adaptation layer SET(TARGET_E2EE_ADAPTATION_LAYER "e2ee-adaptation-layer") PKG_CHECK_MODULES(E2EE_ADAPTATION_LAYER_DEP REQUIRED key-manager # >=0.1.48 ) SET(E2EE_ADAPTATION_LAYER_SOURCES e2ee-adaptation-layer.cpp ) ADD_LIBRARY(${TARGET_E2EE_ADAPTATION_LAYER} STATIC ${E2EE_ADAPTATION_LAYER_SOURCES} ) TARGET_INCLUDE_DIRECTORIES(${TARGET_E2EE_ADAPTATION_LAYER} SYSTEM PUBLIC ${E2EE_ADAPTATION_LAYER_DEP_INCLUDE_DIRS} ) TARGET_LINK_LIBRARIES(${TARGET_E2EE_ADAPTATION_LAYER} ${E2EE_ADAPTATION_LAYER_DEP_LIBRARIES} ) # Tests SET(E2EE_TESTS_SOURCES tests.cpp ) ADD_EXECUTABLE(${TARGET_E2EE_TESTS} ${E2EE_TESTS_SOURCES}) TARGET_INCLUDE_DIRECTORIES(${TARGET_E2EE_TESTS} PRIVATE ${PROJECT_SOURCE_DIR}/src/common PRIVATE ${PROJECT_SOURCE_DIR}/src/ckm ) TARGET_LINK_LIBRARIES(${TARGET_E2EE_TESTS} ${TARGET_E2EE_ADAPTATION_LAYER} ${TARGET_CKM_TEST_COMMON} ) INSTALL(TARGETS ${TARGET_E2EE_TESTS} DESTINATION /usr/bin )