CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+SET(CMAKE_INSTALL_PREFIX /usr)
+SET(PREFIX ${CMAKE_INSTALL_PREFIX})
+
SET (this_target osp-social)
SET(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/cmake_build_tmp/output)
#INCLUDE(FindPkgConfig)
#pkg_check_modules(pkgs REQUIRED calendar-service2)
+#pkg_check_modules(pkgs REQUIRED accounts-svc)
INCLUDE_DIRECTORIES(
inc
/usr/lib/glib-2.0/include
/usr/include/db-util
/usr/include/social
+ /usr/include/accounts-svc
/usr/include/contacts-svc
/usr/include/osp
/usr/include/osp/app
/usr/include/osp/base
/usr/include/osp/media
+ /usr/include/osp/io
/usr/include/osp/security
/usr/include/calendar-service2
)
src/FScl_CategoryImpl.cpp
src/FSclContact.cpp
src/FScl_ContactImpl.cpp
+ src/FSclContactAppLaunchData.cpp
+ src/FScl_ContactAppLaunchDataImpl.cpp
src/FSclContactEvent.cpp
src/FScl_ContactEventImpl.cpp
src/FSclEmail.cpp
src/FSclCalendarbook.cpp
src/FScl_CalendarbookImpl.cpp
src/FSclReminder.cpp
+ src/FScl_ReminderImpl.cpp
src/FSclCalTodo.cpp
src/FScl_CalTodoImpl.cpp
src/FSclCalEvent.cpp
src/FScl_ContactDbMonitor.cpp
src/FScl_ContactDbChangeEvent.cpp
src/FScl_ContactDbChangeEventArg.cpp
+ src/FSclAccount.cpp
+ src/FScl_AccountImpl.cpp
+ src/FSclAccountAccessor.cpp
+ src/FScl_AccountAccessorImpl.cpp
+ src/FSclAccountManager.cpp
+ src/FScl_AccountManagerImpl.cpp
+ src/FSclAccountProvider.cpp
+ src/FScl_AccountProviderImpl.cpp
+ src/FScl_AccountManagerUtil.cpp
+ src/FScl_AccountDbChangeEvent.cpp
+ src/FScl_AccountDbChangeEventArg.cpp
+ src/FScl_AccountDbConnector.cpp
+ src/FScl_AccountDbMonitor.cpp
+ src/FSclUserProfile.cpp
+ src/FScl_UserProfileImpl.cpp
)
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -Wall" )
TARGET_LINK_LIBRARIES(${this_target} "-lglib-2.0" )
TARGET_LINK_LIBRARIES(${this_target} "-lcalendar-service2" )
TARGET_LINK_LIBRARIES(${this_target} "-lcontacts-service2" )
+TARGET_LINK_LIBRARIES(${this_target} "-laccounts-svc" )
TARGET_LINK_LIBRARIES(${this_target} "-lpthread" )
SET_TARGET_PROPERTIES(${this_target}
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/inc/ DESTINATION include/osp FILES_MATCHING PATTERN "*.h")
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/inc/ DESTINATION include/osp/social FILES_MATCHING PATTERN "*.h")
+SET(PC_NAME ${this_target})
+SET(PC_REQUIRED ${pc_requires})
+SET(PC_LDFLAGS -l${this_target})
+
# pkgconfig file
CONFIGURE_FILE(${this_target}.pc.in ${CMAKE_SOURCE_DIR}/${this_target}.pc @ONLY)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/${this_target}.pc DESTINATION lib/pkgconfig)
+
+# INCLUDE FOR BUILD & INSTALL PACKAGE MANAGER .SO
+ADD_SUBDIRECTORY(pkgmgr_account)