[Release] wrt_0.8.166 for tizen_2.1 branch
[platform/framework/web/wrt.git] / src / wrt-launchpad-daemon / CMakeLists.txt
1 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
2 #
3 #    Licensed under the Apache License, Version 2.0 (the "License");
4 #    you may not use this file except in compliance with the License.
5 #    You may obtain a copy of the License at
6 #
7 #        http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #    Unless required by applicable law or agreed to in writing, software
10 #    distributed under the License is distributed on an "AS IS" BASIS,
11 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #    See the License for the specific language governing permissions and
13 #    limitations under the License.
14 #
15
16 # @file     CMakeLists.txt
17 # @author   Tae-Jeong Lee (taejeong.lee@samsung.com)
18 # @version     0.1
19 #
20
21 SET(WRT_LAUNCH_PAD_NAME "wrt_launchpad_daemon")
22
23 ADD_DEFINITIONS("-DSHARE_PREFIX=\"/usr/share/aul\"")
24
25 PKG_CHECK_MODULES(WRT_LAUNCH_PAD_DEPS
26     aul
27     dlog
28     app-checker
29     bundle
30     dbus-glib-1
31     glib-2.0
32     libsmack
33     libprivilege-control
34     x11
35     sqlite3
36     REQUIRED
37 )
38
39 SET(WRT_LAUNCH_PAD_INCLUDE_DIRS
40     ${PROJECT_SOURCE_DIR}/src/wrt-launchpad-daemon/include
41     ${PROJECT_SOURCE_DIR}/src/wrt-launchpad-daemon/legacy
42     ${PROJECT_SOURCE_DIR}/src/wrt-launchpad-daemon/feature
43     ${WRT_LAUNCH_PAD_DEPS_INCLUDE_DIRS}
44 )
45
46 INCLUDE_DIRECTORIES(${WRT_LAUNCH_PAD_INCLUDE_DIRS})
47
48 #build executable
49 ADD_EXECUTABLE( ${WRT_LAUNCH_PAD_NAME}
50     src/app_sock.c
51     src/simple_util.c
52     launchpad_src/launchpad.c
53     launchpad_src/util_x.c
54     src/process_pool.c
55 )
56
57 #link libraries
58 TARGET_LINK_LIBRARIES( ${WRT_LAUNCH_PAD_NAME}
59     ${WRT_LAUNCH_PAD_DEPS_LIBRARIES}
60     ${CMAKE_DL_LIBS}
61 )
62
63 #install
64 INSTALL(TARGETS ${WRT_LAUNCH_PAD_NAME} DESTINATION bin)
65 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/legacy/preload_list_wrt.txt DESTINATION /usr/share/aul )