summaryrefslogtreecommitdiff
path: root/src/plugins/ds-public/vcard/CMakeLists.txt
blob: bdd1871572825285e2b3b9c3cd2e36a7bc0f47d7 (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

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

# set plguin name
SET(PLUGIN_NAME "dc-vcard")

# 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
					contacts-service2
					sync-agent
					dlog
					libwbxml2)

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

# set extra cflags from build dependency
SET(PLUGIN_CFLAGS "${dc-vcard_CFLAGS}")

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

# link a target to given libraries from pkg-config.
SET(PLUGIN_LDFLAGS "${dc-vcard_LDFLAGS}")

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

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