blob: 2fe16b442bcbbe8cf59b5cd3709f5a28986feb8c (
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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
##### check for openexr #########################
if( WITH_OPENEXR )
pkg_search_module( OPENEXR OpenEXR )
if( NOT OPENEXR_FOUND )
message(FATAL_ERROR "\nopenexr are requested, but not found on your system" )
endif( NOT OPENEXR_FOUND )
set( HAVE_EXR 1 )
endif( WITH_OPENEXR )
##### compiler/linker flags #####################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${XCURSOR_INCLUDE_DIRS}
${OPENEXR_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
tde_create_translated_desktop(
SOURCE
thumbnail.protocol imagethumbnail.desktop textthumbnail.desktop
htmlthumbnail.desktop djvuthumbnail.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR tdeioslave-desktops
)
tde_create_translated_desktop(
SOURCE thumbcreator.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR}
PO_DIR tdeioslave-desktops
)
##### tdeio_thumbnail (module) ####################
set( target tdeio_thumbnail )
tde_add_kpart( ${target} AUTOMOC
SOURCES thumbnail.cpp
LINK tdeio-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### imagethumbnail (module) ####################
set( target imagethumbnail )
tde_add_kpart( ${target} AUTOMOC
SOURCES imagecreator.cpp
LINK tdeio-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### textthumbnail (module) ####################
set( target textthumbnail )
tde_add_kpart( ${target} AUTOMOC
SOURCES textcreator.cpp
LINK tdeio-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### htmlthumbnail (module) ####################
set( target htmlthumbnail )
tde_add_kpart( ${target} AUTOMOC
SOURCES htmlcreator.cpp
LINK tdehtml-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### djvuthumbnail (module) ####################
set( target djvuthumbnail )
tde_add_kpart( ${target} AUTOMOC
SOURCES djvucreator.cpp
LINK tdecore-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### cursorthumbnail (module) ##################
if( WITH_XCURSOR )
set( target cursorthumbnail )
tde_add_kpart( ${target} AUTOMOC
SOURCES cursorcreator.cpp
LINK tdecore-shared ${XCURSOR_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR}
)
tde_create_translated_desktop(
SOURCE cursorthumbnail.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR tdeioslave-desktops
)
endif( WITH_XCURSOR )
##### exrthumbnail (module) #####################
if( WITH_OPENEXR )
set( target exrthumbnail )
tde_add_kpart( ${target} AUTOMOC
SOURCES exrcreator.cpp
LINK tdecore-shared ${OPENEXR_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR}
)
tde_create_translated_desktop(
SOURCE exrthumbnail.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR tdeioslave-desktops
)
endif( WITH_OPENEXR )
|