include_directories(
../network
+ ${CMAKE_CURRENT_BINARY_DIR}/../network
)
set( kio_network_SRCS
include_directories(
../network
+ ${CMAKE_CURRENT_BINARY_DIR}/../network
../ioslave
)
set( kded_networkwatcher_SRCS
add_library( molletnetwork SHARED ${molletnetwork_LIB_SRCS} )
target_link_libraries( molletnetwork ${molletnetwork_LINK_LIBS} )
-set_target_properties( molletnetwork PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
+
+set_target_properties(molletnetwork PROPERTIES
+ VERSION ${GENERIC_LIB_VERSION}
+ SOVERSION ${GENERIC_LIB_SOVERSION}
+)
+
+generate_export_header(molletnetwork)
install( TARGETS molletnetwork ${INSTALL_TARGETS_DEFAULT_ARGS} )
+++ /dev/null
-/*
- This file is part of the Mollet network library, part of the KDE project.
-
- Copyright 2009 Friedrich W. H. Kossebau <kossebau@kde.org>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) version 3, or any
- later version accepted by the membership of KDE e.V. (or its
- successor approved by the membership of KDE e.V.), which shall
- act as a proxy defined in Section 6 of version 3 of the license.
-
- This library 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
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with this library. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef MOLLETNETWORK_EXPORT_H
-#define MOLLETNETWORK_EXPORT_H
-
-// KDE
-#include <kdemacros.h>
-
-
-#ifndef MOLLETNETWORK_EXPORT
- // building the library?
-# if defined(MAKE_MOLLETNETWORK_LIB)
-# define MOLLETNETWORK_EXPORT KDE_EXPORT
- // using the library
-# else
-# define MOLLETNETWORK_EXPORT KDE_IMPORT
-# endif
-#endif
-
-# ifndef MOLLETNETWORK_EXPORT_DEPRECATED
-# define MOLLETNETWORK_EXPORT_DEPRECATED KDE_DEPRECATED MOLLETNETWORK_EXPORT
-# endif
-
-#endif
${CMAKE_SOURCE_DIR}/libs/ksysguard
${CMAKE_SOURCE_DIR}/libs/ksysguard/processcore
${CMAKE_SOURCE_DIR}/libs/plasmagenericshell
+ # for plasmagenericshell_export.h
+ ${CMAKE_BINARY_DIR}/libs/plasmagenericshell
# for kworkspace_export.h
${CMAKE_BINARY_DIR}/libs/kworkspace
)
########### kwalletd ###############
-include_directories(${CMAKE_CURRENT_SOURCE_DIR}/backend)
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}/backend
+ ${CMAKE_CURRENT_BINARY_DIR}/backend
+)
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=285)
check_include_files(stdint.h HAVE_STDINT_H)
check_include_files(sys/bitypes.h HAVE_SYS_BITYPES_H)
-configure_file (config-kwalletbackend.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwalletbackend.h )
+configure_file(
+ config-kwalletbackend.h.cmake
+ ${CMAKE_CURRENT_BINARY_DIR}/config-kwalletbackend.h
+)
########### kwalletbackend ###############
target_link_libraries(kwalletbackend ${KDE4_KDEUI_LIBS})
-set_target_properties(kwalletbackend PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
+set_target_properties(kwalletbackend PROPERTIES
+ VERSION ${GENERIC_LIB_VERSION}
+ SOVERSION ${GENERIC_LIB_SOVERSION}
+)
+
+generate_export_header(kwalletbackend)
+
install(TARGETS kwalletbackend ${INSTALL_TARGETS_DEFAULT_ARGS})
if(ENABLE_TESTING)
#endif
#include "blockcipher.h"
-#include <kwallet_export.h>
+#include "kwalletbackend_export.h"
/* @internal
*/
+++ /dev/null
-/* This file is part of the KDE project
- Copyright (C) 2006 David Faure <faure@kde.org>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library 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
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef KWALLET_EXPORT_H
-#define KWALLET_EXPORT_H
-
-/* needed for KDE_EXPORT and KDE_IMPORT macros */
-#include <kdemacros.h>
-
-#ifndef KWALLETBACKEND_EXPORT
-# if defined(MAKE_KWALLETBACKEND_LIB)
- /* We are building this library */
-# define KWALLETBACKEND_EXPORT KDE_EXPORT
-# else
- /* We are using this library */
-# define KWALLETBACKEND_EXPORT KDE_IMPORT
-# endif
-#endif
-
-#endif
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QMap>
+#include <kdemacros.h>
+
#include "kwalletentry.h"
#include "backendpersisthandler.h"
#include <QtCore/QString>
#include <QtCore/QDataStream>
-#include "kwallet_export.h"
+#include "kwalletbackend_export.h"
#include "kwallet.h"
namespace KWallet {
+include_directories(
+ # for taskmanager_export.h
+ ${CMAKE_BINARY_DIR}/libs
+)
+
add_subdirectory(kephal)
add_subdirectory(kworkspace)
add_subdirectory(oxygen)
SOVERSION ${GENERIC_LIB_SOVERSION}
)
+generate_export_header(plasmaclock)
+
#clockapplet.h
install(
- FILES clockapplet.h calendar.h calendartable.h plasmaclock_export.h
+ FILES
+ clockapplet.h
+ calendar.h
+ calendartable.h
+ ${CMAKE_CURRENT_BINARY_DIR}/plasmaclock_export.h
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/plasmaclock
COMPONENT Devel
)
+++ /dev/null
-/* This file is part of the KDE project
- Copyright (C) 2007 David Faure <faure@kde.org>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library 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
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef PLASMACLOCK_EXPORT_H
-#define PLASMACLOCK_EXPORT_H
-
-/* needed for KDE_EXPORT and KDE_IMPORT macros */
-#include <kdemacros.h>
-
-#ifndef PLASMACLOCK_EXPORT
-# if defined(MAKE_PLASMACLOCK_LIB)
- /* We are building this library */
-# define PLASMACLOCK_EXPORT KDE_EXPORT
-# else
- /* We are using this library */
-# define PLASMACLOCK_EXPORT KDE_IMPORT
-# endif
-#endif
-
-# ifndef PLASMACLOCK_EXPORT_DEPRECATED
-# define PLASMACLOCK_EXPORT_DEPRECATED KDE_DEPRECATED PLASMACLOCK_EXPORT
-# endif
-
-#endif
include_directories(
- # for kworkspace_export.h
- ${CMAKE_BINARY_DIR}/libs/kworkspace
+ ${CMAKE_CURRENT_BINARY_DIR}
+ # for kworkspace_export.h
+ ${CMAKE_BINARY_DIR}/libs/kworkspace
)
if(ENABLE_TESTING)
SOVERSION ${GENERIC_LIB_SOVERSION}
)
+generate_export_header(plasmagenericshell)
+
install(DIRECTORY widgetsexplorer/package/
DESTINATION ${KDE4_DATA_INSTALL_DIR}/plasma/packages/org.kde.desktop.widgetexplorer
PATTERN "Messages.sh" EXCLUDE
+++ /dev/null
-/* This file is part of the KDE project
- Copyright (C) 2007 David Faure <faure@kde.org>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library 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
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef PLASMAGENERICSHELL_EXPORT_H
-#define PLASMAGENERICSHELL_EXPORT_H
-
-/* needed for KDE_EXPORT and KDE_IMPORT macros */
-#include <kdemacros.h>
-
-#ifndef PLASMAGENERICSHELL_EXPORT
-# if defined(MAKE_PLASMAGENERICSHELL_LIB)
- /* We are building this library */
-# define PLASMAGENERICSHELL_EXPORT KDE_EXPORT
-# else
- /* We are using this library */
-# define PLASMAGENERICSHELL_EXPORT KDE_IMPORT
-# endif
-#endif
-
-# ifndef PLASMAGENERICSHELL_EXPORT_DEPRECATED
-# define PLASMAGENERICSHELL_EXPORT_DEPRECATED KDE_DEPRECATED PLASMAGENERICSHELL_EXPORT
-# endif
-
-#endif
#include <QtCore/qrect.h>
#include <QStringList>
-#include "../plasmagenericshell_export.h"
+#include "plasmagenericshell_export.h"
namespace Plasma
{
#include <KConfigGroup>
-#include "../plasmagenericshell_export.h"
+#include "plasmagenericshell_export.h"
namespace Plasma
{
#include "applet.h"
-#include "../plasmagenericshell_export.h"
+#include "plasmagenericshell_export.h"
namespace Plasma
{
#define TEMPLATETEMPLATEPACKAGE_H
#include <Plasma/PackageStructure>
-#include "../plasmagenericshell_export.h"
+
+#include "plasmagenericshell_export.h"
namespace WorkspaceScripting
{
#include <QScriptEngine>
#include <QScriptValue>
-#include "../plasmagenericshell_export.h"
+#include "plasmagenericshell_export.h"
namespace Plasma
{
#include "applet.h"
-#include "../plasmagenericshell_export.h"
+#include "plasmagenericshell_export.h"
namespace Plasma
{
SOVERSION ${GENERIC_LIB_SOVERSION}
)
+generate_export_header(taskmanager)
+
install(
TARGETS taskmanager
EXPORT kdeworkspaceLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}
)
install(FILES
- abstractgroupableitem.h
- abstractgroupingstrategy.h
- abstractsortingstrategy.h
- groupmanager.h
- launcheritem.h
- startup.h
- task.h
- taskactions.h
- taskgroup.h
- taskitem.h
- taskmanager.h
- taskmanager_export.h
- DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/taskmanager COMPONENT Devel
+ abstractgroupableitem.h
+ abstractgroupingstrategy.h
+ abstractsortingstrategy.h
+ groupmanager.h
+ launcheritem.h
+ startup.h
+ task.h
+ taskactions.h
+ taskgroup.h
+ taskitem.h
+ taskmanager.h
+ ${CMAKE_CURRENT_BINARY_DIR}/taskmanager_export.h
+ DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/taskmanager COMPONENT Devel
)
#ifndef TASKITEM_H
#define TASKITEM_H
+#include <kdemacros.h>
#include <taskmanager/abstractgroupableitem.h>
#include <taskmanager/startup.h>
#include <taskmanager/task.h>
+++ /dev/null
-/*****************************************************************
-
-Copyright 2008 Aaron Seigo <aseigo@kde.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
-AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-******************************************************************/
-
-
-#ifndef TASKMANAGER_EXPORT_H
-#define TASKMANAGER_EXPORT_H
-
-/* needed for TASKMANAGER_EXPORT and KDE_IMPORT macros */
-#include <kdemacros.h>
-
-#ifndef TASKMANAGER_EXPORT
-# if defined(MAKE_TASKMANAGER_LIB)
-/* We are building this library */
-# define TASKMANAGER_EXPORT KDE_EXPORT
-# else
-/* We are using this library */
-# define TASKMANAGER_EXPORT KDE_IMPORT
-# endif
-#endif
-
-# ifndef TASKMANAGER_EXPORT_DEPRECATED
-# define TASKMANAGER_EXPORT_DEPRECATED KDE_DEPRECATED TASKMANAGER_EXPORT
-# endif
-
-#endif
+include_directories(
+ # for plasmaclock_export.h
+ ${CMAKE_BINARY_DIR}/libs/plasmaclock
+)
set(clock_SRCS
clock.cpp
)
kde4_add_plugin(plasma_applet_clock ${clock_SRCS})
-target_link_libraries(plasma_applet_clock ${KDE4_PLASMA_LIBS} plasmaclock ${KDE4_KIO_LIBS})
+target_link_libraries(plasma_applet_clock
+ ${KDE4_PLASMA_LIBS}
+ ${KDE4_KIO_LIBS}
+ plasmaclock
+)
install(TARGETS plasma_applet_clock DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-applet-analogclock.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
project(plasma-applet-calendar)
+include_directories(
+ # for plasmaclock_export.h
+ ${CMAKE_BINARY_DIR}/libs/plasmaclock
+)
+
set(calendar_SRCS
calendar.cpp)
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
kde4_add_plugin(plasma_applet_calendar ${calendar_SRCS})
-target_link_libraries(plasma_applet_calendar ${KDE4_PLASMA_LIBS} plasmaclock ${KDE4_KIO_LIBS})
+target_link_libraries(plasma_applet_calendar
+ ${KDE4_PLASMA_LIBS}
+ ${KDE4_KIO_LIBS}
+ plasmaclock
+)
install(TARGETS plasma_applet_calendar DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-applet-calendar.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
project(plasma-dig-clock)
+include_directories(
+ # for plasmaclock_export.h
+ ${CMAKE_BINARY_DIR}/libs/plasmaclock
+)
+
set(clock_SRCS
clock.cpp
clockConfig.ui
kde4_add_plugin(plasma_applet_dig_clock ${clock_SRCS})
target_link_libraries(plasma_applet_dig_clock
- ${KDE4_PLASMA_LIBS}
- plasmaclock
- ${KDE4_KDEUI_LIBS}
- ${KDE4_KIO_LIBS})
+ ${KDE4_PLASMA_LIBS}
+ ${KDE4_KDEUI_LIBS}
+ ${KDE4_KIO_LIBS}
+ plasmaclock
+)
install(TARGETS plasma_applet_dig_clock DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-applet-digitalclock.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
#######################################################################################
# Kickoff Library
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+)
+
set(libkickoff_SRCS
core/kickoffmodel.cpp
core/kickoffabstractmodel.cpp
add_library(kickoff SHARED ${libkickoff_SRCS})
target_link_libraries(kickoff ${KDE4_PLASMA_LIBS} ${Kickoff_LIBS})
+
+generate_export_header(kickoff)
+
install(TARGETS kickoff ${INSTALL_TARGETS_DEFAULT_ARGS})
#######################################################################################
#ifndef APPLICATIONMODEL_H
#define APPLICATIONMODEL_H
-#include "core/kickoff_export.h"
+#include "kickoff_export.h"
#include "core/kickoffabstractmodel.h"
#include "core/models.h"
#ifndef FAVORITESMODEL_H
#define FAVORITESMODEL_H
-#include "core/kickoff_export.h"
+#include "kickoff_export.h"
#include "core/kickoffmodel.h"
#include "core/models.h"
#include <QtCore/QObject>
-#include "core/kickoff_export.h"
+#include "kickoff_export.h"
#include "core/urlitemlauncher.h"
namespace Kickoff
+++ /dev/null
-/* This file is part of the KDE project
- Copyright (C) 2009 Sebastian Sauer <mail@dipe.org>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library 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
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef KICKOFF_EXPORT_H
-#define KICKOFF_EXPORT_H
-
-/* needed for KDE_EXPORT and KDE_IMPORT macros */
-#include <kdemacros.h>
-
-#ifndef KICKOFF_EXPORT
-# if defined(MAKE_KICKOFF_LIB)
- /* We are building this library */
-# define KICKOFF_EXPORT KDE_EXPORT
-# else
- /* We are using this library */
-# define KICKOFF_EXPORT KDE_IMPORT
-# endif
-#endif
-
-# ifndef KICKOFF_EXPORT_DEPRECATED
-# define KICKOFF_EXPORT_DEPRECATED KDE_DEPRECATED KICKOFF_EXPORT
-# endif
-
-#endif
#ifndef KRUNNERMODEL_H
#define KRUNNERMODEL_H
+#include "kickoff_export.h"
#include "core/models.h"
-#include "core/kickoff_export.h"
#include "core/kickoffmodel.h"
#include "core/urlitemlauncher.h"
#ifndef LEAVEMODEL_H
#define LEAVEMODEL_H
-#include "core/kickoff_export.h"
+#include "kickoff_export.h"
#include <QStandardItemModel>
#ifndef RECENTAPPLICATIONS_H
#define RECENTAPPLICATIONS_H
-#include "core/kickoff_export.h"
+#include "kickoff_export.h"
// Qt
#include <QtCore/QObject>
#ifndef RECENTLYUSEDMODEL_H
#define RECENTLYUSEDMODEL_H
-// Qt
-#include "core/kickoff_export.h"
+#include "kickoff_export.h"
#include "core/kickoffmodel.h"
#include "core/models.h"
#ifndef SYSTEMMODEL_H
#define SYSTEMMODEL_H
-#include "core/kickoff_export.h"
+#include "kickoff_export.h"
#include "core/kickoffproxymodel.h"
#include <QThread>
#ifndef URLITEMLAUNCHER_H
#define URLITEMLAUNCHER_H
-#include "core/kickoff_export.h"
+#include "kickoff_export.h"
#include <QObject>
+#include <QModelIndex>
#include <solid/storageaccess.h>
-#include <QModelIndex>
+
class KUrl;
namespace Kickoff
project(plasma-pager)
+include_directories(
+ # for taskmanager_export.h
+ ${CMAKE_BINARY_DIR}/libs
+ ${CMAKE_BINARY_DIR}/libs/taskmanager
+)
+
set(pager_SRCS
model.cpp
pager.cpp
kde4_add_plugin(plasma_applet_pager ${pager_SRCS})
target_link_libraries(plasma_applet_pager
- ${KDE4_KIO_LIBS}
- ${KDE4_PLASMA_LIBS}
- ${KDE4_KCMUTILS_LIBS}
- ${QT_QTDECLARATIVE_LIBRARY}
- taskmanager)
+ ${KDE4_KIO_LIBS}
+ ${KDE4_PLASMA_LIBS}
+ ${KDE4_KCMUTILS_LIBS}
+ ${QT_QTDECLARATIVE_LIBRARY}
+ taskmanager
+)
install(TARGETS plasma_applet_pager DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-pager-default.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
applet.cpp
plotter.cpp
)
+
add_library(plasma_applet-system-monitor SHARED ${lib_SRCS})
-target_link_libraries(plasma_applet-system-monitor ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS})
-set_target_properties(plasma_applet-system-monitor PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
+target_link_libraries(plasma_applet-system-monitor
+ ${KDE4_PLASMA_LIBS}
+ ${KDE4_KDEUI_LIBS}
+)
+
+set_target_properties(plasma_applet-system-monitor PROPERTIES
+ VERSION ${GENERIC_LIB_VERSION}
+ SOVERSION ${GENERIC_LIB_SOVERSION}
+)
+
+generate_export_header(plasma_applet-system-monitor BASE_NAME plasma_applet_system_monitor)
# HDD Space Monitor
target_link_libraries(plasma_applet_system-monitor ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} plasma_applet-system-monitor)
# Install
-install(TARGETS
- plasma_applet-system-monitor
- ${INSTALL_TARGETS_DEFAULT_ARGS})
-install(TARGETS
+install(
+ TARGETS plasma_applet-system-monitor
+ ${INSTALL_TARGETS_DEFAULT_ARGS}
+)
+install(
+ TARGETS
plasma_applet_sm_hdd_activity
plasma_applet_sm_hdd
plasma_applet_sm_temperature
plasma_applet_sm_cpu
plasma_applet_sm_ram
plasma_applet_system-monitor
- DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
-install(FILES
+ DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
+)
+install(
+ FILES
plasma-applet-sm_hdd_activity.desktop
plasma-applet-sm_hdd.desktop
plasma-applet-sm_temperature.desktop
plasma-applet-sm_cpu.desktop
plasma-applet-sm_ram.desktop
plasma-applet-system-monitor.desktop
- DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
-install(FILES
- hdd_panel.svgz
- DESTINATION ${KDE4_DATA_INSTALL_DIR}/desktoptheme/default/system-monitor/)
+ DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
+)
+install(
+ FILES hdd_panel.svgz
+ DESTINATION ${KDE4_DATA_INSTALL_DIR}/desktoptheme/default/system-monitor/
+)
#include <Plasma/Applet>
-#include "sm_export.h"
+#include "plasma_applet_system_monitor_export.h"
#define MINIMUM 24
#define PREFERRED 200
namespace SM {
-class SM_EXPORT Applet : public Plasma::Applet
+class PLASMA_APPLET_SYSTEM_MONITOR_EXPORT Applet : public Plasma::Applet
{
Q_OBJECT
public:
#define MONITORBUTTON_HEADER
#include <Plasma/PushButton>
-#include "sm_export.h"
+#include "plasma_applet_system_monitor_export.h"
-class SM_EXPORT MonitorButton : public Plasma::PushButton
+class PLASMA_APPLET_SYSTEM_MONITOR_EXPORT MonitorButton : public Plasma::PushButton
{
Q_OBJECT
Q_PROPERTY(QString image READ image WRITE setImage)
#define MONITORICON_HEADER
#include <QGraphicsWidget>
-#include "sm_export.h"
+#include "plasma_applet_system_monitor_export.h"
-class SM_EXPORT MonitorIcon : public QGraphicsWidget
+class PLASMA_APPLET_SYSTEM_MONITOR_EXPORT MonitorIcon : public QGraphicsWidget
{
Q_OBJECT
Q_PROPERTY(QString image READ image WRITE setImage)
#include <QGraphicsWidget>
-#include "sm_export.h"
+#include "plasma_applet_system_monitor_export.h"
#include <QGraphicsLinearLayout>
namespace SM {
-class SM_EXPORT Plotter : public QGraphicsWidget
+class PLASMA_APPLET_SYSTEM_MONITOR_EXPORT Plotter : public QGraphicsWidget
{
Q_OBJECT
public:
+++ /dev/null
-/* This file is part of the KDE project
- Copyright (C) 2007 David Faure <faure@kde.org>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library 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
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef SM_EXPORT_H
-#define SM_EXPORT_H
-
-/* needed for KDE_EXPORT and KDE_IMPORT macros */
-#include <kdemacros.h>
-
-#ifndef SM_EXPORT
-# if defined(MAKE_PLASMA_APPLET_SYSTEM_MONITOR_LIB)
- /* We are building this library */
-# define SM_EXPORT KDE_EXPORT
-# else
- /* We are using this library */
-# define SM_EXPORT KDE_IMPORT
-# endif
-#endif
-
-# ifndef SM_EXPORT_DEPRECATED
-# define SM_EXPORT_DEPRECATED KDE_DEPRECATED SM_EXPORT
-# endif
-
-#endif
project(plasma-tasks)
+include_directories(
+ # for taskmanager_export.h
+ ${CMAKE_BINARY_DIR}/libs
+ ${CMAKE_BINARY_DIR}/libs/taskmanager
+)
+
set(tasks_SRCS
tasks.cpp
support/draghelper.cpp
kde4_add_plugin(plasma_applet_tasks ${tasks_SRCS})
-target_link_libraries(plasma_applet_tasks ${KDE4_KDEUI_LIBS} ${KDE4_PLASMA_LIBS} ${QT_QTDECLARATIVE_LIBRARY} taskmanager)
+target_link_libraries(plasma_applet_tasks
+ ${KDE4_KDEUI_LIBS}
+ ${KDE4_PLASMA_LIBS}
+ ${QT_QTDECLARATIVE_LIBRARY}
+ taskmanager
+)
install(TARGETS plasma_applet_tasks DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-tasks-default.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
project(plasma-windowlist)
+include_directories(
+ # for taskmanager_export.h
+ ${CMAKE_BINARY_DIR}/libs
+ ${CMAKE_BINARY_DIR}/libs/taskmanager
+)
+
set(windowlist_SRCS WindowList.cpp)
kde4_add_plugin(plasma_applet_windowlist ${windowlist_SRCS})
target_link_libraries(plasma_applet_windowlist
- ${KDE4_PLASMA_LIBS}
- ${KDE4_KDEUI_LIBS}
- taskmanager
- kworkspace
- )
+ ${KDE4_PLASMA_LIBS}
+ ${KDE4_KDEUI_LIBS}
+ taskmanager
+ kworkspace
+)
install(TARGETS plasma_applet_windowlist DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-applet-windowlist.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
set(plasma_geolocation_interface_SRCS geolocationprovider.cpp)
add_library(plasma-geolocation-interface SHARED ${plasma_geolocation_interface_SRCS})
-target_link_libraries(plasma-geolocation-interface PRIVATE ${KDE4_KIO_LIBS} ${KDE4_PLASMA_LIBS})
-target_link_libraries(plasma-geolocation-interface
- PUBLIC ${KDE4_KIO_LIBS} ${KDE4_PLASMA_LIBS})
+target_link_libraries(plasma-geolocation-interface PUBLIC
+ ${KDE4_KIO_LIBS}
+ ${KDE4_PLASMA_LIBS}
+)
+
set_target_properties(plasma-geolocation-interface PROPERTIES
VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION}
)
+
+generate_export_header(plasma-geolocation-interface BASE_NAME geolocation)
+
install(TARGETS plasma-geolocation-interface ${INSTALL_TARGETS_DEFAULT_ARGS})
-install(FILES geolocationprovider.h geolocation_export.h
- DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/plasma/geolocation
- COMPONENT Devel)
+install(
+ FILES
+ geolocationprovider.h
+ ${CMAKE_CURRENT_BINARY_DIR}/geolocation_export.h
+ DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/plasma/geolocation
+ COMPONENT Devel
+)
#install(FILES includes/Interface
# DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/KDE/Plasma/Geolocation
${KDE4_PLASMA_LIBS}
${KDE4_KDECORE_LIBS}
${KDE4_KIO_LIBS}
- ${KDE4_SOLID_LIBS})
+ ${KDE4_SOLID_LIBS}
+)
install(TARGETS plasma_engine_geolocation DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-dataengine-geolocation.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
+++ /dev/null
-/* This file is part of the KDE project
- Copyright (C) 2007 David Faure <faure@kde.org>
- Copyright (C) 2009 Petri Damsten <damu@iki.fi>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library 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
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef GEOLOCATION_EXPORT_H
-#define GEOLOCATION_EXPORT_H
-
-/* needed for KDE_EXPORT and KDE_IMPORT macros */
-#include <kdemacros.h>
-
-#ifndef GEOLOCATION_EXPORT
-# if defined(MAKE_PLASMA_GEOLOCATION_INTERFACE_LIB)
-/* We are building this library */
-# define GEOLOCATION_EXPORT KDE_EXPORT
-# else
-/* We are using this library */
-# define GEOLOCATION_EXPORT KDE_IMPORT
-# endif
-#endif
-
-# ifndef GEOLOCATION_EXPORT_DEPRECATED
-# define GEOLOCATION_EXPORT_DEPRECATED KDE_DEPRECATED GEOLOCATION_EXPORT
-# endif
-
-#endif
+include_directories(
+ # for taskmanager_export.h
+ ${CMAKE_BINARY_DIR}/libs
+ ${CMAKE_BINARY_DIR}/libs/taskmanager
+)
+
set(tasks_engine_SRCS
tasksengine.cpp
tasksource.cpp
)
kde4_add_plugin(plasma_engine_tasks ${tasks_engine_SRCS})
-target_link_libraries(plasma_engine_tasks ${KDE4_KDEUI_LIBS} ${KDE4_PLASMA_LIBS} taskmanager)
+target_link_libraries(plasma_engine_tasks
+ ${KDE4_KDEUI_LIBS}
+ ${KDE4_PLASMA_LIBS}
+ taskmanager
+)
install(TARGETS plasma_engine_tasks DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
install(FILES plasma-dataengine-tasks.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}/ions
+)
+
+
ADD_SUBDIRECTORY(ions)
SET(weather_SRCS weatherengine.cpp)
# the Ion shared library
set(ionlib_SRCS ion.cpp)
-add_library (weather_ion SHARED ${ionlib_SRCS})
+add_library(weather_ion SHARED ${ionlib_SRCS})
target_link_libraries(weather_ion PUBLIC
${KDE4_KDEUI_LIBS}
${KDE4_KIO_LIBS}
SOVERSION ${GENERIC_LIB_SOVERSION}
)
+generate_export_header(weather_ion BASE_NAME ion)
+
install(
TARGETS weather_ion
EXPORT kdeworkspaceLibraryTargets
)
install(
- FILES ion.h ion_export.h
+ FILES
+ ion.h
+ ${CMAKE_CURRENT_BINARY_DIR}/ion_export.h
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/plasma/weather
COMPONENT Devel
)
+++ /dev/null
-/* This file is part of the KDE project
- Copyright (C) 2007 David Faure <faure@kde.org>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library 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
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef ION_EXPORT_H
-#define ION_EXPORT_H
-
-/* needed for KDE_EXPORT and KDE_IMPORT macros */
-#include <kdemacros.h>
-
-#ifndef ION_EXPORT
-# if defined(MAKE_WEATHER_ION_LIB)
-/* We are building this library */
-# define ION_EXPORT KDE_EXPORT
-# else
-/* We are using this library */
-# define ION_EXPORT KDE_IMPORT
-# endif
-#endif
-
-# ifndef ION_EXPORT_DEPRECATED
-# define ION_EXPORT_DEPRECATED KDE_DEPRECATED ION_EXPORT
-# endif
-
-#endif
+include_directories(
+ # for plasmagenericshell_export.h
+ ${CMAKE_BINARY_DIR}/libs/plasmagenericshell
+)
+
add_subdirectory(plasma-desktop)
add_subdirectory(plasma-overlay)
add_subdirectory(plasma-windowed)
ENDIF(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
-INCLUDE_DIRECTORIES (${CMAKE_CURRENT_SOURCE_DIR}/core ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
+INCLUDE_DIRECTORIES (
+ ${CMAKE_CURRENT_SOURCE_DIR}/core
+ ${CMAKE_CURRENT_BINARY_DIR}/core
+ ${CMAKE_BINARY_DIR}
+ ${KDE4_INCLUDES}
+)
ADD_SUBDIRECTORY(core)
ADD_SUBDIRECTORY(app)
)
set(systemsettingsview_LIB_HDRS
- systemsettingsview_export.h
+ ${CMAKE_CURRENT_BINARY_DIR}/systemsettingsview_export.h
MenuItem.h
MenuModel.h
MenuProxyModel.h
target_link_libraries(systemsettingsview ${KDE4_KDECORE_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KCMUTILS_LIBS})
+generate_export_header(systemsettingsview)
+
install( TARGETS systemsettingsview ${INSTALL_TARGETS_DEFAULT_ARGS} )
install( FILES ${systemsettingsview_LIB_HDRS} DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/systemsettingsview COMPONENT Devel)
INSTALL( FILES systemsettingsview.desktop systemsettingsexternalapp.desktop DESTINATION ${KDE4_SERVICETYPES_INSTALL_DIR})
+++ /dev/null
-/**************************************************************************
- * Copyright (C) 2009 Ben Cooksley <bcooksley@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. *
-***************************************************************************/
-
-#ifndef SYSTEMSETTINGSVIEW_EXPORT_H
-#define SYSTEMSETTINGSVIEW_EXPORT_H
-
-// needed for KDE_EXPORT and KDE_IMPORT macros
-#include <kdemacros.h>
-
-#ifndef SYSTEMSETTINGSVIEW_EXPORT
-# if defined(MAKE_SYSTEMSETTINGSVIEW_LIB)
- // We are building this library
-# define SYSTEMSETTINGSVIEW_EXPORT KDE_EXPORT
-# else
- // We are using this library
-# define SYSTEMSETTINGSVIEW_EXPORT KDE_IMPORT
-# endif
-#endif
-
-# ifndef SYSTEMSETTINGSVIEW_EXPORT_DEPRECATED
-# define SYSTEMSETTINGSVIEW_EXPORT_DEPRECATED KDE_DEPRECATED SYSTEMSETTINGSVIEW_EXPORT
-# endif
-
-#endif