2 #############################################
4 # Step 1. Set Variable and Build Dependency
8 SET(PLUGIN_NAME "pm-slp-sysnoti-network-connection")
10 # set a name for the entire project
11 PROJECT(plugin-${PLUGIN_NAME})
13 # checks for build dependency modules : a pkg-config module for CMake
14 INCLUDE(FindPkgConfig)
15 pkg_check_modules(${PLUGIN_NAME} REQUIRED
18 capi-network-connection
21 #############################################
23 # Step 2. Set Compile Environment
26 # set extra cflags from build dependency
27 SET(PLUGIN_CFLAGS "${pm-slp-sysnoti-network-connection_CFLAGS}")
29 #############################################
31 # Step 3. Set Link Environment
34 # link a target to given libraries from pkg-config.
35 SET(PLUGIN_LDFLAGS "${pm-slp-sysnoti-network-connection_LDFLAGS}")
37 #############################################
39 # Step 4. Install packages
42 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/plugin_slp_sysnoti_network_connection.h DESTINATION include/sync-agent/plugin/)
44 include(${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeLists.sub)