don't globally serach for libparted. also add the libparted include path to the

compiler's search path for the libparted plugin dir.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1249820
This commit is contained in:
Volker Lanz 2011-08-27 20:51:19 +00:00
parent bd8eaac556
commit a157e6ae1e
2 changed files with 4 additions and 1 deletions

View File

@ -38,7 +38,6 @@ find_package(MSGFMT REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(BLKID REQUIRED blkid)
pkg_check_modules(LIBATASMART REQUIRED libatasmart)
find_package(LIBPARTED REQUIRED)
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
add_definitions(${KDE4_ENABLE_EXCEPTIONS})

View File

@ -15,6 +15,10 @@
# Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
find_package(LIBPARTED REQUIRED)
include_directories(${LIBPARTED_INCLUDE_DIR})
file (GLOB pmlibpartedbackendplugin_SRCS *.cpp)
kde4_add_plugin(pmlibpartedbackendplugin ${pmlibpartedbackendplugin_SRCS})