Commit 7c4b29ec authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr

Generate export headers.

parent 51fbda6c
......@@ -38,6 +38,7 @@ include(ECMInstallIcons)
include(ECMOptionalAddSubdirectory)
include(ECMSetupVersion)
include(FeatureSummary)
include(GenerateExportHeader)
find_package(Qt5 REQUIRED COMPONENTS
Widgets
......
......@@ -32,6 +32,7 @@ set(learnerprofile_LIB_SRCS
)
add_library(artikulatelearnerprofile SHARED ${learnerprofile_LIB_SRCS})
generate_export_header(artikulatelearnerprofile BASE_NAME liblearnerprofile)
target_link_libraries(
artikulatelearnerprofile
......
/*
* Copyright 2013-2014 Andreas Cord-Landwehr <cordlandwehr@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 LIBLEARNERPROFILE_EXPORT_H
#define LIBLEARNERPROFILE_EXPORT_H
#define KDE_EXPORT __attribute__ ((visibility("default")))
#define KDE_IMPORT __attribute__ ((visibility("default")))
#ifndef LIBLEARNERPROFILE_EXPORT
# if defined(MAKE_LIBLEARNERPROFILE_LIB)
# define LIBLEARNERPROFILE_EXPORT KDE_EXPORT
# else
# define LIBLEARNERPROFILE_EXPORT KDE_IMPORT
# endif
#endif
# ifndef LIBLEARNERPROFILE_EXPORT_DEPRECATED
# define LIBLEARNERPROFILE_EXPORT_DEPRECATED KDE_DEPRECATED LIBLEARNERPROFILE_EXPORT
# endif
#endif
......@@ -21,7 +21,7 @@
#ifndef LEARNINGGOALMODEL_H
#define LEARNINGGOALMODEL_H
#include "../liblearnerprofile_export.h"
#include "liblearnerprofile_export.h"
#include <QAbstractListModel>
#include <QObject>
......
......@@ -40,6 +40,7 @@ set(sound_LIB_SRCS
)
add_library(artikulatesound SHARED ${sound_LIB_SRCS})
generate_export_header(artikulatesound BASE_NAME libsound)
target_link_libraries(
artikulatesound
......
/*
* Copyright 2014 Andreas Cord-Landwehr <cordlandwehr@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 LIBSOUND_EXPORT_H
#define LIBSOUND_EXPORT_H
#define KDE_EXPORT __attribute__ ((visibility("default")))
#define KDE_IMPORT __attribute__ ((visibility("default")))
#ifndef LIBSOUND_EXPORT
# if defined(MAKE_LIBSOUND_LIB)
# define LIBSOUND_EXPORT KDE_EXPORT
# else
# define LIBSOUND_EXPORT KDE_IMPORT
# endif
#endif
# ifndef LIBSOUND_EXPORT_DEPRECATED
# define LIBSOUND_EXPORT_DEPRECATED KDE_DEPRECATED LIBSOUND_EXPORT
# endif
#endif
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