WRT Launchpad Daemon Feature
[platform/framework/web/wrt.git] / src / wrt-client / 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 SET(TARGET_WRT_CLIENT "wrt-client")
17
18 SET(WRT_CLIENT_SRCS
19     ${PROJECT_SOURCE_DIR}/src/wrt-client/window_data.cpp
20     ${PROJECT_SOURCE_DIR}/src/wrt-client/splash_screen_support.cpp
21     ${PROJECT_SOURCE_DIR}/src/wrt-client/wrt-client.cpp
22 )
23
24 PKG_CHECK_MODULES(CLIENT_DEP
25     dpl-wrt-dao-ro
26     wrt-plugin-js-overlay
27     REQUIRED
28 )
29
30 INCLUDE_DIRECTORIES(
31     ${PROJECT_SOURCE_DIR}/src/wrt-client
32     ${PROJECT_SOURCE_DIR}/src/api_new
33     ${CLIENT_DEP_INCLUDE_DIRS}
34 )
35
36 ADD_EXECUTABLE(${TARGET_WRT_CLIENT}
37     ${WRT_CLIENT_SRCS}
38 )
39
40 TARGET_LINK_LIBRARIES(${TARGET_WRT_CLIENT}
41     ${CLIENT_DEP_LIBRARIES}
42     ${TARGET_CORE_MODULE_LIB}
43     "-pie"
44 )
45
46 SET_TARGET_PROPERTIES(${TARGET_WRT_CLIENT} PROPERTIES
47     LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both -Wl,--version-script=${PROJECT_SOURCE_DIR}/wrt-engine.map"
48     BUILD_WITH_INSTALL_RPATH ON
49     INSTALL_RPATH_USE_LINK_PATH ON
50 )
51
52 SET_TARGET_PROPERTIES(${TARGET_WRT_CLIENT} PROPERTIES
53     COMPILE_FLAGS "-include profiling_util.h" )
54
55 INSTALL(TARGETS ${TARGET_WRT_CLIENT} DESTINATION bin)
56