diff options
author | Daniel Nicoletti <mirttex85-pk@yahoo.com.br> | 2008-06-29 15:07:20 -0300 |
---|---|---|
committer | Daniel Nicoletti <mirttex85-pk@yahoo.com.br> | 2008-06-29 15:07:20 -0300 |
commit | 09f851aef2d23eac9b128920e462ea24a2644860 (patch) | |
tree | a323a91207bb1467f558a07911e66669bddecb03 /lib/modules/FindQPackageKit.cmake | |
parent | ffe2c8d6fe8a3dc2908e4afb305d46cec566275e (diff) |
now the FindQPackageKit works, but now we have a link error..
Diffstat (limited to 'lib/modules/FindQPackageKit.cmake')
-rw-r--r-- | lib/modules/FindQPackageKit.cmake | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/lib/modules/FindQPackageKit.cmake b/lib/modules/FindQPackageKit.cmake index f5d3e29..44a448d 100644 --- a/lib/modules/FindQPackageKit.cmake +++ b/lib/modules/FindQPackageKit.cmake @@ -3,7 +3,7 @@ # # QPACKAGEKIT_FOUND - system has QPackageKit # QPACKAGEKIT_INCLUDE_DIR - the QPackageKit include directory -# QPACKAGEKIT_LIBS - Link these to use QPackageKit +# QPACKAGEKIT_LIB - Link these to use QPackageKit # QPACKAGEKIT_DEFINITIONS - Compiler switches required for using QPackageKit # Copyright (c) 2008, Adrien Bustany, <madcat@mymadcat.com> @@ -11,24 +11,25 @@ # Redistribution and use is allowed according to the terms of the GPLv3+ license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. -IF (QPACKAGEKIT_INCLUDE_DIR AND QPACKAGEKIT_LIBS) +IF (QPACKAGEKIT_INCLUDE_DIR AND QPACKAGEKIT_LIB) SET(QPACKAGEKIT_FIND_QUIETLY TRUE) -ENDIF (QPACKAGEKIT_INCLUDE_DIR AND QPACKAGEKIT_LIBS) +ENDIF (QPACKAGEKIT_INCLUDE_DIR AND QPACKAGEKIT_LIB) -FIND_PATH(QPACKAGEKIT_INCLUDE_DIR QPackageKit) -FIND_LIBRARY(QPACKAGEKIT_LIBS NAMES packagekit-qt) +FIND_PATH( QPACKAGEKIT_INCLUDE_DIR packagekit-qt/QPackageKit ) -IF (QPACKAGEKIT_INCLUDE_DIR AND QPACKAGEKIT_LIBS) +FIND_LIBRARY( QPACKAGEKIT_LIB NAMES packagekit-qt ) + +IF (QPACKAGEKIT_INCLUDE_DIR AND QPACKAGEKIT_LIB) SET(QPACKAGEKIT_FOUND TRUE) -ELSE (QPACKAGEKIT_INCLUDE_DIR AND QPACKAGEKIT_LIBS) +ELSE (QPACKAGEKIT_INCLUDE_DIR AND QPACKAGEKIT_LIB) SET(QPACKAGEKIT_FOUND FALSE) -ENDIF (QPACKAGEKIT_INCLUDE_DIR AND QPACKAGEKIT_LIBS) +ENDIF (QPACKAGEKIT_INCLUDE_DIR AND QPACKAGEKIT_LIB) -SET(QPACKAGEKIT_INCLUDE_DIR QPACKAGEKIT_INCLUDE_DIR/packagekit-qt) +SET(QPACKAGEKIT_INCLUDE_DIR ${QPACKAGEKIT_INCLUDE_DIR}/packagekit-qt) IF (QPACKAGEKIT_FOUND) IF (NOT QPACKAGEKIT_FIND_QUIETLY) - MESSAGE(STATUS "Found QPackageKit: ${QPACKAGEKIT_INCLUDE_DIR}") + MESSAGE(STATUS "Found QPackageKit: ${QPACKAGEKIT_LIB}") ENDIF (NOT QPACKAGEKIT_FIND_QUIETLY) ELSE (QPACKAGEKIT_FOUND) IF (QPACKAGEKIT_FIND_REQUIRED) @@ -36,5 +37,5 @@ ELSE (QPACKAGEKIT_FOUND) ENDIF (QPACKAGEKIT_FIND_REQUIRED) ENDIF (QPACKAGEKIT_FOUND) -MARK_AS_ADVANCED(QPACKAGEKIT_INCLUDE_DIR QPACKAGEKIT_LIBS) +MARK_AS_ADVANCED(QPACKAGEKIT_INCLUDE_DIR QPACKAGEKIT_LIB) |