2015-06-04 01:29:22 +01:00
|
|
|
# Copyright (C) 2010 by Volker Lanz <vl@fidra.de>
|
|
|
|
#
|
|
|
|
# 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 3 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/>.
|
|
|
|
|
|
|
|
find_package(LIBPARTED REQUIRED)
|
|
|
|
|
|
|
|
if (LIBPARTED_FILESYSTEM_SUPPORT)
|
|
|
|
add_definitions(-DLIBPARTED_FILESYSTEM_SUPPORT)
|
|
|
|
endif (LIBPARTED_FILESYSTEM_SUPPORT)
|
|
|
|
|
|
|
|
if (LIBPARTED_FS_RESIZE_LIBRARY_SUPPORT)
|
|
|
|
add_definitions(-DLIBPARTED_FS_RESIZE_LIBRARY_SUPPORT)
|
|
|
|
endif (LIBPARTED_FS_RESIZE_LIBRARY_SUPPORT)
|
|
|
|
|
|
|
|
include_directories(${LIBPARTED_INCLUDE_DIR})
|
|
|
|
|
2016-05-04 22:14:38 +01:00
|
|
|
set (pmlibpartedbackendplugin_SRCS
|
|
|
|
libpartedbackend.cpp
|
|
|
|
libparteddevice.cpp
|
|
|
|
libpartedpartition.cpp
|
|
|
|
libpartedpartitiontable.cpp
|
|
|
|
)
|
2015-06-04 01:29:22 +01:00
|
|
|
|
|
|
|
add_library(pmlibpartedbackendplugin SHARED ${pmlibpartedbackendplugin_SRCS})
|
|
|
|
|
2016-07-21 13:16:29 +01:00
|
|
|
target_link_libraries(pmlibpartedbackendplugin kpmcore ${LIBPARTED_LIBS} KF5::Auth KF5::KIOCore KF5::I18n)
|
2015-06-04 01:29:22 +01:00
|
|
|
|
2016-01-31 14:45:34 +00:00
|
|
|
install(TARGETS pmlibpartedbackendplugin DESTINATION ${KDE_INSTALL_PLUGINDIR})
|
2016-08-22 19:51:33 +01:00
|
|
|
kcoreaddons_desktop_to_json(pmlibpartedbackendplugin pmlibpartedbackendplugin.desktop DEFAULT_SERVICE_TYPE)
|
2015-06-04 01:29:22 +01:00
|
|
|
install(FILES pmlibpartedbackendplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|
2016-07-21 13:16:29 +01:00
|
|
|
|
|
|
|
add_subdirectory(helpers)
|