Tizen 2.0 Release
[framework/system/oma-dm-agent.git] / src / plugins / dm-private / slp-sysnoti-telephony / CMakeLists.txt
1
2 #############################################
3 #
4 # Step 1. Set Variable and Build Dependency
5 #
6
7 # set plguin name
8 SET(PLUGIN_NAME "pm-slp-sysnoti-telephony")
9
10 # set a name for the entire project
11 PROJECT(plugin-${PLUGIN_NAME})
12
13 # checks for build dependency modules : a pkg-config module for CMake
14 INCLUDE(FindPkgConfig)
15 pkg_check_modules(${PLUGIN_NAME} REQUIRED
16                                         sync-agent
17                                         glib-2.0
18                                         vconf
19                                         tapi
20                                         dlog
21                                         libwbxml2
22                                         )
23
24 #############################################
25 #
26 # Step 2. Set Compile Environment
27 #
28
29 # set extra cflags from build dependency
30 SET(PLUGIN_CFLAGS "${pm-slp-sysnoti-telephony_CFLAGS}")
31
32 #############################################
33 #
34 # Step 3. Set Link Environment
35 #
36
37 # link a target to given libraries from pkg-config.
38 SET(PLUGIN_LDFLAGS "${pm-slp-sysnoti-telephony_LDFLAGS}")
39
40 #############################################
41 #
42 # Step 4. Install packages
43 #
44
45 include(${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeLists.sub)