# # Copyright (c) 2014-2022 Samsung Electronics Co., Ltd. All rights reserved # # This file is licensed under the terms of MIT License or the Apache License # Version 2.0 of your choice. See the LICENSE.MIT file for MIT license details. # See the LICENSE file or the notice below for Apache License Version 2.0 # details. # # 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. # PKG_CHECK_MODULES(CLIENT_DEP REQUIRED capi-system-resource cynara-client-async libsmack libcap mount ) SET(CLIENT_VERSION_MAJOR 3) SET(CLIENT_VERSION ${CLIENT_VERSION_MAJOR}.0.0) INCLUDE_DIRECTORIES(SYSTEM ${CLIENT_DEP_INCLUDE_DIRS} ) INCLUDE_DIRECTORIES( ${INCLUDE_PATH} ${COMMON_PATH}/include ${CLIENT_PATH}/include ${DPL_PATH}/core/include ${DPL_PATH}/log/include ${DPL_PATH}/db/include ) SET(CLIENT_SOURCES ${CLIENT_PATH}/client-security-manager.cpp ${CLIENT_PATH}/client-common.cpp ${CLIENT_PATH}/client-offline.cpp ${CLIENT_PATH}/client-label-monitor.cpp ${CLIENT_PATH}/check-proper-drop.cpp ) LINK_DIRECTORIES(${CLIENT_DEP_LIBRARY_DIRS}) ADD_LIBRARY(${TARGET_CLIENT} SHARED ${CLIENT_SOURCES}) SET_TARGET_PROPERTIES(${TARGET_CLIENT} PROPERTIES COMPILE_FLAGS "-D_GNU_SOURCE -fvisibility=hidden" SOVERSION ${CLIENT_VERSION_MAJOR} VERSION ${CLIENT_VERSION} ) TARGET_LINK_LIBRARIES(${TARGET_CLIENT} ${TARGET_COMMON} ${CLIENT_DEP_LIBRARIES} ) INSTALL(TARGETS ${TARGET_CLIENT} DESTINATION ${LIB_INSTALL_DIR})