diff options
author | Adrien BUSTANY <madcat@mymadcat.com> | 2008-06-29 01:10:05 +0200 |
---|---|---|
committer | Adrien BUSTANY <madcat@mymadcat.com> | 2008-06-29 01:10:05 +0200 |
commit | 613bac2ab51de64b4b48fd7e8525636e2e3b3cfd (patch) | |
tree | bad062dd28954449d4d62127845720350db5feaf | |
parent | c81f3f6bd05c726d36f9dcec714397f0179f490b (diff) |
Switch the lib to cmake
-rw-r--r-- | lib/CMakeLists.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt new file mode 100644 index 0000000..fdd80b2 --- /dev/null +++ b/lib/CMakeLists.txt @@ -0,0 +1,30 @@ +project(packagekit-qt) + +set(CMAKE_MODULE_PATH ${packagekit-qt_SOURCE_DIR}/cmake/modules) + +find_package(Qt4 REQUIRED) + +include(FindPkgConfig) +pkg_check_modules(POLICYKIT polkit-dbus) + +include_directories( + ${QT_INCLUDES} + ${POLICYKIT_INCLUDE_DIRS} +) + +set( packagekit-qt_LIB_SRCS + CentralProxy.cpp + Daemon.cpp + Package.cpp + PolkitClient.cpp + Transaction.cpp + TransactionProxy.cpp +) + +add_library(packagekit-qt SHARED ${packagekit-qt_LIB_SRCS}) +set_target_properties( packagekit-qt PROPERTIES VERSION 0.1 SOVERSION 0 ) + +target_link_libraries(packagekit-qt + ${QT_QTCORE_LIBRARY} +) + |