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 (96 lines) | stat: -rw-r--r-- 1,895 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
glib_mkenums(e-mail-engine-enumtypes e-mail-engine-enums.h E_MAIL_ENGINE_ENUMTYPES_H)
add_pkgconfig_file(libemail-engine.pc.in libemail-engine.pc)

set(DEPENDENCIES
	evolution-util
)

set(SOURCES
	camel-null-store.c
	e-mail-folder-utils.c
	e-mail-junk-filter.c
	e-mail-session-utils.c
	e-mail-session.c
	e-mail-store-utils.c
	e-mail-utils.c
	em-filter-folder-element.c
	em-vfolder-context.c
	em-vfolder-rule.c
	mail-config.c
	mail-folder-cache.c
	mail-mt.c
	mail-ops.c
	mail-tools.c
	mail-vfolder.c
	${CMAKE_CURRENT_BINARY_DIR}/e-mail-engine-enumtypes.c
)

set(HEADERS
	libemail-engine.h
	camel-null-store.h
	e-mail-engine-enums.h
	e-mail-folder-utils.h
	e-mail-junk-filter.h
	e-mail-session-utils.h
	e-mail-session.h
	e-mail-store-utils.h
	e-mail-utils.h
	em-filter-folder-element.h
	em-vfolder-context.h
	em-vfolder-rule.h
	mail-config.h
	mail-folder-cache.h
	mail-mt.h
	mail-ops.h
	mail-tools.h
	mail-vfolder.h
	${CMAKE_CURRENT_BINARY_DIR}/e-mail-engine-enumtypes.h
)

add_library(email-engine SHARED
	${SOURCES}
	${HEADERS}
)

add_dependencies(email-engine
	${DEPENDENCIES}
)

set_target_properties(email-engine PROPERTIES
	VERSION 0.0.0
	SOVERSION 0
)

target_compile_definitions(email-engine PRIVATE
	-DG_LOG_DOMAIN=\"e-mail-engine\"
	-DEVOLUTION_PRIVDATADIR=\"${privdatadir}\"
	-DLIBEMAIL_ENGINE_COMPILATION
)

target_compile_options(email-engine PUBLIC
	${EVOLUTION_DATA_SERVER_CFLAGS}
	${GNOME_PLATFORM_CFLAGS}
)

target_include_directories(email-engine PUBLIC
	${CMAKE_BINARY_DIR}
	${CMAKE_BINARY_DIR}/src
	${CMAKE_SOURCE_DIR}/src
	${CMAKE_CURRENT_BINARY_DIR}
	${EVOLUTION_DATA_SERVER_INCLUDE_DIRS}
	${GNOME_PLATFORM_INCLUDE_DIRS}
)

target_link_libraries(email-engine
	${DEPENDENCIES}
	${EVOLUTION_DATA_SERVER_LDFLAGS}
	${GNOME_PLATFORM_LDFLAGS}
)

install(TARGETS email-engine
	DESTINATION ${privsolibdir}
)

install(FILES ${HEADERS}
	DESTINATION ${privincludedir}/libemail-engine
)