# Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # macro(install_header_file HEADER_FILE) INSTALL(FILES ${API_WIDGET_INTERFACE_PATH}/${HEADER_FILE} DESTINATION ${DESTINATION_HEADER_PREFIX}/WidgetInterfaceDAO) endmacro() pkg_search_module(dpl-wrt-dao-ro REQUIRED dpl-wrt-dao-ro) pkg_search_module(dpl-db REQUIRED dpl-db-efl) include_directories( ${WIDGET_INTERFACE_INCLUDE_DIRS} ${dpl-wrt-dao-ro_INCLUDE_DIRS} ${dpl-db_INCLUDE_DIRS}) set(TARGET_NAME ${TARGET_MODULE_WIDGET_INTERFACE_DAO}) set(SRCS ${SRCS_WIDGET_INTERFACE_DAO} ) add_library(${TARGET_NAME} SHARED ${SRCS}) target_link_libraries(${TARGET_NAME} ${LIBS_COMMONS} ${dpl-db_LIBRARIES} ${dpl-wrt-dao-ro_LIBRARIES} ) set_target_properties(${TARGET_NAME} PROPERTIES SOVERSION ${CMAKE_PROJECT_API_VERSION} VERSION ${CMAKE_PROJECT_VERSION} ) INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION ${DESTINATION_LIB_PREFIX}) install_header_file(WidgetInterfaceDAO.h)