blob: fe7d4334ed9b1f0cd15ab43e017ee289465e8d6d (
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
|
project(src)
set(QMENUMODEL_SRC
converter.cpp
dbus-enums.h
qmenumodel.cpp
qdbusobject.cpp
qdbusmenumodel.cpp
qdbusactiongroup.cpp
qstateaction.cpp
)
set(SHAREDLIBNAME qmenumodel)
add_library(${SHAREDLIBNAME} SHARED
${QMENUMODEL_SRC}
)
set_target_properties(${SHAREDLIBNAME} PROPERTIES
COMPILE_FLAGS -fPIC
SOVERSION 0
VERSION 0.1.1
)
include_directories(
${GLIB_INCLUDE_DIRS}
${GIO_INCLUDE_DIRS}
)
target_link_libraries(${SHAREDLIBNAME}
${GLIB_LDFLAGS}
${GIO_LDFLAGS}
)
qt5_use_modules(${SHAREDLIBNAME} Core)
install(TARGETS ${SHAREDLIBNAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
set(QMENUMODEL_HEADERS
dbus-enums.h
qdbusactiongroup.h
qdbusmenumodel.h
qdbusobject.h
qmenumodel.h
qstateaction.h
)
set(INCLUDEDIR qmenumodel)
install(FILES ${QMENUMODEL_HEADERS}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${INCLUDEDIR}
)
set(PCFILE qmenumodel.pc)
configure_file(${PCFILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${PCFILE} @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PCFILE}
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)
|