File: CMakeLists.txt

package info (click to toggle)
evolution 3.30.5-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 118,136 kB
  • sloc: ansic: 485,682; xml: 5,159; python: 702; makefile: 565; sh: 294; perl: 169
file content (124 lines) | stat: -rw-r--r-- 2,393 bytes parent folder | download | duplicates (2)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
install(FILES	addresstypes.xml
		address_formats.dat
		countrytransl.map
	DESTINATION ${privdatadir}
)

install(FILES e-addressbook-view.etspec
	DESTINATION ${etspecdir}
)

set(DEPENDENCIES
	eabutil
	econtactprint
	evolution-shell
	evolution-util
)

set(SOURCES
	eab-config.c
	eab-contact-compare.c
	eab-contact-compare.h
	eab-contact-display.c
	eab-contact-display.h
	eab-contact-formatter.c
	eab-contact-formatter.h
	eab-contact-merging.c
	eab-contact-merging.h
	eab-gui-util.c
	eab-gui-util.h
	e-contact-map.c
	e-contact-map.h
	e-contact-map-window.c
	e-contact-map-window.h
	e-minicard.c
	e-minicard.h
	e-minicard-label.c
	e-minicard-label.h
	e-minicard-view.c
	e-minicard-view.h
	e-minicard-view-widget.c
	e-minicard-view-widget.h
	e-addressbook-reflow-adapter.c
	e-addressbook-reflow-adapter.h
	e-addressbook-table-adapter.c
	e-addressbook-table-adapter.h
	e-addressbook-model.c
	e-addressbook-model.h
	e-addressbook-selector.c
	e-addressbook-selector.h
	e-addressbook-view.c
	e-addressbook-view.h
	gal-view-minicard.c
	gal-view-minicard.h
	ea-minicard.c
	ea-minicard.h
	ea-minicard-view.c
	ea-minicard-view.h
	ea-addressbook-view.c
	ea-addressbook-view.h
	ea-addressbook.c
	ea-addressbook.h
)

set(HEADERS
	eab-config.h
)

add_library(eabwidgets SHARED
	${SOURCES}
	${HEADERS}
)

add_dependencies(eabwidgets
	${DEPENDENCIES}
)

set_target_properties(eabwidgets PROPERTIES
	VERSION 0.0.0
	SOVERSION 0
)


target_compile_definitions(eabwidgets PRIVATE
	-DG_LOG_DOMAIN=\"eabwidgets\"
	-DEVOLUTION_ETSPECDIR=\"${etspecdir}\"
	-DEVOLUTION_IMAGESDIR=\"${imagesdir}\"
	-DEVOLUTION_PRIVDATADIR=\"${privdatadir}\"
)

target_compile_options(eabwidgets PUBLIC
	${CHAMPLAIN_CFLAGS}
	${EVOLUTION_DATA_SERVER_CFLAGS}
	${GEO_CFLAGS}
	${GNOME_PLATFORM_CFLAGS}
)

target_include_directories(eabwidgets PUBLIC
	${CMAKE_BINARY_DIR}
	${CMAKE_BINARY_DIR}/src
	${CMAKE_SOURCE_DIR}/src
	${CMAKE_CURRENT_BINARY_DIR}
	${CMAKE_SOURCE_DIR}/src/addressbook
	${CMAKE_SOURCE_DIR}/src/addressbook/util
	${CHAMPLAIN_INCLUDE_DIRS}
	${EVOLUTION_DATA_SERVER_INCLUDE_DIRS}
	${GEO_INCLUDE_DIRS}
	${GNOME_PLATFORM_INCLUDE_DIRS}
)

target_link_libraries(eabwidgets
	${DEPENDENCIES}
	${CHAMPLAIN_LDFLAGS}
	${EVOLUTION_DATA_SERVER_LDFLAGS}
	${GEO_LDFLAGS}
	${GNOME_PLATFORM_LDFLAGS}
)

install(TARGETS eabwidgets
	DESTINATION ${privsolibdir}
)

install(FILES ${HEADERS}
	DESTINATION ${privincludedir}/addressbook/gui/widgets
)