Revise directory structure
[platform/core/connectivity/asp-manager.git] / src / 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 SET(PACKAGE ${PROJECT_NAME})
20
21 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
22 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/interfaces)
23
24 SET(SRCS
25         ${CMAKE_SOURCE_DIR}/src/asp-coordination-protocol.c
26         ${CMAKE_SOURCE_DIR}/src/asp-manager.c
27         ${CMAKE_SOURCE_DIR}/src/asp-manager-event.c
28         ${CMAKE_SOURCE_DIR}/src/asp-manager-gdbus.c
29         ${CMAKE_SOURCE_DIR}/src/asp-manager-main.c
30         ${CMAKE_SOURCE_DIR}/src/asp-manager-util.c
31         ${CMAKE_SOURCE_DIR}/src/asp-p2p-conn.c
32         ${CMAKE_SOURCE_DIR}/src/asp-service.c
33         ${CMAKE_SOURCE_DIR}/src/asp-session.c
34         ${CMAKE_SOURCE_DIR}/src/asp-session-peer.c
35         ${CMAKE_SOURCE_DIR}/src/asp-tech-ble.c
36         ${CMAKE_SOURCE_DIR}/src/asp-tech.c
37         ${CMAKE_SOURCE_DIR}/src/asp-tech-infra.c
38         ${CMAKE_SOURCE_DIR}/src/asp-tech-nan.c
39         ${CMAKE_SOURCE_DIR}/src/asp-tech-nfc.c
40         ${CMAKE_SOURCE_DIR}/src/asp-tech-p2p.c
41         ${CMAKE_SOURCE_DIR}/src/gfsm.c
42         ${CMAKE_SOURCE_DIR}/interfaces/generated-code.c
43         )
44
45 SET_SOURCE_FILES_PROPERTIES(${CMAKE_SOURCE_DIR}/interfaces/generated-code.c PROPERTIES GENERATED TRUE)
46
47 ADD_DEFINITIONS("-DUSE_DLOG")
48
49 ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
50 ADD_DEPENDENCIES(${PROJECT_NAME} GENERATED_DBUS_CODE)
51
52 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${asp_pkgs_LDFLAGS} -ldl)
53
54 INSTALL(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ${BIN_DIR})