INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/interfaces)
SET(SRCS
+ ${CMAKE_SOURCE_DIR}/src/asp-coordination-protocol.c
${CMAKE_SOURCE_DIR}/src/asp-manager.c
${CMAKE_SOURCE_DIR}/src/asp-manager-event.c
${CMAKE_SOURCE_DIR}/src/asp-manager-gdbus.c
- ${CMAKE_SOURCE_DIR}/src/asp-manager-util.c
${CMAKE_SOURCE_DIR}/src/asp-manager-main.c
+ ${CMAKE_SOURCE_DIR}/src/asp-manager-util.c
+ ${CMAKE_SOURCE_DIR}/src/asp-p2p-conn.c
+ ${CMAKE_SOURCE_DIR}/src/asp-service.c
+ ${CMAKE_SOURCE_DIR}/src/asp-session.c
+ ${CMAKE_SOURCE_DIR}/src/asp-session-peer.c
+ ${CMAKE_SOURCE_DIR}/src/asp-tech-ble.c
+ ${CMAKE_SOURCE_DIR}/src/asp-tech.c
+ ${CMAKE_SOURCE_DIR}/src/asp-tech-infra.c
+ ${CMAKE_SOURCE_DIR}/src/asp-tech-nan.c
+ ${CMAKE_SOURCE_DIR}/src/asp-tech-nfc.c
+ ${CMAKE_SOURCE_DIR}/src/asp-tech-p2p.c
+ ${CMAKE_SOURCE_DIR}/src/gfsm.c
${CMAKE_SOURCE_DIR}/interfaces/generated-code.c
)
SET_SOURCE_FILES_PROPERTIES(${CMAKE_SOURCE_DIR}/interfaces/generated-code.c PROPERTIES GENERATED TRUE)
-FILE(GLOB SERVICE_SRCS ${CMAKE_SOURCE_DIR}/src/service/*.c)
-FILE(GLOB SESSION_SRCS ${CMAKE_SOURCE_DIR}/src/session/*.c)
-FILE(GLOB TECH_SRCS ${CMAKE_SOURCE_DIR}/src/tech/*.c)
-
-
ADD_DEFINITIONS("-DUSE_DLOG")
-ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS} ${SERVICE_SRCS} ${SESSION_SRCS} ${TECH_SRCS})
+ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
ADD_DEPENDENCIES(${PROJECT_NAME} GENERATED_DBUS_CODE)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${asp_pkgs_LDFLAGS} -ldl)