b87a06592571ffcf52ab07481fa7391ef2196bab
[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(TRUE osquery_property property/property.cpp)
16
17 ADD_OSQUERY_LIBRARY(TRUE osquery_manager manager/manager.cpp
18                                                                                  manager/manager_impl.cpp)
19
20 ADD_OSQUERY_LIBRARY(TRUE osquery_notification notification/notification.cpp)
21
22 FILE(GLOB OSQUERY_TIZEN_TESTS "*/tests/*.cpp")
23 ADD_OSQUERY_TEST(TRUE ${OSQUERY_TIZEN_TESTS})
24
25 IF(DEFINED GBS_BUILD)
26         SET(GBS_ONLY_PACKAGES klay
27                                                   dpm-pil
28                                                   capi-base-common
29                                                   capi-system-info
30                                                   capi-network-wifi-manager)
31
32         INCLUDE(FindPkgConfig)
33         PKG_CHECK_MODULES(GBS_DEPS REQUIRED ${GBS_ONLY_PACKAGES})
34         INCLUDE_DIRECTORIES(SYSTEM ${GBS_DEPS_INCLUDE_DIRS})
35
36         ADD_OSQUERY_LINK(FALSE ${GBS_DEPS_LIBRARIES})
37         ADD_OSQUERY_LIBRARY(FALSE tizen-dpm-wifi device-policy/wifi/wifi.cpp
38                                                                                          device-policy/wifi/wifi-impl.cpp)
39 ENDIF(DEFINED GBS_BUILD)