Fix logical dead code issue
[platform/core/connectivity/wifi-direct-manager.git] / CMakeLists.txt
1 # Copyright (c) 2014-2015 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 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
19 PROJECT(wifi-direct-manager C CXX)
20
21 INCLUDE(FindPkgConfig)
22
23 SET(DAEMON "wfd-manager")
24 SET(PLUGIN "wifi-direct-plugin-wpasupplicant")
25
26 SET(ARCH "${ARCHITECTURE}")
27 ADD_DEFINITIONS("-DUSE_DLOG")
28 IF(TIZEN_ARCH_64)
29        ADD_DEFINITIONS(-DTIZEN_ARCH_64)
30 ENDIF(TIZEN_ARCH_64)
31
32 IF(TIZEN_TETHERING_ENABLE)
33        ADD_DEFINITIONS(-DTIZEN_TETHERING_ENABLE)
34 ENDIF(TIZEN_TETHERING_ENABLE)
35
36 IF(TIZEN_DEBUG_DBUS_VALUE)
37        ADD_DEFINITIONS(-DTIZEN_DEBUG_DBUS_VALUE)
38 ENDIF(TIZEN_DEBUG_DBUS_VALUE)
39
40 ADD_SUBDIRECTORY(src)
41
42 IF("${ARCH}" MATCHES "^arm.*|.*86.*")
43         ADD_SUBDIRECTORY(plugin/wpasupplicant/ctrl_iface_dbus)
44 ELSE()
45         ADD_SUBDIRECTORY(plugin/wpasupplicant/emul)
46 ENDIF()
47
48 IF(TIZEN_ENABLE_PRD)
49         IF("${ARCH}" MATCHES "^arm.*|.*86.*")
50                 ADD_SUBDIRECTORY(prd/plugin/wpasupplicant/ctrl_iface_dbus)
51         ENDIF()
52 ENDIF(TIZEN_ENABLE_PRD)
53
54 ADD_SUBDIRECTORY(files)
55
56 IF(BUILD_GTESTS)
57         ADD_SUBDIRECTORY(unittest)
58 ENDIF(BUILD_GTESTS)