Tizen 2.0 Release
[framework/system/oma-dm-agent.git] / src / plugins / dm-private / slp-device-dm / CMakeLists.txt
1
2 #############################################
3 #
4 # Step 1. Set Variable and Build Dependency
5 #
6
7 # set plguin name
8 SET(PLUGIN_NAME "di-slp-device-dm")
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                                         pmapi
21                                         dlog
22                                         libwbxml2
23                                         )
24
25 #############################################
26 #
27 # Step 2. Set Compile Environment
28 #
29
30 # set extra cflags from build dependency
31 SET(PLUGIN_CFLAGS "${di-slp-device-dm_CFLAGS}")
32
33 #############################################
34 #
35 # Step 3. Set Link Environment
36 #
37
38 # link a target to given libraries from pkg-config.
39 SET(PLUGIN_LDFLAGS "${di-slp-device-dm_LDFLAGS}")
40
41 #############################################
42 #
43 # Step 4. Install packages
44 #
45
46 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/plugin_slp_device_dm.h DESTINATION include/sync-agent/plugin/)
47
48 include(${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeLists.sub)