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)
23 ############################# cmake packages ##################################
25 INCLUDE(FindPkgConfig)
27 SET(COMMON_DEPS "glib-2.0 gio-2.0 gio-unix-2.0 dlog libtzplatform-config json-glib-1.0")
28 SET(GTEST_DEPS "gmock")
30 SET(TARGET_UWB_MANAGER "uwb-manager")
31 SET(TARGET_DWM1001_PLUGIN "uwb-plugin-dwm1001")
32 SET(TARGET_UWB_MANAGER_GTEST "uwb-manager-gtest")
34 ADD_DEFINITIONS("-DUSE_DLOG")
36 ADD_SUBDIRECTORY(interface)
38 ADD_SUBDIRECTORY(tests)