Update wrt-security_0.0.42
[framework/web/wrt-security.git] / popup_process / 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     dpl-efl
18     dpl-event-efl
19     dpl-popup-efl
20     dpl-utils-efl
21     REQUIRED
22 )
23
24 INCLUDE_DIRECTORIES(
25     ${CMAKE_CURRENT_SOURCE_DIR}
26     ${WRT_POPUP_DEPS_INCLUDE_DIRS}
27     ${PROJECT_SOURCE_DIR}/src/services/popup/dbus/api
28     ${PROJECT_SOURCE_DIR}/ace/include
29 )
30
31 SET(WRT_POPUP_SRCS
32     wrt-popup.cpp
33     PopupSerializer.cpp
34     YesNoPopup.cpp
35     CommunicationBox.cpp
36 )
37
38 ADD_EXECUTABLE(${TARGET_WRT_POPUP}
39     ${WRT_POPUP_SRCS}
40 )
41
42 TARGET_LINK_LIBRARIES(${TARGET_WRT_POPUP}
43     ${WRT_POPUP_DEPS_LIBRARIES}
44     ${TARGET_ACE_DAO_RO_LIB}
45 )
46
47 SET_TARGET_PROPERTIES(${TARGET_WRT_POPUP} PROPERTIES
48     LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both -Wl"
49     BUILD_WITH_INSTALL_RPATH ON
50     INSTALL_RPATH_USE_LINK_PATH ON
51 )
52
53 INSTALL(TARGETS ${TARGET_WRT_POPUP} DESTINATION bin)