Cleanup CMakeLists
[platform/core/security/vist.git] / osquery / tizen / CMakeLists.txt
1 #  Copyright (c) 2019 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 ADD_OSQUERY_LIBRARY(osquery_tizen property/property.cpp
16                                                                   manager/manager.cpp
17                                                                   manager/manager_impl.cpp
18                                                                   notification/notification.cpp)
19
20 FILE(GLOB OSQUERY_TIZEN_TESTS "*/tests/*.cpp")
21 ADD_OSQUERY_TEST(${OSQUERY_TIZEN_TESTS})
22
23 IF(DEFINED GBS_BUILD)
24         SET(GBS_ONLY_PACKAGES klay
25                                                   dpm-pil
26                                                   capi-base-common
27                                                   capi-system-info
28                                                   capi-network-wifi-manager)
29
30         INCLUDE(FindPkgConfig)
31         PKG_CHECK_MODULES(GBS_DEPS REQUIRED ${GBS_ONLY_PACKAGES})
32         INCLUDE_DIRECTORIES(SYSTEM ${GBS_DEPS_INCLUDE_DIRS})
33
34         ADD_OSQUERY_LINK(${GBS_DEPS_LIBRARIES})
35         ADD_OSQUERY_LIBRARY(device_policy_wifi device-policy/wifi/wifi.cpp
36                                                                                    device-policy/wifi/wifi-impl.cpp)
37 ENDIF(DEFINED GBS_BUILD)