a959037d47e7811ea0d15276386cb8e74a80dfb5
[platform/framework/web/wrt-plugins-common.git] / src / modules / packages / Messaging / CMakeLists.txt
1 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
2 #
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
6 #
7 #        http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14 #
15 macro(install_header_file HEADER_FILE)
16     INSTALL(FILES ${API_MESSAGING_PATH}/${HEADER_FILE}
17         DESTINATION ${DESTINATION_HEADER_PREFIX}/Messaging)
18 endmacro()
19
20 set(TARGET_NAME ${TARGET_MODULE_MESSAGING})
21
22 include_directories(${INCLUDES_MESSAGING_DIRECTORIES})
23
24 set(SRCS
25   ${SRCS_API_MESSAGING}
26   ${SRCS_IMPLEMENTATION_MESSAGING}
27 )
28
29 add_library(${TARGET_NAME} SHARED ${SRCS})
30
31 target_link_libraries(${TARGET_NAME}
32    ${LIBS_COMMONS}
33    ${LIBS_IMPLEMENTATION_MESSAGING}
34    ${TARGET_COMMONS}
35 )
36 set_target_properties(${TARGET_NAME} PROPERTIES SOVERSION ${CMAKE_PACKAGE_VERSION})
37
38 INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION
39     ${DESTINATION_LIB_PREFIX})
40
41 install_header_file(AttachmentFactory.h)
42 install_header_file(Attachments.h)
43 install_header_file(BccRecipient.h)
44 install_header_file(Body.h)
45 install_header_file(CallbackNumber.h)
46 install_header_file(CcRecipient.h)
47 install_header_file(EmailAccountInfo.h)
48 install_header_file(EmitterMessageReceived.h)
49 install_header_file(EventDeleteMessage.h)
50 install_header_file(EventFindMessage.h)
51 install_header_file(EventMessageReceived.h)
52 install_header_file(EventOnSendingFailed.h)
53 install_header_file(EventSendMessage.h)
54 install_header_file(EventUpdateMessage.h)
55 install_header_file(From.h)
56 install_header_file(IAttachment.h)
57 install_header_file(IBinarySms.h)
58 install_header_file(IEmailAccount.h)
59 install_header_file(IEmail.h)
60 install_header_file(IMessage.h)
61 install_header_file(IMessaging.h)
62 install_header_file(IMessagingTypes.h)
63 install_header_file(IMms.h)
64 install_header_file(IMmsSlide.h)
65 install_header_file(IMmsSlideProperties.h)
66 install_header_file(IMmsSlides.h)
67 install_header_file(ISms.h)
68 install_header_file(MessageEventPrivateData.h)
69 install_header_file(MessageFactory.h)
70 install_header_file(MessageFilter.h)
71 install_header_file(MessagePriority.h)
72 install_header_file(MmsSlide.h)
73 install_header_file(MmsSlideProperty.h)
74 install_header_file(MmsSlides.h)
75 install_header_file(Recipient.h)
76 install_header_file(ReqReceiverMessage.h)
77 install_header_file(SourceAddress.h)
78 install_header_file(Subject.h)
79 install_header_file(ToRecipient.h)
80 install_header_file(ValidityPeriodHours.h)
81 install_header_file(VirtualMessage.h)