Commit 1db9cc44 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use generated export header

parent 0f3f85c7
......@@ -18,6 +18,7 @@ include(ECMQtDeclareLoggingCategory)
include(FeatureSummary)
include(CheckCXXCompilerFlag)
include(CMakePackageConfigHelpers)
include(GenerateExportHeader)
find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core DBus Gui Test X11Extras)
......
......@@ -22,6 +22,7 @@ set(libkscreen_SRCS
qt5_add_dbus_interface(libkscreen_SRCS ${CMAKE_SOURCE_DIR}/interfaces/org.kde.KScreen.Backend.xml backendinterface)
add_library(KF5Screen SHARED ${libkscreen_SRCS})
generate_export_header(KF5Screen BASE_NAME KScreen)
target_link_libraries(KF5Screen
PUBLIC
......@@ -63,7 +64,7 @@ ecm_generate_headers(KScreen_HEADERS
install(FILES ${KScreen_HEADERS}
DESTINATION ${KF5_INCLUDE_INSTALL_DIR}/KScreen/KScreen
COMPONENT Devel)
install(FILES kscreen_export.h
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kscreen_export.h
backendmanager_p.h # needed for unit-tests in KScreen
${KScreen_REQ_HEADERS}
DESTINATION ${KF5_INCLUDE_INSTALL_DIR}/KScreen/kscreen)
......
/*************************************************************************************
* Copyright (C) 2012 by Alejandro Fiestas Olivares <afiestas@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) 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 *
* 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, write to the Free Software *
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
*************************************************************************************/
#ifndef KSCREEN_EXPORT_H
#define KSCREEN_EXPORT_H
#include <QtCore/QtGlobal>
#define KSCREEN_EXPORT Q_DECL_EXPORT
#endif // KSCREEN_EXPORT_H
Supports Markdown
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