Mercurial > hg > orthanc
annotate OrthancFramework/Resources/ProtocolBuffers/ProtobufLibrary.cmake @ 5357:fddb5d8d0021
Prevent the leak of the full path of the source files in the binaries
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 06 Jul 2023 17:04:31 +0200 |
parents | 4c6f0211caaf |
children | aa1c09fa6632 |
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 |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 # Copyright (C) 2017-2023 Osimis S.A., Belgium |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 # Copyright (C) 2021-2023 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 # |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 # 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
|
8 # 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
|
9 # 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
|
10 # the License, or (at your option) any later version. |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 # |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 # 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
|
13 # WITHOUT ANY WARRANTY; without even the implied warranty of |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
15 # Lesser General Public License for more details. |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 # |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
17 # 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
|
18 # License along with this program. If not, see |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
19 # <http://www.gnu.org/licenses/>. |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
20 |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 |
5188
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
22 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
|
23 |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
24 if (IS_DIRECTORY "${PROTOBUF_SOURCE_DIR}") |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
25 set(FirstRun OFF) |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
26 else() |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
27 set(FirstRun ON) |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
28 endif() |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
29 |
5186
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
30 DownloadPackage( |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
31 "ca0d9b243e649d398a6b419acd35103a" |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
32 "http://orthanc.uclouvain.be/third-party-downloads/protobuf-cpp-3.5.1.tar.gz" |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
33 "${CMAKE_CURRENT_BINARY_DIR}/protobuf-3.5.1") |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
34 |
5188
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
35 if (FirstRun) |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
36 # Apply the patches |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
37 execute_process( |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
38 COMMAND ${PATCH_EXECUTABLE} -p0 -N -i |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
39 ${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
|
40 WORKING_DIRECTORY ${CMAKE_BINARY_DIR} |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
41 RESULT_VARIABLE Failure |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
42 ) |
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 if (Failure) |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
45 message(FATAL_ERROR "Error while patching a file") |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
46 endif() |
4c6f0211caaf
compiling the protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5187
diff
changeset
|
47 endif() |
5186
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
48 |
5187
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
49 include_directories( |
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
50 ${PROTOBUF_SOURCE_DIR}/src |
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
51 ) |
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
52 |
5186
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
53 set(PROTOBUF_LIBRARY_SOURCES |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
54 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/any.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
55 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/any.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
56 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/api.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
57 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/arena.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
58 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/arenastring.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
59 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/descriptor.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
60 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/descriptor.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
61 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/descriptor_database.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
62 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/duration.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
63 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/dynamic_message.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
64 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/empty.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
65 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/extension_set.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
66 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/extension_set_heavy.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
67 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/field_mask.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
68 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/generated_message_reflection.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
69 ${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
|
70 ${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
|
71 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/generated_message_util.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
72 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/io/coded_stream.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
73 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/io/gzip_stream.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
74 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/io/printer.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
75 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/io/strtod.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
76 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/io/tokenizer.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
77 ${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
|
78 ${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
|
79 ${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
|
80 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/map_field.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
81 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/message.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
82 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/message_lite.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
83 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/reflection_ops.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
84 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/repeated_field.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
85 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/service.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
86 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/source_context.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
87 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/struct.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
88 ${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
|
89 ${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
|
90 ${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
|
91 ${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
|
92 ${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
|
93 ${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
|
94 ${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
|
95 ${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
|
96 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/common.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
97 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/int128.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
98 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/io_win32.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
99 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/mathlimits.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
100 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/once.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
101 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/status.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
102 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/statusor.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
103 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/stringpiece.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
104 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/stringprintf.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
105 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/structurally_valid.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
106 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/strutil.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
107 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/substitute.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
108 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/time.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
109 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/stubs/bytestream.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
110 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/text_format.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
111 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/timestamp.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
112 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/type.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
113 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/unknown_field_set.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
114 ${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
|
115 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/field_comparator.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
116 ${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
|
117 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/internal/datapiece.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
118 ${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
|
119 ${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
|
120 ${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
|
121 ${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
|
122 ${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
|
123 ${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
|
124 ${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
|
125 ${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
|
126 ${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
|
127 ${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
|
128 ${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
|
129 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/internal/utility.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
130 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/json_util.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
131 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/message_differencer.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
132 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/util/time_util.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
133 ${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
|
134 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/wire_format.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
135 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/wire_format_lite.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
136 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/wrappers.pb.cc |
8d19e53cf23e
compilation of protobuf compiler
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
137 ) |
5187
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
138 |
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
139 if (NOT CMAKE_SYSTEM_NAME STREQUAL "Windows") |
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
140 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
|
141 SOURCE ${PROTOBUF_LIBRARY_SOURCES} APPEND |
5187
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
142 PROPERTY COMPILE_DEFINITIONS "HAVE_PTHREAD=1" |
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
143 ) |
9466c95f70c8
integrating Protobuf library into Orthanc server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5186
diff
changeset
|
144 endif() |