Modifying code according to coding idioms
[framework/osp/social.git] / CMakeLists.txt
old mode 100644 (file)
new mode 100755 (executable)
index 7c0e79d..a8593f6
@@ -1,11 +1,15 @@
 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
@@ -16,11 +20,13 @@ INCLUDE_DIRECTORIES(
        /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
        )
@@ -39,6 +45,8 @@ SET (${this_target}_SOURCE_FILES
        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
@@ -58,6 +66,7 @@ SET (${this_target}_SOURCE_FILES
        src/FSclCalendarbook.cpp
        src/FScl_CalendarbookImpl.cpp
        src/FSclReminder.cpp
+       src/FScl_ReminderImpl.cpp
        src/FSclCalTodo.cpp
        src/FScl_CalTodoImpl.cpp
        src/FSclCalEvent.cpp
@@ -97,6 +106,21 @@ SET (${this_target}_SOURCE_FILES
        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" )
@@ -120,6 +144,7 @@ TARGET_LINK_LIBRARIES(${this_target} "-losp-uifw" )
 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} 
@@ -151,6 +176,13 @@ INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/debug/ DESTINATION lib/osp/debug
 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)