1 # Copyright (c) 2020 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 # @file CMakeLists.txt
18 ############################# Check minimum CMake version #####################
20 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3)
21 SET(CAPI_UWB "capi-network-uwb")
24 ############################# cmake packages ##################################
26 INCLUDE(FindPkgConfig)
28 SET(COMMON_DEPS "dlog glib-2.0 gio-2.0 gio-unix-2.0 capi-system-info")
29 SET(PC_DEPS "capi-base-common")
30 SET(TEST_DEPS "glib-2.0")
31 SET(GTEST_DEPS "gmock")
33 SET(TARGET_UWB "capi-network-uwb")
34 SET(TARGET_UWB_TEST "capi-network-uwb-test")
35 SET(TARGET_UWB_GTEST "capi-network-uwb-gtest")
37 ADD_DEFINITIONS("-DUSE_DLOG")
39 ADD_SUBDIRECTORY(include)
40 ADD_SUBDIRECTORY(pkgconfig)