Commit 231cb0af authored by Laurent Montel's avatar Laurent Montel 😁

Make it compiles as standalone

parent 6469765c
......@@ -6,8 +6,8 @@ grantleeeditor (DONE)
importwizard (DONE)
kaddressbook (DONE)
kalarm
kmail (INPROGRESS)
knotes (INPROGRESS)
kmail (DONE)
knotes (DONE)
kontact (INPROGRESS)
korgac (move in korganizer)
korganizer
......
......@@ -77,16 +77,24 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${knotes_SOURCE_DIR})
find_package(Xsltproc)
set_package_properties(Xsltproc PROPERTIES DESCRIPTION "XSLT processor from libxslt" TYPE REQUIRED PURPOSE "Required to generate D-Bus interfaces for all Akonadi resources.")
include_directories(${knotes_SOURCE_DIR} ${knotes_BINARY_DIR})
if (NOT APPLE)
find_package(X11)
endif()
set(KDEPIM_HAVE_X11 ${X11_FOUND})
endif()
include_directories(${knotes_SOURCE_DIR} ${knotes_BINARY_DIR})
add_definitions( -DQT_NO_CAST_FROM_ASCII )
add_definitions( -DQT_NO_CAST_TO_ASCII )
configure_file(knotes-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/knotes-version.h @ONLY)
add_subdirectory(noteshared)
add_subdirectory(src)
add_subdirectory(notesagent)
if ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
endif()
/*
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
......@@ -17,7 +17,7 @@
#include "notesagentsettingsdialog.h"
#include "kdepim-version.h"
#include "knotes-version.h"
#include <QMenu>
#include <KHelpMenu>
#include <KLocalizedString>
......
......@@ -2,6 +2,8 @@ project(knotes)
add_definitions(-DTRANSLATION_DOMAIN=\"knotes\")
configure_file(config-knotes.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-knotes.h )
add_subdirectory(icons)
if (BUILD_TESTING)
......
......@@ -18,9 +18,9 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*******************************************************************/
#include "config-kdepim.h"
#include "config-knotes.h"
#include "knotes_debug.h"
#include "kdepim-version.h"
#include "knotes-version.h"
#include "knotes_options.h"
#include "apps/application.h"
......
/* 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 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*******************************************************************/
#include "config-kdepim.h"
#include "config-knotes.h"
#include "knoteconfigdialog.h"
#include "notes/knote.h"
#include "print/knoteprintselectthemecombobox.h"
......@@ -29,7 +29,7 @@
#include "notesharedglobalconfig.h"
#include "config/noteactionconfig.h"
#include "kdepim-version.h"
#include "knotes-version.h"
#include <QLineEdit>
#include <qapplication.h>
#include <kcolorbutton.h>
......
......@@ -16,7 +16,7 @@
*/
#include "knotedisplayconfigwidget.h"
#include "config-kdepim.h"
#include "config-knotes.h"
#include "attributes/notelockattribute.h"
......
......@@ -15,7 +15,7 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "config-kdepim.h"
#include "config-knotes.h"
#include "knotesimpleconfigdialog.h"
#include "knoteconfigdialog.h"
#include "knotedisplayconfigwidget.h"
......
......@@ -28,7 +28,7 @@
#include <KCalUtils/VCalDrag>
#include <KCalCore/FileStorage>
#include "kdepim-version.h"
#include "knotes-version.h"
#include <Libkdepim/MaillistDrag>
using namespace KPIM;
......
......@@ -17,7 +17,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*******************************************************************/
#include "config-kdepim.h"
#include "config-knotes.h"
#include "knotes_debug.h"
#include "knote.h"
#include "noteutils.h"
......
......@@ -20,7 +20,7 @@
#ifndef KNOTE_H
#define KNOTE_H
#include "config-kdepim.h"
#include "config-knotes.h"
#include <QDomDocument>
#include <QEvent>
#include <QFrame>
......
......@@ -21,7 +21,7 @@
#include "../knotegrantleeprint.h"
#include <KMime/Message>
#include <AkonadiCore/Item>
#include <knotes/src/print/knoteprintobject.h>
#include "../print/knoteprintobject.h"
#include <Akonadi/Notes/NoteUtils>
KNotesGrantleePrintTest::KNotesGrantleePrintTest(QObject *parent)
......
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