Commit 60cb844e authored by Laurent Montel's avatar Laurent Montel 😁

Make it compile as standalone

parent b9b04039
......@@ -29,14 +29,15 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${grantleeditor_SOURCE_DIR})
set(KDEPIM_VERSION_NUMBER "5.2.42")
set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
set(MESSAGELIB_LIB_VERSION_LIB "5.2.56")
set(KDEPIMLIBS_LIB_VERSION "5.2.40")
set(KPIMTEXTEDIT_LIB_VERSION "5.2.40")
set(KBLOG_LIB_VERSION "5.2.40")
set(KDEPIM_LIB_VERSION "${KDEPIM_VERSION_NUMBER}")
set(KDEPIM_LIB_SOVERSION "5")
set(KDEPIM_APPS_LIB_VERSION_LIB "5.2.42")
set(LIBGRANTLEETHEME_LIB_VERSION_LIB "5.2.40")
set(LIBKLEO_LIB_VERSION_LIB "5.2.40")
set(QT_REQUIRED_VERSION "5.6.0")
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets Test Sql)
find_package(Qt5X11Extras NO_MODULE)
......@@ -49,22 +50,27 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${grantleeditor_SOURCE_DIR})
find_package(KF5XmlGui ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5TextEditor ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5Wallet ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5NewStuff ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5PimCommon ${PIMCOMMON_LIB_VERSION_LIB} CONFIG REQUIRED)
find_package(KF5MessageViewer ${MESSAGELIB_LIB_VERSION_LIB} CONFIG REQUIRED)
find_package(KF5GrantleeTheme ${LIBGRANTLEETHEME_LIB_VERSION_LIB} CONFIG REQUIRED)
find_package(KF5AkonadiMime ${KDEPIMLIBS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Libkleo ${LIBKLEO_LIB_VERSION_LIB} CONFIG REQUIRED)
# Find KdepimLibs Package
find_package(KF5KaddressbookGrantlee ${KDEPIM_APPS_LIB_VERSION_LIB} CONFIG REQUIRED)
find_package(KF5Blog ${KBLOG_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5PimTextEdit ${KPIMTEXTEDIT_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Libkdepim ${LIBKDEPIM_LIB_VERSION_LIB} CONFIG REQUIRED)
include_directories(${grantleeditor_SOURCE_DIR} ${grantleeditor_BINARY_DIR})
endif()
include_directories(${grantleeditor_SOURCE_DIR} ${grantleeditor_BINARY_DIR})
add_definitions( -DQT_NO_CAST_FROM_ASCII )
add_definitions( -DQT_NO_CAST_TO_ASCII )
configure_file(grantleeeditor-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/grantleeeditor-version.h @ONLY)
configure_file(config-grantleeeditor.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-grantleeeditor.h )
add_subdirectory(headerthemeeditor)
add_subdirectory(contactthemeeditor)
add_subdirectory(grantleethemeeditor)
......
/* config-kdepim.h. Generated by cmake from config-kdepim.h.cmake */
/* Define to 1 if you have the Xlib */
#cmakedefine01 KDEPIM_HAVE_X11
#cmakedefine QTWEBENGINE_SUPPORT_OPTION 1
......@@ -18,7 +18,7 @@
#define CONTACTPRINTTHEMEPREVIEW_H
#include <QWidget>
#include "config-kdepim.h"
#include "config-grantleeeditor.h"
#include <KContacts/Addressee>
#include "grantleethemeeditor/previewwidget.h"
......
......@@ -18,7 +18,7 @@
*/
#include "kdepim-version.h"
#include "grantleeeditor-version.h"
#include "themeeditormainwindow.h"
#include <qapplication.h>
#include <kaboutdata.h>
......
......@@ -18,7 +18,7 @@
*/
#include "kdepim-version.h"
#include "grantleeeditor-version.h"
#include "contacteditormainwindow.h"
#include <qapplication.h>
#include <kaboutdata.h>
......
/*
Copyright (c) 1998-1999 Preston Brown <pbrown@kde.org>
Copyright (c) 2000-2004 Cornelius Schumacher <schumacher@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/*
Set the version for this kdepim release.
This version may be used by programs within this module that
do not want to maintain a version on their own.
Note that we cannot use the kdelibs version because we may
build against older kdelibs releases.
*/
#ifndef KDEPIM_VERSION_H
#define KDEPIM_VERSION_H
#define KDEPIM_VERSION "@KDEPIM_VERSION@ (@WEBENGINE_TYPE@)"
#endif
......@@ -18,7 +18,7 @@ ecm_qt_declare_logging_category(headerthemeeditor_SRCS HEADER headerthemeeditor_
qt5_add_resources(headerthemeeditor_SRCS headerthemeeditor.qrc)
add_executable(headerthemeeditor ${headerthemeeditor_SRCS} )
target_link_libraries(headerthemeeditor KF5::Mime KF5::NewStuff KF5::PimCommon KF5::MessageViewer grantleethemeeditor KF5::DBusAddons KF5::GrantleeTheme KF5::PimTextEdit KF5::I18n)
target_link_libraries(headerthemeeditor KF5::Mime KF5::NewStuff KF5::PimCommon KF5::MessageViewer grantleethemeeditor KF5::DBusAddons KF5::GrantleeTheme KF5::PimTextEdit KF5::I18n KF5::XmlGui)
install(TARGETS headerthemeeditor ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
......
......@@ -20,7 +20,7 @@
#include "themeeditormainwindow.h"
#include "kdepim-version.h"
#include "grantleeeditor-version.h"
#include <qapplication.h>
#include <QCommandLineParser>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment