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.
16 macro(install_header_file HEADER_FILE)
17 INSTALL(FILES ${API_WIDGET_INTERFACE_PATH}/${HEADER_FILE}
18 DESTINATION ${DESTINATION_HEADER_PREFIX}/WidgetInterface)
21 pkg_search_module(dpl-wrt-dao-ro REQUIRED dpl-wrt-dao-ro)
22 pkg_search_module(wrt-commons-widget-interface-dao REQUIRED wrt-commons-widget-interface-dao)
25 ${WIDGET_INTERFACE_INCLUDE_DIRS}
26 ${dpl-wrt-dao-ro_INCLUDE_DIRS}
27 ${wrt-commons-widget-interface-dao_INCLUDE_DIRS})
29 set(TARGET_NAME ${TARGET_MODULE_WIDGET_INTERFACE})
32 ${SRCS_WIDGET_INTERFACE}
35 add_library(${TARGET_NAME} SHARED ${SRCS})
37 target_link_libraries(${TARGET_NAME}
39 ${dpl-wrt-dao-ro_LIBRARIES}
40 ${wrt-commons-widget-interface-dao_LIBRARIES}
42 set_target_properties(${TARGET_NAME} PROPERTIES
43 SOVERSION ${CMAKE_PROJECT_API_VERSION}
44 VERSION ${CMAKE_PROJECT_VERSION}
47 INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION
48 ${DESTINATION_LIB_PREFIX})
50 install_header_file(WidgetInterface.h)