# Copyright (c) 2020 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. # # @file CMakeLists.txt # ############################# Check minimum CMake version ##################### CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3) SET(CAPI_UWB "capi-network-uwb") PROJECT(${CAPI_UWB}) ############################# cmake packages ################################## INCLUDE(FindPkgConfig) SET(COMMON_DEPS "dlog glib-2.0 gio-2.0 gio-unix-2.0 capi-system-info") SET(PC_DEPS "capi-base-common") SET(GTEST_DEPS "capi-base-common dlog capi-system-info glib-2.0 gio-unix-2.0 gmock") SET(TEST_DEPS "glib-2.0") SET(TARGET_UWB "capi-network-uwb") SET(TARGET_UWB_MOCK "uwb-mock") SET(TARGET_UWB_GTEST "capi-network-uwb-gtest") SET(TARGET_UWB_TEST "capi-network-uwb-test") ADD_DEFINITIONS("-DUSE_DLOG") ADD_SUBDIRECTORY(include) ADD_SUBDIRECTORY(pkgconfig) ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(tests)