Initialize Tizen 2.3
[framework/web/wrt-plugins-common.git] / src_mobile / modules / packages / PluginManager / 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 # @version  1.0
19 #
20
21 macro(install_header_file HEADER_FILE)
22     INSTALL(FILES ${API_PLUGIN_MANAGER_PATH}/${HEADER_FILE}
23         DESTINATION ${DESTINATION_HEADER_PREFIX}/PluginManager)
24 endmacro()
25
26 set(TARGET_NAME ${TARGET_MODULE_PLUGIN_MANAGER})
27
28 pkg_search_module(webkit2 REQUIRED ewebkit2)
29
30 include_directories(
31     ${INCLUDES_PLATFORM_IMPLEMENTATION_PLUGIN_MANAGER}
32     ${webkit2_INCLUDE_DIRS}}
33 )
34
35 set(SRCS
36   ${SRCS_API_PLUGIN_MANAGER}
37   ${SRCS_PLATFORM_IMPLEMENTATION_PLUGIN_MANAGER}
38 )
39
40 add_library(${TARGET_NAME} SHARED ${SRCS})
41 target_link_libraries(${TARGET_NAME}
42    ${LIBS_COMMONS}
43    ${TARGET_PLUGIN_LOADING_LIB}
44    ${TARGET_COMMONS}
45    ${TARGET_COMMONS_JAVASCRIPT}
46    ${LIBS_PLATFORM_IMPLEMENTATION_PLUGIN_MANAGER}
47 )
48
49 set_target_properties(${TARGET_NAME} PROPERTIES
50  SOVERSION ${CMAKE_PROJECT_API_VERSION}
51  VERSION ${CMAKE_PROJECT_VERSION}
52 )
53
54 INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION
55     ${DESTINATION_LIB_PREFIX})
56
57 install_header_file(PluginManagerFactory.h)
58 install_header_file(IPluginManager.h)