1 # Copyright (c) 2014-2015 Samsung Electronics Co., Ltd All Rights Reserved
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 # @file CMakeLists.txt
18 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
19 PROJECT(wifi-direct-manager C CXX)
21 INCLUDE(FindPkgConfig)
23 SET(DAEMON "wfd-manager")
24 SET(PLUGIN "wifi-direct-plugin-wpasupplicant")
26 SET(ARCH "${ARCHITECTURE}")
27 ADD_DEFINITIONS("-DUSE_DLOG")
29 ADD_DEFINITIONS(-DTIZEN_ARCH_64)
32 IF(TIZEN_TETHERING_ENABLE)
33 ADD_DEFINITIONS(-DTIZEN_TETHERING_ENABLE)
34 ENDIF(TIZEN_TETHERING_ENABLE)
36 IF(TIZEN_DEBUG_DBUS_VALUE)
37 ADD_DEFINITIONS(-DTIZEN_DEBUG_DBUS_VALUE)
38 ENDIF(TIZEN_DEBUG_DBUS_VALUE)
42 IF("${ARCH}" MATCHES "^arm.*|.*86.*")
43 ADD_SUBDIRECTORY(plugin/wpasupplicant/ctrl_iface_dbus)
45 ADD_SUBDIRECTORY(plugin/wpasupplicant/emul)
49 IF("${ARCH}" MATCHES "^arm.*|.*86.*")
50 ADD_SUBDIRECTORY(prd/plugin/wpasupplicant/ctrl_iface_dbus)
52 ENDIF(TIZEN_ENABLE_PRD)
54 ADD_SUBDIRECTORY(files)
57 ADD_SUBDIRECTORY(unittest)