tizen beta release
[framework/web/wrt-plugins-common.git] / src / modules / packages / WidgetDB / CMakeLists.txt
1 #
2 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 #
4 #    Licensed under the Apache License, Version 2.0 (the "License");
5 #    you may not use this file except in compliance with the License.
6 #    You may obtain a copy of the License at
7 #
8 #        http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #    Unless required by applicable law or agreed to in writing, software
11 #    distributed under the License is distributed on an "AS IS" BASIS,
12 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #    See the License for the specific language governing permissions and
14 #    limitations under the License.
15 #
16 macro(install_header_file HEADER_FILE)
17     INSTALL(FILES ${API_WIDGETDB_PATH}/${HEADER_FILE}
18         DESTINATION ${DESTINATION_HEADER_PREFIX}/WidgetDB)
19 endmacro()
20
21 set(TARGET_NAME ${TARGET_MODULE_WIDGETDB})
22
23 include_directories(
24     ${INCLUDES_PLATFORM_IMPLEMENTATION_WIDGETDB}
25 )
26
27 set(SRCS
28   ${SRCS_API_WIDGETDB}
29   ${SRCS_PLATFORM_IMPLEMENTATION_WIDGETDB}
30 )
31
32 add_library(${TARGET_NAME} SHARED ${SRCS})
33
34 target_link_libraries(${TARGET_NAME}
35    ${LIBS_COMMONS}
36    ${TARGET_COMMONS}
37    ${LIBS_PLATFORM_IMPLEMENTATION_WIDGETDB}
38 )
39 set_target_properties(${TARGET_NAME} PROPERTIES SOVERSION ${CMAKE_PACKAGE_VERSION})
40
41 INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION
42     ${DESTINATION_LIB_PREFIX})
43
44 install_header_file(IWidgetDB.h)
45 install_header_file(IWidgetFeature.h)
46 install_header_file(WidgetDBMgr.h)
47