1 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 # @file CMakeLists.txt
17 # @author Tae-Jeong Lee (taejeong.lee@samsung.com)
21 SET(WRT_LAUNCH_PAD_NAME "wrt_launchpad_daemon")
23 ADD_DEFINITIONS("-DSHARE_PREFIX=\"/usr/share/aul\"")
25 PKG_CHECK_MODULES(WRT_LAUNCH_PAD_DEPS
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}
48 INCLUDE_DIRECTORIES(${WRT_LAUNCH_PAD_INCLUDE_DIRS})
51 ADD_EXECUTABLE( ${WRT_LAUNCH_PAD_NAME}
54 launchpad_src/launchpad.c
55 launchpad_src/util_x.c
60 TARGET_LINK_LIBRARIES( ${WRT_LAUNCH_PAD_NAME}
61 ${WRT_LAUNCH_PAD_DEPS_LIBRARIES}
64 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/legacy/preload_list_wrt.txt.in
65 ${CMAKE_CURRENT_SOURCE_DIR}/legacy/preload_list_wrt.txt @ONLY)
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 )