Tizen 2.1 base
[platform/core/system/sync-agent.git] / src / fw-plugins / common-public / contact / CMakeLists.txt
1
2 #############################################
3 #
4 # Step 1. Set Variable and Build Dependency
5 #
6
7 # set plguin name
8 SET(PLUGIN_NAME "da-contact")
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                                         contacts-service2
17                                         accounts-svc
18                                         dlog)
19
20 #############################################
21 #
22 # Step 2. Set Compile Environment
23 #
24
25 # set extra cflags from build dependency
26 SET(PLUGIN_CFLAGS "${da-contact_CFLAGS}")
27
28 #############################################
29 #
30 # Step 3. Set Link Environment
31 #
32
33 # link a target to given libraries from pkg-config.
34 SET(PLUGIN_LDFLAGS "${da-contact_LDFLAGS}")
35
36 #############################################
37 #
38 # Step 4. Install packages
39 #
40
41 include(${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeLists.sub)