summaryrefslogtreecommitdiff
path: root/src/plugins/dm-private/slp-device-dm/CMakeLists.txt
blob: 0f8050fa5da3c756e9f55b86ef8a2e06ff0793e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

#############################################
#
# Step 1. Set Variable and Build Dependency
#

# set plguin name
SET(PLUGIN_NAME "di-slp-device-dm")

# set a name for the entire project
PROJECT(plugin-${PLUGIN_NAME})

# checks for build dependency modules : a pkg-config module for CMake
INCLUDE(FindPkgConfig)
pkg_check_modules(${PLUGIN_NAME} REQUIRED
					sync-agent
					glib-2.0
					vconf
					tapi
					pmapi
					dlog
					libwbxml2
					)

#############################################
#
# Step 2. Set Compile Environment
#

# set extra cflags from build dependency
SET(PLUGIN_CFLAGS "${di-slp-device-dm_CFLAGS}")

#############################################
#
# Step 3. Set Link Environment
#

# link a target to given libraries from pkg-config.
SET(PLUGIN_LDFLAGS "${di-slp-device-dm_LDFLAGS}")

#############################################
#
# Step 4. Install packages
#

INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/plugin_slp_device_dm.h DESTINATION include/sync-agent/plugin/)

include(${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeLists.sub)