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