summaryrefslogtreecommitdiff
path: root/CMake/modules
diff options
context:
space:
mode:
authorIgor Olshevskyi <i.olshevskyi@samsung.com>2015-10-30 13:45:06 +0200
committerIgor Olshevskyi <i.olshevskyi@samsung.com>2015-10-30 13:52:59 +0200
commitf12e9a6ffeecf60e99b888e2e3f82f0edbe869ee (patch)
tree99470704e26921ca390396118ca65e29b719e03d /CMake/modules
parentc0438c4fcd13d4ca184c4c566367302288c6aeae (diff)
downloademail-accepted/tizen_mobile.tar.gz
email-accepted/tizen_mobile.tar.bz2
email-accepted/tizen_mobile.zip
Change-Id: I72eb14ab1c8f774b01fbbaa661639aaff84d4932
Diffstat (limited to 'CMake/modules')
-rw-r--r--CMake/modules/CMakeLists.txt8
-rw-r--r--CMake/modules/email-account-module/CMakeLists.txt42
-rw-r--r--CMake/modules/email-composer-module/CMakeLists.txt71
-rw-r--r--CMake/modules/email-filter-module/CMakeLists.txt48
-rw-r--r--CMake/modules/email-mailbox-module/CMakeLists.txt52
-rw-r--r--CMake/modules/email-setting-module/CMakeLists.txt54
-rw-r--r--CMake/modules/email-viewer-module/CMakeLists.txt63
7 files changed, 338 insertions, 0 deletions
diff --git a/CMake/modules/CMakeLists.txt b/CMake/modules/CMakeLists.txt
new file mode 100644
index 0000000..903f746
--- /dev/null
+++ b/CMake/modules/CMakeLists.txt
@@ -0,0 +1,8 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+
+ADD_SUBDIRECTORY(email-mailbox-module)
+ADD_SUBDIRECTORY(email-viewer-module)
+ADD_SUBDIRECTORY(email-composer-module)
+ADD_SUBDIRECTORY(email-account-module)
+ADD_SUBDIRECTORY(email-setting-module)
+ADD_SUBDIRECTORY(email-filter-module) \ No newline at end of file
diff --git a/CMake/modules/email-account-module/CMakeLists.txt b/CMake/modules/email-account-module/CMakeLists.txt
new file mode 100644
index 0000000..ce122db
--- /dev/null
+++ b/CMake/modules/email-account-module/CMakeLists.txt
@@ -0,0 +1,42 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+PROJECT(email-account-module C)
+
+SET(CURRENT_SOURCE_DIR "${PROJECT_MODULES_DIR}/account")
+
+SET(SRCS
+ ${CURRENT_SOURCE_DIR}/src/email-account.c
+ ${CURRENT_SOURCE_DIR}/src/email-account-folder.c
+ ${CURRENT_SOURCE_DIR}/src/email-account-folder-move.c
+ ${CURRENT_SOURCE_DIR}/src/email-account-util.c
+ ${CURRENT_SOURCE_DIR}/src/email-account-list-view.c
+)
+
+INCLUDE_DIRECTORIES(${CURRENT_SOURCE_DIR}/inc)
+
+SET(email-required-pkgs REQUIRED elementary email-service bundle dlog capi-appfw-application contacts-service2 notification
+ efl-extension gio-2.0 capi-system-system-settings)
+
+pkg_check_modules(pkgs-account REQUIRED "${email-required-pkgs}")
+
+FOREACH(flag ${pkgs-account_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+
+ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS})
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} email-common ${pkgs-account_LDFLAGS})
+INSTALL(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${LIBDIR})
+
+ADD_CUSTOM_COMMAND(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/email-account.edj
+ COMMAND edje_cc -no-save -id ${PROJECT_EDC_IMAGES_DIR} ${EDJE_CC_DEFINITIONS}
+ ${PROJECT_EDC_DIR}/account/email-account.edc ${CMAKE_CURRENT_BINARY_DIR}/email-account.edj
+ DEPENDS ${PROJECT_EDC_DIR}/account/email-account.edc
+ ${PROJECT_EDC_DIR}/account/email-account-base-layout.edc
+ ${PROJECT_EDC_DIR}/common/email-parts.edc
+ ${PROJECT_EDC_DIR}/common/email-templates.edc
+)
+ADD_CUSTOM_TARGET(email-account.edj ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/email-account.edj)
+
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/email-account.edj DESTINATION ${EDJDIR})
diff --git a/CMake/modules/email-composer-module/CMakeLists.txt b/CMake/modules/email-composer-module/CMakeLists.txt
new file mode 100644
index 0000000..9b3aa7a
--- /dev/null
+++ b/CMake/modules/email-composer-module/CMakeLists.txt
@@ -0,0 +1,71 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+PROJECT(email-composer-module C)
+
+SET(CURRENT_SOURCE_DIR "${PROJECT_MODULES_DIR}/composer")
+
+SET(SRCS
+ ${CURRENT_SOURCE_DIR}/src/email-composer-webkit.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer-more-menu.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer-predictive-search.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer-launcher.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer-attachment.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer-attachment-resize-image.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer-attachment-ui.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer-recipient.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer-recipient-callback.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer-initial-view.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer-initial-data.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer-subject.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer-send-mail.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer-util.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer-util-image.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer-util-popup.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer-util-recipient.c
+ ${CURRENT_SOURCE_DIR}/src/email-composer-rich-text-toolbar.c
+)
+
+INCLUDE_DIRECTORIES(${CURRENT_SOURCE_DIR}/inc)
+
+SET(email-required-pkgs ecore glib-2.0 gobject-2.0 gio-2.0 elementary capi-appfw-application
+ capi-media-metadata-extractor capi-media-image-util notification evas dlog email-service contacts-service2
+ libexif chromium-efl bundle efl-extension capi-system-system-settings
+ capi-network-connection capi-network-wifi libpng storage capi-content-media-content capi-appfw-app-manager)
+
+pkg_check_modules(pkgs-composer REQUIRED "${email-required-pkgs}")
+
+FOREACH(flag ${pkgs-composer_CFLAGS})
+ SET(EXTRA_FLAGS "${EXTRA_FLAGS} ${flag}")
+ENDFOREACH(flag)
+
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_FLAGS}")
+#SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,nodelete")
+
+ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS})
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} email-common rt ${pkgs-composer_LDFLAGS})
+INSTALL(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${LIBDIR})
+
+ADD_CUSTOM_COMMAND(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/email-composer-view.edj
+ COMMAND edje_cc -no-save -id ${PROJECT_EDC_IMAGES_DIR} ${EDJE_CC_DEFINITIONS}
+ ${PROJECT_EDC_DIR}/composer/email-composer-view.edc ${CMAKE_CURRENT_BINARY_DIR}/email-composer-view.edj
+ DEPENDS ${PROJECT_EDC_DIR}/composer/email-composer-view.edc
+ ${PROJECT_EDC_DIR}/composer/email-composer-edc-common.edc
+ ${PROJECT_EDC_DIR}/composer/email-composer-layouts.edc
+ ${PROJECT_EDC_DIR}/composer/email-composer-attachment.edc
+ ${PROJECT_EDC_DIR}/composer/email-composer-popup.edc
+ ${PROJECT_EDC_DIR}/composer/email-composer-predictive-search.edc
+ ${PROJECT_EDC_DIR}/composer/email-composer-recipients.edc
+ ${PROJECT_EDC_DIR}/composer/email-composer-scroller.edc
+ ${PROJECT_EDC_DIR}/composer/email-composer-subject.edc
+ ${PROJECT_EDC_DIR}/common/email-colors.edc
+ ${PROJECT_EDC_DIR}/common/email-parts.edc
+ ${PROJECT_EDC_DIR}/composer/email-composer-rich-text.edc
+ ${PROJECT_EDC_DIR}/composer/email-composer-edc-define.h
+ ${PROJECT_EDC_DIR}/composer/email-composer-toolbar-buttons_defines.edc
+)
+ADD_CUSTOM_TARGET(email-composer-view.edj ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/email-composer-view.edj)
+
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/email-composer-view.edj DESTINATION ${EDJDIR})
+INSTALL(FILES ${PROJECT_MISC_DIR}/email-composer.js DESTINATION ${MISCDIR})
+INSTALL(FILES ${PROJECT_MISC_DIR}/email-composer.css DESTINATION ${MISCDIR})
diff --git a/CMake/modules/email-filter-module/CMakeLists.txt b/CMake/modules/email-filter-module/CMakeLists.txt
new file mode 100644
index 0000000..5674188
--- /dev/null
+++ b/CMake/modules/email-filter-module/CMakeLists.txt
@@ -0,0 +1,48 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+PROJECT(email-filter-module C)
+
+SET(CURRENT_SOURCE_DIR "${PROJECT_MODULES_DIR}/filter")
+
+SET(SRCS
+ ${CURRENT_SOURCE_DIR}/src/email-filter.c
+ ${CURRENT_SOURCE_DIR}/src/email-filter-list-view.c
+ ${CURRENT_SOURCE_DIR}/src/email-filter-add-view.c
+ ${CURRENT_SOURCE_DIR}/src/email-filter-edit-view.c
+ ${CURRENT_SOURCE_DIR}/src/email-filter-delete-view.c
+)
+
+INCLUDE_DIRECTORIES(${CURRENT_SOURCE_DIR}/inc)
+
+pkg_check_modules(pkgs-filter REQUIRED
+ ecore
+ glib-2.0
+ gobject-2.0
+ email-service
+ dlog
+ elementary
+ capi-appfw-application
+ notification
+ contacts-service2
+ efl-extension
+ capi-system-system-settings
+)
+
+FOREACH(flag ${pkgs-filter_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+
+ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS})
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} email-common ${pkgs-filter_LDFLAGS})
+INSTALL(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${LIBDIR})
+
+ADD_CUSTOM_COMMAND(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/email-filter.edj
+ COMMAND edje_cc -no-save -id ${PROJECT_EDC_IMAGES_DIR} ${EDJE_CC_DEFINITIONS}
+ ${PROJECT_EDC_DIR}/filter/email-filter.edc ${CMAKE_CURRENT_BINARY_DIR}/email-filter.edj
+ DEPENDS ${PROJECT_EDC_DIR}/filter/email-filter.edc
+ ${PROJECT_EDC_DIR}/filter/email-filter-address-edit-view.edc)
+
+ADD_CUSTOM_TARGET(email-filter.edj ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/email-filter.edj)
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/email-filter.edj DESTINATION ${EDJDIR})
diff --git a/CMake/modules/email-mailbox-module/CMakeLists.txt b/CMake/modules/email-mailbox-module/CMakeLists.txt
new file mode 100644
index 0000000..e29cef3
--- /dev/null
+++ b/CMake/modules/email-mailbox-module/CMakeLists.txt
@@ -0,0 +1,52 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+PROJECT(email-mailbox-module C)
+
+SET(CURRENT_SOURCE_DIR "${PROJECT_MODULES_DIR}/mailbox")
+
+SET(SRCS
+ ${CURRENT_SOURCE_DIR}/src/email-mailbox.c
+ ${CURRENT_SOURCE_DIR}/src/email-mailbox-item.c
+ ${CURRENT_SOURCE_DIR}/src/email-mailbox-list.c
+ ${CURRENT_SOURCE_DIR}/src/email-mailbox-list-other-items.c
+ ${CURRENT_SOURCE_DIR}/src/email-mailbox-more-menu.c
+ ${CURRENT_SOURCE_DIR}/src/email-mailbox-noti-mgr.c
+ ${CURRENT_SOURCE_DIR}/src/email-mailbox-request.c
+ ${CURRENT_SOURCE_DIR}/src/email-mailbox-search.c
+ ${CURRENT_SOURCE_DIR}/src/email-mailbox-sync.c
+ ${CURRENT_SOURCE_DIR}/src/email-mailbox-title.c
+ ${CURRENT_SOURCE_DIR}/src/email-mailbox-toolbar.c
+ ${CURRENT_SOURCE_DIR}/src/email-mailbox-ug-util.c
+ ${CURRENT_SOURCE_DIR}/src/email-mailbox-util.c
+)
+
+INCLUDE_DIRECTORIES(${CURRENT_SOURCE_DIR}/inc)
+
+SET(email-required-pkgs elementary email-service glib-2.0 gio-2.0 bundle dlog capi-base-utils-i18n
+ capi-appfw-application contacts-service2 calendar-service2 notification capi-system-system-settings efl-extension)
+
+pkg_check_modules(pkgs-mailbox REQUIRED "${email-required-pkgs}")
+
+FOREACH(flag ${pkgs-mailbox_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+
+ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS})
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} email-common ${pkgs-mailbox_LDFLAGS})
+INSTALL(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${LIBDIR})
+
+ADD_CUSTOM_COMMAND(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/email-mailbox.edj
+ COMMAND edje_cc -no-save -id ${PROJECT_EDC_IMAGES_DIR} ${EDJE_CC_DEFINITIONS}
+ ${PROJECT_EDC_DIR}/mailbox/email-mailbox.edc ${CMAKE_CURRENT_BINARY_DIR}/email-mailbox.edj
+ DEPENDS ${PROJECT_EDC_DIR}/mailbox/email-mailbox.edc
+ ${PROJECT_EDC_DIR}/mailbox/email-mailbox-theme.edc
+ ${PROJECT_EDC_DIR}/mailbox/email-mailbox-genlist-style.edc
+ ${PROJECT_EDC_DIR}/mailbox/email-mailbox-macros.edc
+ ${PROJECT_EDC_DIR}/common/email-colors.edc
+ ${PROJECT_EDC_DIR}/common/email-parts.edc
+)
+ADD_CUSTOM_TARGET(email-mailbox.edj ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/email-mailbox.edj)
+
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/email-mailbox.edj DESTINATION ${EDJDIR})
diff --git a/CMake/modules/email-setting-module/CMakeLists.txt b/CMake/modules/email-setting-module/CMakeLists.txt
new file mode 100644
index 0000000..dc1f07e
--- /dev/null
+++ b/CMake/modules/email-setting-module/CMakeLists.txt
@@ -0,0 +1,54 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+PROJECT(email-setting-module C)
+
+SET(CURRENT_SOURCE_DIR "${PROJECT_MODULES_DIR}/setting")
+
+SET(SRCS
+ ${CURRENT_SOURCE_DIR}/src/email-setting.c
+ ${CURRENT_SOURCE_DIR}/src/email-setting-account-set.c
+ ${CURRENT_SOURCE_DIR}/src/email-setting-utils.c
+ ${CURRENT_SOURCE_DIR}/src/email-setting-noti-mgr.c
+ ${CURRENT_SOURCE_DIR}/src/email-view-setting.c
+ ${CURRENT_SOURCE_DIR}/src/email-view-account-details.c
+ ${CURRENT_SOURCE_DIR}/src/email-view-account-details-setup.c
+ ${CURRENT_SOURCE_DIR}/src/email-view-account-setup.c
+ ${CURRENT_SOURCE_DIR}/src/email-view-manual-setup.c
+ ${CURRENT_SOURCE_DIR}/src/email-view-account-edit.c
+ ${CURRENT_SOURCE_DIR}/src/email-view-signature-edit.c
+ ${CURRENT_SOURCE_DIR}/src/email-view-signature-setting.c
+ ${CURRENT_SOURCE_DIR}/src/email-view-notification.c
+)
+
+INCLUDE_DIRECTORIES(${CURRENT_SOURCE_DIR}/inc)
+
+SET(email-required-pkgs ecore glib-2.0 gobject-2.0 elementary notification email-service
+ bundle dlog gio-2.0 capi-appfw-application contacts-service2 capi-base-utils-i18n
+ accounts-svc capi-system-system-settings efl-extension libxml-2.0 capi-media-metadata-extractor)
+
+pkg_check_modules(pkgs-setting REQUIRED "${email-required-pkgs}")
+
+FOREACH(flag ${pkgs-setting_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+
+ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS})
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} email-common ${pkgs-setting_LDFLAGS})
+INSTALL(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${LIBDIR})
+
+ADD_CUSTOM_COMMAND(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/email-setting-theme.edj
+ COMMAND edje_cc -no-save ${EDJE_CC_DEFINITIONS}
+ ${PROJECT_EDC_DIR}/setting/email-setting-theme.edc ${CMAKE_CURRENT_BINARY_DIR}/email-setting-theme.edj
+ DEPENDS ${PROJECT_EDC_DIR}/setting/email-setting-theme.edc
+ ${PROJECT_EDC_DIR}/setting/email-setting-two-bottom-btn-theme.edc
+ ${PROJECT_EDC_DIR}/setting/email-setting-genlist-item-custom-theme.edc
+ ${PROJECT_EDC_DIR}/common/email-colors.edc
+ ${PROJECT_EDC_DIR}/common/email-parts.edc
+ ${PROJECT_EDC_DIR}/common/email-templates.edc
+)
+ADD_CUSTOM_TARGET(email-setting-theme.edj ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/email-setting-theme.edj)
+
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/email-setting-theme.edj DESTINATION ${EDJDIR})
+INSTALL(FILES ${PROJECT_MISC_DIR}/provider_list_default.xml DESTINATION ${MISCDIR})
diff --git a/CMake/modules/email-viewer-module/CMakeLists.txt b/CMake/modules/email-viewer-module/CMakeLists.txt
new file mode 100644
index 0000000..06e5587
--- /dev/null
+++ b/CMake/modules/email-viewer-module/CMakeLists.txt
@@ -0,0 +1,63 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+PROJECT(email-viewer-module C)
+
+SET(CURRENT_SOURCE_DIR "${PROJECT_MODULES_DIR}/viewer")
+
+SET(SRCS
+ ${CURRENT_SOURCE_DIR}/src/email-viewer.c
+ ${CURRENT_SOURCE_DIR}/src/email-viewer-noti-mgr.c
+ ${CURRENT_SOURCE_DIR}/src/email-viewer-attachment.c
+ ${CURRENT_SOURCE_DIR}/src/email-viewer-contents.c
+ ${CURRENT_SOURCE_DIR}/src/email-viewer-ext-gesture.c
+ ${CURRENT_SOURCE_DIR}/src/email-viewer-logic.c
+ ${CURRENT_SOURCE_DIR}/src/email-viewer-more-menu.c
+ ${CURRENT_SOURCE_DIR}/src/email-viewer-more-menu-callback.c
+ ${CURRENT_SOURCE_DIR}/src/email-viewer-recipient.c
+ ${CURRENT_SOURCE_DIR}/src/email-viewer-header.c
+ ${CURRENT_SOURCE_DIR}/src/email-viewer-util.c
+ ${CURRENT_SOURCE_DIR}/src/email-viewer-initial-data.c
+ ${CURRENT_SOURCE_DIR}/src/email-viewer-eml.c
+ ${CURRENT_SOURCE_DIR}/src/email-viewer-scroller.c
+)
+
+INCLUDE_DIRECTORIES(${CURRENT_SOURCE_DIR}/inc)
+
+SET(email-required-pkgs elementary ecore glib-2.0 gobject-2.0
+ notification capi-media-metadata-extractor capi-media-image-util capi-content-media-content
+ email-service gio-2.0 capi-appfw-application chromium-efl capi-system-system-settings
+ contacts-service2 bundle dlog calendar-service2 efl-extension storage capi-base-utils-i18n)
+
+pkg_check_modules(pkgs-viewer REQUIRED "${email-required-pkgs}")
+
+FOREACH(flag ${pkgs-viewer_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+
+#ADD_DEFINITIONS("-D_WEBKIT_CONSOLE_MESSAGE_LOG")
+
+ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS})
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} email-common ${pkgs-viewer_LDFLAGS})
+INSTALL(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${LIBDIR})
+
+ADD_CUSTOM_COMMAND(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/email-viewer.edj
+ COMMAND edje_cc -no-save -id ${PROJECT_EDC_IMAGES_DIR} ${EDJE_CC_DEFINITIONS}
+ ${PROJECT_EDC_DIR}/viewer/email-viewer.edc ${CMAKE_CURRENT_BINARY_DIR}/email-viewer.edj
+ DEPENDS ${PROJECT_EDC_DIR}/viewer/email-viewer.edc
+ ${PROJECT_EDC_DIR}/viewer/email-viewer-common.edc
+ ${PROJECT_EDC_DIR}/viewer/email-viewer-base-layout.edc
+ ${PROJECT_EDC_DIR}/viewer/email-viewer-subject-layout.edc
+ ${PROJECT_EDC_DIR}/viewer/email-viewer-popup.edc
+ ${PROJECT_EDC_DIR}/viewer/email-viewer-scroller.edc
+ ${PROJECT_EDC_DIR}/common/email-colors.edc
+ ${PROJECT_EDC_DIR}/common/email-parts.edc
+)
+ADD_CUSTOM_TARGET(email-viewer.edj ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/email-viewer.edj)
+
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/email-viewer.edj DESTINATION ${EDJDIR})
+INSTALL(FILES ${PROJECT_MISC_DIR}/_email_default.html DESTINATION ${MISCDIR})
+INSTALL(FILES ${PROJECT_MISC_DIR}/_email_template.html DESTINATION ${MISCDIR})
+INSTALL(FILES ${PROJECT_MISC_DIR}/_email_template_text.html DESTINATION ${MISCDIR})
+INSTALL(FILES ${PROJECT_MISC_DIR}/default.css DESTINATION ${MISCDIR})