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)
20 PROJECT(asp-manager C CXX)
22 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
24 INCLUDE(FindPkgConfig)
25 PKG_CHECK_MODULES(asp_pkgs REQUIRED
31 capi-network-wifi-manager
35 FOREACH(flag ${asp_pkgs_CFLAGS})
36 SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
40 SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fpic -Wall -Werror-implicit-function-declaration -fvisibility=hidden")
42 SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fpic -Wall -Werror-implicit-function-declaration")
45 SET(ARM_CFLAGS "${ARM_CFLAGS} -mapcs -mabi=aapcs-linux -msoft-float -Uarm -fpic")
46 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
48 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
51 ADD_SUBDIRECTORY(interfaces)
54 ADD_SUBDIRECTORY(unittest)