Initialize Tizen 2.3
[framework/web/wrt-plugins-common.git] / src_mobile / dispatch-event / 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   Tae-Jeong Lee (taejeong.lee@samsung.com)
18 # @version  1.0
19 #
20
21 pkg_search_module(webkit2 REQUIRED ewebkit2)
22 pkg_search_module(dpl REQUIRED dpl-efl)
23
24 SET(TARGET_NAME wrt-dispatch-event)
25
26 SET(SRCS
27     ${CMAKE_CURRENT_SOURCE_DIR}/dispatch_event_support.cpp
28 )
29
30 INCLUDE_DIRECTORIES(
31     ${CMAKE_CURRENT_SOURCE_DIR}
32     ${webkit2_INCLUDE_DIRS}
33     ${dpl_INCLUDE_DIRS}
34 )
35
36 ADD_LIBRARY(${TARGET_NAME} SHARED ${SRCS})
37
38 TARGET_LINK_LIBRARIES(${TARGET_NAME}
39     ${webkit2_LIBRARIES}
40     ${dpl_LIBRARIES}
41 )
42
43 SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
44     COMPILE_FLAGS -fPIC
45     LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both"
46 )
47
48 SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
49     SOVERSION ${CMAKE_PROJECT_API_VERSION}
50     VERSION ${CMAKE_PROJECT_VERSION}
51 )
52
53 INSTALL(TARGETS ${TARGET_NAME}
54     DESTINATION ${DESTINATION_LIB_PREFIX}
55     PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
56     GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
57 )
58
59 INSTALL(FILES dispatch_event_support.h DESTINATION include/wrt-dispatch-event)