# Copyright (c) 2014-2015 Samsung Electronics Co., Ltd All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # @file CMakeLists.txt # CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT(wifi-direct-manager C CXX) INCLUDE(FindPkgConfig) SET(DAEMON "wfd-manager") SET(PLUGIN "wifi-direct-plugin-wpasupplicant") SET(ARCH "${ARCHITECTURE}") ADD_DEFINITIONS("-DUSE_DLOG") IF(TIZEN_ARCH_64) ADD_DEFINITIONS(-DTIZEN_ARCH_64) ENDIF(TIZEN_ARCH_64) IF(TIZEN_TETHERING_ENABLE) ADD_DEFINITIONS(-DTIZEN_TETHERING_ENABLE) ENDIF(TIZEN_TETHERING_ENABLE) IF(TIZEN_DEBUG_DBUS_VALUE) ADD_DEFINITIONS(-DTIZEN_DEBUG_DBUS_VALUE) ENDIF(TIZEN_DEBUG_DBUS_VALUE) ADD_SUBDIRECTORY(src) IF("${ARCH}" MATCHES "^arm.*|.*86.*") ADD_SUBDIRECTORY(plugin/wpasupplicant/ctrl_iface_dbus) ELSE() ADD_SUBDIRECTORY(plugin/wpasupplicant/emul) ENDIF() IF(TIZEN_ENABLE_PRD) IF("${ARCH}" MATCHES "^arm.*|.*86.*") ADD_SUBDIRECTORY(prd/plugin/wpasupplicant/ctrl_iface_dbus) ENDIF() ENDIF(TIZEN_ENABLE_PRD) ADD_SUBDIRECTORY(files) IF(BUILD_GTESTS) ADD_SUBDIRECTORY(unittest) ENDIF(BUILD_GTESTS)