Initialize Tizen 2.3
[framework/web/wrt-plugins-common.git] / src_wearable / wrt-popup / wrt / popup-bin / 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 PKG_CHECK_MODULES(WRT_POPUP_DEPS
17     ecore-x
18     dpl-efl
19     dpl-event-efl
20     REQUIRED
21 )
22
23 INCLUDE_DIRECTORIES(
24     ${CMAKE_CURRENT_SOURCE_DIR}
25     ${CMAKE_CURRENT_SOURCE_DIR}/renderer
26     ${WRT_POPUP_DEPS_INCLUDE_DIRS}
27     ${WRT_POPUP_COMMON_DIR}
28 )
29
30 SET(WRT_POPUP_SRCS
31     ${WRT_POPUP_COMMON_SRCS}
32     wrt-popup.cpp
33     YesNoPopup.cpp
34     YesNoCheckPopup.cpp
35     InfoPopup.cpp
36     renderer/evas_object.cpp
37     renderer/popup_controller.cpp
38     renderer/popup_manager.cpp
39     renderer/popup_renderer.cpp
40 )
41
42 ADD_EXECUTABLE(${TARGET_POPUP_WRT}
43     ${WRT_POPUP_SRCS}
44 )
45
46 TARGET_LINK_LIBRARIES(${TARGET_POPUP_WRT}
47     ${WRT_POPUP_DEPS_LIBRARIES}
48 )
49
50 SET_TARGET_PROPERTIES(${TARGET_POPUP_WRT} PROPERTIES
51     LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both"
52     BUILD_WITH_INSTALL_RPATH ON
53     INSTALL_RPATH_USE_LINK_PATH ON
54 )
55
56 INSTALL(TARGETS ${TARGET_POPUP_WRT} DESTINATION bin)