tizen 2.4 release
[framework/web/wrt-plugins-common.git] / src / modules / packages / Widget / 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
17 MACRO(install_header_file HEADER_FILE)
18     INSTALL(FILES ${API_WIDGET_PATH}/${HEADER_FILE}
19         DESTINATION ${DESTINATION_HEADER_PREFIX}/Widget)
20 ENDMACRO()
21
22 SET(TARGET_NAME ${TARGET_MODULE_WIDGET})
23
24 SET(SRCS
25     ${SRCS_API_WIDGET}
26     ${SRCS_IMPLEMENTATION_WIDGET}
27 )
28
29 ADD_LIBRARY(${TARGET_NAME} SHARED ${SRCS})
30
31 TARGET_LINK_LIBRARIES(${TARGET_NAME}
32    ${LIBS_COMMONS}
33    ${TARGET_COMMONS}
34    ${TARGET_MODULE_WIDGETDB}
35 )
36
37 SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES 
38  SOVERSION ${CMAKE_PROJECT_API_VERSION}
39  VERSION ${CMAKE_PROJECT_VERSION}
40  COMPILE_DEFINITIONS LOG_TAG="${LOG_TAG}"
41 )
42
43 INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION
44     ${DESTINATION_LIB_PREFIX})
45
46 INSTALL_HEADER_FILE(IWidget.h)
47 INSTALL_HEADER_FILE(WidgetFactory.h)