932465c6854d3c113c9202e95b38275489690923
[platform/core/connectivity/uwb-manager.git] / CMakeLists.txt
1 # Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved
2 #
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
6 #
7 #        http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14 #
15 # @file        CMakeLists.txt
16 #
17
18 ############################# Check minimum CMake version #####################
19
20 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3)
21 PROJECT(uwb-manager)
22
23 ############################# cmake packages ##################################
24
25 INCLUDE(FindPkgConfig)
26
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")
29
30 SET(TARGET_UWB_MANAGER "uwb-manager")
31 SET(TARGET_DWM1001_PLUGIN "uwb-plugin-dwm1001")
32 SET(TARGET_UWB_MANAGER_GTEST "uwb-manager-gtest")
33
34 ADD_DEFINITIONS("-DUSE_DLOG")
35
36 ADD_SUBDIRECTORY(interface)
37 ADD_SUBDIRECTORY(src)
38 ADD_SUBDIRECTORY(tests)