Initialize Tizen 2.3
[framework/system/oma-dm-agent.git] / src / plugins / dm-public / devinfo / CMakeLists.txt
1
2 #############################################
3 #
4 # Step 1. Set Variable and Build Dependency
5 #
6
7 # set plguin name
8 SET(PLUGIN_NAME "mo-devinfo")
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                                         vconf
18                                         dlog
19                                         libwbxml2
20                                         )
21
22 #############################################
23 #
24 # Step 2. Set Compile Environment
25 #
26
27 # set extra cflags from build dependency
28 SET(PLUGIN_CFLAGS "${mo-devinfo_CFLAGS}")
29
30 #############################################
31 #
32 # Step 3. Set Link Environment
33 #
34
35 # link a target to given libraries from pkg-config.
36 SET(PLUGIN_LDFLAGS "${mo-devinfo_LDFLAGS}")
37
38 #############################################
39 #
40 # Step 4. Install packages
41 #
42
43 include(${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeLists.sub)