Commit da07949b authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark
Browse files

let cmake generate export header

parent 9cbec555
......@@ -6,6 +6,7 @@ find_package(ECM 1.3.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
include(FeatureSummary)
include(GenerateExportHeader)
include(ECMOptionalAddSubdirectory)
include(KDEInstallDirs)
include(KDECMakeSettings)
......
......@@ -6,6 +6,7 @@ set (QMOBIPOCKET_SRCS
)
add_library(qmobipocket SHARED ${QMOBIPOCKET_SRCS})
generate_export_header(qmobipocket)
target_link_libraries (qmobipocket
Qt5::Core
......
/* This file is part of the KDE project
Copyright (C) 2007 David Faure <faure@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, see <http://www.gnu.org/licenses/>.
*/
#ifndef _QMOBIPOCKET_EXPORT_H
#define _QMOBIPOCKET_EXPORT_H
/* needed for KDE_EXPORT and KDE_IMPORT macros */
#include <kdemacros.h>
#ifndef QMOBIPOCKET_EXPORT
# if defined(KDELIBS_STATIC_LIBS)
/* No export/import for static libraries */
# define QMOBIPOCKET_EXPORT
# elif defined(MAKE_QMOBIPOCKET_LIB)
/* We are building this library */
# define QMOBIPOCKET_EXPORT KDE_EXPORT
# else
/* We are using this library */
# define QMOBIPOCKET_EXPORT KDE_IMPORT
# endif
#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