Add gtest for coverage and auto test
[platform/core/api/uwb.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 SET(CAPI_UWB "capi-network-uwb")
22 PROJECT(${CAPI_UWB})
23
24 ############################# cmake packages ##################################
25
26 INCLUDE(FindPkgConfig)
27
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(GTEST_DEPS "capi-base-common dlog capi-system-info glib-2.0 gio-unix-2.0 gmock")
31 SET(TEST_DEPS "glib-2.0")
32
33 SET(TARGET_UWB "capi-network-uwb")
34 SET(TARGET_UWB_MOCK "uwb-mock")
35 SET(TARGET_UWB_GTEST "capi-network-uwb-gtest")
36 SET(TARGET_UWB_TEST "capi-network-uwb-test")
37
38 ADD_DEFINITIONS("-DUSE_DLOG")
39
40 ADD_SUBDIRECTORY(include)
41 ADD_SUBDIRECTORY(pkgconfig)
42 ADD_SUBDIRECTORY(src)
43 ADD_SUBDIRECTORY(tests)