# 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_CALENDAR_PATH}/${HEADER_FILE} DESTINATION ${DESTINATION_HEADER_PREFIX}/Calendar) endmacro() set(TARGET_NAME ${TARGET_MODULE_CALENDAR}) include_directories( ${INCLUDES_PLATFORM_IMPLEMENTATION_CALENDAR} ) set(SRCS ${SRCS_API_CALENDAR} ${SRCS_PLATFORM_IMPLEMENTATION_CALENDAR} ) add_library(${TARGET_NAME} SHARED ${SRCS}) target_link_libraries(${TARGET_NAME} ${LIBS_COMMONS} ${TARGET_COMMONS} ${LIBS_PLATFORM_IMPLEMENTATION_CALENDAR} ) set_target_properties(${TARGET_NAME} PROPERTIES SOVERSION ${CMAKE_PACKAGE_VERSION}) INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION ${DESTINATION_LIB_PREFIX}) install_header_file(ICalendar.h) install_header_file(ICalendarManager.h) install_header_file(CalendarEvent.h) install_header_file(CalendarFactory.h) install_header_file(EventAddEvent.h) install_header_file(EventCreateEvent.h) install_header_file(EventDeleteEvent.h) install_header_file(EventFilter.h) install_header_file(EventFindEvents.h) install_header_file(EventGetCalendars.h) install_header_file(EventUpdateEvent.h)