summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-09-20 08:47:17 +0200
committerMontel Laurent <[email protected]>2015-09-20 08:47:17 +0200
commitd93f87ff2c85e257ff644f90391b4440bf0d7870 (patch)
tree2b3991ba0bbb5a63d08d358ad06a6139e17923b2
parent765ad61c22d2187f0261155baec442cfb6ea309d (diff)
Add generate pri file
-rw-r--r--CMakeLists.txt51
1 files changed, 43 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0cc7024..50aa083 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,7 +26,7 @@ sb_add_project(pimcommon)
sb_add_project(composereditor-ng)
sb_add_project(noteshared)
sb_add_project(libkleo)
-
+sb_add_project(kaddressbookgrantlee)
sb_add_project(calendarsupport)
sb_add_project(eventviews)
sb_add_project(incidenceeditor-ng)
@@ -55,6 +55,7 @@ include(ECMGenerateHeaders)
include(CMakePackageConfigHelpers)
include(FeatureSummary)
include(CheckFunctionExists)
+include(ECMGeneratePriFile)
include(KDEInstallDirs)
include(KDECMakeSettings)
@@ -187,6 +188,37 @@ find_package(KF5XmlRpcClient ${XMLRPCCLIENT_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Blog ${KBLOG_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5AkonadiNotes ${AKONADINOTES_LIB_VERSION} CONFIG REQUIRED)
+if (KDEPIM_BUILD_WITH_INSTALLED_LIB)
+set(KDEPIM_LIB_INSTALLED_VERSION "5.0.43")
+
+find_package(KF5MailCommon ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5KaddressbookGrantlee ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5MessageViewer ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5Libkleo ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5GrantleeTheme ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5PimCommon ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5Libkdepim ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5IncidenceEditorsng ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5MessageCore ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5MessageComposer ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5MessageList ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5TemplateParser ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5MailImporter ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5NoteShared ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5CalendarSupport ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5EventViews ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5KDGantt2 ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5FollowupReminder ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5SendLater ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5KDGantt2 ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5ComposerEditorNG ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+find_package(KF5KdepimDBusInterfaces ${KDEPIM_LIB_INSTALLED_VERSION} CONFIG REQUIRED)
+
+#Laurent need to port it
+#sb_add_project(libksieve)
+
+endif()
+
if (NOT APPLE)
find_package(X11)
endif()
@@ -251,7 +283,7 @@ endif()
# config-enterprise.h is needed for both ENTERPRISE_BUILD and BUILD_EVERYTHING
configure_file(config-enterprise.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-enterprise.h )
-
+if (NOT KDEPIM_BUILD_WITH_INSTALLED_LIB)
add_subdirectory(libfollowupreminder)
add_subdirectory(libsendlater)
add_subdirectory(noteshared)
@@ -263,12 +295,20 @@ add_subdirectory(libkdepimdbusinterfaces)
add_subdirectory(libkleo)
add_subdirectory(libksieve)
add_subdirectory(kdgantt2)
-add_subdirectory(icons)
add_subdirectory(composereditor-ng)
add_subdirectory(messagecore)
add_subdirectory(grantleetheme)
add_subdirectory(messagelist)
add_subdirectory(templateparser)
+add_subdirectory(mailimporter)
+add_subdirectory(messageviewer)
+add_subdirectory(messagecomposer)
+add_subdirectory(pimcommon)
+add_subdirectory(mailcommon)
+
+endif()
+add_subdirectory(icons)
+
include (kleopatra/ConfigureChecks.cmake)
if(KF5Gpgmepp_FOUND)
@@ -277,10 +317,6 @@ if(KF5Gpgmepp_FOUND)
endif()
endif()
-add_subdirectory(messageviewer)
-add_subdirectory(messagecomposer)
-add_subdirectory(pimcommon)
-add_subdirectory(mailcommon)
add_subdirectory(kmail)
add_subdirectory(grantleeeditor)
@@ -300,7 +336,6 @@ add_subdirectory(kaddressbook)
add_subdirectory(mboximporter)
add_subdirectory(knotes)
add_subdirectory(ktnef)
-add_subdirectory(mailimporter)
add_subdirectory(pimsettingexporter)
add_subdirectory(kalarm)
add_subdirectory(blogilo)