Merge "fix: use EINA_* booleans instread of TRUE/FALSE" into tizen
[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     libsystemd-daemon
37     libtzplatform-config
38     REQUIRED
39 )
40
41 SET(WRT_LAUNCH_PAD_INCLUDE_DIRS
42     ${PROJECT_SOURCE_DIR}/src/wrt-launchpad-daemon/include
43     ${PROJECT_SOURCE_DIR}/src/wrt-launchpad-daemon/legacy
44     ${PROJECT_SOURCE_DIR}/src/wrt-launchpad-daemon/feature
45     ${WRT_LAUNCH_PAD_DEPS_INCLUDE_DIRS}
46 )
47
48 INCLUDE_DIRECTORIES(${WRT_LAUNCH_PAD_INCLUDE_DIRS})
49
50 #build executable
51 ADD_EXECUTABLE( ${WRT_LAUNCH_PAD_NAME}
52     src/app_sock.c
53     src/simple_util.c
54     launchpad_src/launchpad.c
55     launchpad_src/util_x.c
56     src/process_pool.c
57 )
58
59 #link libraries
60 TARGET_LINK_LIBRARIES( ${WRT_LAUNCH_PAD_NAME}
61     ${WRT_LAUNCH_PAD_DEPS_LIBRARIES}
62     ${CMAKE_DL_LIBS}
63 )
64 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/legacy/preload_list_wrt.txt.in
65     ${CMAKE_CURRENT_SOURCE_DIR}/legacy/preload_list_wrt.txt @ONLY)
66 #install
67 INSTALL(TARGETS ${WRT_LAUNCH_PAD_NAME} DESTINATION bin)
68 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/legacy/preload_list_wrt.txt DESTINATION /usr/share/aul )