Replace WPS scan to BSSID scan keywords.
[platform/core/connectivity/net-config.git] / CMakeLists.txt
index acd9b3a..0704fd0 100755 (executable)
@@ -4,7 +4,7 @@ SET(PACKAGE ${PROJECT_NAME})
 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 SET(BINDIR "${PREFIX}/sbin")
 SET(DATADIR "${PREFIX}/share")
-SET(LIBDIR "${PREFIX}/lib")
+SET(LIBDIR "${PREFIX}/${LIB_PATH}")
 SET(INTERFACES "${CMAKE_SOURCE_DIR}/interfaces")
 
 SET(SRCS
@@ -21,6 +21,8 @@ SET(SRCS
        src/wifi-passpoint.c
        src/utils/log.c
        src/utils/util.c
+       src/vpnsvc.c
+       src/vpnsvc-internal.c
        src/dbus/netdbus.c
        src/network-clock.c
        src/network-state.c
@@ -37,7 +39,6 @@ SET(SRCS
        src/wifi-background-scan.c
        src/wifi-tel-intf.c
        src/wifi-config.c
-       src/clatd-handler.c
        )
 
 IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
@@ -67,39 +68,20 @@ IF(TIZEN_CAPTIVE_PORTAL)
        SET(SRCS ${SRCS} src/utils/network-accessibility.c)
 ENDIF(TIZEN_CAPTIVE_PORTAL)
 
-IF(TIZEN_TV)
-       ADD_DEFINITIONS(-DTIZEN_TV)
-ENDIF(TIZEN_TV)
-
 IF(TIZEN_WEARABLE)
        ADD_DEFINITIONS(-DTIZEN_WEARABLE)
-       SET(WEARABLE_REQUIRED_PKGS "weconn")
 ENDIF(TIZEN_WEARABLE)
 
-IF(TIZEN_TELEPHONY_ENABLE)
-       ADD_DEFINITIONS(-DTIZEN_TELEPHONY_ENABLE)
-ENDIF(TIZEN_TELEPHONY_ENABLE)
-
-IF(TIZEN_DEBUG_DISABLE)
-       ADD_DEFINITIONS(-DTIZEN_DEBUG_DISABLE)
-       SET(SRCS ${SRCS} src/wifi-dump.c)
-ENDIF(TIZEN_DEBUG_DISABLE)
-
 INCLUDE(FindPkgConfig)
 PKG_CHECK_MODULES(pkgs REQUIRED
-       aul
        dlog
        tapi
        vconf
-       bundle
        gio-2.0
        glib-2.0
        gio-unix-2.0
-       eventsystem
-       alarm-service
-       syspopup-caller
        capi-system-info
-       capi-appfw-application
+       libtzplatform-config
        ${P2P_REQUIRED_PKGS}
        ${WEARABLE_REQUIRED_PKGS}
        )
@@ -138,11 +120,13 @@ ADD_CUSTOM_COMMAND(
                        --generate-c-code generated-code
                        --c-generate-object-manager
                        --generate-docbook generated-code-docs
-                       ${INTERFACES}/netconfig-iface-network-state.xml ${INTERFACES}/netconfig-iface-network-statistics.xml ${INTERFACES}/netconfig-iface-wifi.xml
+                       ${INTERFACES}/netconfig-iface-network-state.xml ${INTERFACES}/netconfig-iface-network-statistics.xml ${INTERFACES}/netconfig-iface-wifi.xml ${INTERFACES}/netconfig-iface-vpnsvc.xml
                        COMMENT "Generating GDBus .c/.h")
 
 ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS} ${CMAKE_SOURCE_DIR}/generated-code.c)
 
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} ${PCAP_LIB})
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} ${PCAP_LIB} "-ldl")
 
 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR})
+
+ADD_SUBDIRECTORY(plugin/headed)