File: CMakeLists.txt

package info (click to toggle)
paraview 5.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 367,928 kB
  • sloc: cpp: 2,870,477; ansic: 1,329,317; python: 132,607; xml: 98,045; sh: 5,265; java: 4,541; yacc: 4,385; f90: 3,099; perl: 2,363; lex: 1,950; javascript: 1,574; objc: 143; makefile: 135; tcl: 59; pascal: 50; fortran: 27
file content (325 lines) | stat: -rw-r--r-- 10,717 bytes parent folder | download
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
# Set up protobuf include directories, and the export file
include_directories("${CMAKE_CURRENT_SOURCE_DIR}")

if (HAVE_PTHREAD)
  add_definitions(-DHAVE_PTHREAD)
endif ()

add_library(protobuf
  google/protobuf/compiler/importer.cc
  google/protobuf/compiler/parser.cc

  google/protobuf/io/coded_stream.cc
  google/protobuf/io/gzip_stream.cc
  google/protobuf/io/io_win32.cc
  google/protobuf/io/printer.cc
  google/protobuf/io/strtod.cc
  google/protobuf/io/tokenizer.cc
  google/protobuf/io/zero_copy_stream.cc
  google/protobuf/io/zero_copy_stream_impl.cc
  google/protobuf/io/zero_copy_stream_impl_lite.cc

  google/protobuf/stubs/bytestream.cc
  google/protobuf/stubs/common.cc
  google/protobuf/stubs/int128.cc
  google/protobuf/stubs/status.cc
  google/protobuf/stubs/statusor.cc
  google/protobuf/stubs/stringpiece.cc
  google/protobuf/stubs/stringprintf.cc
  google/protobuf/stubs/structurally_valid.cc
  google/protobuf/stubs/strutil.cc
  google/protobuf/stubs/substitute.cc
  google/protobuf/stubs/time.cc

  google/protobuf/util/delimited_message_util.cc
  google/protobuf/util/field_comparator.cc
  google/protobuf/util/field_mask_util.cc
  google/protobuf/util/json_util.cc
  google/protobuf/util/message_differencer.cc
  google/protobuf/util/time_util.cc
  google/protobuf/util/type_resolver_util.cc

  google/protobuf/util/internal/datapiece.cc
  google/protobuf/util/internal/default_value_objectwriter.cc
  google/protobuf/util/internal/error_listener.cc
  google/protobuf/util/internal/field_mask_utility.cc
  google/protobuf/util/internal/json_escaping.cc
  google/protobuf/util/internal/json_objectwriter.cc
  google/protobuf/util/internal/json_stream_parser.cc
  google/protobuf/util/internal/object_writer.cc
  google/protobuf/util/internal/proto_writer.cc
  google/protobuf/util/internal/protostream_objectsource.cc
  google/protobuf/util/internal/protostream_objectwriter.cc
  google/protobuf/util/internal/type_info.cc
  google/protobuf/util/internal/utility.cc

  google/protobuf/any.cc
  google/protobuf/any_lite.cc
  google/protobuf/any.pb.cc
  google/protobuf/api.pb.cc
  google/protobuf/arena.cc
  google/protobuf/descriptor.cc
  google/protobuf/descriptor.pb.cc
  google/protobuf/descriptor_database.cc
  google/protobuf/duration.pb.cc
  google/protobuf/dynamic_message.cc
  google/protobuf/empty.pb.cc
  google/protobuf/extension_set.cc
  google/protobuf/extension_set_heavy.cc
  google/protobuf/field_mask.pb.cc
  google/protobuf/generated_message_reflection.cc
  google/protobuf/generated_message_table_driven.cc
  google/protobuf/generated_message_table_driven_lite.cc
  google/protobuf/generated_message_util.cc
  google/protobuf/implicit_weak_message.cc
  google/protobuf/map_field.cc
  google/protobuf/message.cc
  google/protobuf/message_lite.cc
  google/protobuf/parse_context.cc
  google/protobuf/reflection_ops.cc
  google/protobuf/repeated_field.cc
  google/protobuf/service.cc
  google/protobuf/source_context.pb.cc
  google/protobuf/struct.pb.cc
  google/protobuf/text_format.cc
  google/protobuf/timestamp.pb.cc
  google/protobuf/type.pb.cc
  google/protobuf/unknown_field_set.cc
  google/protobuf/wire_format.cc
  google/protobuf/wire_format_lite.cc
  google/protobuf/wrappers.pb.cc)
_vtk_module_apply_properties(protobuf)
_vtk_module_install(protobuf)
target_compile_features(protobuf
  PUBLIC
    cxx_std_11)
add_library(ParaView::protobuf ALIAS protobuf)

target_include_directories(protobuf
  PUBLIC
    "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>"
    "$<INSTALL_INTERFACE:${_vtk_build_HEADERS_DESTINATION}/vtkprotobuf/src>")
target_link_libraries(protobuf
  PRIVATE
    ${THREAD_LINK_LIB})
set_target_properties(protobuf
  PROPERTIES
    DEFINE_SYMBOL LIBPROTOBUF_EXPORTS)
if (BUILD_SHARED_LIBS)
  target_compile_definitions(protobuf
    PUBLIC
      PROTOBUF_USE_DLLS)
endif ()

set(headers
  google/protobuf/any.h
  google/protobuf/any.pb.h
  google/protobuf/api.pb.h
  google/protobuf/arena.h
  google/protobuf/arena_impl.h
  google/protobuf/arenastring.h
  google/protobuf/descriptor_database.h
  google/protobuf/descriptor.h
  google/protobuf/descriptor.pb.h
  google/protobuf/duration.pb.h
  google/protobuf/dynamic_message.h
  google/protobuf/empty.pb.h
  google/protobuf/extension_set.h
  google/protobuf/extension_set_inl.h
  google/protobuf/field_mask.pb.h
  google/protobuf/generated_enum_reflection.h
  google/protobuf/generated_enum_util.h
  google/protobuf/generated_message_reflection.h
  google/protobuf/generated_message_table_driven.h
  google/protobuf/generated_message_table_driven_lite.h
  google/protobuf/generated_message_util.h
  google/protobuf/has_bits.h
  google/protobuf/implicit_weak_message.h
  google/protobuf/inlined_string_field.h
  google/protobuf/map_entry.h
  google/protobuf/map_entry_lite.h
  google/protobuf/map_field.h
  google/protobuf/map_field_inl.h
  google/protobuf/map_field_lite.h
  google/protobuf/map.h
  google/protobuf/map_type_handler.h
  google/protobuf/message.h
  google/protobuf/message_lite.h
  google/protobuf/metadata.h
  google/protobuf/metadata_lite.h
  google/protobuf/package_info.h
  google/protobuf/parse_context.h
  google/protobuf/port.h
  google/protobuf/reflection.h
  google/protobuf/reflection_internal.h
  google/protobuf/reflection_ops.h
  google/protobuf/repeated_field.h
  google/protobuf/service.h
  google/protobuf/source_context.pb.h
  google/protobuf/struct.pb.h
  google/protobuf/text_format.h
  google/protobuf/timestamp.pb.h
  google/protobuf/type.pb.h
  google/protobuf/unknown_field_set.h
  google/protobuf/wire_format.h
  google/protobuf/wire_format_lite.h
  google/protobuf/wrappers.pb.h

  google/protobuf/any.proto
  google/protobuf/api.proto
  google/protobuf/descriptor.proto
  google/protobuf/duration.proto
  google/protobuf/empty.proto
  google/protobuf/field_mask.proto
  google/protobuf/source_context.proto
  google/protobuf/struct.proto
  google/protobuf/timestamp.proto
  google/protobuf/type.proto
  google/protobuf/wrappers.proto)

set(compiler_headers
  google/protobuf/compiler/code_generator.h
  google/protobuf/compiler/command_line_interface.h
  google/protobuf/compiler/importer.h
  google/protobuf/compiler/mock_code_generator.h
  google/protobuf/compiler/package_info.h
  google/protobuf/compiler/parser.h
  google/protobuf/compiler/plugin.h
  google/protobuf/compiler/plugin.pb.h
  google/protobuf/compiler/scc.h
  google/protobuf/compiler/subprocess.h
  google/protobuf/compiler/zip_writer.h
  google/protobuf/compiler/plugin.proto)

set(io_headers
  google/protobuf/io/coded_stream.h
  google/protobuf/io/gzip_stream.h
  google/protobuf/io/io_win32.h
  google/protobuf/io/package_info.h
  google/protobuf/io/printer.h
  google/protobuf/io/strtod.h
  google/protobuf/io/tokenizer.h
  google/protobuf/io/zero_copy_stream.h
  google/protobuf/io/zero_copy_stream_impl.h
  google/protobuf/io/zero_copy_stream_impl_lite.h)

set(stubs_headers
  google/protobuf/stubs/bytestream.h
  google/protobuf/stubs/callback.h
  google/protobuf/stubs/casts.h
  google/protobuf/stubs/common.h
  google/protobuf/stubs/fastmem.h
  google/protobuf/stubs/hash.h
  google/protobuf/stubs/int128.h
  google/protobuf/stubs/logging.h
  google/protobuf/stubs/macros.h
  google/protobuf/stubs/map_util.h
  google/protobuf/stubs/mathutil.h
  google/protobuf/stubs/mutex.h
  google/protobuf/stubs/once.h
  google/protobuf/stubs/platform_macros.h
  google/protobuf/stubs/port.h
  google/protobuf/stubs/status.h
  google/protobuf/stubs/status_macros.h
  google/protobuf/stubs/statusor.h
  google/protobuf/stubs/stl_util.h
  google/protobuf/stubs/stringpiece.h
  google/protobuf/stubs/stringprintf.h
  google/protobuf/stubs/strutil.h
  google/protobuf/stubs/substitute.h
  google/protobuf/stubs/template_util.h
  google/protobuf/stubs/time.h)

set(util_headers
  google/protobuf/util/delimited_message_util.h
  google/protobuf/util/field_comparator.h
  google/protobuf/util/field_mask_util.h
  google/protobuf/util/json_util.h
  google/protobuf/util/message_differencer.h
  google/protobuf/util/package_info.h
  google/protobuf/util/time_util.h
  google/protobuf/util/type_resolver.h
  google/protobuf/util/type_resolver_util.h

  google/protobuf/util/json_format.proto
  google/protobuf/util/json_format_proto3.proto)

vtk_module_install_headers(
  FILES   ${headers}
  SUBDIR  "vtkprotobuf/src/google/protobuf")
vtk_module_install_headers(
  FILES   ${compiler_headers}
  SUBDIR  "vtkprotobuf/src/google/protobuf/compiler")
vtk_module_install_headers(
  FILES   ${io_headers}
  SUBDIR  "vtkprotobuf/src/google/protobuf/io")
vtk_module_install_headers(
  FILES   ${stubs_headers}
  SUBDIR  "vtkprotobuf/src/google/protobuf/stubs")
vtk_module_install_headers(
  FILES   ${util_headers}
  SUBDIR  "vtkprotobuf/src/google/protobuf/util")

add_library(vtklibprotoc
  google/protobuf/compiler/code_generator.cc
  google/protobuf/compiler/command_line_interface.cc
  google/protobuf/compiler/plugin.cc
  google/protobuf/compiler/plugin.pb.cc
  google/protobuf/compiler/subprocess.cc
  google/protobuf/compiler/zip_writer.cc

  google/protobuf/compiler/cpp/cpp_enum.cc
  google/protobuf/compiler/cpp/cpp_enum_field.cc
  google/protobuf/compiler/cpp/cpp_extension.cc
  google/protobuf/compiler/cpp/cpp_field.cc
  google/protobuf/compiler/cpp/cpp_file.cc
  google/protobuf/compiler/cpp/cpp_generator.cc
  google/protobuf/compiler/cpp/cpp_helpers.cc
  google/protobuf/compiler/cpp/cpp_map_field.cc
  google/protobuf/compiler/cpp/cpp_message.cc
  google/protobuf/compiler/cpp/cpp_message_field.cc
  google/protobuf/compiler/cpp/cpp_padding_optimizer.cc
  google/protobuf/compiler/cpp/cpp_primitive_field.cc
  google/protobuf/compiler/cpp/cpp_service.cc
  google/protobuf/compiler/cpp/cpp_string_field.cc)
_vtk_module_apply_properties(vtklibprotoc)
_vtk_module_install(vtklibprotoc)

target_link_libraries(vtklibprotoc
  PRIVATE
    ParaView::protobuf)
set_target_properties(vtklibprotoc
  PROPERTIES
    DEFINE_SYMBOL LIBPROTOC_EXPORTS)

find_package(Threads REQUIRED)

vtk_module_add_executable(vtkprotoc
  DEVELOPMENT
  google/protobuf/compiler/main.cc)

set(vtkprotoc_no_as_needed)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
  if (COMMAND target_link_options)
    target_link_options(vtkprotoc
      PRIVATE
        -Wl,--no-as-needed)
  else ()
    set(vtkprotoc_no_as_needed
      -Wl,--no-as-needed)
  endif ()
endif ()

if ((DEB_HOST_MULTIARCH STREQUAL "arm-linux-gnueabi") OR (DEB_HOST_MULTIARCH STREQUAL "mipsel-linux-gnu"))
  set(ATOMIC_LIB atomic)
else ()
  set(ATOMIC_LIB "")
endif ()

target_link_libraries(vtkprotoc
  PRIVATE
    ${vtkprotoc_no_as_needed}
    vtklibprotoc
    ParaView::protobuf
    Threads::Threads ${ATOMIC_LIB})
add_executable(ParaView::protoc ALIAS vtkprotoc)