1 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
2 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/client)
3 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/common)
4 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/common/ipc)
7 SET(CLIENT contacts-service2)
10 ctsvc_client_activity.c
14 ctsvc_client_phonelog.c
15 ctsvc_client_service.c
18 ctsvc_client_setting.c
21 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_marshal.c
22 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_addressbook.c
23 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_contact.c
24 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_my_profile.c
25 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_group.c
26 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_person.c
27 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_phonelog.c
28 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_result.c
29 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_sdn.c
30 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_simple_contact.c
31 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_speeddial.c
32 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_result.c
33 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_updated_info.c
35 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_activity.c
36 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_activity_photo.c
37 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_address.c
38 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_company.c
39 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_email.c
40 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_event.c
41 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_grouprelation.c
42 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_messenger.c
43 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_name.c
44 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_nickname.c
45 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_note.c
46 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_number.c
47 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_relationship.c
48 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_image.c
49 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_url.c
50 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_extension.c
51 ${CMAKE_SOURCE_DIR}/common/ipc/ctsvc_ipc_profile.c
53 ${CMAKE_SOURCE_DIR}/common/ctsvc_db_notification.c
54 ${CMAKE_SOURCE_DIR}/common/ctsvc_filter.c
55 ${CMAKE_SOURCE_DIR}/common/ctsvc_inotify.c
56 ${CMAKE_SOURCE_DIR}/common/ctsvc_list.c
57 ${CMAKE_SOURCE_DIR}/common/ctsvc_localize.c
58 ${CMAKE_SOURCE_DIR}/common/ctsvc_localize_ch.c
59 ${CMAKE_SOURCE_DIR}/common/ctsvc_normalize.c
60 ${CMAKE_SOURCE_DIR}/common/ctsvc_mutex.c
61 ${CMAKE_SOURCE_DIR}/common/ctsvc_query.c
62 ${CMAKE_SOURCE_DIR}/common/ctsvc_record.c
63 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_addressbook.c
64 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_contact.c
65 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_my_profile.c
66 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_group.c
67 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_person.c
68 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_phonelog.c
69 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_result.c
70 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_sdn.c
71 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_speeddial.c
72 ${CMAKE_SOURCE_DIR}/common/ctsvc_record_updated_info.c
73 ${CMAKE_SOURCE_DIR}/common/ctsvc_sim.c
74 ${CMAKE_SOURCE_DIR}/common/ctsvc_socket.c
75 ${CMAKE_SOURCE_DIR}/common/ctsvc_vcard.c
76 ${CMAKE_SOURCE_DIR}/common/ctsvc_view.c
79 INCLUDE(FindPkgConfig)
80 pkg_check_modules(client_pkgs REQUIRED pims-ipc gobject-2.0)
82 FOREACH(flag ${client_pkgs_CFLAGS})
83 SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
86 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC")
88 CONFIGURE_FILE(${CLIENT}.pc.in ${CLIENT}.pc @ONLY)
90 ADD_DEFINITIONS("-D_CONTACTS_IPC_CLIENT")
92 ADD_LIBRARY(${CLIENT} SHARED ${SRCS})
93 SET_TARGET_PROPERTIES(${CLIENT} PROPERTIES SOVERSION ${VERSION_MAJOR})
94 SET_TARGET_PROPERTIES(${CLIENT} PROPERTIES VERSION ${VERSION})
95 TARGET_LINK_LIBRARIES(${CLIENT} ${client_pkgs_LDFLAGS} ${pkgs_LDFLAGS} -lpthread)
97 INSTALL(TARGETS ${CLIENT} DESTINATION ${LIB_INSTALL_DIR})
98 INSTALL(FILES ${CLIENT}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)