Initialize Tizen 2.3
[framework/web/wrt-plugins-common.git] / src_wearable / plugins-ipc-message / 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   Jihoon Chung (jihoon.chung@samsung.com)
18 # @version  1.0
19 #
20
21 pkg_search_module(dpl REQUIRED dpl-efl)
22 pkg_search_module(webkit2 REQUIRED ewebkit2)
23
24 set(PLUGINS_IPC_MESSAGE_SOURCES
25     ${PLUGINS_IPC_MESSAGE_DIRS}/ipc_message_support.cpp
26 )
27
28 INCLUDE_DIRECTORIES(
29     ${PLUGINS_IPC_MESSAGE_DIRS}
30     ${webkit2_INCLUDE_DIRS}
31 )
32
33 ADD_LIBRARY(${TARGET_PLUGINS_IPC_MESSAGE_LIB} SHARED
34     ${PLUGINS_IPC_MESSAGE_SOURCES}
35 )
36
37 SET_TARGET_PROPERTIES(${TARGET_PLUGINS_IPC_MESSAGE_LIB} PROPERTIES
38     COMPILE_FLAGS -fPIC
39     LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both"
40 )
41
42 SET_TARGET_PROPERTIES(${TARGET_PLUGINS_IPC_MESSAGE_LIB} PROPERTIES
43     SOVERSION ${CMAKE_PROJECT_API_VERSION}
44     VERSION ${CMAKE_PROJECT_VERSION}
45 )
46
47 target_link_libraries(${TARGET_PLUGINS_IPC_MESSAGE_LIB}
48     ${dpl_LIBRARIES}
49     ${webkit2_LIBRARIES}
50 )
51
52 INSTALL(TARGETS ${TARGET_PLUGINS_IPC_MESSAGE_LIB}
53     DESTINATION lib
54     PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
55     GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
56 )
57
58 INSTALL(FILES
59     ipc_message_support.h
60     DESTINATION include/plugins-ipc-message)