blob: 318d6ab9fc75e99dc5f6cf31533db957cbdfd65f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
cmake_minimum_required(VERSION 2.4.8)
project(packagekit-qt)
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
SET(LIB_SUFFIX "64")
ELSE(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
SET(LIB_SUFFIX "")
ENDIF(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
find_package(Qt4 REQUIRED)
add_definitions(${QT_DEFINITIONS})
include(FindPkgConfig)
pkg_check_modules(POLKIT polkit-dbus)
include_directories(
${QT_INCLUDES}
${POLKIT_INCLUDE_DIRS}
)
set( PK_LIB_SRCS
CentralProxy.cpp
Daemon.cpp
Package.cpp
PolkitClient.cpp
Transaction.cpp
TransactionProxy.cpp
)
set( PK_SRCS
CentralProxy.h
Daemon.h
Package.h
PolkitClient.h
Transaction.h
TransactionProxy.h
Error.h
Exit.h
Actions.h
Provides.h
Restart.h
Role.h
SignatureType.h
Status.h
Groups.h
)
QT4_WRAP_CPP( Pk_MOC_SRCS ${PK_SRCS} )
add_library(packagekit-qt SHARED ${Pk_MOC_SRCS} ${PK_LIB_SRCS})
set_target_properties( packagekit-qt PROPERTIES VERSION 0.1 SOVERSION 0 )
target_link_libraries(packagekit-qt
${QT_QTCORE_LIBRARY}
${QT_QTDBUS_LIBRARY}
polkit-dbus
dbus-1
)
install(TARGETS
packagekit-qt
DESTINATION
lib${LIB_SUFFIX}
)
install(FILES
CentralProxy.h
TransactionProxy.h
Daemon.h
Transaction.h
Package.h
Exit.h
Actions.h
Error.h
Enum.h
Provides.h
Restart.h
Role.h
SignatureType.h
Status.h
Groups.h
QPackageKit
DESTINATION
include/packagekit-qt)
add_subdirectory(modules)
#endif
|