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.
15 macro(install_header_file HEADER_FILE)
16 INSTALL(FILES ${API_TASK_PATH}/${HEADER_FILE}
17 DESTINATION ${DESTINATION_HEADER_PREFIX}/Task)
20 set(TARGET_NAME ${TARGET_MODULE_TASK})
23 ${INCLUDES_PLATFORM_IMPLEMENTATION_TASK}
28 ${SRCS_PLATFORM_IMPLEMENTATION_TASK}
31 add_library(${TARGET_NAME} SHARED ${SRCS})
32 target_link_libraries(${TARGET_NAME}
35 ${LIBS_PLATFORM_IMPLEMENTATION_TASK}
37 set_target_properties(${TARGET_NAME} PROPERTIES SOVERSION ${CMAKE_PACKAGE_VERSION})
39 INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION
40 ${DESTINATION_LIB_PREFIX})
43 install_header_file(CalendarTask.h)
44 install_header_file(IEventAddTask.h)
45 install_header_file(IEventCreateTask.h)
46 install_header_file(IEventDeleteTask.h)
47 install_header_file(IEventFindTasks.h)
48 install_header_file(IEventGetTasks.h)
49 install_header_file(IEventUpdateTask.h)
50 install_header_file(ITask.h)
51 install_header_file(ITaskManager.h)
52 install_header_file(TaskFactory.h)
53 install_header_file(TaskFilter.h)