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.
17 MACRO(install_header_file HEADER_FILE)
18 INSTALL(FILES ${API_WIDGET_PATH}/${HEADER_FILE}
19 DESTINATION ${DESTINATION_HEADER_PREFIX}/Widget)
22 SET(TARGET_NAME ${TARGET_MODULE_WIDGET})
26 ${SRCS_IMPLEMENTATION_WIDGET}
29 ADD_LIBRARY(${TARGET_NAME} SHARED ${SRCS})
31 TARGET_LINK_LIBRARIES(${TARGET_NAME}
34 ${TARGET_MODULE_WIDGETDB}
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}"
43 INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION
44 ${DESTINATION_LIB_PREFIX})
46 INSTALL_HEADER_FILE(IWidget.h)
47 INSTALL_HEADER_FILE(WidgetFactory.h)