ad6e040cc3b7dca9e8c2626b7639ea3cdc598f13
[framework/web/wrt-plugins-common.git] / src / modules / packages / Contact / 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_CONTACT_PATH}/${HEADER_FILE}
17         DESTINATION ${DESTINATION_HEADER_PREFIX}/Contact)
18 endmacro()
19
20 set(TARGET_NAME ${TARGET_MODULE_CONTACT})
21
22 include_directories(
23     ${INCLUDES_PLATFORM_IMPLEMENTATION_CONTACT}
24 )
25
26 set(SRCS
27   ${SRCS_API_CONTACT}
28   ${SRCS_PLATFORM_IMPLEMENTATION_CONTACT}
29 )
30
31 add_library(${TARGET_NAME} SHARED ${SRCS})
32 target_link_libraries(${TARGET_NAME}
33    ${LIBS_COMMONS}
34    ${TARGET_COMMONS}
35    ${LIBS_PLATFORM_IMPLEMENTATION_CONTACT}
36 )
37 set_target_properties(${TARGET_NAME} PROPERTIES SOVERSION ${CMAKE_PACKAGE_VERSION})
38
39 INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION
40     ${DESTINATION_LIB_PREFIX})
41
42 install_header_file(ContactAddress.h)
43 install_header_file(ContactEmail.h)
44 install_header_file(ContactFactory.h)
45 install_header_file(ContactFilter.h)
46 install_header_file(Contact.h)
47 install_header_file(ContactPhoneNumber.h)
48 install_header_file(EventAddContact.h)
49 install_header_file(EventAddGroup.h)
50 install_header_file(EventDeleteContact.h)
51 install_header_file(EventDeleteGroup.h)
52 install_header_file(EventExportVCard.h)
53 install_header_file(EventFindContacts.h)
54 install_header_file(EventFindGroup.h)
55 install_header_file(EventGetAddressBookItemCount.h)
56 install_header_file(EventGetAddressBooks.h)
57 install_header_file(EventGetOwnerInfo.h)
58 install_header_file(EventUpdateContact.h)
59 install_header_file(IAddressBook.h)
60 install_header_file(IContactEventPrivateData.h)
61 install_header_file(IContactManager.h)