diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b6adca0..a51334a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -37,6 +37,11 @@ target_link_libraries( kpmcore PUBLIC KF5::CoreAddons KF5::WidgetsAddons ) +generate_export_header(kpmcore + BASE_NAME LIBKPMCORE + EXPORT_FILE_NAME util/libpartitionmanagerexport.h +) +list(APPEND UTIL_LIB_HDRS ${CMAKE_CURRENT_BINARY_DIR}/util/libpartitionmanagerexport.h) install(TARGETS kpmcore EXPORT KPMcoreTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) install(FILES ${CORE_LIB_HDRS} DESTINATION ${INCLUDE_INSTALL_DIR}/kpmcore/core/ COMPONENT Devel) diff --git a/src/util/CMakeLists.txt b/src/util/CMakeLists.txt index bfe06f7..f22f48f 100644 --- a/src/util/CMakeLists.txt +++ b/src/util/CMakeLists.txt @@ -36,7 +36,6 @@ set(UTIL_SRC ) set(UTIL_LIB_HDRS - util/libpartitionmanagerexport.h util/capacity.h util/externalcommand.h util/globallog.h diff --git a/src/util/libpartitionmanagerexport.h b/src/util/libpartitionmanagerexport.h deleted file mode 100644 index fb51932..0000000 --- a/src/util/libpartitionmanagerexport.h +++ /dev/null @@ -1,14 +0,0 @@ -/* - SPDX-FileCopyrightText: 2008 Volker Lanz - SPDX-FileCopyrightText: 2014-2018 Andrius Štikonas - SPDX-FileCopyrightText: 2015 Chris Campbell - - SPDX-License-Identifier: GPL-3.0-or-later -*/ - -#ifndef LIBKPMCORE_EXPORT - -#include -#define LIBKPMCORE_EXPORT Q_DECL_EXPORT - -#endif