Initialize Tizen 2.3
[framework/web/wrt-plugins-common.git] / src_mobile / wrt-popup / wrt / popup-runner / 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   Lukasz Marek (l.marek@samsung.com)
18 #
19 # @version  1.0
20 #
21
22 PKG_CHECK_MODULES(WRT_POPUP_RUNNER_LIB_DEP
23     dpl-efl
24     REQUIRED
25 )
26
27 set(WRT_POPUP_RUNNER_LIB_SRC_DIR ${PROJECT_SOURCE_DIR}/src/wrt-popup/wrt/popup-runner)
28
29 set(WRT_POPUP_RUNNER_LIB_SOURCES
30     ${WRT_POPUP_COMMON_SRCS}
31     ${WRT_POPUP_RUNNER_LIB_SRC_DIR}/PopupInvoker.cpp
32 )
33
34 ADD_DEFINITIONS(${WRT_POPUP_RUNNER_LIB_DEP_CFLAGS})
35
36 INCLUDE_DIRECTORIES(
37     ${WRT_POPUP_RUNNER_LIB_SRC_DIR}
38     ${WRT_POPUP_RUNNER_LIB_DEP_INCLUDE_DIRS}
39     ${WRT_POPUP_COMMON_DIR}
40 )
41
42 ADD_LIBRARY(${TARGET_POPUP_WRT_RUNNER_LIB} SHARED
43     ${WRT_POPUP_RUNNER_LIB_SOURCES}
44 )
45
46 SET_TARGET_PROPERTIES(${TARGET_POPUP_WRT_RUNNER_LIB} PROPERTIES
47     COMPILE_FLAGS -fPIC
48 )
49
50 SET_TARGET_PROPERTIES(${TARGET_POPUP_WRT_RUNNER_LIB} PROPERTIES
51     SOVERSION ${CMAKE_PROJECT_API_VERSION}
52     VERSION ${CMAKE_PROJECT_VERSION}
53 )
54
55 target_link_libraries(${TARGET_POPUP_WRT_RUNNER_LIB}
56     ${WRT_POPUP_RUNNER_LIB_DEP_LIBRARIES}
57     ${WRT_POPUP_RUNNER_LIB_DEP_LDFLAGS}
58 )
59
60 INSTALL(TARGETS ${TARGET_POPUP_WRT_RUNNER_LIB}
61     DESTINATION lib
62 )
63
64 INSTALL(FILES ${WRT_POPUP_RUNNER_LIB_SRC_DIR}/PopupInvoker.h
65     DESTINATION ${DESTINATION_HEADERS_WRT_POPUP_RUNNER}
66 )