[bt-devel] RFC: Remove modules installed by the native package manager

Sveinung Kvilhaugsvik sveinung84 at users.sourceforge.net
Mon Apr 27 11:21:03 MST 2009


Made cmake detect PackageKit

=== modified file 'CMakeLists.txt'
--- CMakeLists.txt	2009-04-27 04:25:58 +0000
+++ CMakeLists.txt	2009-04-27 14:29:18 +0000
@@ -31,6 +31,13 @@
 #SET(QT_DBUSXML2CPP_EXECUTABLE "/usr/bin/qdbusxml2cpp") #TEMP HACK?

 FIND_PACKAGE(Boost REQUIRED)
+
+FIND_PACKAGE(QPackageKit QUIET)
+IF ( QPACKAGEKIT_FOUND )
+	message("Using QPackageKit")
+	ADD_DEFINITIONS(-DPackageKitFound ${QPACKAGEKIT_DEFINITIONS} )
+ENDIF ( QPACKAGEKIT_FOUND )
+
 #
 #custom includes
 #
@@ -60,6 +67,7 @@
 	${CLUCENE_LIBRARY_DIR}			#CLucene/clucene-config.h
 	${Boost_INCLUDE_DIRS}
 	${SWORD_INCLUDE_DIR}
+	${QPACKAGEKIT_INCLUDE_DIR}
 )


@@ -86,6 +94,7 @@
 		${QT_LIBRARIES}
 		${CLUCENE_LIBRARY}
 		${SWORD_LIBS}
+		${QPACKAGEKIT_LIB}
 	)
 ELSE (CMAKE_BUILD_TYPE STREQUAL "Release")
 	# this will run moc on source files
@@ -105,6 +114,7 @@
 		${QT_LIBRARIES_DEBUG}
 		${CLUCENE_LIBRARY}
 		${SWORD_LIBS}
+		${QPACKAGEKIT_LIB}
 	)
 	# Unit Tests
 	ADD_CUSTOM_TARGET(test

=== modified file 'ChangeLog'
--- ChangeLog	2009-04-27 00:42:26 +0000
+++ ChangeLog	2009-04-27 14:29:18 +0000
@@ -1,3 +1,6 @@
+2009-04-27 Sveinung Kvilhaugsvik <sveinung84 at users.sourceforge.net>
+    * Made cmake detect PackageKit
+
 2009-04-26 Gary Holmlund
 	* Fix clicking of links in the Mag Window.



More information about the bt-devel mailing list