Mercurial > hg > orthanc
annotate OrthancFramework/Resources/ProtocolBuffers/ProtobufLibrary.cmake @ 5666:aa231c18b9d2 find-refactoring
adding computed tags
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Jul 2024 18:31:54 +0200 |
parents | f7adfb22e20e |
children |
rev | line source |
---|---|
5186
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 # Orthanc - A Lightweight, RESTful DICOM Store |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 # Department, University Hospital of Liege, Belgium |
5640
f7adfb22e20e
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5485
diff
changeset
|
4 # Copyright (C) 2017-2023 Osimis S.A., Belgium |
f7adfb22e20e
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5485
diff
changeset
|
5 # Copyright (C) 2024-2024 Orthanc Team SRL, Belgium |
5485
48b8dae6dc77
upgrade to year 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5434
diff
changeset
|
6 # Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
5186
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 # |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
8 # This program is free software: you can redistribute it and/or |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 # modify it under the terms of the GNU Lesser General Public License |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 # as published by the Free Software Foundation, either version 3 of |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 # the License, or (at your option) any later version. |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 # |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
13 # This program is distributed in the hope that it will be useful, but |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 # WITHOUT ANY WARRANTY; without even the implied warranty of |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 # Lesser General Public License for more details. |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
17 # |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
18 # You should have received a copy of the GNU Lesser General Public |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
19 # License along with this program. If not, see |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
20 # <http://www.gnu.org/licenses/>. |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 |
5188
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
23 set(PROTOBUF_SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/protobuf-3.5.1) |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
24 |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
25 if (IS_DIRECTORY "${PROTOBUF_SOURCE_DIR}") |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
26 set(FirstRun OFF) |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
27 else() |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
28 set(FirstRun ON) |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
29 endif() |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
30 |
5186
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
31 DownloadPackage( |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
32 "ca0d9b243e649d398a6b419acd35103a" |
5434
aa1c09fa6632
changed location of third-party downloads
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5357
diff
changeset
|
33 "https://orthanc.uclouvain.be/downloads/third-party-downloads/protobuf-cpp-3.5.1.tar.gz" |
5186
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
34 "${CMAKE_CURRENT_BINARY_DIR}/protobuf-3.5.1") |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
35 |
5188
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
36 if (FirstRun) |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
37 # Apply the patches |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
38 execute_process( |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
39 COMMAND ${PATCH_EXECUTABLE} -p0 -N -i |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
40 ${CMAKE_CURRENT_LIST_DIR}/../Patches/protobuf-3.5.1.patch |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
41 WORKING_DIRECTORY ${CMAKE_BINARY_DIR} |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
42 RESULT_VARIABLE Failure |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
43 ) |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
44 |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
45 if (Failure) |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
46 message(FATAL_ERROR "Error while patching a file") |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
47 endif() |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
48 endif() |
5186
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
49 |
5187
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
50 include_directories( |
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
51 ${PROTOBUF_SOURCE_DIR}/src |
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
52 ) |
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
53 |
5186
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
54 set(PROTOBUF_LIBRARY_SOURCES |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
55 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/any.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
56 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/any.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
57 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/api.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
58 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/arena.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
59 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/arenastring.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
60 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/descriptor.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
61 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/descriptor.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
62 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/descriptor_database.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
63 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/duration.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
64 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/dynamic_message.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
65 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/empty.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
66 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/extension_set.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
67 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/extension_set_heavy.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
68 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/field_mask.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
69 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/generated_message_reflection.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
70 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/generated_message_table_driven.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
71 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/generated_message_table_driven_lite.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
72 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/generated_message_util.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
73 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/io/coded_stream.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
74 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/io/gzip_stream.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
75 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/io/printer.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
76 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/io/strtod.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
77 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/io/tokenizer.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
78 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/io/zero_copy_stream.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
79 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/io/zero_copy_stream_impl.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
80 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/io/zero_copy_stream_impl_lite.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
81 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/map_field.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
82 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/message.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
83 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/message_lite.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
84 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/reflection_ops.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
85 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/repeated_field.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
86 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/service.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
87 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/source_context.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
88 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/struct.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
89 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/atomicops_internals_arm64_gcc.h |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
90 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/atomicops_internals_arm_gcc.h |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
91 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
92 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/atomicops_internals_mips_gcc.h |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
93 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/atomicops_internals_ppc_gcc.h |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
94 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
95 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/atomicops_internals_x86_gcc.h |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
96 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
97 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/common.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
98 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/int128.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
99 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/io_win32.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
100 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/mathlimits.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
101 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/once.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
102 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/status.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
103 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/statusor.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
104 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/stringpiece.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
105 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/stringprintf.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
106 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/structurally_valid.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
107 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/strutil.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
108 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/substitute.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
109 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/time.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
110 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/bytestream.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
111 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/text_format.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
112 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/timestamp.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
113 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/type.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
114 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/unknown_field_set.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
115 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/delimited_message_util.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
116 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/field_comparator.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
117 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/field_mask_util.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
118 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/internal/datapiece.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
119 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/internal/default_value_objectwriter.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
120 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/internal/error_listener.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
121 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/internal/field_mask_utility.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
122 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/internal/json_escaping.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
123 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/internal/json_objectwriter.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
124 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/internal/json_stream_parser.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
125 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/internal/object_writer.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
126 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/internal/proto_writer.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
127 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/internal/protostream_objectsource.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
128 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/internal/protostream_objectwriter.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
129 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/internal/type_info.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
130 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/internal/utility.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
131 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/json_util.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
132 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/message_differencer.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
133 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/time_util.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
134 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/type_resolver_util.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
135 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/wire_format.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
136 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/wire_format_lite.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
137 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/wrappers.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
138 ) |
5187
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
139 |
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
140 if (NOT CMAKE_SYSTEM_NAME STREQUAL "Windows") |
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
141 set_property( |
5357
fddb5d8d0021
Prevent the leak of the full path of the source files in the binaries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5188
diff
changeset
|
142 SOURCE ${PROTOBUF_LIBRARY_SOURCES} APPEND |
5187
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
143 PROPERTY COMPILE_DEFINITIONS "HAVE_PTHREAD=1" |
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
144 ) |
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
145 endif() |