1 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 # @file CMakeLists.txt
17 # @author Tae-Jeong Lee (taejeong.lee@samsung.com)
21 pkg_search_module(webkit2 REQUIRED ewebkit2)
22 pkg_search_module(dpl REQUIRED dpl-efl)
24 SET(TARGET_NAME wrt-dispatch-event)
27 ${CMAKE_CURRENT_SOURCE_DIR}/dispatch_event_support.cpp
31 ${CMAKE_CURRENT_SOURCE_DIR}
32 ${webkit2_INCLUDE_DIRS}
36 ADD_LIBRARY(${TARGET_NAME} SHARED ${SRCS})
38 TARGET_LINK_LIBRARIES(${TARGET_NAME}
43 SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
45 LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both"
48 SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
49 SOVERSION ${CMAKE_PROJECT_API_VERSION}
50 VERSION ${CMAKE_PROJECT_VERSION}
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
59 INSTALL(FILES dispatch_event_support.h DESTINATION include/wrt-dispatch-event)