blob: 9d2040c36605374b0f398eebb5d94b3db0ef7cdb [file] [log] [blame]
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001# GRPC global cmake file
2# This currently builds C and C++ code.
3# This file has been automatically generated from a template file.
4# Please look at the templates directory instead.
5# This file can be regenerated from the template by running
6# tools/buildgen/generate_projects.sh
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02007#
8# Additionally, this is currently very experimental, and unsupported.
9# Further work will happen on that file.
10#
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011# Copyright 2015, Google Inc.
12# All rights reserved.
13#
14# Redistribution and use in source and binary forms, with or without
15# modification, are permitted provided that the following conditions are
16# met:
17#
18# * Redistributions of source code must retain the above copyright
19# notice, this list of conditions and the following disclaimer.
20# * Redistributions in binary form must reproduce the above
21# copyright notice, this list of conditions and the following disclaimer
22# in the documentation and/or other materials provided with the
23# distribution.
24# * Neither the name of Google Inc. nor the names of its
25# contributors may be used to endorse or promote products derived from
26# this software without specific prior written permission.
27#
28# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
40
41
42cmake_minimum_required(VERSION 2.8)
43
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010044set(PACKAGE_NAME "grpc")
Craig Tiller5cad46e2017-01-30 15:32:24 -080045set(PACKAGE_VERSION "1.2.0-dev")
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010046set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
47set(PACKAGE_TARNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}")
48set(PACKAGE_BUGREPORT "https://github.com/grpc/grpc/issues/")
49project(${PACKAGE_NAME} C CXX)
50
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010051# Options
52option(gRPC_BUILD_TESTS "Build tests" OFF)
53
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030054if (NOT MSVC)
55 set(gRPC_INSTALL ON CACHE BOOL "Generate installation target")
56else()
57 set(gRPC_INSTALL OFF CACHE BOOL "Generate installation target")
58endif()
59
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030060set(gRPC_ZLIB_PROVIDER "module" CACHE STRING "Provider of zlib library")
61set_property(CACHE gRPC_ZLIB_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010062
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030063set(gRPC_SSL_PROVIDER "module" CACHE STRING "Provider of ssl library")
64set_property(CACHE gRPC_SSL_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammera72712e2016-07-06 10:30:25 +010065
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030066set(gRPC_PROTOBUF_PROVIDER "module" CACHE STRING "Provider of protobuf library")
67set_property(CACHE gRPC_PROTOBUF_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010068
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010069set(gRPC_GFLAGS_PROVIDER "module" CACHE STRING "Provider of gflags library")
70set_property(CACHE gRPC_GFLAGS_PROVIDER PROPERTY STRINGS "module" "package")
71
Jan Tattermusch438c0b52017-01-23 11:24:53 +010072set(gRPC_BENCHMARK_PROVIDER "module" CACHE STRING "Provider of benchmark library")
73set_property(CACHE gRPC_BENCHMARK_PROVIDER PROPERTY STRINGS "module" "package")
74
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030075set(gRPC_USE_PROTO_LITE OFF CACHE BOOL "Use the protobuf-lite library")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010076
Jan Tattermusch438c0b52017-01-23 11:24:53 +010077if(UNIX)
78 if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
79 set(_gRPC_PLATFORM_LINUX ON)
80 elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
81 set(_gRPC_PLATFORM_MAC ON)
82 else()
83 set(_gRPC_PLATFORM_POSIX ON)
84 endif()
85endif()
86if(WIN32)
87 set(_gRPC_PLATFORM_WINDOWS ON)
88endif()
89
Jan Tattermuschc09656c2017-01-27 13:36:24 +010090set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
91
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030092if (MSVC)
Jan Tattermusch51407912017-02-02 20:44:22 +010093 include(cmake/msvc_static_runtime.cmake)
Jan Tattermusch3aab96f2017-01-11 16:12:46 +010094 add_definitions(-D_WIN32_WINNT=0x600 -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS)
Jan Tattermusch3aab96f2017-01-11 16:12:46 +010095 # needed to compile protobuf
96 add_definitions(/wd4065 /wd4506)
97 # TODO(jtattermusch): revisit C4267 occurrences throughout the code
98 add_definitions(/wd4267)
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030099endif()
100
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300101if (gRPC_USE_PROTO_LITE)
102 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf-lite")
Tamas Berghammer23911562016-07-27 15:24:05 +0100103 add_definitions("-DGRPC_USE_PROTO_LITE")
104else()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300105 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100106endif()
107
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300108if("${gRPC_ZLIB_PROVIDER}" STREQUAL "module")
109 if(NOT ZLIB_ROOT_DIR)
110 set(ZLIB_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zlib)
111 endif()
112 set(ZLIB_INCLUDE_DIR "${ZLIB_ROOT_DIR}")
113 if(EXISTS "${ZLIB_ROOT_DIR}/CMakeLists.txt")
114 add_subdirectory(${ZLIB_ROOT_DIR} third_party/zlib)
115 if(TARGET zlibstatic)
116 set(_gRPC_ZLIB_LIBRARIES zlibstatic)
117 endif()
118 else()
119 message(WARNING "gRPC_ZLIB_PROVIDER is \"module\" but ZLIB_ROOT_DIR is wrong")
120 endif()
121elseif("${gRPC_ZLIB_PROVIDER}" STREQUAL "package")
122 find_package(ZLIB)
123 if(TARGET ZLIB::ZLIB)
124 set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB)
125 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300126 set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND)\n find_package(ZLIB)\nendif()")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100127endif()
128
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300129if("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "module")
130 # Building the protobuf tests require gmock what is not part of a standard protobuf checkout.
131 # Disable them unless they are explicitly requested from the cmake command line (when we assume
132 # gmock is downloaded to the right location inside protobuf).
133 if(NOT protobuf_BUILD_TESTS)
134 set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests")
135 endif()
136 if(NOT PROTOBUF_ROOT_DIR)
137 set(PROTOBUF_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/protobuf)
138 endif()
139 if(EXISTS "${PROTOBUF_ROOT_DIR}/cmake/CMakeLists.txt")
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300140 set(protobuf_MSVC_STATIC_RUNTIME OFF CACHE BOOL "Link static runtime libraries")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300141 add_subdirectory(${PROTOBUF_ROOT_DIR}/cmake third_party/protobuf)
142 if(TARGET ${_gRPC_PROTOBUF_LIBRARY_NAME})
143 set(_gRPC_PROTOBUF_LIBRARIES ${_gRPC_PROTOBUF_LIBRARY_NAME})
144 endif()
145 if(TARGET libprotoc)
146 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES libprotoc)
147 endif()
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100148 if(TARGET protoc)
149 set(_gRPC_PROTOBUF_PROTOC protoc)
150 endif()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300151 else()
152 message(WARNING "gRPC_PROTOBUF_PROVIDER is \"module\" but PROTOBUF_ROOT_DIR is wrong")
153 endif()
154elseif("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "package")
155 find_package(protobuf CONFIG)
156 if(protobuf_FOUND)
157 if(TARGET protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
158 set(_gRPC_PROTOBUF_LIBRARIES protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
159 endif()
160 if(TARGET protobuf::libprotoc)
161 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES protobuf::libprotoc)
162 endif()
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100163 if(TARGET protobuf::protoc)
164 set(_gRPC_PROTOBUF_PROTOC protobuf::protoc)
165 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300166 set(_gRPC_FIND_PROTOBUF "if(NOT protobuf_FOUND)\n find_package(protobuf CONFIG)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300167 else()
168 find_package(Protobuf MODULE)
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300169 set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND)\n find_package(Protobuf)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300170 endif()
171endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100172
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300173if("${gRPC_SSL_PROVIDER}" STREQUAL "module")
174 if(NOT BORINGSSL_ROOT_DIR)
175 set(BORINGSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/boringssl)
176 endif()
177 if(EXISTS "${BORINGSSL_ROOT_DIR}/CMakeLists.txt")
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100178 set(OPENSSL_NO_ASM ON) # make boringssl buildable with Visual Studio
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300179 add_subdirectory(${BORINGSSL_ROOT_DIR} third_party/boringssl)
180 if(TARGET ssl)
181 set(_gRPC_SSL_LIBRARIES ssl)
182 endif()
183 else()
184 message(WARNING "gRPC_SSL_PROVIDER is \"module\" but BORINGSSL_ROOT_DIR is wrong")
185 endif()
186elseif("${gRPC_SSL_PROVIDER}" STREQUAL "package")
187 find_package(OpenSSL)
188 if(TARGET OpenSSL::SSL)
189 set(_gRPC_SSL_LIBRARIES OpenSSL::SSL)
190 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300191 set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND)\n find_package(OpenSSL)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300192endif()
193
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100194if("${gRPC_GFLAGS_PROVIDER}" STREQUAL "module")
195 if(NOT GFLAGS_ROOT_DIR)
196 set(GFLAGS_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/gflags)
197 endif()
198 if(EXISTS "${GFLAGS_ROOT_DIR}/CMakeLists.txt")
199 add_subdirectory(${GFLAGS_ROOT_DIR} third_party/gflags)
200 if(TARGET gflags_static)
201 set(_gRPC_GFLAGS_LIBRARIES gflags_static)
202 endif()
203 else()
204 message(WARNING "gRPC_GFLAGS_PROVIDER is \"module\" but GFLAGS_ROOT_DIR is wrong")
205 endif()
206elseif("${gRPC_GFLAGS_PROVIDER}" STREQUAL "package")
207 find_package(gflags)
208 if(TARGET gflags::gflags)
209 set(_gRPC_GFLAGS_LIBRARIES gflags::gflags)
210 endif()
211 set(_gRPC_FIND_GFLAGS "if(NOT gflags_FOUND)\n find_package(gflags)\nendif()")
212endif()
213
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100214if("${gRPC_BENCHMARK_PROVIDER}" STREQUAL "module")
215 if(NOT BENCHMARK_ROOT_DIR)
216 set(BENCHMARK_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/benchmark)
217 endif()
218 if(EXISTS "${BENCHMARK_ROOT_DIR}/CMakeLists.txt")
219 add_subdirectory(${BENCHMARK_ROOT_DIR} third_party/benchmark)
220 if(TARGET benchmark)
221 set(_gRPC_BENCHMARK_LIBRARIES benchmark)
222 endif()
223 else()
224 message(WARNING "gRPC_BENCHMARK_PROVIDER is \"module\" but BENCHMARK_ROOT_DIR is wrong")
225 endif()
226elseif("${gRPC_BENCHMARK_PROVIDER}" STREQUAL "package")
227 find_package(benchmark)
228 if(TARGET benchmark::benchmark)
229 set(_gRPC_BENCHMARK_LIBRARIES benchmark::benchmark)
230 endif()
231 set(_gRPC_FIND_BENCHMARK "if(NOT benchmark_FOUND)\n find_package(benchmark)\nendif()")
232endif()
233
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300234if(NOT MSVC)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100235 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300236 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
237endif()
238
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100239if(UNIX)
240 set(_gRPC_ALLTARGETS_LIBRARIES dl rt m pthread)
241endif()
242
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300243if(WIN32 AND MSVC)
244 set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32)
Tamas Berghammer23911562016-07-27 15:24:05 +0100245endif()
246
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300247include(GNUInstallDirs)
248if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR)
249 set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/gRPC")
250endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100251
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100252# Create directory for generated .proto files
253set(_gRPC_PROTO_GENS_DIR ${CMAKE_BINARY_DIR}/gens)
254file(MAKE_DIRECTORY ${_gRPC_PROTO_GENS_DIR})
255
256# protobuf_generate_grpc_cpp
257# --------------------------
258#
259# Add custom commands to process ``.proto`` files to C++ using protoc and
260# GRPC plugin::
261#
262# protobuf_generate_grpc_cpp [<ARGN>...]
263#
264# ``ARGN``
265# ``.proto`` files
266#
267function(protobuf_generate_grpc_cpp)
268 if(NOT ARGN)
269 message(SEND_ERROR "Error: PROTOBUF_GENERATE_GRPC_CPP() called without any proto files")
270 return()
271 endif()
272
273 set(_protobuf_include_path -I .)
274 foreach(FIL ${ARGN})
275 get_filename_component(ABS_FIL ${FIL} ABSOLUTE)
276 get_filename_component(FIL_WE ${FIL} NAME_WE)
277 file(RELATIVE_PATH REL_FIL ${CMAKE_SOURCE_DIR} ${ABS_FIL})
278 get_filename_component(REL_DIR ${REL_FIL} DIRECTORY)
279 set(RELFIL_WE "${REL_DIR}/${FIL_WE}")
280
281 add_custom_command(
282 OUTPUT "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.cc"
283 "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.h"
284 "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.cc"
285 "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.h"
286 COMMAND ${_gRPC_PROTOBUF_PROTOC}
287 ARGS --grpc_out=${_gRPC_PROTO_GENS_DIR}
288 --cpp_out=${_gRPC_PROTO_GENS_DIR}
289 --plugin=protoc-gen-grpc=$<TARGET_FILE:grpc_cpp_plugin>
290 ${_protobuf_include_path}
291 ${REL_FIL}
292 DEPENDS ${ABS_FIL} ${_gRPC_PROTOBUF_PROTOC} grpc_cpp_plugin
293 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
294 COMMENT "Running gRPC C++ protocol buffer compiler on ${FIL}"
295 VERBATIM)
296
297 set_source_files_properties("${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.cc" "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.h" "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.cc" "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.h" PROPERTIES GENERATED TRUE)
298 endforeach()
299endfunction()
300
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100301add_custom_target(plugins
302 DEPENDS
303 grpc_cpp_plugin
304 grpc_csharp_plugin
305 grpc_node_plugin
306 grpc_objective_c_plugin
307 grpc_php_plugin
308 grpc_python_plugin
309 grpc_ruby_plugin
310)
311
312add_custom_target(tools_c
313 DEPENDS
314 gen_hpack_tables
315 gen_legal_metadata_characters
316 gen_percent_encoding_tables
317 grpc_create_jwt
318 grpc_print_google_default_creds_token
319 grpc_verify_jwt
320)
321
322add_custom_target(tools_cxx
323 DEPENDS
324)
325
326add_custom_target(tools
327 DEPENDS tools_c tools_cxx)
328
329if (gRPC_BUILD_TESTS)
330add_custom_target(buildtests_c)
331add_dependencies(buildtests_c alarm_test)
332add_dependencies(buildtests_c algorithm_test)
333add_dependencies(buildtests_c alloc_test)
334add_dependencies(buildtests_c alpn_test)
335add_dependencies(buildtests_c bad_server_response_test)
Craig Tiller5395aba2017-02-02 10:29:04 -0800336add_dependencies(buildtests_c bdp_estimator_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100337add_dependencies(buildtests_c bin_decoder_test)
338add_dependencies(buildtests_c bin_encoder_test)
339add_dependencies(buildtests_c census_context_test)
340add_dependencies(buildtests_c census_resource_test)
341add_dependencies(buildtests_c census_trace_context_test)
342add_dependencies(buildtests_c channel_create_test)
343add_dependencies(buildtests_c chttp2_hpack_encoder_test)
344add_dependencies(buildtests_c chttp2_stream_map_test)
345add_dependencies(buildtests_c chttp2_varint_test)
346add_dependencies(buildtests_c combiner_test)
347add_dependencies(buildtests_c compression_test)
348add_dependencies(buildtests_c concurrent_connectivity_test)
349add_dependencies(buildtests_c connection_refused_test)
350add_dependencies(buildtests_c dns_resolver_connectivity_test)
351add_dependencies(buildtests_c dns_resolver_test)
352if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
353add_dependencies(buildtests_c dualstack_socket_test)
354endif()
355add_dependencies(buildtests_c endpoint_pair_test)
356if(_gRPC_PLATFORM_LINUX)
357add_dependencies(buildtests_c ev_epoll_linux_test)
358endif()
359if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
360add_dependencies(buildtests_c fd_conservation_posix_test)
361endif()
362if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
363add_dependencies(buildtests_c fd_posix_test)
364endif()
365add_dependencies(buildtests_c fling_client)
366add_dependencies(buildtests_c fling_server)
367if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
368add_dependencies(buildtests_c fling_stream_test)
369endif()
370if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
371add_dependencies(buildtests_c fling_test)
372endif()
373if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
374add_dependencies(buildtests_c goaway_server_test)
375endif()
376add_dependencies(buildtests_c gpr_avl_test)
377add_dependencies(buildtests_c gpr_backoff_test)
378add_dependencies(buildtests_c gpr_cmdline_test)
379add_dependencies(buildtests_c gpr_cpu_test)
380add_dependencies(buildtests_c gpr_env_test)
381add_dependencies(buildtests_c gpr_histogram_test)
382add_dependencies(buildtests_c gpr_host_port_test)
383add_dependencies(buildtests_c gpr_log_test)
384add_dependencies(buildtests_c gpr_mpscq_test)
385add_dependencies(buildtests_c gpr_stack_lockfree_test)
386add_dependencies(buildtests_c gpr_string_test)
387add_dependencies(buildtests_c gpr_sync_test)
388add_dependencies(buildtests_c gpr_thd_test)
389add_dependencies(buildtests_c gpr_time_test)
390add_dependencies(buildtests_c gpr_tls_test)
391add_dependencies(buildtests_c gpr_useful_test)
392add_dependencies(buildtests_c grpc_auth_context_test)
393add_dependencies(buildtests_c grpc_b64_test)
394add_dependencies(buildtests_c grpc_byte_buffer_reader_test)
395add_dependencies(buildtests_c grpc_channel_args_test)
396add_dependencies(buildtests_c grpc_channel_stack_test)
397add_dependencies(buildtests_c grpc_completion_queue_test)
398add_dependencies(buildtests_c grpc_credentials_test)
399add_dependencies(buildtests_c grpc_fetch_oauth2)
400add_dependencies(buildtests_c grpc_invalid_channel_args_test)
401if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
402add_dependencies(buildtests_c grpc_json_token_test)
403endif()
404add_dependencies(buildtests_c grpc_jwt_verifier_test)
405add_dependencies(buildtests_c grpc_security_connector_test)
406if(_gRPC_PLATFORM_LINUX)
407add_dependencies(buildtests_c handshake_client)
408endif()
409if(_gRPC_PLATFORM_LINUX)
410add_dependencies(buildtests_c handshake_server)
411endif()
412add_dependencies(buildtests_c hpack_parser_test)
413add_dependencies(buildtests_c hpack_table_test)
414add_dependencies(buildtests_c http_parser_test)
415add_dependencies(buildtests_c httpcli_format_request_test)
416if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
417add_dependencies(buildtests_c httpcli_test)
418endif()
419if(_gRPC_PLATFORM_LINUX)
420add_dependencies(buildtests_c httpscli_test)
421endif()
422add_dependencies(buildtests_c init_test)
423add_dependencies(buildtests_c internal_api_canary_iomgr_test)
424add_dependencies(buildtests_c internal_api_canary_support_test)
425add_dependencies(buildtests_c internal_api_canary_transport_test)
426add_dependencies(buildtests_c invalid_call_argument_test)
427add_dependencies(buildtests_c json_rewrite)
428add_dependencies(buildtests_c json_rewrite_test)
429add_dependencies(buildtests_c json_stream_error_test)
430add_dependencies(buildtests_c json_test)
431add_dependencies(buildtests_c lame_client_test)
432add_dependencies(buildtests_c lb_policies_test)
433add_dependencies(buildtests_c load_file_test)
434add_dependencies(buildtests_c memory_profile_client)
435add_dependencies(buildtests_c memory_profile_server)
436if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
437add_dependencies(buildtests_c memory_profile_test)
438endif()
439add_dependencies(buildtests_c message_compress_test)
440add_dependencies(buildtests_c mlog_test)
441add_dependencies(buildtests_c multiple_server_queues_test)
442add_dependencies(buildtests_c murmur_hash_test)
443add_dependencies(buildtests_c no_server_test)
444add_dependencies(buildtests_c percent_encoding_test)
Sree Kuchibhotla66131682017-02-02 09:39:07 -0800445if(_gRPC_PLATFORM_LINUX)
446add_dependencies(buildtests_c pollset_set_test)
447endif()
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100448if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
449add_dependencies(buildtests_c resolve_address_posix_test)
450endif()
451add_dependencies(buildtests_c resolve_address_test)
452add_dependencies(buildtests_c resource_quota_test)
453add_dependencies(buildtests_c secure_channel_create_test)
454add_dependencies(buildtests_c secure_endpoint_test)
455add_dependencies(buildtests_c sequential_connectivity_test)
456add_dependencies(buildtests_c server_chttp2_test)
457add_dependencies(buildtests_c server_test)
458add_dependencies(buildtests_c set_initial_connect_string_test)
459add_dependencies(buildtests_c slice_buffer_test)
460add_dependencies(buildtests_c slice_string_helpers_test)
461add_dependencies(buildtests_c slice_test)
462add_dependencies(buildtests_c sockaddr_resolver_test)
463add_dependencies(buildtests_c sockaddr_utils_test)
464if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
465add_dependencies(buildtests_c socket_utils_test)
466endif()
467add_dependencies(buildtests_c status_conversion_test)
468if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
469add_dependencies(buildtests_c tcp_client_posix_test)
470endif()
471if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
472add_dependencies(buildtests_c tcp_posix_test)
473endif()
474if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
475add_dependencies(buildtests_c tcp_server_posix_test)
476endif()
477add_dependencies(buildtests_c time_averaged_stats_test)
478add_dependencies(buildtests_c timeout_encoding_test)
479add_dependencies(buildtests_c timer_heap_test)
480add_dependencies(buildtests_c timer_list_test)
481add_dependencies(buildtests_c transport_connectivity_state_test)
482add_dependencies(buildtests_c transport_metadata_test)
483add_dependencies(buildtests_c transport_pid_controller_test)
484if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
485add_dependencies(buildtests_c transport_security_test)
486endif()
487if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
488add_dependencies(buildtests_c udp_server_test)
489endif()
490add_dependencies(buildtests_c uri_parser_test)
491if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
492add_dependencies(buildtests_c wakeup_fd_cv_test)
493endif()
494add_dependencies(buildtests_c public_headers_must_be_c89)
495add_dependencies(buildtests_c badreq_bad_client_test)
496add_dependencies(buildtests_c connection_prefix_bad_client_test)
497add_dependencies(buildtests_c head_of_line_blocking_bad_client_test)
498add_dependencies(buildtests_c headers_bad_client_test)
499add_dependencies(buildtests_c initial_settings_frame_bad_client_test)
500add_dependencies(buildtests_c large_metadata_bad_client_test)
501add_dependencies(buildtests_c server_registered_method_bad_client_test)
502add_dependencies(buildtests_c simple_request_bad_client_test)
503add_dependencies(buildtests_c unknown_frame_bad_client_test)
504add_dependencies(buildtests_c window_overflow_bad_client_test)
505if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
506add_dependencies(buildtests_c bad_ssl_cert_server)
507endif()
508if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
509add_dependencies(buildtests_c bad_ssl_cert_test)
510endif()
511add_dependencies(buildtests_c h2_census_test)
512add_dependencies(buildtests_c h2_compress_test)
513add_dependencies(buildtests_c h2_fakesec_test)
514if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
515add_dependencies(buildtests_c h2_fd_test)
516endif()
517add_dependencies(buildtests_c h2_full_test)
518if(_gRPC_PLATFORM_LINUX)
519add_dependencies(buildtests_c h2_full+pipe_test)
520endif()
521add_dependencies(buildtests_c h2_full+trace_test)
522add_dependencies(buildtests_c h2_http_proxy_test)
523add_dependencies(buildtests_c h2_load_reporting_test)
524add_dependencies(buildtests_c h2_oauth2_test)
525add_dependencies(buildtests_c h2_proxy_test)
526add_dependencies(buildtests_c h2_sockpair_test)
527add_dependencies(buildtests_c h2_sockpair+trace_test)
528add_dependencies(buildtests_c h2_sockpair_1byte_test)
529add_dependencies(buildtests_c h2_ssl_test)
530add_dependencies(buildtests_c h2_ssl_cert_test)
531add_dependencies(buildtests_c h2_ssl_proxy_test)
532if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
533add_dependencies(buildtests_c h2_uds_test)
534endif()
535add_dependencies(buildtests_c h2_census_nosec_test)
536add_dependencies(buildtests_c h2_compress_nosec_test)
537if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
538add_dependencies(buildtests_c h2_fd_nosec_test)
539endif()
540add_dependencies(buildtests_c h2_full_nosec_test)
541if(_gRPC_PLATFORM_LINUX)
542add_dependencies(buildtests_c h2_full+pipe_nosec_test)
543endif()
544add_dependencies(buildtests_c h2_full+trace_nosec_test)
545add_dependencies(buildtests_c h2_http_proxy_nosec_test)
546add_dependencies(buildtests_c h2_load_reporting_nosec_test)
547add_dependencies(buildtests_c h2_proxy_nosec_test)
548add_dependencies(buildtests_c h2_sockpair_nosec_test)
549add_dependencies(buildtests_c h2_sockpair+trace_nosec_test)
550add_dependencies(buildtests_c h2_sockpair_1byte_nosec_test)
551if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
552add_dependencies(buildtests_c h2_uds_nosec_test)
553endif()
554add_dependencies(buildtests_c api_fuzzer_one_entry)
555add_dependencies(buildtests_c client_fuzzer_one_entry)
556add_dependencies(buildtests_c hpack_parser_fuzzer_test_one_entry)
557add_dependencies(buildtests_c http_request_fuzzer_test_one_entry)
558add_dependencies(buildtests_c http_response_fuzzer_test_one_entry)
559add_dependencies(buildtests_c json_fuzzer_test_one_entry)
560add_dependencies(buildtests_c nanopb_fuzzer_response_test_one_entry)
561add_dependencies(buildtests_c nanopb_fuzzer_serverlist_test_one_entry)
562add_dependencies(buildtests_c percent_decode_fuzzer_one_entry)
563add_dependencies(buildtests_c percent_encode_fuzzer_one_entry)
564add_dependencies(buildtests_c server_fuzzer_one_entry)
565add_dependencies(buildtests_c ssl_server_fuzzer_one_entry)
566add_dependencies(buildtests_c uri_fuzzer_test_one_entry)
567
568add_custom_target(buildtests_cxx)
569add_dependencies(buildtests_cxx alarm_cpp_test)
570add_dependencies(buildtests_cxx async_end2end_test)
571add_dependencies(buildtests_cxx auth_property_iterator_test)
572if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
573add_dependencies(buildtests_cxx bm_fullstack)
574endif()
575add_dependencies(buildtests_cxx channel_arguments_test)
576add_dependencies(buildtests_cxx channel_filter_test)
577add_dependencies(buildtests_cxx cli_call_test)
578if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
579add_dependencies(buildtests_cxx client_crash_test)
580endif()
581add_dependencies(buildtests_cxx client_crash_test_server)
582add_dependencies(buildtests_cxx codegen_test_full)
583add_dependencies(buildtests_cxx codegen_test_minimal)
584add_dependencies(buildtests_cxx credentials_test)
585add_dependencies(buildtests_cxx cxx_byte_buffer_test)
586add_dependencies(buildtests_cxx cxx_slice_test)
587add_dependencies(buildtests_cxx cxx_string_ref_test)
588add_dependencies(buildtests_cxx cxx_time_test)
589add_dependencies(buildtests_cxx end2end_test)
590add_dependencies(buildtests_cxx filter_end2end_test)
591add_dependencies(buildtests_cxx generic_end2end_test)
592add_dependencies(buildtests_cxx golden_file_test)
593add_dependencies(buildtests_cxx grpc_cli)
594add_dependencies(buildtests_cxx grpc_tool_test)
595add_dependencies(buildtests_cxx grpclb_api_test)
596add_dependencies(buildtests_cxx grpclb_test)
597if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
598add_dependencies(buildtests_cxx http2_client)
599endif()
600add_dependencies(buildtests_cxx hybrid_end2end_test)
601if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
602add_dependencies(buildtests_cxx interop_client)
603endif()
604if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
605add_dependencies(buildtests_cxx interop_server)
606endif()
607if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
608add_dependencies(buildtests_cxx interop_test)
609endif()
610if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
611add_dependencies(buildtests_cxx json_run_localhost)
612endif()
613add_dependencies(buildtests_cxx metrics_client)
614add_dependencies(buildtests_cxx mock_test)
615add_dependencies(buildtests_cxx noop-benchmark)
616add_dependencies(buildtests_cxx proto_server_reflection_test)
Harvey Tuch5f3cfe92017-01-20 11:02:11 -0500617add_dependencies(buildtests_cxx proto_utils_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100618if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
619add_dependencies(buildtests_cxx qps_interarrival_test)
620endif()
621add_dependencies(buildtests_cxx qps_json_driver)
622if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
623add_dependencies(buildtests_cxx qps_openloop_test)
624endif()
625add_dependencies(buildtests_cxx qps_worker)
626add_dependencies(buildtests_cxx reconnect_interop_client)
627add_dependencies(buildtests_cxx reconnect_interop_server)
628add_dependencies(buildtests_cxx round_robin_end2end_test)
629add_dependencies(buildtests_cxx secure_auth_context_test)
630if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
631add_dependencies(buildtests_cxx secure_sync_unary_ping_pong_test)
632endif()
633add_dependencies(buildtests_cxx server_builder_plugin_test)
634add_dependencies(buildtests_cxx server_context_test_spouse_test)
635if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
636add_dependencies(buildtests_cxx server_crash_test)
637endif()
638add_dependencies(buildtests_cxx server_crash_test_client)
639add_dependencies(buildtests_cxx shutdown_test)
640add_dependencies(buildtests_cxx status_test)
641if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
642add_dependencies(buildtests_cxx streaming_throughput_test)
643endif()
644add_dependencies(buildtests_cxx stress_test)
645add_dependencies(buildtests_cxx thread_manager_test)
646add_dependencies(buildtests_cxx thread_stress_test)
Craig Tiller1bb53712017-02-04 15:39:27 -0800647if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tillerc40b3472017-02-03 11:54:26 -0800648add_dependencies(buildtests_cxx writes_per_rpc_test)
Craig Tiller1bb53712017-02-04 15:39:27 -0800649endif()
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100650
651add_custom_target(buildtests
652 DEPENDS buildtests_c buildtests_cxx)
653endif (gRPC_BUILD_TESTS)
654
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100655
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100656add_library(gpr
657 src/core/lib/profiling/basic_timers.c
658 src/core/lib/profiling/stap_timers.c
659 src/core/lib/support/alloc.c
660 src/core/lib/support/avl.c
661 src/core/lib/support/backoff.c
662 src/core/lib/support/cmdline.c
663 src/core/lib/support/cpu_iphone.c
664 src/core/lib/support/cpu_linux.c
665 src/core/lib/support/cpu_posix.c
666 src/core/lib/support/cpu_windows.c
667 src/core/lib/support/env_linux.c
668 src/core/lib/support/env_posix.c
669 src/core/lib/support/env_windows.c
670 src/core/lib/support/histogram.c
671 src/core/lib/support/host_port.c
672 src/core/lib/support/log.c
673 src/core/lib/support/log_android.c
674 src/core/lib/support/log_linux.c
675 src/core/lib/support/log_posix.c
676 src/core/lib/support/log_windows.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700677 src/core/lib/support/mpscq.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100678 src/core/lib/support/murmur_hash.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100679 src/core/lib/support/stack_lockfree.c
680 src/core/lib/support/string.c
681 src/core/lib/support/string_posix.c
682 src/core/lib/support/string_util_windows.c
683 src/core/lib/support/string_windows.c
684 src/core/lib/support/subprocess_posix.c
685 src/core/lib/support/subprocess_windows.c
686 src/core/lib/support/sync.c
687 src/core/lib/support/sync_posix.c
688 src/core/lib/support/sync_windows.c
689 src/core/lib/support/thd.c
690 src/core/lib/support/thd_posix.c
691 src/core/lib/support/thd_windows.c
692 src/core/lib/support/time.c
693 src/core/lib/support/time_posix.c
694 src/core/lib/support/time_precise.c
695 src/core/lib/support/time_windows.c
696 src/core/lib/support/tls_pthread.c
697 src/core/lib/support/tmpfile_msys.c
698 src/core/lib/support/tmpfile_posix.c
699 src/core/lib/support/tmpfile_windows.c
700 src/core/lib/support/wrap_memcpy.c
701)
702
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100703
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100704target_include_directories(gpr
705 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
706 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
707 PRIVATE ${BORINGSSL_ROOT_DIR}/include
708 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300709 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100710 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100711 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100712 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100713)
714
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100715target_link_libraries(gpr
716 ${_gRPC_ALLTARGETS_LIBRARIES}
717)
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100718
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300719foreach(_hdr
720 include/grpc/support/alloc.h
721 include/grpc/support/atm.h
722 include/grpc/support/atm_gcc_atomic.h
723 include/grpc/support/atm_gcc_sync.h
724 include/grpc/support/atm_windows.h
725 include/grpc/support/avl.h
726 include/grpc/support/cmdline.h
727 include/grpc/support/cpu.h
728 include/grpc/support/histogram.h
729 include/grpc/support/host_port.h
730 include/grpc/support/log.h
731 include/grpc/support/log_windows.h
732 include/grpc/support/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300733 include/grpc/support/string_util.h
734 include/grpc/support/subprocess.h
735 include/grpc/support/sync.h
736 include/grpc/support/sync_generic.h
737 include/grpc/support/sync_posix.h
738 include/grpc/support/sync_windows.h
739 include/grpc/support/thd.h
740 include/grpc/support/time.h
741 include/grpc/support/tls.h
742 include/grpc/support/tls_gcc.h
743 include/grpc/support/tls_msvc.h
744 include/grpc/support/tls_pthread.h
745 include/grpc/support/useful.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300746 include/grpc/impl/codegen/atm.h
747 include/grpc/impl/codegen/atm_gcc_atomic.h
748 include/grpc/impl/codegen/atm_gcc_sync.h
749 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -0800750 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700751 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300752 include/grpc/impl/codegen/port_platform.h
753 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300754 include/grpc/impl/codegen/sync.h
755 include/grpc/impl/codegen/sync_generic.h
756 include/grpc/impl/codegen/sync_posix.h
757 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300758)
759 string(REPLACE "include/" "" _path ${_hdr})
760 get_filename_component(_path ${_path} PATH)
761 install(FILES ${_hdr}
762 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
763 )
764endforeach()
765
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100766
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300767if (gRPC_INSTALL)
768 install(TARGETS gpr EXPORT gRPCTargets
769 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
770 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
771 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
772 )
773endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300774
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100775if (gRPC_BUILD_TESTS)
776
777add_library(gpr_test_util
778 test/core/util/test_config.c
779)
780
781
782target_include_directories(gpr_test_util
783 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
784 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
785 PRIVATE ${BORINGSSL_ROOT_DIR}/include
786 PRIVATE ${PROTOBUF_ROOT_DIR}/src
787 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100788 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100789 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
790 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
791)
792
793target_link_libraries(gpr_test_util
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100794 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100795 gpr
796)
797
798
799endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100800
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100801add_library(grpc
802 src/core/lib/surface/init.c
803 src/core/lib/channel/channel_args.c
804 src/core/lib/channel/channel_stack.c
805 src/core/lib/channel/channel_stack_builder.c
806 src/core/lib/channel/compress_filter.c
807 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700808 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700809 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -0800810 src/core/lib/channel/handshaker_factory.c
811 src/core/lib/channel/handshaker_registry.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100812 src/core/lib/channel/http_client_filter.c
813 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700814 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100815 src/core/lib/compression/compression.c
816 src/core/lib/compression/message_compress.c
817 src/core/lib/debug/trace.c
818 src/core/lib/http/format_request.c
819 src/core/lib/http/httpcli.c
820 src/core/lib/http/parser.c
821 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700822 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100823 src/core/lib/iomgr/endpoint.c
824 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700825 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100826 src/core/lib/iomgr/endpoint_pair_windows.c
827 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200828 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100829 src/core/lib/iomgr/ev_poll_posix.c
830 src/core/lib/iomgr/ev_posix.c
831 src/core/lib/iomgr/exec_ctx.c
832 src/core/lib/iomgr/executor.c
833 src/core/lib/iomgr/iocp_windows.c
834 src/core/lib/iomgr/iomgr.c
835 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700836 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100837 src/core/lib/iomgr/iomgr_windows.c
838 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200839 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100840 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700841 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100842 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700843 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100844 src/core/lib/iomgr/pollset_windows.c
845 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700846 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100847 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700848 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100849 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700850 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100851 src/core/lib/iomgr/socket_utils_common_posix.c
852 src/core/lib/iomgr/socket_utils_linux.c
853 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700854 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700855 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100856 src/core/lib/iomgr/socket_windows.c
857 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700858 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100859 src/core/lib/iomgr/tcp_client_windows.c
860 src/core/lib/iomgr/tcp_posix.c
861 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700862 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100863 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700864 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100865 src/core/lib/iomgr/tcp_windows.c
866 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700867 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100868 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700869 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100870 src/core/lib/iomgr/udp_server.c
871 src/core/lib/iomgr/unix_sockets_posix.c
872 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700873 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100874 src/core/lib/iomgr/wakeup_fd_eventfd.c
875 src/core/lib/iomgr/wakeup_fd_nospecial.c
876 src/core/lib/iomgr/wakeup_fd_pipe.c
877 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700878 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100879 src/core/lib/iomgr/workqueue_windows.c
880 src/core/lib/json/json.c
881 src/core/lib/json/json_reader.c
882 src/core/lib/json/json_string.c
883 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -0700884 src/core/lib/slice/percent_encoding.c
885 src/core/lib/slice/slice.c
886 src/core/lib/slice/slice_buffer.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -0800887 src/core/lib/slice/slice_hash_table.c
888 src/core/lib/slice/slice_intern.c
Craig Tillerc3350542016-10-26 16:19:01 -0700889 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100890 src/core/lib/surface/alarm.c
891 src/core/lib/surface/api_trace.c
892 src/core/lib/surface/byte_buffer.c
893 src/core/lib/surface/byte_buffer_reader.c
894 src/core/lib/surface/call.c
895 src/core/lib/surface/call_details.c
896 src/core/lib/surface/call_log_batch.c
897 src/core/lib/surface/channel.c
898 src/core/lib/surface/channel_init.c
899 src/core/lib/surface/channel_ping.c
900 src/core/lib/surface/channel_stack_type.c
901 src/core/lib/surface/completion_queue.c
902 src/core/lib/surface/event_string.c
903 src/core/lib/surface/lame_client.c
904 src/core/lib/surface/metadata_array.c
905 src/core/lib/surface/server.c
906 src/core/lib/surface/validate_metadata.c
907 src/core/lib/surface/version.c
Craig Tiller9e0066b2016-10-20 14:04:18 -0700908 src/core/lib/transport/bdp_estimator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100909 src/core/lib/transport/byte_stream.c
910 src/core/lib/transport/connectivity_state.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -0800911 src/core/lib/transport/error_utils.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100912 src/core/lib/transport/metadata.c
913 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -0700914 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -0700915 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100916 src/core/lib/transport/static_metadata.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -0800917 src/core/lib/transport/status_conversion.c
Robbie Shade710d2422016-07-13 15:15:38 -0400918 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100919 src/core/lib/transport/transport.c
920 src/core/lib/transport/transport_op_string.c
921 src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c
922 src/core/ext/transport/chttp2/transport/bin_decoder.c
923 src/core/ext/transport/chttp2/transport/bin_encoder.c
924 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
925 src/core/ext/transport/chttp2/transport/chttp2_transport.c
926 src/core/ext/transport/chttp2/transport/frame_data.c
927 src/core/ext/transport/chttp2/transport/frame_goaway.c
928 src/core/ext/transport/chttp2/transport/frame_ping.c
929 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
930 src/core/ext/transport/chttp2/transport/frame_settings.c
931 src/core/ext/transport/chttp2/transport/frame_window_update.c
932 src/core/ext/transport/chttp2/transport/hpack_encoder.c
933 src/core/ext/transport/chttp2/transport/hpack_parser.c
934 src/core/ext/transport/chttp2/transport/hpack_table.c
935 src/core/ext/transport/chttp2/transport/huffsyms.c
936 src/core/ext/transport/chttp2/transport/incoming_metadata.c
937 src/core/ext/transport/chttp2/transport/parsing.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100938 src/core/ext/transport/chttp2/transport/stream_lists.c
939 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100940 src/core/ext/transport/chttp2/transport/varint.c
941 src/core/ext/transport/chttp2/transport/writing.c
942 src/core/ext/transport/chttp2/alpn/alpn.c
943 src/core/lib/http/httpcli_security_connector.c
944 src/core/lib/security/context/security_context.c
945 src/core/lib/security/credentials/composite/composite_credentials.c
946 src/core/lib/security/credentials/credentials.c
947 src/core/lib/security/credentials/credentials_metadata.c
948 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -0700949 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100950 src/core/lib/security/credentials/google_default/google_default_credentials.c
951 src/core/lib/security/credentials/iam/iam_credentials.c
952 src/core/lib/security/credentials/jwt/json_token.c
953 src/core/lib/security/credentials/jwt/jwt_credentials.c
954 src/core/lib/security/credentials/jwt/jwt_verifier.c
955 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
956 src/core/lib/security/credentials/plugin/plugin_credentials.c
957 src/core/lib/security/credentials/ssl/ssl_credentials.c
958 src/core/lib/security/transport/client_auth_filter.c
David Garcia Quintas01291502017-02-07 13:26:41 -0800959 src/core/lib/security/transport/lb_targets_info.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100960 src/core/lib/security/transport/secure_endpoint.c
961 src/core/lib/security/transport/security_connector.c
Mark D. Roth071cacf2016-11-17 13:17:56 -0800962 src/core/lib/security/transport/security_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100963 src/core/lib/security/transport/server_auth_filter.c
964 src/core/lib/security/transport/tsi_error.c
965 src/core/lib/security/util/b64.c
966 src/core/lib/security/util/json_util.c
967 src/core/lib/surface/init_secure.c
968 src/core/lib/tsi/fake_transport_security.c
969 src/core/lib/tsi/ssl_transport_security.c
970 src/core/lib/tsi/transport_security.c
Mark D. Roth71403822016-12-02 10:51:39 -0800971 src/core/ext/transport/chttp2/server/chttp2_server.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100972 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700973 src/core/ext/client_channel/channel_connectivity.c
974 src/core/ext/client_channel/client_channel.c
975 src/core/ext/client_channel/client_channel_factory.c
976 src/core/ext/client_channel/client_channel_plugin.c
977 src/core/ext/client_channel/connector.c
978 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -0700979 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Rothd58a9852017-01-18 08:28:57 -0800980 src/core/ext/client_channel/http_proxy.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700981 src/core/ext/client_channel/initial_connect_string.c
982 src/core/ext/client_channel/lb_policy.c
983 src/core/ext/client_channel/lb_policy_factory.c
984 src/core/ext/client_channel/lb_policy_registry.c
985 src/core/ext/client_channel/parse_address.c
Mark D. Roth79f2a242017-01-17 14:13:33 -0800986 src/core/ext/client_channel/proxy_mapper.c
987 src/core/ext/client_channel/proxy_mapper_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700988 src/core/ext/client_channel/resolver.c
989 src/core/ext/client_channel/resolver_factory.c
990 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -0700991 src/core/ext/client_channel/subchannel.c
992 src/core/ext/client_channel/subchannel_index.c
993 src/core/ext/client_channel/uri_parser.c
Mark D. Roth8686cab2016-11-17 13:12:17 -0800994 src/core/ext/transport/chttp2/client/chttp2_connector.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100995 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
996 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
997 src/core/ext/transport/chttp2/client/insecure/channel_create.c
998 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -0700999 src/core/ext/lb_policy/grpclb/grpclb.c
David Garcia Quintas01291502017-02-07 13:26:41 -08001000 src/core/ext/lb_policy/grpclb/grpclb_channel_secure.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001001 src/core/ext/lb_policy/grpclb/load_balancer_api.c
1002 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
1003 third_party/nanopb/pb_common.c
1004 third_party/nanopb/pb_decode.c
1005 third_party/nanopb/pb_encode.c
1006 src/core/ext/lb_policy/pick_first/pick_first.c
1007 src/core/ext/lb_policy/round_robin/round_robin.c
1008 src/core/ext/resolver/dns/native/dns_resolver.c
1009 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
1010 src/core/ext/load_reporting/load_reporting.c
1011 src/core/ext/load_reporting/load_reporting_filter.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07001012 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001013 src/core/ext/census/context.c
1014 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -07001015 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001016 src/core/ext/census/grpc_context.c
1017 src/core/ext/census/grpc_filter.c
1018 src/core/ext/census/grpc_plugin.c
1019 src/core/ext/census/initialize.c
1020 src/core/ext/census/mlog.c
1021 src/core/ext/census/operation.c
1022 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07001023 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -07001024 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001025 src/core/ext/census/tracing.c
1026 src/core/plugin_registry/grpc_plugin_registry.c
1027)
1028
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001029
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001030target_include_directories(grpc
1031 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1032 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1033 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1034 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001035 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001036 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001037 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001038 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001039)
1040
1041target_link_libraries(grpc
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001042 ${_gRPC_BASELIB_LIBRARIES}
1043 ${_gRPC_SSL_LIBRARIES}
1044 ${_gRPC_ZLIB_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001045 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001046 gpr
1047)
1048
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001049foreach(_hdr
1050 include/grpc/byte_buffer.h
1051 include/grpc/byte_buffer_reader.h
1052 include/grpc/compression.h
1053 include/grpc/grpc.h
1054 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001055 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -07001056 include/grpc/slice.h
1057 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001058 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001059 include/grpc/impl/codegen/byte_buffer_reader.h
1060 include/grpc/impl/codegen/compression_types.h
1061 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08001062 include/grpc/impl/codegen/exec_ctx_fwd.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001063 include/grpc/impl/codegen/grpc_types.h
1064 include/grpc/impl/codegen/propagation_bits.h
1065 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001066 include/grpc/impl/codegen/atm.h
1067 include/grpc/impl/codegen/atm_gcc_atomic.h
1068 include/grpc/impl/codegen/atm_gcc_sync.h
1069 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08001070 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001071 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001072 include/grpc/impl/codegen/port_platform.h
1073 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001074 include/grpc/impl/codegen/sync.h
1075 include/grpc/impl/codegen/sync_generic.h
1076 include/grpc/impl/codegen/sync_posix.h
1077 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001078 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001079 include/grpc/census.h
1080)
1081 string(REPLACE "include/" "" _path ${_hdr})
1082 get_filename_component(_path ${_path} PATH)
1083 install(FILES ${_hdr}
1084 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1085 )
1086endforeach()
1087
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001088
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001089if (gRPC_INSTALL)
1090 install(TARGETS grpc EXPORT gRPCTargets
1091 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1092 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1093 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1094 )
1095endif()
1096
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001097
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001098add_library(grpc_cronet
1099 src/core/lib/surface/init.c
1100 src/core/lib/channel/channel_args.c
1101 src/core/lib/channel/channel_stack.c
1102 src/core/lib/channel/channel_stack_builder.c
1103 src/core/lib/channel/compress_filter.c
1104 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -07001105 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -07001106 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -08001107 src/core/lib/channel/handshaker_factory.c
1108 src/core/lib/channel/handshaker_registry.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001109 src/core/lib/channel/http_client_filter.c
1110 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -07001111 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001112 src/core/lib/compression/compression.c
1113 src/core/lib/compression/message_compress.c
1114 src/core/lib/debug/trace.c
1115 src/core/lib/http/format_request.c
1116 src/core/lib/http/httpcli.c
1117 src/core/lib/http/parser.c
1118 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -07001119 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001120 src/core/lib/iomgr/endpoint.c
1121 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -07001122 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001123 src/core/lib/iomgr/endpoint_pair_windows.c
1124 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02001125 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001126 src/core/lib/iomgr/ev_poll_posix.c
1127 src/core/lib/iomgr/ev_posix.c
1128 src/core/lib/iomgr/exec_ctx.c
1129 src/core/lib/iomgr/executor.c
1130 src/core/lib/iomgr/iocp_windows.c
1131 src/core/lib/iomgr/iomgr.c
1132 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001133 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001134 src/core/lib/iomgr/iomgr_windows.c
1135 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02001136 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001137 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -07001138 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001139 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -07001140 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001141 src/core/lib/iomgr/pollset_windows.c
1142 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001143 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001144 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -07001145 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001146 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -07001147 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001148 src/core/lib/iomgr/socket_utils_common_posix.c
1149 src/core/lib/iomgr/socket_utils_linux.c
1150 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001151 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -07001152 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001153 src/core/lib/iomgr/socket_windows.c
1154 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001155 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001156 src/core/lib/iomgr/tcp_client_windows.c
1157 src/core/lib/iomgr/tcp_posix.c
1158 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001159 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001160 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -07001161 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001162 src/core/lib/iomgr/tcp_windows.c
1163 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -07001164 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001165 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -07001166 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001167 src/core/lib/iomgr/udp_server.c
1168 src/core/lib/iomgr/unix_sockets_posix.c
1169 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -07001170 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001171 src/core/lib/iomgr/wakeup_fd_eventfd.c
1172 src/core/lib/iomgr/wakeup_fd_nospecial.c
1173 src/core/lib/iomgr/wakeup_fd_pipe.c
1174 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001175 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001176 src/core/lib/iomgr/workqueue_windows.c
1177 src/core/lib/json/json.c
1178 src/core/lib/json/json_reader.c
1179 src/core/lib/json/json_string.c
1180 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -07001181 src/core/lib/slice/percent_encoding.c
1182 src/core/lib/slice/slice.c
1183 src/core/lib/slice/slice_buffer.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001184 src/core/lib/slice/slice_hash_table.c
1185 src/core/lib/slice/slice_intern.c
Craig Tillerc3350542016-10-26 16:19:01 -07001186 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001187 src/core/lib/surface/alarm.c
1188 src/core/lib/surface/api_trace.c
1189 src/core/lib/surface/byte_buffer.c
1190 src/core/lib/surface/byte_buffer_reader.c
1191 src/core/lib/surface/call.c
1192 src/core/lib/surface/call_details.c
1193 src/core/lib/surface/call_log_batch.c
1194 src/core/lib/surface/channel.c
1195 src/core/lib/surface/channel_init.c
1196 src/core/lib/surface/channel_ping.c
1197 src/core/lib/surface/channel_stack_type.c
1198 src/core/lib/surface/completion_queue.c
1199 src/core/lib/surface/event_string.c
1200 src/core/lib/surface/lame_client.c
1201 src/core/lib/surface/metadata_array.c
1202 src/core/lib/surface/server.c
1203 src/core/lib/surface/validate_metadata.c
1204 src/core/lib/surface/version.c
Craig Tiller9e0066b2016-10-20 14:04:18 -07001205 src/core/lib/transport/bdp_estimator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001206 src/core/lib/transport/byte_stream.c
1207 src/core/lib/transport/connectivity_state.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001208 src/core/lib/transport/error_utils.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001209 src/core/lib/transport/metadata.c
1210 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -07001211 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -07001212 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001213 src/core/lib/transport/static_metadata.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001214 src/core/lib/transport/status_conversion.c
Robbie Shade710d2422016-07-13 15:15:38 -04001215 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001216 src/core/lib/transport/transport.c
1217 src/core/lib/transport/transport_op_string.c
1218 src/core/ext/transport/cronet/client/secure/cronet_channel_create.c
1219 src/core/ext/transport/cronet/transport/cronet_api_dummy.c
1220 src/core/ext/transport/cronet/transport/cronet_transport.c
1221 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
1222 src/core/ext/transport/chttp2/transport/bin_decoder.c
1223 src/core/ext/transport/chttp2/transport/bin_encoder.c
1224 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
1225 src/core/ext/transport/chttp2/transport/chttp2_transport.c
1226 src/core/ext/transport/chttp2/transport/frame_data.c
1227 src/core/ext/transport/chttp2/transport/frame_goaway.c
1228 src/core/ext/transport/chttp2/transport/frame_ping.c
1229 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
1230 src/core/ext/transport/chttp2/transport/frame_settings.c
1231 src/core/ext/transport/chttp2/transport/frame_window_update.c
1232 src/core/ext/transport/chttp2/transport/hpack_encoder.c
1233 src/core/ext/transport/chttp2/transport/hpack_parser.c
1234 src/core/ext/transport/chttp2/transport/hpack_table.c
1235 src/core/ext/transport/chttp2/transport/huffsyms.c
1236 src/core/ext/transport/chttp2/transport/incoming_metadata.c
1237 src/core/ext/transport/chttp2/transport/parsing.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001238 src/core/ext/transport/chttp2/transport/stream_lists.c
1239 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001240 src/core/ext/transport/chttp2/transport/varint.c
1241 src/core/ext/transport/chttp2/transport/writing.c
1242 src/core/ext/transport/chttp2/alpn/alpn.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001243 src/core/ext/client_channel/channel_connectivity.c
1244 src/core/ext/client_channel/client_channel.c
1245 src/core/ext/client_channel/client_channel_factory.c
1246 src/core/ext/client_channel/client_channel_plugin.c
1247 src/core/ext/client_channel/connector.c
1248 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -07001249 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Rothd58a9852017-01-18 08:28:57 -08001250 src/core/ext/client_channel/http_proxy.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001251 src/core/ext/client_channel/initial_connect_string.c
1252 src/core/ext/client_channel/lb_policy.c
1253 src/core/ext/client_channel/lb_policy_factory.c
1254 src/core/ext/client_channel/lb_policy_registry.c
1255 src/core/ext/client_channel/parse_address.c
Mark D. Roth79f2a242017-01-17 14:13:33 -08001256 src/core/ext/client_channel/proxy_mapper.c
1257 src/core/ext/client_channel/proxy_mapper_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001258 src/core/ext/client_channel/resolver.c
1259 src/core/ext/client_channel/resolver_factory.c
1260 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001261 src/core/ext/client_channel/subchannel.c
1262 src/core/ext/client_channel/subchannel_index.c
1263 src/core/ext/client_channel/uri_parser.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001264 src/core/lib/http/httpcli_security_connector.c
1265 src/core/lib/security/context/security_context.c
1266 src/core/lib/security/credentials/composite/composite_credentials.c
1267 src/core/lib/security/credentials/credentials.c
1268 src/core/lib/security/credentials/credentials_metadata.c
1269 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -07001270 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001271 src/core/lib/security/credentials/google_default/google_default_credentials.c
1272 src/core/lib/security/credentials/iam/iam_credentials.c
1273 src/core/lib/security/credentials/jwt/json_token.c
1274 src/core/lib/security/credentials/jwt/jwt_credentials.c
1275 src/core/lib/security/credentials/jwt/jwt_verifier.c
1276 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
1277 src/core/lib/security/credentials/plugin/plugin_credentials.c
1278 src/core/lib/security/credentials/ssl/ssl_credentials.c
1279 src/core/lib/security/transport/client_auth_filter.c
David Garcia Quintas01291502017-02-07 13:26:41 -08001280 src/core/lib/security/transport/lb_targets_info.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001281 src/core/lib/security/transport/secure_endpoint.c
1282 src/core/lib/security/transport/security_connector.c
Mark D. Roth071cacf2016-11-17 13:17:56 -08001283 src/core/lib/security/transport/security_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001284 src/core/lib/security/transport/server_auth_filter.c
1285 src/core/lib/security/transport/tsi_error.c
1286 src/core/lib/security/util/b64.c
1287 src/core/lib/security/util/json_util.c
1288 src/core/lib/surface/init_secure.c
1289 src/core/lib/tsi/fake_transport_security.c
1290 src/core/lib/tsi/ssl_transport_security.c
1291 src/core/lib/tsi/transport_security.c
Mark D. Roth8686cab2016-11-17 13:12:17 -08001292 src/core/ext/transport/chttp2/client/chttp2_connector.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001293 src/core/plugin_registry/grpc_cronet_plugin_registry.c
1294)
1295
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001296
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001297target_include_directories(grpc_cronet
1298 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1299 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1300 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1301 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001302 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001303 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001304 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001305 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001306)
1307
1308target_link_libraries(grpc_cronet
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001309 ${_gRPC_BASELIB_LIBRARIES}
1310 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001311 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001312 gpr
1313)
1314
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001315foreach(_hdr
1316 include/grpc/byte_buffer.h
1317 include/grpc/byte_buffer_reader.h
1318 include/grpc/compression.h
1319 include/grpc/grpc.h
1320 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001321 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -07001322 include/grpc/slice.h
1323 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001324 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001325 include/grpc/impl/codegen/byte_buffer_reader.h
1326 include/grpc/impl/codegen/compression_types.h
1327 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08001328 include/grpc/impl/codegen/exec_ctx_fwd.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001329 include/grpc/impl/codegen/grpc_types.h
1330 include/grpc/impl/codegen/propagation_bits.h
1331 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001332 include/grpc/impl/codegen/atm.h
1333 include/grpc/impl/codegen/atm_gcc_atomic.h
1334 include/grpc/impl/codegen/atm_gcc_sync.h
1335 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08001336 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001337 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001338 include/grpc/impl/codegen/port_platform.h
1339 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001340 include/grpc/impl/codegen/sync.h
1341 include/grpc/impl/codegen/sync_generic.h
1342 include/grpc/impl/codegen/sync_posix.h
1343 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001344 include/grpc/grpc_cronet.h
1345 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001346)
1347 string(REPLACE "include/" "" _path ${_hdr})
1348 get_filename_component(_path ${_path} PATH)
1349 install(FILES ${_hdr}
1350 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1351 )
1352endforeach()
1353
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001354
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001355if (gRPC_INSTALL)
1356 install(TARGETS grpc_cronet EXPORT gRPCTargets
1357 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1358 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1359 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1360 )
1361endif()
1362
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001363if (gRPC_BUILD_TESTS)
1364
1365add_library(grpc_test_util
1366 test/core/end2end/data/client_certs.c
1367 test/core/end2end/data/server1_cert.c
1368 test/core/end2end/data/server1_key.c
1369 test/core/end2end/data/test_root_cert.c
1370 test/core/security/oauth2_utils.c
1371 test/core/end2end/cq_verifier.c
1372 test/core/end2end/fake_resolver.c
1373 test/core/end2end/fixtures/http_proxy.c
1374 test/core/end2end/fixtures/proxy.c
1375 test/core/iomgr/endpoint_tests.c
Craig Tiller61eb40c2017-02-03 13:46:33 -08001376 test/core/util/debugger_macros.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001377 test/core/util/grpc_profiler.c
1378 test/core/util/memory_counters.c
1379 test/core/util/mock_endpoint.c
1380 test/core/util/parse_hexstring.c
1381 test/core/util/passthru_endpoint.c
1382 test/core/util/port_posix.c
1383 test/core/util/port_server_client.c
1384 test/core/util/port_uv.c
1385 test/core/util/port_windows.c
1386 test/core/util/slice_splitter.c
1387 src/core/lib/channel/channel_args.c
1388 src/core/lib/channel/channel_stack.c
1389 src/core/lib/channel/channel_stack_builder.c
1390 src/core/lib/channel/compress_filter.c
1391 src/core/lib/channel/connected_channel.c
1392 src/core/lib/channel/deadline_filter.c
1393 src/core/lib/channel/handshaker.c
1394 src/core/lib/channel/handshaker_factory.c
1395 src/core/lib/channel/handshaker_registry.c
1396 src/core/lib/channel/http_client_filter.c
1397 src/core/lib/channel/http_server_filter.c
1398 src/core/lib/channel/message_size_filter.c
1399 src/core/lib/compression/compression.c
1400 src/core/lib/compression/message_compress.c
1401 src/core/lib/debug/trace.c
1402 src/core/lib/http/format_request.c
1403 src/core/lib/http/httpcli.c
1404 src/core/lib/http/parser.c
1405 src/core/lib/iomgr/closure.c
1406 src/core/lib/iomgr/combiner.c
1407 src/core/lib/iomgr/endpoint.c
1408 src/core/lib/iomgr/endpoint_pair_posix.c
1409 src/core/lib/iomgr/endpoint_pair_uv.c
1410 src/core/lib/iomgr/endpoint_pair_windows.c
1411 src/core/lib/iomgr/error.c
1412 src/core/lib/iomgr/ev_epoll_linux.c
1413 src/core/lib/iomgr/ev_poll_posix.c
1414 src/core/lib/iomgr/ev_posix.c
1415 src/core/lib/iomgr/exec_ctx.c
1416 src/core/lib/iomgr/executor.c
1417 src/core/lib/iomgr/iocp_windows.c
1418 src/core/lib/iomgr/iomgr.c
1419 src/core/lib/iomgr/iomgr_posix.c
1420 src/core/lib/iomgr/iomgr_uv.c
1421 src/core/lib/iomgr/iomgr_windows.c
1422 src/core/lib/iomgr/load_file.c
1423 src/core/lib/iomgr/network_status_tracker.c
1424 src/core/lib/iomgr/polling_entity.c
1425 src/core/lib/iomgr/pollset_set_uv.c
1426 src/core/lib/iomgr/pollset_set_windows.c
1427 src/core/lib/iomgr/pollset_uv.c
1428 src/core/lib/iomgr/pollset_windows.c
1429 src/core/lib/iomgr/resolve_address_posix.c
1430 src/core/lib/iomgr/resolve_address_uv.c
1431 src/core/lib/iomgr/resolve_address_windows.c
1432 src/core/lib/iomgr/resource_quota.c
1433 src/core/lib/iomgr/sockaddr_utils.c
1434 src/core/lib/iomgr/socket_mutator.c
1435 src/core/lib/iomgr/socket_utils_common_posix.c
1436 src/core/lib/iomgr/socket_utils_linux.c
1437 src/core/lib/iomgr/socket_utils_posix.c
1438 src/core/lib/iomgr/socket_utils_uv.c
1439 src/core/lib/iomgr/socket_utils_windows.c
1440 src/core/lib/iomgr/socket_windows.c
1441 src/core/lib/iomgr/tcp_client_posix.c
1442 src/core/lib/iomgr/tcp_client_uv.c
1443 src/core/lib/iomgr/tcp_client_windows.c
1444 src/core/lib/iomgr/tcp_posix.c
1445 src/core/lib/iomgr/tcp_server_posix.c
1446 src/core/lib/iomgr/tcp_server_uv.c
1447 src/core/lib/iomgr/tcp_server_windows.c
1448 src/core/lib/iomgr/tcp_uv.c
1449 src/core/lib/iomgr/tcp_windows.c
1450 src/core/lib/iomgr/time_averaged_stats.c
1451 src/core/lib/iomgr/timer_generic.c
1452 src/core/lib/iomgr/timer_heap.c
1453 src/core/lib/iomgr/timer_uv.c
1454 src/core/lib/iomgr/udp_server.c
1455 src/core/lib/iomgr/unix_sockets_posix.c
1456 src/core/lib/iomgr/unix_sockets_posix_noop.c
1457 src/core/lib/iomgr/wakeup_fd_cv.c
1458 src/core/lib/iomgr/wakeup_fd_eventfd.c
1459 src/core/lib/iomgr/wakeup_fd_nospecial.c
1460 src/core/lib/iomgr/wakeup_fd_pipe.c
1461 src/core/lib/iomgr/wakeup_fd_posix.c
1462 src/core/lib/iomgr/workqueue_uv.c
1463 src/core/lib/iomgr/workqueue_windows.c
1464 src/core/lib/json/json.c
1465 src/core/lib/json/json_reader.c
1466 src/core/lib/json/json_string.c
1467 src/core/lib/json/json_writer.c
1468 src/core/lib/slice/percent_encoding.c
1469 src/core/lib/slice/slice.c
1470 src/core/lib/slice/slice_buffer.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001471 src/core/lib/slice/slice_hash_table.c
1472 src/core/lib/slice/slice_intern.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001473 src/core/lib/slice/slice_string_helpers.c
1474 src/core/lib/surface/alarm.c
1475 src/core/lib/surface/api_trace.c
1476 src/core/lib/surface/byte_buffer.c
1477 src/core/lib/surface/byte_buffer_reader.c
1478 src/core/lib/surface/call.c
1479 src/core/lib/surface/call_details.c
1480 src/core/lib/surface/call_log_batch.c
1481 src/core/lib/surface/channel.c
1482 src/core/lib/surface/channel_init.c
1483 src/core/lib/surface/channel_ping.c
1484 src/core/lib/surface/channel_stack_type.c
1485 src/core/lib/surface/completion_queue.c
1486 src/core/lib/surface/event_string.c
1487 src/core/lib/surface/lame_client.c
1488 src/core/lib/surface/metadata_array.c
1489 src/core/lib/surface/server.c
1490 src/core/lib/surface/validate_metadata.c
1491 src/core/lib/surface/version.c
Craig Tillerff1f1602017-01-20 13:55:35 -08001492 src/core/lib/transport/bdp_estimator.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001493 src/core/lib/transport/byte_stream.c
1494 src/core/lib/transport/connectivity_state.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001495 src/core/lib/transport/error_utils.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001496 src/core/lib/transport/metadata.c
1497 src/core/lib/transport/metadata_batch.c
1498 src/core/lib/transport/pid_controller.c
1499 src/core/lib/transport/service_config.c
1500 src/core/lib/transport/static_metadata.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001501 src/core/lib/transport/status_conversion.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001502 src/core/lib/transport/timeout_encoding.c
1503 src/core/lib/transport/transport.c
1504 src/core/lib/transport/transport_op_string.c
1505)
1506
1507
1508target_include_directories(grpc_test_util
1509 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1510 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1511 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1512 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1513 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001514 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001515 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1516 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
1517)
1518
1519target_link_libraries(grpc_test_util
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001520 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001521 gpr_test_util
1522 gpr
1523 grpc
1524)
1525
1526foreach(_hdr
1527 include/grpc/byte_buffer.h
1528 include/grpc/byte_buffer_reader.h
1529 include/grpc/compression.h
1530 include/grpc/grpc.h
1531 include/grpc/grpc_posix.h
1532 include/grpc/grpc_security_constants.h
1533 include/grpc/slice.h
1534 include/grpc/slice_buffer.h
1535 include/grpc/status.h
1536 include/grpc/impl/codegen/byte_buffer_reader.h
1537 include/grpc/impl/codegen/compression_types.h
1538 include/grpc/impl/codegen/connectivity_state.h
1539 include/grpc/impl/codegen/exec_ctx_fwd.h
1540 include/grpc/impl/codegen/grpc_types.h
1541 include/grpc/impl/codegen/propagation_bits.h
1542 include/grpc/impl/codegen/status.h
1543 include/grpc/impl/codegen/atm.h
1544 include/grpc/impl/codegen/atm_gcc_atomic.h
1545 include/grpc/impl/codegen/atm_gcc_sync.h
1546 include/grpc/impl/codegen/atm_windows.h
1547 include/grpc/impl/codegen/gpr_slice.h
1548 include/grpc/impl/codegen/gpr_types.h
1549 include/grpc/impl/codegen/port_platform.h
1550 include/grpc/impl/codegen/slice.h
1551 include/grpc/impl/codegen/sync.h
1552 include/grpc/impl/codegen/sync_generic.h
1553 include/grpc/impl/codegen/sync_posix.h
1554 include/grpc/impl/codegen/sync_windows.h
1555)
1556 string(REPLACE "include/" "" _path ${_hdr})
1557 get_filename_component(_path ${_path} PATH)
1558 install(FILES ${_hdr}
1559 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1560 )
1561endforeach()
1562
1563endif (gRPC_BUILD_TESTS)
1564if (gRPC_BUILD_TESTS)
1565
1566add_library(grpc_test_util_unsecure
1567 test/core/end2end/cq_verifier.c
1568 test/core/end2end/fake_resolver.c
1569 test/core/end2end/fixtures/http_proxy.c
1570 test/core/end2end/fixtures/proxy.c
1571 test/core/iomgr/endpoint_tests.c
Craig Tiller61eb40c2017-02-03 13:46:33 -08001572 test/core/util/debugger_macros.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001573 test/core/util/grpc_profiler.c
1574 test/core/util/memory_counters.c
1575 test/core/util/mock_endpoint.c
1576 test/core/util/parse_hexstring.c
1577 test/core/util/passthru_endpoint.c
1578 test/core/util/port_posix.c
1579 test/core/util/port_server_client.c
1580 test/core/util/port_uv.c
1581 test/core/util/port_windows.c
1582 test/core/util/slice_splitter.c
1583)
1584
1585
1586target_include_directories(grpc_test_util_unsecure
1587 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1588 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1589 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1590 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1591 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001592 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001593 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1594 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
1595)
1596
1597target_link_libraries(grpc_test_util_unsecure
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001598 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001599 gpr
1600 gpr_test_util
1601 grpc_unsecure
1602 grpc
1603)
1604
1605
1606endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001607
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001608add_library(grpc_unsecure
1609 src/core/lib/surface/init.c
1610 src/core/lib/surface/init_unsecure.c
1611 src/core/lib/channel/channel_args.c
1612 src/core/lib/channel/channel_stack.c
1613 src/core/lib/channel/channel_stack_builder.c
1614 src/core/lib/channel/compress_filter.c
1615 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -07001616 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -07001617 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -08001618 src/core/lib/channel/handshaker_factory.c
1619 src/core/lib/channel/handshaker_registry.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001620 src/core/lib/channel/http_client_filter.c
1621 src/core/lib/channel/http_server_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -07001622 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001623 src/core/lib/compression/compression.c
1624 src/core/lib/compression/message_compress.c
1625 src/core/lib/debug/trace.c
1626 src/core/lib/http/format_request.c
1627 src/core/lib/http/httpcli.c
1628 src/core/lib/http/parser.c
1629 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -07001630 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001631 src/core/lib/iomgr/endpoint.c
1632 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -07001633 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001634 src/core/lib/iomgr/endpoint_pair_windows.c
1635 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02001636 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001637 src/core/lib/iomgr/ev_poll_posix.c
1638 src/core/lib/iomgr/ev_posix.c
1639 src/core/lib/iomgr/exec_ctx.c
1640 src/core/lib/iomgr/executor.c
1641 src/core/lib/iomgr/iocp_windows.c
1642 src/core/lib/iomgr/iomgr.c
1643 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001644 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001645 src/core/lib/iomgr/iomgr_windows.c
1646 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02001647 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001648 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -07001649 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001650 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -07001651 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001652 src/core/lib/iomgr/pollset_windows.c
1653 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001654 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001655 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -07001656 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001657 src/core/lib/iomgr/sockaddr_utils.c
Yuchen Zengde3daf52016-10-13 17:26:26 -07001658 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001659 src/core/lib/iomgr/socket_utils_common_posix.c
1660 src/core/lib/iomgr/socket_utils_linux.c
1661 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001662 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -07001663 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001664 src/core/lib/iomgr/socket_windows.c
1665 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001666 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001667 src/core/lib/iomgr/tcp_client_windows.c
1668 src/core/lib/iomgr/tcp_posix.c
1669 src/core/lib/iomgr/tcp_server_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001670 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001671 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -07001672 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001673 src/core/lib/iomgr/tcp_windows.c
1674 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -07001675 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001676 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -07001677 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001678 src/core/lib/iomgr/udp_server.c
1679 src/core/lib/iomgr/unix_sockets_posix.c
1680 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -07001681 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001682 src/core/lib/iomgr/wakeup_fd_eventfd.c
1683 src/core/lib/iomgr/wakeup_fd_nospecial.c
1684 src/core/lib/iomgr/wakeup_fd_pipe.c
1685 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001686 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001687 src/core/lib/iomgr/workqueue_windows.c
1688 src/core/lib/json/json.c
1689 src/core/lib/json/json_reader.c
1690 src/core/lib/json/json_string.c
1691 src/core/lib/json/json_writer.c
Craig Tillerc3350542016-10-26 16:19:01 -07001692 src/core/lib/slice/percent_encoding.c
1693 src/core/lib/slice/slice.c
1694 src/core/lib/slice/slice_buffer.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001695 src/core/lib/slice/slice_hash_table.c
1696 src/core/lib/slice/slice_intern.c
Craig Tillerc3350542016-10-26 16:19:01 -07001697 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001698 src/core/lib/surface/alarm.c
1699 src/core/lib/surface/api_trace.c
1700 src/core/lib/surface/byte_buffer.c
1701 src/core/lib/surface/byte_buffer_reader.c
1702 src/core/lib/surface/call.c
1703 src/core/lib/surface/call_details.c
1704 src/core/lib/surface/call_log_batch.c
1705 src/core/lib/surface/channel.c
1706 src/core/lib/surface/channel_init.c
1707 src/core/lib/surface/channel_ping.c
1708 src/core/lib/surface/channel_stack_type.c
1709 src/core/lib/surface/completion_queue.c
1710 src/core/lib/surface/event_string.c
1711 src/core/lib/surface/lame_client.c
1712 src/core/lib/surface/metadata_array.c
1713 src/core/lib/surface/server.c
1714 src/core/lib/surface/validate_metadata.c
1715 src/core/lib/surface/version.c
Craig Tiller9e0066b2016-10-20 14:04:18 -07001716 src/core/lib/transport/bdp_estimator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001717 src/core/lib/transport/byte_stream.c
1718 src/core/lib/transport/connectivity_state.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001719 src/core/lib/transport/error_utils.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001720 src/core/lib/transport/metadata.c
1721 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -07001722 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -07001723 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001724 src/core/lib/transport/static_metadata.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001725 src/core/lib/transport/status_conversion.c
Robbie Shade710d2422016-07-13 15:15:38 -04001726 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001727 src/core/lib/transport/transport.c
1728 src/core/lib/transport/transport_op_string.c
1729 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
1730 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
1731 src/core/ext/transport/chttp2/transport/bin_decoder.c
1732 src/core/ext/transport/chttp2/transport/bin_encoder.c
1733 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
1734 src/core/ext/transport/chttp2/transport/chttp2_transport.c
1735 src/core/ext/transport/chttp2/transport/frame_data.c
1736 src/core/ext/transport/chttp2/transport/frame_goaway.c
1737 src/core/ext/transport/chttp2/transport/frame_ping.c
1738 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
1739 src/core/ext/transport/chttp2/transport/frame_settings.c
1740 src/core/ext/transport/chttp2/transport/frame_window_update.c
1741 src/core/ext/transport/chttp2/transport/hpack_encoder.c
1742 src/core/ext/transport/chttp2/transport/hpack_parser.c
1743 src/core/ext/transport/chttp2/transport/hpack_table.c
1744 src/core/ext/transport/chttp2/transport/huffsyms.c
1745 src/core/ext/transport/chttp2/transport/incoming_metadata.c
1746 src/core/ext/transport/chttp2/transport/parsing.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001747 src/core/ext/transport/chttp2/transport/stream_lists.c
1748 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001749 src/core/ext/transport/chttp2/transport/varint.c
1750 src/core/ext/transport/chttp2/transport/writing.c
1751 src/core/ext/transport/chttp2/alpn/alpn.c
Mark D. Roth71403822016-12-02 10:51:39 -08001752 src/core/ext/transport/chttp2/server/chttp2_server.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001753 src/core/ext/transport/chttp2/client/insecure/channel_create.c
1754 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
Mark D. Roth2502afb2016-11-29 15:17:31 -08001755 src/core/ext/transport/chttp2/client/chttp2_connector.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001756 src/core/ext/client_channel/channel_connectivity.c
1757 src/core/ext/client_channel/client_channel.c
1758 src/core/ext/client_channel/client_channel_factory.c
1759 src/core/ext/client_channel/client_channel_plugin.c
1760 src/core/ext/client_channel/connector.c
1761 src/core/ext/client_channel/default_initial_connect_string.c
Mark D. Roth15195742016-10-07 09:02:28 -07001762 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Rothd58a9852017-01-18 08:28:57 -08001763 src/core/ext/client_channel/http_proxy.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001764 src/core/ext/client_channel/initial_connect_string.c
1765 src/core/ext/client_channel/lb_policy.c
1766 src/core/ext/client_channel/lb_policy_factory.c
1767 src/core/ext/client_channel/lb_policy_registry.c
1768 src/core/ext/client_channel/parse_address.c
Mark D. Roth79f2a242017-01-17 14:13:33 -08001769 src/core/ext/client_channel/proxy_mapper.c
1770 src/core/ext/client_channel/proxy_mapper_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001771 src/core/ext/client_channel/resolver.c
1772 src/core/ext/client_channel/resolver_factory.c
1773 src/core/ext/client_channel/resolver_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001774 src/core/ext/client_channel/subchannel.c
1775 src/core/ext/client_channel/subchannel_index.c
1776 src/core/ext/client_channel/uri_parser.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001777 src/core/ext/resolver/dns/native/dns_resolver.c
1778 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
1779 src/core/ext/load_reporting/load_reporting.c
1780 src/core/ext/load_reporting/load_reporting_filter.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -07001781 src/core/ext/lb_policy/grpclb/grpclb.c
David Garcia Quintas01291502017-02-07 13:26:41 -08001782 src/core/ext/lb_policy/grpclb/grpclb_channel.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001783 src/core/ext/lb_policy/grpclb/load_balancer_api.c
1784 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
1785 third_party/nanopb/pb_common.c
1786 third_party/nanopb/pb_decode.c
1787 third_party/nanopb/pb_encode.c
1788 src/core/ext/lb_policy/pick_first/pick_first.c
1789 src/core/ext/lb_policy/round_robin/round_robin.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07001790 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001791 src/core/ext/census/context.c
1792 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -07001793 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001794 src/core/ext/census/grpc_context.c
1795 src/core/ext/census/grpc_filter.c
1796 src/core/ext/census/grpc_plugin.c
1797 src/core/ext/census/initialize.c
1798 src/core/ext/census/mlog.c
1799 src/core/ext/census/operation.c
1800 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07001801 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -07001802 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001803 src/core/ext/census/tracing.c
1804 src/core/plugin_registry/grpc_unsecure_plugin_registry.c
1805)
1806
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001807
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001808target_include_directories(grpc_unsecure
1809 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1810 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1811 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1812 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001813 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001814 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001815 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001816 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001817)
1818
1819target_link_libraries(grpc_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001820 ${_gRPC_BASELIB_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001821 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001822 gpr
1823)
1824
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001825foreach(_hdr
1826 include/grpc/byte_buffer.h
1827 include/grpc/byte_buffer_reader.h
1828 include/grpc/compression.h
1829 include/grpc/grpc.h
1830 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001831 include/grpc/grpc_security_constants.h
Craig Tillerc3350542016-10-26 16:19:01 -07001832 include/grpc/slice.h
1833 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001834 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001835 include/grpc/impl/codegen/byte_buffer_reader.h
1836 include/grpc/impl/codegen/compression_types.h
1837 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08001838 include/grpc/impl/codegen/exec_ctx_fwd.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001839 include/grpc/impl/codegen/grpc_types.h
1840 include/grpc/impl/codegen/propagation_bits.h
1841 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001842 include/grpc/impl/codegen/atm.h
1843 include/grpc/impl/codegen/atm_gcc_atomic.h
1844 include/grpc/impl/codegen/atm_gcc_sync.h
1845 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08001846 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001847 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001848 include/grpc/impl/codegen/port_platform.h
1849 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001850 include/grpc/impl/codegen/sync.h
1851 include/grpc/impl/codegen/sync_generic.h
1852 include/grpc/impl/codegen/sync_posix.h
1853 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001854 include/grpc/census.h
1855)
1856 string(REPLACE "include/" "" _path ${_hdr})
1857 get_filename_component(_path ${_path} PATH)
1858 install(FILES ${_hdr}
1859 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1860 )
1861endforeach()
1862
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001863
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001864if (gRPC_INSTALL)
1865 install(TARGETS grpc_unsecure EXPORT gRPCTargets
1866 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1867 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1868 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1869 )
1870endif()
1871
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001872if (gRPC_BUILD_TESTS)
1873
1874add_library(reconnect_server
1875 test/core/util/reconnect_server.c
1876)
1877
1878
1879target_include_directories(reconnect_server
1880 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1881 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1882 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1883 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1884 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001885 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001886 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1887 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
1888)
1889
1890target_link_libraries(reconnect_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001891 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001892 test_tcp_server
1893 grpc_test_util
1894 grpc
1895 gpr_test_util
1896 gpr
1897)
1898
1899
1900endif (gRPC_BUILD_TESTS)
1901if (gRPC_BUILD_TESTS)
1902
1903add_library(test_tcp_server
1904 test/core/util/test_tcp_server.c
1905)
1906
1907
1908target_include_directories(test_tcp_server
1909 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1910 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1911 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1912 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1913 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001914 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001915 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
1916 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
1917)
1918
1919target_link_libraries(test_tcp_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001920 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001921 grpc_test_util
1922 grpc
1923 gpr_test_util
1924 gpr
1925)
1926
1927
1928endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001929
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001930add_library(grpc++
murgatroid991ca0f3e2016-08-26 14:58:49 -07001931 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001932 src/cpp/client/secure_credentials.cc
1933 src/cpp/common/auth_property_iterator.cc
1934 src/cpp/common/secure_auth_context.cc
1935 src/cpp/common/secure_channel_arguments.cc
1936 src/cpp/common/secure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07001937 src/cpp/server/insecure_server_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001938 src/cpp/server/secure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001939 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001940 src/cpp/client/client_context.cc
1941 src/cpp/client/create_channel.cc
1942 src/cpp/client/create_channel_internal.cc
1943 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001944 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001945 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001946 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07001947 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001948 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001949 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07001950 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001951 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07001952 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001953 src/cpp/server/async_generic_service.cc
1954 src/cpp/server/create_default_thread_pool.cc
1955 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001956 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001957 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001958 src/cpp/server/server_context.cc
1959 src/cpp/server/server_credentials.cc
1960 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07001961 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001962 src/cpp/util/byte_buffer_cc.cc
1963 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001964 src/cpp/util/status.cc
1965 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07001966 src/cpp/util/time_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001967 src/cpp/codegen/codegen_init.cc
1968)
1969
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001970
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001971target_include_directories(grpc++
1972 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1973 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1974 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1975 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001976 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001977 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001978 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001979 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001980 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001981)
1982
1983target_link_libraries(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001984 ${_gRPC_BASELIB_LIBRARIES}
1985 ${_gRPC_SSL_LIBRARIES}
1986 ${_gRPC_PROTOBUF_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001987 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001988 grpc
1989)
1990
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001991foreach(_hdr
1992 include/grpc++/alarm.h
1993 include/grpc++/channel.h
1994 include/grpc++/client_context.h
1995 include/grpc++/completion_queue.h
1996 include/grpc++/create_channel.h
1997 include/grpc++/create_channel_posix.h
1998 include/grpc++/generic/async_generic_service.h
1999 include/grpc++/generic/generic_stub.h
2000 include/grpc++/grpc++.h
2001 include/grpc++/impl/call.h
2002 include/grpc++/impl/client_unary_call.h
2003 include/grpc++/impl/codegen/core_codegen.h
2004 include/grpc++/impl/grpc_library.h
2005 include/grpc++/impl/method_handler_impl.h
2006 include/grpc++/impl/rpc_method.h
2007 include/grpc++/impl/rpc_service_method.h
2008 include/grpc++/impl/serialization_traits.h
2009 include/grpc++/impl/server_builder_option.h
2010 include/grpc++/impl/server_builder_plugin.h
2011 include/grpc++/impl/server_initializer.h
2012 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07002013 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002014 include/grpc++/security/auth_context.h
2015 include/grpc++/security/auth_metadata_processor.h
2016 include/grpc++/security/credentials.h
2017 include/grpc++/security/server_credentials.h
2018 include/grpc++/server.h
2019 include/grpc++/server_builder.h
2020 include/grpc++/server_context.h
2021 include/grpc++/server_posix.h
2022 include/grpc++/support/async_stream.h
2023 include/grpc++/support/async_unary_call.h
2024 include/grpc++/support/byte_buffer.h
2025 include/grpc++/support/channel_arguments.h
2026 include/grpc++/support/config.h
2027 include/grpc++/support/slice.h
2028 include/grpc++/support/status.h
2029 include/grpc++/support/status_code_enum.h
2030 include/grpc++/support/string_ref.h
2031 include/grpc++/support/stub_options.h
2032 include/grpc++/support/sync_stream.h
2033 include/grpc++/support/time.h
2034 include/grpc++/impl/codegen/async_stream.h
2035 include/grpc++/impl/codegen/async_unary_call.h
2036 include/grpc++/impl/codegen/call.h
2037 include/grpc++/impl/codegen/call_hook.h
2038 include/grpc++/impl/codegen/channel_interface.h
2039 include/grpc++/impl/codegen/client_context.h
2040 include/grpc++/impl/codegen/client_unary_call.h
2041 include/grpc++/impl/codegen/completion_queue.h
2042 include/grpc++/impl/codegen/completion_queue_tag.h
2043 include/grpc++/impl/codegen/config.h
2044 include/grpc++/impl/codegen/core_codegen_interface.h
2045 include/grpc++/impl/codegen/create_auth_context.h
2046 include/grpc++/impl/codegen/grpc_library.h
yang-g988b47c2017-01-31 09:51:45 -08002047 include/grpc++/impl/codegen/metadata_map.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002048 include/grpc++/impl/codegen/method_handler_impl.h
2049 include/grpc++/impl/codegen/rpc_method.h
2050 include/grpc++/impl/codegen/rpc_service_method.h
2051 include/grpc++/impl/codegen/security/auth_context.h
2052 include/grpc++/impl/codegen/serialization_traits.h
2053 include/grpc++/impl/codegen/server_context.h
2054 include/grpc++/impl/codegen/server_interface.h
2055 include/grpc++/impl/codegen/service_type.h
Craig Tiller7c70b6c2017-01-23 07:48:42 -08002056 include/grpc++/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002057 include/grpc++/impl/codegen/status.h
2058 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07002059 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002060 include/grpc++/impl/codegen/string_ref.h
2061 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002062 include/grpc++/impl/codegen/sync_stream.h
2063 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02002064 include/grpc/impl/codegen/byte_buffer_reader.h
2065 include/grpc/impl/codegen/compression_types.h
2066 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08002067 include/grpc/impl/codegen/exec_ctx_fwd.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02002068 include/grpc/impl/codegen/grpc_types.h
2069 include/grpc/impl/codegen/propagation_bits.h
2070 include/grpc/impl/codegen/status.h
2071 include/grpc/impl/codegen/atm.h
2072 include/grpc/impl/codegen/atm_gcc_atomic.h
2073 include/grpc/impl/codegen/atm_gcc_sync.h
2074 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08002075 include/grpc/impl/codegen/gpr_slice.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02002076 include/grpc/impl/codegen/gpr_types.h
2077 include/grpc/impl/codegen/port_platform.h
2078 include/grpc/impl/codegen/slice.h
2079 include/grpc/impl/codegen/sync.h
2080 include/grpc/impl/codegen/sync_generic.h
2081 include/grpc/impl/codegen/sync_posix.h
2082 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002083)
2084 string(REPLACE "include/" "" _path ${_hdr})
2085 get_filename_component(_path ${_path} PATH)
2086 install(FILES ${_hdr}
2087 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
2088 )
2089endforeach()
2090
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002091
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002092if (gRPC_INSTALL)
2093 install(TARGETS grpc++ EXPORT gRPCTargets
2094 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2095 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2096 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2097 )
2098endif()
2099
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002100
Garrett Casto931a26b2016-10-04 09:18:29 -07002101add_library(grpc++_cronet
2102 src/cpp/client/cronet_credentials.cc
2103 src/cpp/client/insecure_credentials.cc
2104 src/cpp/common/insecure_create_auth_context.cc
2105 src/cpp/server/insecure_server_credentials.cc
2106 src/cpp/client/channel_cc.cc
2107 src/cpp/client/client_context.cc
2108 src/cpp/client/create_channel.cc
2109 src/cpp/client/create_channel_internal.cc
2110 src/cpp/client/create_channel_posix.cc
2111 src/cpp/client/credentials_cc.cc
2112 src/cpp/client/generic_stub.cc
2113 src/cpp/common/channel_arguments.cc
2114 src/cpp/common/channel_filter.cc
2115 src/cpp/common/completion_queue_cc.cc
2116 src/cpp/common/core_codegen.cc
Craig Tiller3d357d92016-10-26 20:52:03 -07002117 src/cpp/common/resource_quota_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07002118 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07002119 src/cpp/common/version_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07002120 src/cpp/server/async_generic_service.cc
2121 src/cpp/server/create_default_thread_pool.cc
2122 src/cpp/server/dynamic_thread_pool.cc
2123 src/cpp/server/server_builder.cc
2124 src/cpp/server/server_cc.cc
2125 src/cpp/server/server_context.cc
2126 src/cpp/server/server_credentials.cc
2127 src/cpp/server/server_posix.cc
Sree Kuchibhotla33d54942016-10-25 10:03:52 -07002128 src/cpp/thread_manager/thread_manager.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07002129 src/cpp/util/byte_buffer_cc.cc
2130 src/cpp/util/slice_cc.cc
2131 src/cpp/util/status.cc
2132 src/cpp/util/string_ref.cc
2133 src/cpp/util/time_cc.cc
2134 src/cpp/codegen/codegen_init.cc
ncteisen3770ac92016-11-28 11:02:41 -08002135 src/core/ext/transport/chttp2/client/insecure/channel_create.c
2136 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
Mark D. Roth2502afb2016-11-29 15:17:31 -08002137 src/core/ext/transport/chttp2/client/chttp2_connector.c
ncteisen3770ac92016-11-28 11:02:41 -08002138 src/core/ext/transport/chttp2/transport/bin_decoder.c
2139 src/core/ext/transport/chttp2/transport/bin_encoder.c
2140 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
2141 src/core/ext/transport/chttp2/transport/chttp2_transport.c
2142 src/core/ext/transport/chttp2/transport/frame_data.c
2143 src/core/ext/transport/chttp2/transport/frame_goaway.c
2144 src/core/ext/transport/chttp2/transport/frame_ping.c
2145 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
2146 src/core/ext/transport/chttp2/transport/frame_settings.c
2147 src/core/ext/transport/chttp2/transport/frame_window_update.c
2148 src/core/ext/transport/chttp2/transport/hpack_encoder.c
2149 src/core/ext/transport/chttp2/transport/hpack_parser.c
2150 src/core/ext/transport/chttp2/transport/hpack_table.c
2151 src/core/ext/transport/chttp2/transport/huffsyms.c
2152 src/core/ext/transport/chttp2/transport/incoming_metadata.c
2153 src/core/ext/transport/chttp2/transport/parsing.c
ncteisen3770ac92016-11-28 11:02:41 -08002154 src/core/ext/transport/chttp2/transport/stream_lists.c
2155 src/core/ext/transport/chttp2/transport/stream_map.c
2156 src/core/ext/transport/chttp2/transport/varint.c
2157 src/core/ext/transport/chttp2/transport/writing.c
2158 src/core/lib/channel/channel_args.c
2159 src/core/lib/channel/channel_stack.c
2160 src/core/lib/channel/channel_stack_builder.c
2161 src/core/lib/channel/compress_filter.c
2162 src/core/lib/channel/connected_channel.c
2163 src/core/lib/channel/deadline_filter.c
2164 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -08002165 src/core/lib/channel/handshaker_factory.c
2166 src/core/lib/channel/handshaker_registry.c
ncteisen3770ac92016-11-28 11:02:41 -08002167 src/core/lib/channel/http_client_filter.c
2168 src/core/lib/channel/http_server_filter.c
2169 src/core/lib/channel/message_size_filter.c
2170 src/core/lib/compression/compression.c
2171 src/core/lib/compression/message_compress.c
2172 src/core/lib/debug/trace.c
2173 src/core/lib/http/format_request.c
2174 src/core/lib/http/httpcli.c
2175 src/core/lib/http/parser.c
2176 src/core/lib/iomgr/closure.c
2177 src/core/lib/iomgr/combiner.c
2178 src/core/lib/iomgr/endpoint.c
2179 src/core/lib/iomgr/endpoint_pair_posix.c
2180 src/core/lib/iomgr/endpoint_pair_uv.c
2181 src/core/lib/iomgr/endpoint_pair_windows.c
2182 src/core/lib/iomgr/error.c
2183 src/core/lib/iomgr/ev_epoll_linux.c
2184 src/core/lib/iomgr/ev_poll_posix.c
2185 src/core/lib/iomgr/ev_posix.c
2186 src/core/lib/iomgr/exec_ctx.c
2187 src/core/lib/iomgr/executor.c
2188 src/core/lib/iomgr/iocp_windows.c
2189 src/core/lib/iomgr/iomgr.c
2190 src/core/lib/iomgr/iomgr_posix.c
2191 src/core/lib/iomgr/iomgr_uv.c
2192 src/core/lib/iomgr/iomgr_windows.c
2193 src/core/lib/iomgr/load_file.c
2194 src/core/lib/iomgr/network_status_tracker.c
2195 src/core/lib/iomgr/polling_entity.c
2196 src/core/lib/iomgr/pollset_set_uv.c
2197 src/core/lib/iomgr/pollset_set_windows.c
2198 src/core/lib/iomgr/pollset_uv.c
2199 src/core/lib/iomgr/pollset_windows.c
2200 src/core/lib/iomgr/resolve_address_posix.c
2201 src/core/lib/iomgr/resolve_address_uv.c
2202 src/core/lib/iomgr/resolve_address_windows.c
2203 src/core/lib/iomgr/resource_quota.c
2204 src/core/lib/iomgr/sockaddr_utils.c
2205 src/core/lib/iomgr/socket_mutator.c
2206 src/core/lib/iomgr/socket_utils_common_posix.c
2207 src/core/lib/iomgr/socket_utils_linux.c
2208 src/core/lib/iomgr/socket_utils_posix.c
2209 src/core/lib/iomgr/socket_utils_uv.c
2210 src/core/lib/iomgr/socket_utils_windows.c
2211 src/core/lib/iomgr/socket_windows.c
2212 src/core/lib/iomgr/tcp_client_posix.c
2213 src/core/lib/iomgr/tcp_client_uv.c
2214 src/core/lib/iomgr/tcp_client_windows.c
2215 src/core/lib/iomgr/tcp_posix.c
2216 src/core/lib/iomgr/tcp_server_posix.c
2217 src/core/lib/iomgr/tcp_server_uv.c
2218 src/core/lib/iomgr/tcp_server_windows.c
2219 src/core/lib/iomgr/tcp_uv.c
2220 src/core/lib/iomgr/tcp_windows.c
2221 src/core/lib/iomgr/time_averaged_stats.c
2222 src/core/lib/iomgr/timer_generic.c
2223 src/core/lib/iomgr/timer_heap.c
2224 src/core/lib/iomgr/timer_uv.c
2225 src/core/lib/iomgr/udp_server.c
2226 src/core/lib/iomgr/unix_sockets_posix.c
2227 src/core/lib/iomgr/unix_sockets_posix_noop.c
2228 src/core/lib/iomgr/wakeup_fd_cv.c
2229 src/core/lib/iomgr/wakeup_fd_eventfd.c
2230 src/core/lib/iomgr/wakeup_fd_nospecial.c
2231 src/core/lib/iomgr/wakeup_fd_pipe.c
2232 src/core/lib/iomgr/wakeup_fd_posix.c
2233 src/core/lib/iomgr/workqueue_uv.c
2234 src/core/lib/iomgr/workqueue_windows.c
2235 src/core/lib/json/json.c
2236 src/core/lib/json/json_reader.c
2237 src/core/lib/json/json_string.c
2238 src/core/lib/json/json_writer.c
2239 src/core/lib/slice/percent_encoding.c
2240 src/core/lib/slice/slice.c
2241 src/core/lib/slice/slice_buffer.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08002242 src/core/lib/slice/slice_hash_table.c
2243 src/core/lib/slice/slice_intern.c
ncteisen3770ac92016-11-28 11:02:41 -08002244 src/core/lib/slice/slice_string_helpers.c
2245 src/core/lib/surface/alarm.c
2246 src/core/lib/surface/api_trace.c
2247 src/core/lib/surface/byte_buffer.c
2248 src/core/lib/surface/byte_buffer_reader.c
2249 src/core/lib/surface/call.c
2250 src/core/lib/surface/call_details.c
2251 src/core/lib/surface/call_log_batch.c
2252 src/core/lib/surface/channel.c
2253 src/core/lib/surface/channel_init.c
2254 src/core/lib/surface/channel_ping.c
2255 src/core/lib/surface/channel_stack_type.c
2256 src/core/lib/surface/completion_queue.c
2257 src/core/lib/surface/event_string.c
2258 src/core/lib/surface/lame_client.c
2259 src/core/lib/surface/metadata_array.c
2260 src/core/lib/surface/server.c
2261 src/core/lib/surface/validate_metadata.c
2262 src/core/lib/surface/version.c
Craig Tillerd4257122017-01-13 09:33:57 -08002263 src/core/lib/transport/bdp_estimator.c
ncteisen3770ac92016-11-28 11:02:41 -08002264 src/core/lib/transport/byte_stream.c
2265 src/core/lib/transport/connectivity_state.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08002266 src/core/lib/transport/error_utils.c
ncteisen3770ac92016-11-28 11:02:41 -08002267 src/core/lib/transport/metadata.c
2268 src/core/lib/transport/metadata_batch.c
2269 src/core/lib/transport/pid_controller.c
2270 src/core/lib/transport/service_config.c
2271 src/core/lib/transport/static_metadata.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08002272 src/core/lib/transport/status_conversion.c
ncteisen3770ac92016-11-28 11:02:41 -08002273 src/core/lib/transport/timeout_encoding.c
2274 src/core/lib/transport/transport.c
2275 src/core/lib/transport/transport_op_string.c
2276 src/core/ext/transport/chttp2/alpn/alpn.c
2277 src/core/ext/client_channel/channel_connectivity.c
2278 src/core/ext/client_channel/client_channel.c
2279 src/core/ext/client_channel/client_channel_factory.c
2280 src/core/ext/client_channel/client_channel_plugin.c
2281 src/core/ext/client_channel/connector.c
2282 src/core/ext/client_channel/default_initial_connect_string.c
2283 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Rothd58a9852017-01-18 08:28:57 -08002284 src/core/ext/client_channel/http_proxy.c
ncteisen3770ac92016-11-28 11:02:41 -08002285 src/core/ext/client_channel/initial_connect_string.c
2286 src/core/ext/client_channel/lb_policy.c
2287 src/core/ext/client_channel/lb_policy_factory.c
2288 src/core/ext/client_channel/lb_policy_registry.c
2289 src/core/ext/client_channel/parse_address.c
Mark D. Roth79f2a242017-01-17 14:13:33 -08002290 src/core/ext/client_channel/proxy_mapper.c
2291 src/core/ext/client_channel/proxy_mapper_registry.c
ncteisen3770ac92016-11-28 11:02:41 -08002292 src/core/ext/client_channel/resolver.c
2293 src/core/ext/client_channel/resolver_factory.c
2294 src/core/ext/client_channel/resolver_registry.c
2295 src/core/ext/client_channel/subchannel.c
2296 src/core/ext/client_channel/subchannel_index.c
2297 src/core/ext/client_channel/uri_parser.c
2298 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
2299 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
Mark D. Roth71403822016-12-02 10:51:39 -08002300 src/core/ext/transport/chttp2/server/chttp2_server.c
ncteisen3770ac92016-11-28 11:02:41 -08002301 src/core/ext/census/base_resources.c
2302 src/core/ext/census/context.c
2303 src/core/ext/census/gen/census.pb.c
2304 src/core/ext/census/gen/trace_context.pb.c
2305 src/core/ext/census/grpc_context.c
2306 src/core/ext/census/grpc_filter.c
2307 src/core/ext/census/grpc_plugin.c
2308 src/core/ext/census/initialize.c
2309 src/core/ext/census/mlog.c
2310 src/core/ext/census/operation.c
2311 src/core/ext/census/placeholders.c
2312 src/core/ext/census/resource.c
2313 src/core/ext/census/trace_context.c
2314 src/core/ext/census/tracing.c
2315 third_party/nanopb/pb_common.c
2316 third_party/nanopb/pb_decode.c
2317 third_party/nanopb/pb_encode.c
Garrett Casto931a26b2016-10-04 09:18:29 -07002318)
2319
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002320
Garrett Casto931a26b2016-10-04 09:18:29 -07002321target_include_directories(grpc++_cronet
2322 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2323 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2324 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2325 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2326 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002327 PRIVATE ${BENCHMARK}/include
Garrett Casto931a26b2016-10-04 09:18:29 -07002328 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002329 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002330 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Garrett Casto931a26b2016-10-04 09:18:29 -07002331)
2332
2333target_link_libraries(grpc++_cronet
2334 ${_gRPC_BASELIB_LIBRARIES}
2335 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002336 ${_gRPC_PROTOBUF_LIBRARIES}
2337 ${_gRPC_ALLTARGETS_LIBRARIES}
Garrett Casto931a26b2016-10-04 09:18:29 -07002338 gpr
2339 grpc_cronet
2340)
2341
2342foreach(_hdr
2343 include/grpc++/alarm.h
2344 include/grpc++/channel.h
2345 include/grpc++/client_context.h
2346 include/grpc++/completion_queue.h
2347 include/grpc++/create_channel.h
2348 include/grpc++/create_channel_posix.h
2349 include/grpc++/generic/async_generic_service.h
2350 include/grpc++/generic/generic_stub.h
2351 include/grpc++/grpc++.h
2352 include/grpc++/impl/call.h
2353 include/grpc++/impl/client_unary_call.h
2354 include/grpc++/impl/codegen/core_codegen.h
2355 include/grpc++/impl/grpc_library.h
2356 include/grpc++/impl/method_handler_impl.h
2357 include/grpc++/impl/rpc_method.h
2358 include/grpc++/impl/rpc_service_method.h
2359 include/grpc++/impl/serialization_traits.h
2360 include/grpc++/impl/server_builder_option.h
2361 include/grpc++/impl/server_builder_plugin.h
2362 include/grpc++/impl/server_initializer.h
2363 include/grpc++/impl/service_type.h
Craig Tiller3d357d92016-10-26 20:52:03 -07002364 include/grpc++/resource_quota.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002365 include/grpc++/security/auth_context.h
2366 include/grpc++/security/auth_metadata_processor.h
2367 include/grpc++/security/credentials.h
2368 include/grpc++/security/server_credentials.h
2369 include/grpc++/server.h
2370 include/grpc++/server_builder.h
2371 include/grpc++/server_context.h
2372 include/grpc++/server_posix.h
2373 include/grpc++/support/async_stream.h
2374 include/grpc++/support/async_unary_call.h
2375 include/grpc++/support/byte_buffer.h
2376 include/grpc++/support/channel_arguments.h
2377 include/grpc++/support/config.h
2378 include/grpc++/support/slice.h
2379 include/grpc++/support/status.h
2380 include/grpc++/support/status_code_enum.h
2381 include/grpc++/support/string_ref.h
2382 include/grpc++/support/stub_options.h
2383 include/grpc++/support/sync_stream.h
2384 include/grpc++/support/time.h
2385 include/grpc++/impl/codegen/async_stream.h
2386 include/grpc++/impl/codegen/async_unary_call.h
2387 include/grpc++/impl/codegen/call.h
2388 include/grpc++/impl/codegen/call_hook.h
2389 include/grpc++/impl/codegen/channel_interface.h
2390 include/grpc++/impl/codegen/client_context.h
2391 include/grpc++/impl/codegen/client_unary_call.h
2392 include/grpc++/impl/codegen/completion_queue.h
2393 include/grpc++/impl/codegen/completion_queue_tag.h
2394 include/grpc++/impl/codegen/config.h
2395 include/grpc++/impl/codegen/core_codegen_interface.h
2396 include/grpc++/impl/codegen/create_auth_context.h
2397 include/grpc++/impl/codegen/grpc_library.h
yang-g988b47c2017-01-31 09:51:45 -08002398 include/grpc++/impl/codegen/metadata_map.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002399 include/grpc++/impl/codegen/method_handler_impl.h
2400 include/grpc++/impl/codegen/rpc_method.h
2401 include/grpc++/impl/codegen/rpc_service_method.h
2402 include/grpc++/impl/codegen/security/auth_context.h
2403 include/grpc++/impl/codegen/serialization_traits.h
2404 include/grpc++/impl/codegen/server_context.h
2405 include/grpc++/impl/codegen/server_interface.h
2406 include/grpc++/impl/codegen/service_type.h
Craig Tiller7c70b6c2017-01-23 07:48:42 -08002407 include/grpc++/impl/codegen/slice.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002408 include/grpc++/impl/codegen/status.h
2409 include/grpc++/impl/codegen/status_code_enum.h
2410 include/grpc++/impl/codegen/status_helper.h
2411 include/grpc++/impl/codegen/string_ref.h
2412 include/grpc++/impl/codegen/stub_options.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002413 include/grpc++/impl/codegen/sync_stream.h
2414 include/grpc++/impl/codegen/time.h
2415 include/grpc/impl/codegen/byte_buffer_reader.h
2416 include/grpc/impl/codegen/compression_types.h
2417 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08002418 include/grpc/impl/codegen/exec_ctx_fwd.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002419 include/grpc/impl/codegen/grpc_types.h
2420 include/grpc/impl/codegen/propagation_bits.h
2421 include/grpc/impl/codegen/status.h
2422 include/grpc/impl/codegen/atm.h
2423 include/grpc/impl/codegen/atm_gcc_atomic.h
2424 include/grpc/impl/codegen/atm_gcc_sync.h
2425 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08002426 include/grpc/impl/codegen/gpr_slice.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002427 include/grpc/impl/codegen/gpr_types.h
2428 include/grpc/impl/codegen/port_platform.h
2429 include/grpc/impl/codegen/slice.h
2430 include/grpc/impl/codegen/sync.h
2431 include/grpc/impl/codegen/sync_generic.h
2432 include/grpc/impl/codegen/sync_posix.h
2433 include/grpc/impl/codegen/sync_windows.h
ncteisen3770ac92016-11-28 11:02:41 -08002434 include/grpc/byte_buffer.h
2435 include/grpc/byte_buffer_reader.h
2436 include/grpc/compression.h
2437 include/grpc/grpc.h
2438 include/grpc/grpc_posix.h
2439 include/grpc/grpc_security_constants.h
2440 include/grpc/slice.h
2441 include/grpc/slice_buffer.h
2442 include/grpc/status.h
2443 include/grpc/census.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002444)
2445 string(REPLACE "include/" "" _path ${_hdr})
2446 get_filename_component(_path ${_path} PATH)
2447 install(FILES ${_hdr}
2448 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
2449 )
2450endforeach()
2451
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002452
Garrett Casto931a26b2016-10-04 09:18:29 -07002453if (gRPC_INSTALL)
2454 install(TARGETS grpc++_cronet EXPORT gRPCTargets
2455 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2456 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2457 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2458 )
2459endif()
2460
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002461if (gRPC_BUILD_TESTS)
2462
2463add_library(grpc++_proto_reflection_desc_db
2464 test/cpp/util/proto_reflection_descriptor_database.cc
2465 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.cc
2466 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.cc
2467 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.h
2468 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h
2469)
2470
2471protobuf_generate_grpc_cpp(
2472 src/proto/grpc/reflection/v1alpha/reflection.proto
2473)
2474
2475target_include_directories(grpc++_proto_reflection_desc_db
2476 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2477 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2478 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2479 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2480 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002481 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002482 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2483 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
2484 PRIVATE third_party/googletest/include
2485 PRIVATE third_party/googletest
2486 PRIVATE ${_gRPC_PROTO_GENS_DIR}
2487)
2488
2489target_link_libraries(grpc++_proto_reflection_desc_db
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002490 ${_gRPC_PROTOBUF_LIBRARIES}
2491 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002492 grpc++
2493)
2494
2495foreach(_hdr
2496 include/grpc++/impl/codegen/config_protobuf.h
2497)
2498 string(REPLACE "include/" "" _path ${_hdr})
2499 get_filename_component(_path ${_path} PATH)
2500 install(FILES ${_hdr}
2501 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
2502 )
2503endforeach()
2504
2505endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002506
2507add_library(grpc++_reflection
2508 src/cpp/ext/proto_server_reflection.cc
2509 src/cpp/ext/proto_server_reflection_plugin.cc
2510 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.cc
2511 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.cc
2512 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.h
2513 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h
2514)
2515
2516protobuf_generate_grpc_cpp(
2517 src/proto/grpc/reflection/v1alpha/reflection.proto
2518)
2519
2520target_include_directories(grpc++_reflection
2521 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2522 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2523 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2524 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2525 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002526 PRIVATE ${BENCHMARK}/include
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002527 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002528 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002529 PRIVATE ${_gRPC_PROTO_GENS_DIR}
2530)
2531
2532target_link_libraries(grpc++_reflection
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002533 ${_gRPC_PROTOBUF_LIBRARIES}
2534 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002535 grpc++
2536)
2537
2538foreach(_hdr
2539 include/grpc++/ext/proto_server_reflection_plugin.h
2540)
2541 string(REPLACE "include/" "" _path ${_hdr})
2542 get_filename_component(_path ${_path} PATH)
2543 install(FILES ${_hdr}
2544 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
2545 )
2546endforeach()
2547
2548
2549if (gRPC_INSTALL)
2550 install(TARGETS grpc++_reflection EXPORT gRPCTargets
2551 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2552 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2553 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2554 )
2555endif()
2556
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002557if (gRPC_BUILD_TESTS)
2558
2559add_library(grpc++_test
2560 src/cpp/test/server_context_test_spouse.cc
2561)
2562
2563
2564target_include_directories(grpc++_test
2565 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2566 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2567 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2568 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2569 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002570 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002571 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2572 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
2573 PRIVATE third_party/googletest/include
2574 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002575 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002576)
2577
2578target_link_libraries(grpc++_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002579 ${_gRPC_PROTOBUF_LIBRARIES}
2580 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002581 grpc++
2582)
2583
2584
2585endif (gRPC_BUILD_TESTS)
2586if (gRPC_BUILD_TESTS)
2587
2588add_library(grpc++_test_config
2589 test/cpp/util/test_config_cc.cc
2590)
2591
2592
2593target_include_directories(grpc++_test_config
2594 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2595 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2596 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2597 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2598 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002599 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002600 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2601 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
2602 PRIVATE third_party/googletest/include
2603 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002604 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002605)
2606
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002607target_link_libraries(grpc++_test_config
2608 ${_gRPC_PROTOBUF_LIBRARIES}
2609 ${_gRPC_ALLTARGETS_LIBRARIES}
2610)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002611
2612
2613endif (gRPC_BUILD_TESTS)
2614if (gRPC_BUILD_TESTS)
2615
2616add_library(grpc++_test_util
2617 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc
2618 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc
2619 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h
2620 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h
2621 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc
2622 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc
2623 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h
2624 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h
2625 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.pb.cc
2626 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.cc
2627 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.pb.h
2628 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.h
2629 test/cpp/end2end/test_service_impl.cc
2630 test/cpp/util/byte_buffer_proto_helper.cc
2631 test/cpp/util/create_test_channel.cc
2632 test/cpp/util/string_ref_helper.cc
2633 test/cpp/util/subprocess.cc
2634 test/cpp/util/test_credentials_provider.cc
2635 src/cpp/codegen/codegen_init.cc
2636)
2637
2638protobuf_generate_grpc_cpp(
2639 src/proto/grpc/testing/echo_messages.proto
2640)
2641protobuf_generate_grpc_cpp(
2642 src/proto/grpc/testing/echo.proto
2643)
2644protobuf_generate_grpc_cpp(
2645 src/proto/grpc/testing/duplicate/echo_duplicate.proto
2646)
2647
2648target_include_directories(grpc++_test_util
2649 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2650 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2651 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2652 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2653 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002654 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002655 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2656 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
2657 PRIVATE third_party/googletest/include
2658 PRIVATE third_party/googletest
2659 PRIVATE ${_gRPC_PROTO_GENS_DIR}
2660)
2661
2662target_link_libraries(grpc++_test_util
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002663 ${_gRPC_PROTOBUF_LIBRARIES}
2664 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002665 grpc++
2666 grpc_test_util
2667)
2668
2669foreach(_hdr
2670 include/grpc++/impl/codegen/async_stream.h
2671 include/grpc++/impl/codegen/async_unary_call.h
2672 include/grpc++/impl/codegen/call.h
2673 include/grpc++/impl/codegen/call_hook.h
2674 include/grpc++/impl/codegen/channel_interface.h
2675 include/grpc++/impl/codegen/client_context.h
2676 include/grpc++/impl/codegen/client_unary_call.h
2677 include/grpc++/impl/codegen/completion_queue.h
2678 include/grpc++/impl/codegen/completion_queue_tag.h
2679 include/grpc++/impl/codegen/config.h
2680 include/grpc++/impl/codegen/core_codegen_interface.h
2681 include/grpc++/impl/codegen/create_auth_context.h
2682 include/grpc++/impl/codegen/grpc_library.h
yang-g988b47c2017-01-31 09:51:45 -08002683 include/grpc++/impl/codegen/metadata_map.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002684 include/grpc++/impl/codegen/method_handler_impl.h
2685 include/grpc++/impl/codegen/rpc_method.h
2686 include/grpc++/impl/codegen/rpc_service_method.h
2687 include/grpc++/impl/codegen/security/auth_context.h
2688 include/grpc++/impl/codegen/serialization_traits.h
2689 include/grpc++/impl/codegen/server_context.h
2690 include/grpc++/impl/codegen/server_interface.h
2691 include/grpc++/impl/codegen/service_type.h
Craig Tiller7c70b6c2017-01-23 07:48:42 -08002692 include/grpc++/impl/codegen/slice.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002693 include/grpc++/impl/codegen/status.h
2694 include/grpc++/impl/codegen/status_code_enum.h
2695 include/grpc++/impl/codegen/status_helper.h
2696 include/grpc++/impl/codegen/string_ref.h
2697 include/grpc++/impl/codegen/stub_options.h
2698 include/grpc++/impl/codegen/sync_stream.h
2699 include/grpc++/impl/codegen/time.h
2700 include/grpc/impl/codegen/byte_buffer_reader.h
2701 include/grpc/impl/codegen/compression_types.h
2702 include/grpc/impl/codegen/connectivity_state.h
2703 include/grpc/impl/codegen/exec_ctx_fwd.h
2704 include/grpc/impl/codegen/grpc_types.h
2705 include/grpc/impl/codegen/propagation_bits.h
2706 include/grpc/impl/codegen/status.h
2707 include/grpc/impl/codegen/atm.h
2708 include/grpc/impl/codegen/atm_gcc_atomic.h
2709 include/grpc/impl/codegen/atm_gcc_sync.h
2710 include/grpc/impl/codegen/atm_windows.h
2711 include/grpc/impl/codegen/gpr_slice.h
2712 include/grpc/impl/codegen/gpr_types.h
2713 include/grpc/impl/codegen/port_platform.h
2714 include/grpc/impl/codegen/slice.h
2715 include/grpc/impl/codegen/sync.h
2716 include/grpc/impl/codegen/sync_generic.h
2717 include/grpc/impl/codegen/sync_posix.h
2718 include/grpc/impl/codegen/sync_windows.h
2719 include/grpc++/impl/codegen/proto_utils.h
2720 include/grpc++/impl/codegen/config_protobuf.h
2721 include/grpc++/impl/codegen/thrift_serializer.h
2722 include/grpc++/impl/codegen/thrift_utils.h
2723)
2724 string(REPLACE "include/" "" _path ${_hdr})
2725 get_filename_component(_path ${_path} PATH)
2726 install(FILES ${_hdr}
2727 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
2728 )
2729endforeach()
2730
2731endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002732
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002733add_library(grpc++_unsecure
murgatroid991ca0f3e2016-08-26 14:58:49 -07002734 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002735 src/cpp/common/insecure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07002736 src/cpp/server/insecure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002737 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002738 src/cpp/client/client_context.cc
2739 src/cpp/client/create_channel.cc
2740 src/cpp/client/create_channel_internal.cc
2741 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002742 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002743 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002744 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07002745 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002746 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002747 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07002748 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002749 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07002750 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002751 src/cpp/server/async_generic_service.cc
2752 src/cpp/server/create_default_thread_pool.cc
2753 src/cpp/server/dynamic_thread_pool.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002754 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002755 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002756 src/cpp/server/server_context.cc
2757 src/cpp/server/server_credentials.cc
2758 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07002759 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002760 src/cpp/util/byte_buffer_cc.cc
2761 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002762 src/cpp/util/status.cc
2763 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002764 src/cpp/util/time_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002765 src/cpp/codegen/codegen_init.cc
2766)
2767
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002768
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002769target_include_directories(grpc++_unsecure
2770 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2771 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2772 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2773 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002774 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002775 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002776 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002777 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002778 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002779)
2780
2781target_link_libraries(grpc++_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002782 ${_gRPC_BASELIB_LIBRARIES}
2783 ${_gRPC_PROTOBUF_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002784 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002785 gpr
2786 grpc_unsecure
2787)
2788
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002789foreach(_hdr
2790 include/grpc++/alarm.h
2791 include/grpc++/channel.h
2792 include/grpc++/client_context.h
2793 include/grpc++/completion_queue.h
2794 include/grpc++/create_channel.h
2795 include/grpc++/create_channel_posix.h
2796 include/grpc++/generic/async_generic_service.h
2797 include/grpc++/generic/generic_stub.h
2798 include/grpc++/grpc++.h
2799 include/grpc++/impl/call.h
2800 include/grpc++/impl/client_unary_call.h
2801 include/grpc++/impl/codegen/core_codegen.h
2802 include/grpc++/impl/grpc_library.h
2803 include/grpc++/impl/method_handler_impl.h
2804 include/grpc++/impl/rpc_method.h
2805 include/grpc++/impl/rpc_service_method.h
2806 include/grpc++/impl/serialization_traits.h
2807 include/grpc++/impl/server_builder_option.h
2808 include/grpc++/impl/server_builder_plugin.h
2809 include/grpc++/impl/server_initializer.h
2810 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07002811 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002812 include/grpc++/security/auth_context.h
2813 include/grpc++/security/auth_metadata_processor.h
2814 include/grpc++/security/credentials.h
2815 include/grpc++/security/server_credentials.h
2816 include/grpc++/server.h
2817 include/grpc++/server_builder.h
2818 include/grpc++/server_context.h
2819 include/grpc++/server_posix.h
2820 include/grpc++/support/async_stream.h
2821 include/grpc++/support/async_unary_call.h
2822 include/grpc++/support/byte_buffer.h
2823 include/grpc++/support/channel_arguments.h
2824 include/grpc++/support/config.h
2825 include/grpc++/support/slice.h
2826 include/grpc++/support/status.h
2827 include/grpc++/support/status_code_enum.h
2828 include/grpc++/support/string_ref.h
2829 include/grpc++/support/stub_options.h
2830 include/grpc++/support/sync_stream.h
2831 include/grpc++/support/time.h
2832 include/grpc++/impl/codegen/async_stream.h
2833 include/grpc++/impl/codegen/async_unary_call.h
2834 include/grpc++/impl/codegen/call.h
2835 include/grpc++/impl/codegen/call_hook.h
2836 include/grpc++/impl/codegen/channel_interface.h
2837 include/grpc++/impl/codegen/client_context.h
2838 include/grpc++/impl/codegen/client_unary_call.h
2839 include/grpc++/impl/codegen/completion_queue.h
2840 include/grpc++/impl/codegen/completion_queue_tag.h
2841 include/grpc++/impl/codegen/config.h
2842 include/grpc++/impl/codegen/core_codegen_interface.h
2843 include/grpc++/impl/codegen/create_auth_context.h
2844 include/grpc++/impl/codegen/grpc_library.h
yang-g988b47c2017-01-31 09:51:45 -08002845 include/grpc++/impl/codegen/metadata_map.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002846 include/grpc++/impl/codegen/method_handler_impl.h
2847 include/grpc++/impl/codegen/rpc_method.h
2848 include/grpc++/impl/codegen/rpc_service_method.h
2849 include/grpc++/impl/codegen/security/auth_context.h
2850 include/grpc++/impl/codegen/serialization_traits.h
2851 include/grpc++/impl/codegen/server_context.h
2852 include/grpc++/impl/codegen/server_interface.h
2853 include/grpc++/impl/codegen/service_type.h
Craig Tiller7c70b6c2017-01-23 07:48:42 -08002854 include/grpc++/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002855 include/grpc++/impl/codegen/status.h
2856 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07002857 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002858 include/grpc++/impl/codegen/string_ref.h
2859 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002860 include/grpc++/impl/codegen/sync_stream.h
2861 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02002862 include/grpc/impl/codegen/byte_buffer_reader.h
2863 include/grpc/impl/codegen/compression_types.h
2864 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08002865 include/grpc/impl/codegen/exec_ctx_fwd.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02002866 include/grpc/impl/codegen/grpc_types.h
2867 include/grpc/impl/codegen/propagation_bits.h
2868 include/grpc/impl/codegen/status.h
2869 include/grpc/impl/codegen/atm.h
2870 include/grpc/impl/codegen/atm_gcc_atomic.h
2871 include/grpc/impl/codegen/atm_gcc_sync.h
2872 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08002873 include/grpc/impl/codegen/gpr_slice.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02002874 include/grpc/impl/codegen/gpr_types.h
2875 include/grpc/impl/codegen/port_platform.h
2876 include/grpc/impl/codegen/slice.h
2877 include/grpc/impl/codegen/sync.h
2878 include/grpc/impl/codegen/sync_generic.h
2879 include/grpc/impl/codegen/sync_posix.h
2880 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002881)
2882 string(REPLACE "include/" "" _path ${_hdr})
2883 get_filename_component(_path ${_path} PATH)
2884 install(FILES ${_hdr}
2885 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
2886 )
2887endforeach()
2888
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002889
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002890if (gRPC_INSTALL)
2891 install(TARGETS grpc++_unsecure EXPORT gRPCTargets
2892 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2893 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2894 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2895 )
2896endif()
2897
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002898if (gRPC_BUILD_TESTS)
2899
2900add_library(grpc_cli_libs
2901 test/cpp/util/cli_call.cc
2902 test/cpp/util/cli_credentials.cc
2903 test/cpp/util/grpc_tool.cc
2904 test/cpp/util/proto_file_parser.cc
2905 test/cpp/util/service_describer.cc
2906 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.cc
2907 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.cc
2908 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.h
2909 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h
2910)
2911
2912protobuf_generate_grpc_cpp(
2913 src/proto/grpc/reflection/v1alpha/reflection.proto
2914)
2915
2916target_include_directories(grpc_cli_libs
2917 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2918 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2919 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2920 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2921 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002922 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002923 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2924 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
2925 PRIVATE third_party/googletest/include
2926 PRIVATE third_party/googletest
2927 PRIVATE ${_gRPC_PROTO_GENS_DIR}
2928)
2929
2930target_link_libraries(grpc_cli_libs
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002931 ${_gRPC_PROTOBUF_LIBRARIES}
2932 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002933 grpc++_proto_reflection_desc_db
2934 grpc++
2935)
2936
2937foreach(_hdr
2938 include/grpc++/impl/codegen/config_protobuf.h
2939)
2940 string(REPLACE "include/" "" _path ${_hdr})
2941 get_filename_component(_path ${_path} PATH)
2942 install(FILES ${_hdr}
2943 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
2944 )
2945endforeach()
2946
2947endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002948
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002949add_library(grpc_plugin_support
2950 src/compiler/cpp_generator.cc
2951 src/compiler/csharp_generator.cc
2952 src/compiler/node_generator.cc
2953 src/compiler/objective_c_generator.cc
Stanley Cheung857a1302016-09-29 17:26:29 -07002954 src/compiler/php_generator.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002955 src/compiler/python_generator.cc
2956 src/compiler/ruby_generator.cc
2957)
2958
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002959
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002960target_include_directories(grpc_plugin_support
2961 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2962 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2963 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2964 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002965 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002966 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002967 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002968 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002969 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002970)
2971
2972target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002973 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002974 ${_gRPC_PROTOBUF_LIBRARIES}
2975 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002976)
2977
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002978foreach(_hdr
2979 include/grpc++/impl/codegen/config_protobuf.h
2980)
2981 string(REPLACE "include/" "" _path ${_hdr})
2982 get_filename_component(_path ${_path} PATH)
2983 install(FILES ${_hdr}
2984 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
2985 )
2986endforeach()
2987
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002988
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002989if (gRPC_INSTALL)
2990 install(TARGETS grpc_plugin_support EXPORT gRPCTargets
2991 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2992 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2993 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2994 )
2995endif()
2996
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002997if (gRPC_BUILD_TESTS)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002998
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002999add_library(http2_client_main
3000 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
3001 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
3002 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
3003 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
3004 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
3005 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
3006 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
3007 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
3008 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
3009 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
3010 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
3011 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
3012 test/cpp/interop/http2_client.cc
3013)
3014
3015protobuf_generate_grpc_cpp(
3016 src/proto/grpc/testing/empty.proto
3017)
3018protobuf_generate_grpc_cpp(
3019 src/proto/grpc/testing/messages.proto
3020)
3021protobuf_generate_grpc_cpp(
3022 src/proto/grpc/testing/test.proto
3023)
3024
3025target_include_directories(http2_client_main
3026 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3027 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3028 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3029 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3030 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003031 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003032 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3033 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3034 PRIVATE third_party/googletest/include
3035 PRIVATE third_party/googletest
3036 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3037)
3038
3039target_link_libraries(http2_client_main
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003040 ${_gRPC_PROTOBUF_LIBRARIES}
3041 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003042 grpc++_test_util
3043 grpc_test_util
3044 grpc++
3045 grpc
3046 grpc++_test_config
3047)
3048
3049
3050endif (gRPC_BUILD_TESTS)
3051if (gRPC_BUILD_TESTS)
3052
3053add_library(interop_client_helper
3054 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
3055 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
3056 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
3057 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
3058 test/cpp/interop/client_helper.cc
3059)
3060
3061protobuf_generate_grpc_cpp(
3062 src/proto/grpc/testing/messages.proto
3063)
3064
3065target_include_directories(interop_client_helper
3066 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3067 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3068 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3069 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3070 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003071 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003072 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3073 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3074 PRIVATE third_party/googletest/include
3075 PRIVATE third_party/googletest
3076 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3077)
3078
3079target_link_libraries(interop_client_helper
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003080 ${_gRPC_PROTOBUF_LIBRARIES}
3081 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003082 grpc++_test_util
3083 grpc_test_util
3084 grpc++
3085 grpc
3086 gpr
3087)
3088
3089
3090endif (gRPC_BUILD_TESTS)
3091if (gRPC_BUILD_TESTS)
3092
3093add_library(interop_client_main
3094 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
3095 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
3096 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
3097 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
3098 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
3099 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
3100 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
3101 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
3102 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
3103 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
3104 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
3105 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
3106 test/cpp/interop/client.cc
3107 test/cpp/interop/interop_client.cc
3108)
3109
3110protobuf_generate_grpc_cpp(
3111 src/proto/grpc/testing/empty.proto
3112)
3113protobuf_generate_grpc_cpp(
3114 src/proto/grpc/testing/messages.proto
3115)
3116protobuf_generate_grpc_cpp(
3117 src/proto/grpc/testing/test.proto
3118)
3119
3120target_include_directories(interop_client_main
3121 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3122 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3123 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3124 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3125 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003126 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003127 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3128 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3129 PRIVATE third_party/googletest/include
3130 PRIVATE third_party/googletest
3131 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3132)
3133
3134target_link_libraries(interop_client_main
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003135 ${_gRPC_PROTOBUF_LIBRARIES}
3136 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003137 interop_client_helper
3138 grpc++_test_util
3139 grpc_test_util
3140 grpc++
3141 grpc
3142 gpr_test_util
3143 gpr
3144 grpc++_test_config
3145)
3146
3147
3148endif (gRPC_BUILD_TESTS)
3149if (gRPC_BUILD_TESTS)
3150
3151add_library(interop_server_helper
3152 test/cpp/interop/server_helper.cc
3153)
3154
3155
3156target_include_directories(interop_server_helper
3157 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3158 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3159 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3160 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3161 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003162 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003163 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3164 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3165 PRIVATE third_party/googletest/include
3166 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003167 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003168)
3169
3170target_link_libraries(interop_server_helper
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003171 ${_gRPC_PROTOBUF_LIBRARIES}
3172 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003173 grpc++_test_util
3174 grpc_test_util
3175 grpc++
3176 grpc
3177 gpr
3178)
3179
3180
3181endif (gRPC_BUILD_TESTS)
3182if (gRPC_BUILD_TESTS)
3183
3184add_library(interop_server_lib
3185 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
3186 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
3187 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
3188 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
3189 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
3190 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
3191 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
3192 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
3193 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
3194 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
3195 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
3196 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
3197 test/cpp/interop/interop_server.cc
3198)
3199
3200protobuf_generate_grpc_cpp(
3201 src/proto/grpc/testing/empty.proto
3202)
3203protobuf_generate_grpc_cpp(
3204 src/proto/grpc/testing/messages.proto
3205)
3206protobuf_generate_grpc_cpp(
3207 src/proto/grpc/testing/test.proto
3208)
3209
3210target_include_directories(interop_server_lib
3211 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3212 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3213 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3214 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3215 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003216 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003217 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3218 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3219 PRIVATE third_party/googletest/include
3220 PRIVATE third_party/googletest
3221 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3222)
3223
3224target_link_libraries(interop_server_lib
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003225 ${_gRPC_PROTOBUF_LIBRARIES}
3226 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003227 interop_server_helper
3228 grpc++_test_util
3229 grpc_test_util
3230 grpc++
3231 grpc
3232 gpr_test_util
3233 gpr
3234 grpc++_test_config
3235)
3236
3237
3238endif (gRPC_BUILD_TESTS)
3239if (gRPC_BUILD_TESTS)
3240
3241add_library(interop_server_main
3242 test/cpp/interop/interop_server_bootstrap.cc
3243)
3244
3245
3246target_include_directories(interop_server_main
3247 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3248 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3249 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3250 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3251 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003252 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003253 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3254 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3255 PRIVATE third_party/googletest/include
3256 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003257 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003258)
3259
3260target_link_libraries(interop_server_main
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003261 ${_gRPC_PROTOBUF_LIBRARIES}
3262 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003263 interop_server_lib
3264)
3265
3266
3267endif (gRPC_BUILD_TESTS)
3268if (gRPC_BUILD_TESTS)
3269
3270add_library(qps
3271 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
3272 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
3273 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
3274 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
3275 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.cc
3276 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.cc
3277 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.h
3278 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.h
3279 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.cc
3280 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.cc
3281 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.h
3282 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.h
3283 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.cc
3284 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.cc
3285 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.h
3286 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.h
3287 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.cc
3288 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.cc
3289 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.h
3290 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.h
3291 test/cpp/qps/client_async.cc
3292 test/cpp/qps/client_sync.cc
3293 test/cpp/qps/driver.cc
3294 test/cpp/qps/parse_json.cc
3295 test/cpp/qps/qps_worker.cc
3296 test/cpp/qps/report.cc
3297 test/cpp/qps/server_async.cc
3298 test/cpp/qps/server_sync.cc
3299 test/cpp/qps/usage_timer.cc
3300 test/cpp/util/benchmark_config.cc
3301)
3302
3303protobuf_generate_grpc_cpp(
3304 src/proto/grpc/testing/messages.proto
3305)
3306protobuf_generate_grpc_cpp(
3307 src/proto/grpc/testing/payloads.proto
3308)
3309protobuf_generate_grpc_cpp(
3310 src/proto/grpc/testing/stats.proto
3311)
3312protobuf_generate_grpc_cpp(
3313 src/proto/grpc/testing/control.proto
3314)
3315protobuf_generate_grpc_cpp(
3316 src/proto/grpc/testing/services.proto
3317)
3318
3319target_include_directories(qps
3320 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3321 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3322 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3323 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3324 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003325 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003326 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3327 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3328 PRIVATE third_party/googletest/include
3329 PRIVATE third_party/googletest
3330 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3331)
3332
3333target_link_libraries(qps
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003334 ${_gRPC_PROTOBUF_LIBRARIES}
3335 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003336 grpc_test_util
3337 grpc++_test_util
3338 grpc++
3339)
3340
3341
3342endif (gRPC_BUILD_TESTS)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003343
Jan Tattermuschc09656c2017-01-27 13:36:24 +01003344add_library(grpc_csharp_ext SHARED
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003345 src/csharp/ext/grpc_csharp_ext.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003346)
3347
3348
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003349target_include_directories(grpc_csharp_ext
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003350 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3351 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3352 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3353 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3354 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003355 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003356 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3357 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3358)
3359
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003360target_link_libraries(grpc_csharp_ext
3361 ${_gRPC_ALLTARGETS_LIBRARIES}
3362 grpc
3363 gpr
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003364)
3365
3366
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003367
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003368if (gRPC_INSTALL)
3369 install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
3370 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
3371 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
3372 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
3373 )
3374endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003375
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003376if (gRPC_BUILD_TESTS)
3377
3378add_library(bad_client_test
3379 test/core/bad_client/bad_client.c
3380)
3381
3382
3383target_include_directories(bad_client_test
3384 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3385 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3386 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3387 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3388 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003389 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003390 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3391 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3392)
3393
3394target_link_libraries(bad_client_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003395 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003396 grpc_test_util_unsecure
3397 grpc_unsecure
3398 gpr_test_util
3399 gpr
3400)
3401
3402
3403endif (gRPC_BUILD_TESTS)
3404if (gRPC_BUILD_TESTS)
3405
3406add_library(bad_ssl_test_server
3407 test/core/bad_ssl/server_common.c
3408)
3409
3410
3411target_include_directories(bad_ssl_test_server
3412 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3413 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3414 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3415 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3416 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003417 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003418 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3419 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3420)
3421
3422target_link_libraries(bad_ssl_test_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003423 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003424 grpc_test_util
3425 grpc
3426 gpr_test_util
3427 gpr
3428)
3429
3430
3431endif (gRPC_BUILD_TESTS)
3432if (gRPC_BUILD_TESTS)
3433
3434add_library(end2end_tests
3435 test/core/end2end/end2end_tests.c
3436 test/core/end2end/end2end_test_utils.c
3437 test/core/end2end/tests/authority_not_supported.c
3438 test/core/end2end/tests/bad_hostname.c
3439 test/core/end2end/tests/binary_metadata.c
3440 test/core/end2end/tests/call_creds.c
3441 test/core/end2end/tests/cancel_after_accept.c
3442 test/core/end2end/tests/cancel_after_client_done.c
3443 test/core/end2end/tests/cancel_after_invoke.c
3444 test/core/end2end/tests/cancel_before_invoke.c
3445 test/core/end2end/tests/cancel_in_a_vacuum.c
3446 test/core/end2end/tests/cancel_with_status.c
3447 test/core/end2end/tests/compressed_payload.c
3448 test/core/end2end/tests/connectivity.c
3449 test/core/end2end/tests/default_host.c
3450 test/core/end2end/tests/disappearing_server.c
3451 test/core/end2end/tests/empty_batch.c
3452 test/core/end2end/tests/filter_call_init_fails.c
3453 test/core/end2end/tests/filter_causes_close.c
3454 test/core/end2end/tests/filter_latency.c
3455 test/core/end2end/tests/graceful_server_shutdown.c
3456 test/core/end2end/tests/high_initial_seqno.c
3457 test/core/end2end/tests/hpack_size.c
3458 test/core/end2end/tests/idempotent_request.c
3459 test/core/end2end/tests/invoke_large_request.c
3460 test/core/end2end/tests/large_metadata.c
3461 test/core/end2end/tests/load_reporting_hook.c
3462 test/core/end2end/tests/max_concurrent_streams.c
3463 test/core/end2end/tests/max_message_length.c
3464 test/core/end2end/tests/negative_deadline.c
3465 test/core/end2end/tests/network_status_change.c
3466 test/core/end2end/tests/no_logging.c
3467 test/core/end2end/tests/no_op.c
3468 test/core/end2end/tests/payload.c
3469 test/core/end2end/tests/ping.c
3470 test/core/end2end/tests/ping_pong_streaming.c
3471 test/core/end2end/tests/registered_call.c
3472 test/core/end2end/tests/request_with_flags.c
3473 test/core/end2end/tests/request_with_payload.c
3474 test/core/end2end/tests/resource_quota_server.c
3475 test/core/end2end/tests/server_finishes_request.c
3476 test/core/end2end/tests/shutdown_finishes_calls.c
3477 test/core/end2end/tests/shutdown_finishes_tags.c
3478 test/core/end2end/tests/simple_cacheable_request.c
3479 test/core/end2end/tests/simple_delayed_request.c
3480 test/core/end2end/tests/simple_metadata.c
3481 test/core/end2end/tests/simple_request.c
3482 test/core/end2end/tests/streaming_error_response.c
3483 test/core/end2end/tests/trailing_metadata.c
3484 test/core/end2end/tests/write_buffering.c
3485 test/core/end2end/tests/write_buffering_at_end.c
3486)
3487
3488
3489target_include_directories(end2end_tests
3490 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3491 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3492 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3493 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3494 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003495 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003496 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3497 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3498)
3499
3500target_link_libraries(end2end_tests
3501 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003502 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003503 grpc_test_util
3504 grpc
3505 gpr_test_util
3506 gpr
3507)
3508
3509
3510endif (gRPC_BUILD_TESTS)
3511if (gRPC_BUILD_TESTS)
3512
3513add_library(end2end_nosec_tests
3514 test/core/end2end/end2end_nosec_tests.c
3515 test/core/end2end/end2end_test_utils.c
3516 test/core/end2end/tests/authority_not_supported.c
3517 test/core/end2end/tests/bad_hostname.c
3518 test/core/end2end/tests/binary_metadata.c
3519 test/core/end2end/tests/cancel_after_accept.c
3520 test/core/end2end/tests/cancel_after_client_done.c
3521 test/core/end2end/tests/cancel_after_invoke.c
3522 test/core/end2end/tests/cancel_before_invoke.c
3523 test/core/end2end/tests/cancel_in_a_vacuum.c
3524 test/core/end2end/tests/cancel_with_status.c
3525 test/core/end2end/tests/compressed_payload.c
3526 test/core/end2end/tests/connectivity.c
3527 test/core/end2end/tests/default_host.c
3528 test/core/end2end/tests/disappearing_server.c
3529 test/core/end2end/tests/empty_batch.c
3530 test/core/end2end/tests/filter_call_init_fails.c
3531 test/core/end2end/tests/filter_causes_close.c
3532 test/core/end2end/tests/filter_latency.c
3533 test/core/end2end/tests/graceful_server_shutdown.c
3534 test/core/end2end/tests/high_initial_seqno.c
3535 test/core/end2end/tests/hpack_size.c
3536 test/core/end2end/tests/idempotent_request.c
3537 test/core/end2end/tests/invoke_large_request.c
3538 test/core/end2end/tests/large_metadata.c
3539 test/core/end2end/tests/load_reporting_hook.c
3540 test/core/end2end/tests/max_concurrent_streams.c
3541 test/core/end2end/tests/max_message_length.c
3542 test/core/end2end/tests/negative_deadline.c
3543 test/core/end2end/tests/network_status_change.c
3544 test/core/end2end/tests/no_logging.c
3545 test/core/end2end/tests/no_op.c
3546 test/core/end2end/tests/payload.c
3547 test/core/end2end/tests/ping.c
3548 test/core/end2end/tests/ping_pong_streaming.c
3549 test/core/end2end/tests/registered_call.c
3550 test/core/end2end/tests/request_with_flags.c
3551 test/core/end2end/tests/request_with_payload.c
3552 test/core/end2end/tests/resource_quota_server.c
3553 test/core/end2end/tests/server_finishes_request.c
3554 test/core/end2end/tests/shutdown_finishes_calls.c
3555 test/core/end2end/tests/shutdown_finishes_tags.c
3556 test/core/end2end/tests/simple_cacheable_request.c
3557 test/core/end2end/tests/simple_delayed_request.c
3558 test/core/end2end/tests/simple_metadata.c
3559 test/core/end2end/tests/simple_request.c
3560 test/core/end2end/tests/streaming_error_response.c
3561 test/core/end2end/tests/trailing_metadata.c
3562 test/core/end2end/tests/write_buffering.c
3563 test/core/end2end/tests/write_buffering_at_end.c
3564)
3565
3566
3567target_include_directories(end2end_nosec_tests
3568 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3569 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3570 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3571 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3572 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003573 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003574 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3575 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3576)
3577
3578target_link_libraries(end2end_nosec_tests
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003579 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003580 grpc_test_util_unsecure
3581 grpc_unsecure
3582 gpr_test_util
3583 gpr
3584)
3585
3586
3587endif (gRPC_BUILD_TESTS)
3588
3589if (gRPC_BUILD_TESTS)
3590
3591add_executable(alarm_test
3592 test/core/surface/alarm_test.c
3593)
3594
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003595
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003596target_include_directories(alarm_test
3597 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3598 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3599 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3600 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003601 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003602 PRIVATE ${ZLIB_ROOT_DIR}
3603 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3604 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3605)
3606
3607target_link_libraries(alarm_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003608 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003609 grpc_test_util
3610 grpc
3611 gpr_test_util
3612 gpr
3613)
3614
3615endif (gRPC_BUILD_TESTS)
3616if (gRPC_BUILD_TESTS)
3617
3618add_executable(algorithm_test
3619 test/core/compression/algorithm_test.c
3620)
3621
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003622
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003623target_include_directories(algorithm_test
3624 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3625 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3626 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3627 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003628 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003629 PRIVATE ${ZLIB_ROOT_DIR}
3630 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3631 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3632)
3633
3634target_link_libraries(algorithm_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003635 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003636 grpc_test_util
3637 grpc
3638 gpr_test_util
3639 gpr
3640)
3641
3642endif (gRPC_BUILD_TESTS)
3643if (gRPC_BUILD_TESTS)
3644
3645add_executable(alloc_test
3646 test/core/support/alloc_test.c
3647)
3648
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003649
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003650target_include_directories(alloc_test
3651 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3652 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3653 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3654 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003655 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003656 PRIVATE ${ZLIB_ROOT_DIR}
3657 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3658 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3659)
3660
3661target_link_libraries(alloc_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003662 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003663 gpr_test_util
3664 gpr
3665)
3666
3667endif (gRPC_BUILD_TESTS)
3668if (gRPC_BUILD_TESTS)
3669
3670add_executable(alpn_test
3671 test/core/transport/chttp2/alpn_test.c
3672)
3673
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003674
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003675target_include_directories(alpn_test
3676 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3677 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3678 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3679 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003680 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003681 PRIVATE ${ZLIB_ROOT_DIR}
3682 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3683 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3684)
3685
3686target_link_libraries(alpn_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003687 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003688 grpc_test_util
3689 grpc
3690 gpr_test_util
3691 gpr
3692)
3693
3694endif (gRPC_BUILD_TESTS)
3695if (gRPC_BUILD_TESTS)
3696
3697add_executable(bad_server_response_test
3698 test/core/end2end/bad_server_response_test.c
3699)
3700
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003701
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003702target_include_directories(bad_server_response_test
3703 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3704 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3705 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3706 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003707 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003708 PRIVATE ${ZLIB_ROOT_DIR}
3709 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3710 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3711)
3712
3713target_link_libraries(bad_server_response_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003714 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003715 test_tcp_server
3716 grpc_test_util
3717 grpc
3718 gpr_test_util
3719 gpr
3720)
3721
3722endif (gRPC_BUILD_TESTS)
3723if (gRPC_BUILD_TESTS)
3724
Craig Tillerff1f1602017-01-20 13:55:35 -08003725add_executable(bdp_estimator_test
3726 test/core/transport/bdp_estimator_test.c
3727)
3728
Craig Tiller5395aba2017-02-02 10:29:04 -08003729
Craig Tillerff1f1602017-01-20 13:55:35 -08003730target_include_directories(bdp_estimator_test
3731 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3732 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3733 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3734 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Craig Tiller5395aba2017-02-02 10:29:04 -08003735 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Craig Tillerff1f1602017-01-20 13:55:35 -08003736 PRIVATE ${ZLIB_ROOT_DIR}
3737 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3738 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3739)
3740
3741target_link_libraries(bdp_estimator_test
Craig Tiller5395aba2017-02-02 10:29:04 -08003742 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tillerff1f1602017-01-20 13:55:35 -08003743 grpc_test_util
3744 grpc
3745 gpr_test_util
3746 gpr
3747)
3748
3749endif (gRPC_BUILD_TESTS)
3750if (gRPC_BUILD_TESTS)
3751
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003752add_executable(bin_decoder_test
3753 test/core/transport/chttp2/bin_decoder_test.c
3754)
3755
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003756
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003757target_include_directories(bin_decoder_test
3758 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3759 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3760 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3761 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003762 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003763 PRIVATE ${ZLIB_ROOT_DIR}
3764 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3765 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3766)
3767
3768target_link_libraries(bin_decoder_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003769 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003770 grpc_test_util
3771 grpc
3772)
3773
3774endif (gRPC_BUILD_TESTS)
3775if (gRPC_BUILD_TESTS)
3776
3777add_executable(bin_encoder_test
3778 test/core/transport/chttp2/bin_encoder_test.c
3779)
3780
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003781
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003782target_include_directories(bin_encoder_test
3783 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3784 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3785 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3786 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003787 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003788 PRIVATE ${ZLIB_ROOT_DIR}
3789 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3790 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3791)
3792
3793target_link_libraries(bin_encoder_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003794 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003795 grpc_test_util
3796 grpc
3797)
3798
3799endif (gRPC_BUILD_TESTS)
3800if (gRPC_BUILD_TESTS)
3801
3802add_executable(census_context_test
3803 test/core/census/context_test.c
3804)
3805
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003806
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003807target_include_directories(census_context_test
3808 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3809 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3810 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3811 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003812 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003813 PRIVATE ${ZLIB_ROOT_DIR}
3814 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3815 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3816)
3817
3818target_link_libraries(census_context_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003819 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003820 grpc_test_util
3821 grpc
3822 gpr_test_util
3823 gpr
3824)
3825
3826endif (gRPC_BUILD_TESTS)
3827if (gRPC_BUILD_TESTS)
3828
3829add_executable(census_resource_test
3830 test/core/census/resource_test.c
3831)
3832
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003833
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003834target_include_directories(census_resource_test
3835 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3836 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3837 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3838 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003839 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003840 PRIVATE ${ZLIB_ROOT_DIR}
3841 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3842 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3843)
3844
3845target_link_libraries(census_resource_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003846 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003847 grpc_test_util
3848 grpc
3849 gpr_test_util
3850 gpr
3851)
3852
3853endif (gRPC_BUILD_TESTS)
3854if (gRPC_BUILD_TESTS)
3855
3856add_executable(census_trace_context_test
3857 test/core/census/trace_context_test.c
3858)
3859
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003860
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003861target_include_directories(census_trace_context_test
3862 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3863 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3864 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3865 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003866 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003867 PRIVATE ${ZLIB_ROOT_DIR}
3868 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3869 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3870)
3871
3872target_link_libraries(census_trace_context_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003873 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003874 grpc_test_util
3875 grpc
3876 gpr_test_util
3877 gpr
3878)
3879
3880endif (gRPC_BUILD_TESTS)
3881if (gRPC_BUILD_TESTS)
3882
3883add_executable(channel_create_test
3884 test/core/surface/channel_create_test.c
3885)
3886
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003887
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003888target_include_directories(channel_create_test
3889 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3890 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3891 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3892 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003893 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003894 PRIVATE ${ZLIB_ROOT_DIR}
3895 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3896 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3897)
3898
3899target_link_libraries(channel_create_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003900 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003901 grpc_test_util
3902 grpc
3903 gpr_test_util
3904 gpr
3905)
3906
3907endif (gRPC_BUILD_TESTS)
3908if (gRPC_BUILD_TESTS)
3909
3910add_executable(chttp2_hpack_encoder_test
3911 test/core/transport/chttp2/hpack_encoder_test.c
3912)
3913
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003914
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003915target_include_directories(chttp2_hpack_encoder_test
3916 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3917 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3918 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3919 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003920 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003921 PRIVATE ${ZLIB_ROOT_DIR}
3922 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3923 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3924)
3925
3926target_link_libraries(chttp2_hpack_encoder_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003927 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003928 grpc_test_util
3929 grpc
3930 gpr_test_util
3931 gpr
3932)
3933
3934endif (gRPC_BUILD_TESTS)
3935if (gRPC_BUILD_TESTS)
3936
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003937add_executable(chttp2_stream_map_test
3938 test/core/transport/chttp2/stream_map_test.c
3939)
3940
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003941
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003942target_include_directories(chttp2_stream_map_test
3943 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3944 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3945 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3946 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003947 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003948 PRIVATE ${ZLIB_ROOT_DIR}
3949 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3950 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3951)
3952
3953target_link_libraries(chttp2_stream_map_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003954 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003955 grpc_test_util
3956 grpc
3957 gpr_test_util
3958 gpr
3959)
3960
3961endif (gRPC_BUILD_TESTS)
3962if (gRPC_BUILD_TESTS)
3963
3964add_executable(chttp2_varint_test
3965 test/core/transport/chttp2/varint_test.c
3966)
3967
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003968
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003969target_include_directories(chttp2_varint_test
3970 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3971 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3972 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3973 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003974 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003975 PRIVATE ${ZLIB_ROOT_DIR}
3976 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
3977 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3978)
3979
3980target_link_libraries(chttp2_varint_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003981 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003982 grpc_test_util
3983 grpc
3984 gpr_test_util
3985 gpr
3986)
3987
3988endif (gRPC_BUILD_TESTS)
3989if (gRPC_BUILD_TESTS)
3990
3991add_executable(combiner_test
3992 test/core/iomgr/combiner_test.c
3993)
3994
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003995
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003996target_include_directories(combiner_test
3997 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3998 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3999 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4000 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004001 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004002 PRIVATE ${ZLIB_ROOT_DIR}
4003 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4004 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4005)
4006
4007target_link_libraries(combiner_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004008 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004009 grpc_test_util
4010 grpc
4011 gpr_test_util
4012 gpr
4013)
4014
4015endif (gRPC_BUILD_TESTS)
4016if (gRPC_BUILD_TESTS)
4017
4018add_executable(compression_test
4019 test/core/compression/compression_test.c
4020)
4021
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004022
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004023target_include_directories(compression_test
4024 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4025 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4026 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4027 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004028 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004029 PRIVATE ${ZLIB_ROOT_DIR}
4030 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4031 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4032)
4033
4034target_link_libraries(compression_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004035 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004036 grpc_test_util
4037 grpc
4038 gpr_test_util
4039 gpr
4040)
4041
4042endif (gRPC_BUILD_TESTS)
4043if (gRPC_BUILD_TESTS)
4044
4045add_executable(concurrent_connectivity_test
4046 test/core/surface/concurrent_connectivity_test.c
4047)
4048
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004049
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004050target_include_directories(concurrent_connectivity_test
4051 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4052 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4053 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4054 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004055 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004056 PRIVATE ${ZLIB_ROOT_DIR}
4057 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4058 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4059)
4060
4061target_link_libraries(concurrent_connectivity_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004062 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004063 grpc_test_util
4064 grpc
4065 gpr_test_util
4066 gpr
4067)
4068
4069endif (gRPC_BUILD_TESTS)
4070if (gRPC_BUILD_TESTS)
4071
4072add_executable(connection_refused_test
4073 test/core/end2end/connection_refused_test.c
4074)
4075
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004076
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004077target_include_directories(connection_refused_test
4078 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4079 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4080 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4081 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004082 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004083 PRIVATE ${ZLIB_ROOT_DIR}
4084 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4085 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4086)
4087
4088target_link_libraries(connection_refused_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004089 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004090 grpc_test_util
4091 grpc
4092 gpr_test_util
4093 gpr
4094)
4095
4096endif (gRPC_BUILD_TESTS)
4097if (gRPC_BUILD_TESTS)
4098
4099add_executable(dns_resolver_connectivity_test
4100 test/core/client_channel/resolvers/dns_resolver_connectivity_test.c
4101)
4102
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004103
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004104target_include_directories(dns_resolver_connectivity_test
4105 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4106 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4107 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4108 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004109 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004110 PRIVATE ${ZLIB_ROOT_DIR}
4111 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4112 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4113)
4114
4115target_link_libraries(dns_resolver_connectivity_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004116 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004117 grpc_test_util
4118 grpc
4119 gpr_test_util
4120 gpr
4121)
4122
4123endif (gRPC_BUILD_TESTS)
4124if (gRPC_BUILD_TESTS)
4125
4126add_executable(dns_resolver_test
4127 test/core/client_channel/resolvers/dns_resolver_test.c
4128)
4129
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004130
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004131target_include_directories(dns_resolver_test
4132 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4133 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4134 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4135 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004136 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004137 PRIVATE ${ZLIB_ROOT_DIR}
4138 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4139 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4140)
4141
4142target_link_libraries(dns_resolver_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004143 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004144 grpc_test_util
4145 grpc
4146 gpr_test_util
4147 gpr
4148)
4149
4150endif (gRPC_BUILD_TESTS)
4151if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004152if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004153
4154add_executable(dualstack_socket_test
4155 test/core/end2end/dualstack_socket_test.c
4156)
4157
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004158
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004159target_include_directories(dualstack_socket_test
4160 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4161 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4162 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4163 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004164 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004165 PRIVATE ${ZLIB_ROOT_DIR}
4166 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4167 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4168)
4169
4170target_link_libraries(dualstack_socket_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004171 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004172 grpc_test_util
4173 grpc
4174 gpr_test_util
4175 gpr
4176)
4177
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004178endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004179endif (gRPC_BUILD_TESTS)
4180if (gRPC_BUILD_TESTS)
4181
4182add_executable(endpoint_pair_test
4183 test/core/iomgr/endpoint_pair_test.c
4184)
4185
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004186
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004187target_include_directories(endpoint_pair_test
4188 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4189 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4190 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4191 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004192 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004193 PRIVATE ${ZLIB_ROOT_DIR}
4194 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4195 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4196)
4197
4198target_link_libraries(endpoint_pair_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004199 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004200 grpc_test_util
4201 grpc
4202 gpr_test_util
4203 gpr
4204)
4205
4206endif (gRPC_BUILD_TESTS)
4207if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004208if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004209
4210add_executable(ev_epoll_linux_test
4211 test/core/iomgr/ev_epoll_linux_test.c
4212)
4213
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004214
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004215target_include_directories(ev_epoll_linux_test
4216 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4217 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4218 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4219 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004220 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004221 PRIVATE ${ZLIB_ROOT_DIR}
4222 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4223 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4224)
4225
4226target_link_libraries(ev_epoll_linux_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004227 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004228 grpc_test_util
4229 grpc
4230 gpr_test_util
4231 gpr
4232)
4233
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004234endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004235endif (gRPC_BUILD_TESTS)
4236if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004237if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004238
4239add_executable(fd_conservation_posix_test
4240 test/core/iomgr/fd_conservation_posix_test.c
4241)
4242
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004243
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004244target_include_directories(fd_conservation_posix_test
4245 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4246 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4247 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4248 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004249 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004250 PRIVATE ${ZLIB_ROOT_DIR}
4251 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4252 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4253)
4254
4255target_link_libraries(fd_conservation_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004256 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004257 grpc_test_util
4258 grpc
4259 gpr_test_util
4260 gpr
4261)
4262
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004263endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004264endif (gRPC_BUILD_TESTS)
4265if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004266if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004267
4268add_executable(fd_posix_test
4269 test/core/iomgr/fd_posix_test.c
4270)
4271
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004272
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004273target_include_directories(fd_posix_test
4274 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4275 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4276 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4277 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004278 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004279 PRIVATE ${ZLIB_ROOT_DIR}
4280 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4281 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4282)
4283
4284target_link_libraries(fd_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004285 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004286 grpc_test_util
4287 grpc
4288 gpr_test_util
4289 gpr
4290)
4291
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004292endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004293endif (gRPC_BUILD_TESTS)
4294if (gRPC_BUILD_TESTS)
4295
4296add_executable(fling_client
4297 test/core/fling/client.c
4298)
4299
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004300
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004301target_include_directories(fling_client
4302 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4303 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4304 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4305 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004306 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004307 PRIVATE ${ZLIB_ROOT_DIR}
4308 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4309 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4310)
4311
4312target_link_libraries(fling_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004313 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004314 grpc_test_util
4315 grpc
4316 gpr_test_util
4317 gpr
4318)
4319
4320endif (gRPC_BUILD_TESTS)
4321if (gRPC_BUILD_TESTS)
4322
4323add_executable(fling_server
4324 test/core/fling/server.c
4325)
4326
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004327
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004328target_include_directories(fling_server
4329 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4330 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4331 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4332 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004333 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004334 PRIVATE ${ZLIB_ROOT_DIR}
4335 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4336 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4337)
4338
4339target_link_libraries(fling_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004340 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004341 grpc_test_util
4342 grpc
4343 gpr_test_util
4344 gpr
4345)
4346
4347endif (gRPC_BUILD_TESTS)
4348if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004349if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004350
4351add_executable(fling_stream_test
4352 test/core/fling/fling_stream_test.c
4353)
4354
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004355
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004356target_include_directories(fling_stream_test
4357 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4358 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4359 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4360 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004361 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004362 PRIVATE ${ZLIB_ROOT_DIR}
4363 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4364 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4365)
4366
4367target_link_libraries(fling_stream_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004368 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004369 grpc_test_util
4370 grpc
4371 gpr_test_util
4372 gpr
4373)
4374
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004375endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004376endif (gRPC_BUILD_TESTS)
4377if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004378if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004379
4380add_executable(fling_test
4381 test/core/fling/fling_test.c
4382)
4383
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004384
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004385target_include_directories(fling_test
4386 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4387 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4388 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4389 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004390 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004391 PRIVATE ${ZLIB_ROOT_DIR}
4392 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4393 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4394)
4395
4396target_link_libraries(fling_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004397 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004398 grpc_test_util
4399 grpc
4400 gpr_test_util
4401 gpr
4402)
4403
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004404endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004405endif (gRPC_BUILD_TESTS)
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004406
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01004407add_executable(gen_hpack_tables
4408 tools/codegen/core/gen_hpack_tables.c
4409)
4410
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004411
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01004412target_include_directories(gen_hpack_tables
4413 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4414 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4415 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4416 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004417 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01004418 PRIVATE ${ZLIB_ROOT_DIR}
4419 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004420 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01004421)
4422
4423target_link_libraries(gen_hpack_tables
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004424 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01004425 gpr
4426 grpc
4427)
4428
4429
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03004430if (gRPC_INSTALL)
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02004431 install(TARGETS gen_hpack_tables EXPORT gRPCTargets
4432 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
4433 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
4434 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
4435 )
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03004436endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03004437
4438
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01004439add_executable(gen_legal_metadata_characters
4440 tools/codegen/core/gen_legal_metadata_characters.c
4441)
4442
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004443
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01004444target_include_directories(gen_legal_metadata_characters
4445 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4446 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4447 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4448 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004449 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01004450 PRIVATE ${ZLIB_ROOT_DIR}
4451 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004452 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01004453)
4454
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004455target_link_libraries(gen_legal_metadata_characters
4456 ${_gRPC_ALLTARGETS_LIBRARIES}
4457)
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01004458
4459
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03004460if (gRPC_INSTALL)
4461 install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets
4462 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
4463 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
4464 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
4465 )
4466endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03004467
4468
Craig Tiller1c7a8422016-08-18 11:13:11 -07004469add_executable(gen_percent_encoding_tables
4470 tools/codegen/core/gen_percent_encoding_tables.c
4471)
4472
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004473
Craig Tiller1c7a8422016-08-18 11:13:11 -07004474target_include_directories(gen_percent_encoding_tables
4475 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4476 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4477 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4478 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004479 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Craig Tiller1c7a8422016-08-18 11:13:11 -07004480 PRIVATE ${ZLIB_ROOT_DIR}
4481 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004482 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Craig Tiller1c7a8422016-08-18 11:13:11 -07004483)
4484
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004485target_link_libraries(gen_percent_encoding_tables
4486 ${_gRPC_ALLTARGETS_LIBRARIES}
4487)
Craig Tiller1c7a8422016-08-18 11:13:11 -07004488
4489
Craig Tiller426dcde2016-09-07 15:43:10 -07004490if (gRPC_INSTALL)
4491 install(TARGETS gen_percent_encoding_tables EXPORT gRPCTargets
4492 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
4493 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
4494 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
4495 )
4496endif()
Craig Tiller1c7a8422016-08-18 11:13:11 -07004497
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004498if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004499if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004500
4501add_executable(goaway_server_test
4502 test/core/end2end/goaway_server_test.c
4503)
4504
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004505
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004506target_include_directories(goaway_server_test
4507 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4508 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4509 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4510 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004511 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004512 PRIVATE ${ZLIB_ROOT_DIR}
4513 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4514 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4515)
4516
4517target_link_libraries(goaway_server_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004518 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004519 grpc_test_util
4520 grpc
4521 gpr_test_util
4522 gpr
4523)
4524
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004525endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004526endif (gRPC_BUILD_TESTS)
4527if (gRPC_BUILD_TESTS)
4528
4529add_executable(gpr_avl_test
4530 test/core/support/avl_test.c
4531)
4532
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004533
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004534target_include_directories(gpr_avl_test
4535 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4536 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4537 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4538 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004539 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004540 PRIVATE ${ZLIB_ROOT_DIR}
4541 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4542 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4543)
4544
4545target_link_libraries(gpr_avl_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004546 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004547 gpr_test_util
4548 gpr
4549)
4550
4551endif (gRPC_BUILD_TESTS)
4552if (gRPC_BUILD_TESTS)
4553
4554add_executable(gpr_backoff_test
4555 test/core/support/backoff_test.c
4556)
4557
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004558
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004559target_include_directories(gpr_backoff_test
4560 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4561 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4562 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4563 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004564 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004565 PRIVATE ${ZLIB_ROOT_DIR}
4566 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4567 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4568)
4569
4570target_link_libraries(gpr_backoff_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004571 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004572 gpr_test_util
4573 gpr
4574)
4575
4576endif (gRPC_BUILD_TESTS)
4577if (gRPC_BUILD_TESTS)
4578
4579add_executable(gpr_cmdline_test
4580 test/core/support/cmdline_test.c
4581)
4582
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004583
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004584target_include_directories(gpr_cmdline_test
4585 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4586 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4587 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4588 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004589 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004590 PRIVATE ${ZLIB_ROOT_DIR}
4591 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4592 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4593)
4594
4595target_link_libraries(gpr_cmdline_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004596 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004597 gpr_test_util
4598 gpr
4599)
4600
4601endif (gRPC_BUILD_TESTS)
4602if (gRPC_BUILD_TESTS)
4603
4604add_executable(gpr_cpu_test
4605 test/core/support/cpu_test.c
4606)
4607
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004608
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004609target_include_directories(gpr_cpu_test
4610 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4611 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4612 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4613 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004614 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004615 PRIVATE ${ZLIB_ROOT_DIR}
4616 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4617 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4618)
4619
4620target_link_libraries(gpr_cpu_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004621 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004622 gpr_test_util
4623 gpr
4624)
4625
4626endif (gRPC_BUILD_TESTS)
4627if (gRPC_BUILD_TESTS)
4628
4629add_executable(gpr_env_test
4630 test/core/support/env_test.c
4631)
4632
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004633
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004634target_include_directories(gpr_env_test
4635 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4636 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4637 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4638 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004639 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004640 PRIVATE ${ZLIB_ROOT_DIR}
4641 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4642 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4643)
4644
4645target_link_libraries(gpr_env_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004646 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004647 gpr_test_util
4648 gpr
4649)
4650
4651endif (gRPC_BUILD_TESTS)
4652if (gRPC_BUILD_TESTS)
4653
4654add_executable(gpr_histogram_test
4655 test/core/support/histogram_test.c
4656)
4657
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004658
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004659target_include_directories(gpr_histogram_test
4660 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4661 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4662 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4663 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004664 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004665 PRIVATE ${ZLIB_ROOT_DIR}
4666 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4667 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4668)
4669
4670target_link_libraries(gpr_histogram_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004671 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004672 gpr_test_util
4673 gpr
4674)
4675
4676endif (gRPC_BUILD_TESTS)
4677if (gRPC_BUILD_TESTS)
4678
4679add_executable(gpr_host_port_test
4680 test/core/support/host_port_test.c
4681)
4682
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004683
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004684target_include_directories(gpr_host_port_test
4685 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4686 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4687 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4688 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004689 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004690 PRIVATE ${ZLIB_ROOT_DIR}
4691 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4692 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4693)
4694
4695target_link_libraries(gpr_host_port_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004696 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004697 gpr_test_util
4698 gpr
4699)
4700
4701endif (gRPC_BUILD_TESTS)
4702if (gRPC_BUILD_TESTS)
4703
4704add_executable(gpr_log_test
4705 test/core/support/log_test.c
4706)
4707
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004708
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004709target_include_directories(gpr_log_test
4710 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4711 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4712 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4713 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004714 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004715 PRIVATE ${ZLIB_ROOT_DIR}
4716 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4717 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4718)
4719
4720target_link_libraries(gpr_log_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004721 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004722 gpr_test_util
4723 gpr
4724)
4725
4726endif (gRPC_BUILD_TESTS)
4727if (gRPC_BUILD_TESTS)
4728
4729add_executable(gpr_mpscq_test
4730 test/core/support/mpscq_test.c
4731)
4732
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004733
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004734target_include_directories(gpr_mpscq_test
4735 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4736 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4737 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4738 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004739 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004740 PRIVATE ${ZLIB_ROOT_DIR}
4741 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4742 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4743)
4744
4745target_link_libraries(gpr_mpscq_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004746 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004747 gpr_test_util
4748 gpr
4749)
4750
4751endif (gRPC_BUILD_TESTS)
4752if (gRPC_BUILD_TESTS)
4753
4754add_executable(gpr_stack_lockfree_test
4755 test/core/support/stack_lockfree_test.c
4756)
4757
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004758
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004759target_include_directories(gpr_stack_lockfree_test
4760 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4761 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4762 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4763 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004764 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004765 PRIVATE ${ZLIB_ROOT_DIR}
4766 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4767 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4768)
4769
4770target_link_libraries(gpr_stack_lockfree_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004771 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004772 gpr_test_util
4773 gpr
4774)
4775
4776endif (gRPC_BUILD_TESTS)
4777if (gRPC_BUILD_TESTS)
4778
4779add_executable(gpr_string_test
4780 test/core/support/string_test.c
4781)
4782
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004783
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004784target_include_directories(gpr_string_test
4785 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4786 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4787 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4788 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004789 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004790 PRIVATE ${ZLIB_ROOT_DIR}
4791 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4792 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4793)
4794
4795target_link_libraries(gpr_string_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004796 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004797 gpr_test_util
4798 gpr
4799)
4800
4801endif (gRPC_BUILD_TESTS)
4802if (gRPC_BUILD_TESTS)
4803
4804add_executable(gpr_sync_test
4805 test/core/support/sync_test.c
4806)
4807
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004808
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004809target_include_directories(gpr_sync_test
4810 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4811 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4812 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4813 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004814 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004815 PRIVATE ${ZLIB_ROOT_DIR}
4816 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4817 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4818)
4819
4820target_link_libraries(gpr_sync_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004821 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004822 gpr_test_util
4823 gpr
4824)
4825
4826endif (gRPC_BUILD_TESTS)
4827if (gRPC_BUILD_TESTS)
4828
4829add_executable(gpr_thd_test
4830 test/core/support/thd_test.c
4831)
4832
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004833
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004834target_include_directories(gpr_thd_test
4835 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4836 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4837 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4838 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004839 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004840 PRIVATE ${ZLIB_ROOT_DIR}
4841 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4842 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4843)
4844
4845target_link_libraries(gpr_thd_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004846 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004847 gpr_test_util
4848 gpr
4849)
4850
4851endif (gRPC_BUILD_TESTS)
4852if (gRPC_BUILD_TESTS)
4853
4854add_executable(gpr_time_test
4855 test/core/support/time_test.c
4856)
4857
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004858
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004859target_include_directories(gpr_time_test
4860 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4861 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4862 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4863 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004864 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004865 PRIVATE ${ZLIB_ROOT_DIR}
4866 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4867 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4868)
4869
4870target_link_libraries(gpr_time_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004871 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004872 gpr_test_util
4873 gpr
4874)
4875
4876endif (gRPC_BUILD_TESTS)
4877if (gRPC_BUILD_TESTS)
4878
4879add_executable(gpr_tls_test
4880 test/core/support/tls_test.c
4881)
4882
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004883
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004884target_include_directories(gpr_tls_test
4885 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4886 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4887 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4888 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004889 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004890 PRIVATE ${ZLIB_ROOT_DIR}
4891 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4892 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4893)
4894
4895target_link_libraries(gpr_tls_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004896 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004897 gpr_test_util
4898 gpr
4899)
4900
4901endif (gRPC_BUILD_TESTS)
4902if (gRPC_BUILD_TESTS)
4903
4904add_executable(gpr_useful_test
4905 test/core/support/useful_test.c
4906)
4907
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004908
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004909target_include_directories(gpr_useful_test
4910 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4911 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4912 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4913 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004914 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004915 PRIVATE ${ZLIB_ROOT_DIR}
4916 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4917 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4918)
4919
4920target_link_libraries(gpr_useful_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004921 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004922 gpr_test_util
4923 gpr
4924)
4925
4926endif (gRPC_BUILD_TESTS)
4927if (gRPC_BUILD_TESTS)
4928
4929add_executable(grpc_auth_context_test
4930 test/core/security/auth_context_test.c
4931)
4932
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004933
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004934target_include_directories(grpc_auth_context_test
4935 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4936 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4937 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4938 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004939 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004940 PRIVATE ${ZLIB_ROOT_DIR}
4941 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4942 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4943)
4944
4945target_link_libraries(grpc_auth_context_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004946 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004947 grpc_test_util
4948 grpc
4949 gpr_test_util
4950 gpr
4951)
4952
4953endif (gRPC_BUILD_TESTS)
4954if (gRPC_BUILD_TESTS)
4955
4956add_executable(grpc_b64_test
4957 test/core/security/b64_test.c
4958)
4959
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004960
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004961target_include_directories(grpc_b64_test
4962 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4963 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4964 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4965 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004966 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004967 PRIVATE ${ZLIB_ROOT_DIR}
4968 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4969 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4970)
4971
4972target_link_libraries(grpc_b64_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004973 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004974 grpc_test_util
4975 grpc
4976 gpr_test_util
4977 gpr
4978)
4979
4980endif (gRPC_BUILD_TESTS)
4981if (gRPC_BUILD_TESTS)
4982
4983add_executable(grpc_byte_buffer_reader_test
4984 test/core/surface/byte_buffer_reader_test.c
4985)
4986
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004987
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004988target_include_directories(grpc_byte_buffer_reader_test
4989 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4990 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4991 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4992 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004993 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004994 PRIVATE ${ZLIB_ROOT_DIR}
4995 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4996 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4997)
4998
4999target_link_libraries(grpc_byte_buffer_reader_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005000 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005001 grpc_test_util
5002 grpc
5003 gpr_test_util
5004 gpr
5005)
5006
5007endif (gRPC_BUILD_TESTS)
5008if (gRPC_BUILD_TESTS)
5009
5010add_executable(grpc_channel_args_test
5011 test/core/channel/channel_args_test.c
5012)
5013
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005014
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005015target_include_directories(grpc_channel_args_test
5016 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5017 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5018 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5019 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005020 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005021 PRIVATE ${ZLIB_ROOT_DIR}
5022 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5023 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5024)
5025
5026target_link_libraries(grpc_channel_args_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005027 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005028 grpc_test_util
5029 grpc
5030 gpr_test_util
5031 gpr
5032)
5033
5034endif (gRPC_BUILD_TESTS)
5035if (gRPC_BUILD_TESTS)
5036
5037add_executable(grpc_channel_stack_test
5038 test/core/channel/channel_stack_test.c
5039)
5040
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005041
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005042target_include_directories(grpc_channel_stack_test
5043 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5044 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5045 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5046 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005047 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005048 PRIVATE ${ZLIB_ROOT_DIR}
5049 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5050 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5051)
5052
5053target_link_libraries(grpc_channel_stack_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005054 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005055 grpc_test_util
5056 grpc
5057 gpr_test_util
5058 gpr
5059)
5060
5061endif (gRPC_BUILD_TESTS)
5062if (gRPC_BUILD_TESTS)
5063
5064add_executable(grpc_completion_queue_test
5065 test/core/surface/completion_queue_test.c
5066)
5067
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005068
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005069target_include_directories(grpc_completion_queue_test
5070 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5071 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5072 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5073 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005074 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005075 PRIVATE ${ZLIB_ROOT_DIR}
5076 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5077 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5078)
5079
5080target_link_libraries(grpc_completion_queue_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005081 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005082 grpc_test_util
5083 grpc
5084 gpr_test_util
5085 gpr
5086)
5087
5088endif (gRPC_BUILD_TESTS)
Craig Tiller1c7a8422016-08-18 11:13:11 -07005089
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005090add_executable(grpc_create_jwt
5091 test/core/security/create_jwt.c
5092)
5093
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005094
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005095target_include_directories(grpc_create_jwt
5096 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5097 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5098 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5099 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005100 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005101 PRIVATE ${ZLIB_ROOT_DIR}
5102 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005103 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005104)
5105
5106target_link_libraries(grpc_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03005107 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005108 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005109 grpc
5110 gpr
5111)
5112
5113
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03005114if (gRPC_INSTALL)
5115 install(TARGETS grpc_create_jwt EXPORT gRPCTargets
5116 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
5117 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
5118 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
5119 )
5120endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03005121
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005122if (gRPC_BUILD_TESTS)
5123
5124add_executable(grpc_credentials_test
5125 test/core/security/credentials_test.c
5126)
5127
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005128
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005129target_include_directories(grpc_credentials_test
5130 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5131 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5132 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5133 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005134 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005135 PRIVATE ${ZLIB_ROOT_DIR}
5136 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5137 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5138)
5139
5140target_link_libraries(grpc_credentials_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005141 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005142 grpc_test_util
5143 grpc
5144 gpr_test_util
5145 gpr
5146)
5147
5148endif (gRPC_BUILD_TESTS)
5149if (gRPC_BUILD_TESTS)
5150
5151add_executable(grpc_fetch_oauth2
5152 test/core/security/fetch_oauth2.c
5153)
5154
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005155
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005156target_include_directories(grpc_fetch_oauth2
5157 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5158 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5159 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5160 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005161 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005162 PRIVATE ${ZLIB_ROOT_DIR}
5163 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5164 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5165)
5166
5167target_link_libraries(grpc_fetch_oauth2
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005168 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005169 grpc_test_util
5170 grpc
5171 gpr_test_util
5172 gpr
5173)
5174
5175endif (gRPC_BUILD_TESTS)
5176if (gRPC_BUILD_TESTS)
5177
5178add_executable(grpc_invalid_channel_args_test
5179 test/core/surface/invalid_channel_args_test.c
5180)
5181
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005182
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005183target_include_directories(grpc_invalid_channel_args_test
5184 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5185 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5186 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5187 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005188 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005189 PRIVATE ${ZLIB_ROOT_DIR}
5190 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5191 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5192)
5193
5194target_link_libraries(grpc_invalid_channel_args_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005195 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005196 grpc_test_util
5197 grpc
5198 gpr_test_util
5199 gpr
5200)
5201
5202endif (gRPC_BUILD_TESTS)
5203if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005204if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005205
5206add_executable(grpc_json_token_test
5207 test/core/security/json_token_test.c
5208)
5209
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005210
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005211target_include_directories(grpc_json_token_test
5212 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5213 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5214 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5215 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005216 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005217 PRIVATE ${ZLIB_ROOT_DIR}
5218 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5219 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5220)
5221
5222target_link_libraries(grpc_json_token_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005223 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005224 grpc_test_util
5225 grpc
5226 gpr_test_util
5227 gpr
5228)
5229
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005230endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005231endif (gRPC_BUILD_TESTS)
5232if (gRPC_BUILD_TESTS)
5233
5234add_executable(grpc_jwt_verifier_test
5235 test/core/security/jwt_verifier_test.c
5236)
5237
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005238
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005239target_include_directories(grpc_jwt_verifier_test
5240 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5241 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5242 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5243 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005244 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005245 PRIVATE ${ZLIB_ROOT_DIR}
5246 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5247 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5248)
5249
5250target_link_libraries(grpc_jwt_verifier_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005251 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005252 grpc_test_util
5253 grpc
5254 gpr_test_util
5255 gpr
5256)
5257
5258endif (gRPC_BUILD_TESTS)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03005259
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005260add_executable(grpc_print_google_default_creds_token
5261 test/core/security/print_google_default_creds_token.c
5262)
5263
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005264
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005265target_include_directories(grpc_print_google_default_creds_token
5266 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5267 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5268 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5269 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005270 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005271 PRIVATE ${ZLIB_ROOT_DIR}
5272 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005273 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005274)
5275
5276target_link_libraries(grpc_print_google_default_creds_token
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005277 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005278 grpc
5279 gpr
5280)
5281
5282
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03005283if (gRPC_INSTALL)
5284 install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets
5285 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
5286 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
5287 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
5288 )
5289endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03005290
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005291if (gRPC_BUILD_TESTS)
5292
5293add_executable(grpc_security_connector_test
5294 test/core/security/security_connector_test.c
5295)
5296
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005297
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005298target_include_directories(grpc_security_connector_test
5299 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5300 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5301 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5302 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005303 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005304 PRIVATE ${ZLIB_ROOT_DIR}
5305 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5306 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5307)
5308
5309target_link_libraries(grpc_security_connector_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005310 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005311 grpc_test_util
5312 grpc
5313 gpr_test_util
5314 gpr
5315)
5316
5317endif (gRPC_BUILD_TESTS)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03005318
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005319add_executable(grpc_verify_jwt
5320 test/core/security/verify_jwt.c
5321)
5322
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005323
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005324target_include_directories(grpc_verify_jwt
5325 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5326 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5327 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5328 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005329 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005330 PRIVATE ${ZLIB_ROOT_DIR}
5331 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005332 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005333)
5334
5335target_link_libraries(grpc_verify_jwt
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005336 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005337 grpc
5338 gpr
5339)
5340
5341
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03005342if (gRPC_INSTALL)
5343 install(TARGETS grpc_verify_jwt EXPORT gRPCTargets
5344 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
5345 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
5346 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
5347 )
5348endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03005349
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005350if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005351if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005352
5353add_executable(handshake_client
5354 test/core/handshake/client_ssl.c
5355)
5356
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005357
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005358target_include_directories(handshake_client
5359 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5360 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5361 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5362 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005363 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005364 PRIVATE ${ZLIB_ROOT_DIR}
5365 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5366 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5367)
5368
5369target_link_libraries(handshake_client
5370 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005371 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005372 grpc_test_util
5373 grpc
5374 gpr_test_util
5375 gpr
5376)
5377
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005378endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005379endif (gRPC_BUILD_TESTS)
5380if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005381if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005382
5383add_executable(handshake_server
5384 test/core/handshake/server_ssl.c
5385)
5386
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005387
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005388target_include_directories(handshake_server
5389 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5390 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5391 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5392 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005393 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005394 PRIVATE ${ZLIB_ROOT_DIR}
5395 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5396 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5397)
5398
5399target_link_libraries(handshake_server
5400 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005401 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005402 grpc_test_util
5403 grpc
5404 gpr_test_util
5405 gpr
5406)
5407
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005408endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005409endif (gRPC_BUILD_TESTS)
5410if (gRPC_BUILD_TESTS)
5411
5412add_executable(hpack_parser_test
5413 test/core/transport/chttp2/hpack_parser_test.c
5414)
5415
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005416
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005417target_include_directories(hpack_parser_test
5418 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5419 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5420 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5421 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005422 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005423 PRIVATE ${ZLIB_ROOT_DIR}
5424 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5425 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5426)
5427
5428target_link_libraries(hpack_parser_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005429 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005430 grpc_test_util
5431 grpc
5432 gpr_test_util
5433 gpr
5434)
5435
5436endif (gRPC_BUILD_TESTS)
5437if (gRPC_BUILD_TESTS)
5438
5439add_executable(hpack_table_test
5440 test/core/transport/chttp2/hpack_table_test.c
5441)
5442
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005443
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005444target_include_directories(hpack_table_test
5445 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5446 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5447 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5448 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005449 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005450 PRIVATE ${ZLIB_ROOT_DIR}
5451 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5452 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5453)
5454
5455target_link_libraries(hpack_table_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005456 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005457 grpc_test_util
5458 grpc
5459 gpr_test_util
5460 gpr
5461)
5462
5463endif (gRPC_BUILD_TESTS)
5464if (gRPC_BUILD_TESTS)
5465
5466add_executable(http_parser_test
5467 test/core/http/parser_test.c
5468)
5469
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005470
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005471target_include_directories(http_parser_test
5472 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5473 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5474 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5475 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005476 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005477 PRIVATE ${ZLIB_ROOT_DIR}
5478 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5479 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5480)
5481
5482target_link_libraries(http_parser_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005483 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005484 grpc_test_util
5485 grpc
5486 gpr_test_util
5487 gpr
5488)
5489
5490endif (gRPC_BUILD_TESTS)
5491if (gRPC_BUILD_TESTS)
5492
5493add_executable(httpcli_format_request_test
5494 test/core/http/format_request_test.c
5495)
5496
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005497
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005498target_include_directories(httpcli_format_request_test
5499 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5500 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5501 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5502 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005503 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005504 PRIVATE ${ZLIB_ROOT_DIR}
5505 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5506 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5507)
5508
5509target_link_libraries(httpcli_format_request_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005510 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005511 grpc_test_util
5512 grpc
5513 gpr_test_util
5514 gpr
5515)
5516
5517endif (gRPC_BUILD_TESTS)
5518if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005519if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005520
5521add_executable(httpcli_test
5522 test/core/http/httpcli_test.c
5523)
5524
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005525
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005526target_include_directories(httpcli_test
5527 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5528 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5529 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5530 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005531 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005532 PRIVATE ${ZLIB_ROOT_DIR}
5533 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5534 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5535)
5536
5537target_link_libraries(httpcli_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005538 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005539 grpc_test_util
5540 grpc
5541 gpr_test_util
5542 gpr
5543)
5544
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005545endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005546endif (gRPC_BUILD_TESTS)
5547if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005548if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005549
5550add_executable(httpscli_test
5551 test/core/http/httpscli_test.c
5552)
5553
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005554
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005555target_include_directories(httpscli_test
5556 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5557 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5558 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5559 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005560 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005561 PRIVATE ${ZLIB_ROOT_DIR}
5562 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5563 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5564)
5565
5566target_link_libraries(httpscli_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005567 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005568 grpc_test_util
5569 grpc
5570 gpr_test_util
5571 gpr
5572)
5573
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005574endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005575endif (gRPC_BUILD_TESTS)
5576if (gRPC_BUILD_TESTS)
5577
5578add_executable(init_test
5579 test/core/surface/init_test.c
5580)
5581
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005582
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005583target_include_directories(init_test
5584 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5585 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5586 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5587 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005588 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005589 PRIVATE ${ZLIB_ROOT_DIR}
5590 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5591 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5592)
5593
5594target_link_libraries(init_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005595 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005596 grpc_test_util
5597 grpc
5598 gpr_test_util
5599 gpr
5600)
5601
5602endif (gRPC_BUILD_TESTS)
5603if (gRPC_BUILD_TESTS)
5604
5605add_executable(internal_api_canary_iomgr_test
5606 test/core/internal_api_canaries/iomgr.c
5607)
5608
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005609
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005610target_include_directories(internal_api_canary_iomgr_test
5611 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5612 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5613 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5614 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005615 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005616 PRIVATE ${ZLIB_ROOT_DIR}
5617 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5618 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5619)
5620
5621target_link_libraries(internal_api_canary_iomgr_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005622 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005623 grpc_test_util
5624 grpc
5625 gpr_test_util
5626 gpr
5627)
5628
5629endif (gRPC_BUILD_TESTS)
5630if (gRPC_BUILD_TESTS)
5631
5632add_executable(internal_api_canary_support_test
5633 test/core/internal_api_canaries/iomgr.c
5634)
5635
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005636
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005637target_include_directories(internal_api_canary_support_test
5638 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5639 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5640 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5641 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005642 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005643 PRIVATE ${ZLIB_ROOT_DIR}
5644 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5645 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5646)
5647
5648target_link_libraries(internal_api_canary_support_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005649 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005650 grpc_test_util
5651 grpc
5652 gpr_test_util
5653 gpr
5654)
5655
5656endif (gRPC_BUILD_TESTS)
5657if (gRPC_BUILD_TESTS)
5658
5659add_executable(internal_api_canary_transport_test
5660 test/core/internal_api_canaries/iomgr.c
5661)
5662
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005663
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005664target_include_directories(internal_api_canary_transport_test
5665 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5666 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5667 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5668 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005669 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005670 PRIVATE ${ZLIB_ROOT_DIR}
5671 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5672 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5673)
5674
5675target_link_libraries(internal_api_canary_transport_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005676 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005677 grpc_test_util
5678 grpc
5679 gpr_test_util
5680 gpr
5681)
5682
5683endif (gRPC_BUILD_TESTS)
5684if (gRPC_BUILD_TESTS)
5685
5686add_executable(invalid_call_argument_test
5687 test/core/end2end/invalid_call_argument_test.c
5688)
5689
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005690
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005691target_include_directories(invalid_call_argument_test
5692 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5693 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5694 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5695 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005696 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005697 PRIVATE ${ZLIB_ROOT_DIR}
5698 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5699 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5700)
5701
5702target_link_libraries(invalid_call_argument_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005703 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005704 grpc_test_util
5705 grpc
5706 gpr_test_util
5707 gpr
5708)
5709
5710endif (gRPC_BUILD_TESTS)
5711if (gRPC_BUILD_TESTS)
5712
5713add_executable(json_rewrite
5714 test/core/json/json_rewrite.c
5715)
5716
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005717
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005718target_include_directories(json_rewrite
5719 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5720 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5721 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5722 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005723 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005724 PRIVATE ${ZLIB_ROOT_DIR}
5725 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5726 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5727)
5728
5729target_link_libraries(json_rewrite
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005730 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005731 grpc
5732 gpr
5733)
5734
5735endif (gRPC_BUILD_TESTS)
5736if (gRPC_BUILD_TESTS)
5737
5738add_executable(json_rewrite_test
5739 test/core/json/json_rewrite_test.c
5740)
5741
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005742
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005743target_include_directories(json_rewrite_test
5744 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5745 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5746 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5747 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005748 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005749 PRIVATE ${ZLIB_ROOT_DIR}
5750 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5751 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5752)
5753
5754target_link_libraries(json_rewrite_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005755 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005756 grpc_test_util
5757 grpc
5758 gpr_test_util
5759 gpr
5760)
5761
5762endif (gRPC_BUILD_TESTS)
5763if (gRPC_BUILD_TESTS)
5764
5765add_executable(json_stream_error_test
5766 test/core/json/json_stream_error_test.c
5767)
5768
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005769
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005770target_include_directories(json_stream_error_test
5771 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5772 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5773 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5774 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005775 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005776 PRIVATE ${ZLIB_ROOT_DIR}
5777 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5778 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5779)
5780
5781target_link_libraries(json_stream_error_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005782 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005783 grpc_test_util
5784 grpc
5785 gpr_test_util
5786 gpr
5787)
5788
5789endif (gRPC_BUILD_TESTS)
5790if (gRPC_BUILD_TESTS)
5791
5792add_executable(json_test
5793 test/core/json/json_test.c
5794)
5795
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005796
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005797target_include_directories(json_test
5798 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5799 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5800 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5801 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005802 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005803 PRIVATE ${ZLIB_ROOT_DIR}
5804 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5805 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5806)
5807
5808target_link_libraries(json_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005809 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005810 grpc_test_util
5811 grpc
5812 gpr_test_util
5813 gpr
5814)
5815
5816endif (gRPC_BUILD_TESTS)
5817if (gRPC_BUILD_TESTS)
5818
5819add_executable(lame_client_test
5820 test/core/surface/lame_client_test.c
5821)
5822
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005823
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005824target_include_directories(lame_client_test
5825 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5826 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5827 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5828 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005829 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005830 PRIVATE ${ZLIB_ROOT_DIR}
5831 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5832 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5833)
5834
5835target_link_libraries(lame_client_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005836 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005837 grpc_test_util
5838 grpc
5839 gpr_test_util
5840 gpr
5841)
5842
5843endif (gRPC_BUILD_TESTS)
5844if (gRPC_BUILD_TESTS)
5845
5846add_executable(lb_policies_test
5847 test/core/client_channel/lb_policies_test.c
5848)
5849
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005850
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005851target_include_directories(lb_policies_test
5852 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5853 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5854 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5855 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005856 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005857 PRIVATE ${ZLIB_ROOT_DIR}
5858 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5859 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5860)
5861
5862target_link_libraries(lb_policies_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005863 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005864 grpc_test_util
5865 grpc
5866 gpr_test_util
5867 gpr
5868)
5869
5870endif (gRPC_BUILD_TESTS)
5871if (gRPC_BUILD_TESTS)
5872
5873add_executable(load_file_test
5874 test/core/iomgr/load_file_test.c
5875)
5876
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005877
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005878target_include_directories(load_file_test
5879 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5880 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5881 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5882 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005883 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005884 PRIVATE ${ZLIB_ROOT_DIR}
5885 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5886 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5887)
5888
5889target_link_libraries(load_file_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005890 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005891 grpc_test_util
5892 grpc
5893 gpr_test_util
5894 gpr
5895)
5896
5897endif (gRPC_BUILD_TESTS)
5898if (gRPC_BUILD_TESTS)
5899
5900add_executable(memory_profile_client
5901 test/core/memory_usage/client.c
5902)
5903
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005904
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005905target_include_directories(memory_profile_client
5906 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5907 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5908 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5909 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005910 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005911 PRIVATE ${ZLIB_ROOT_DIR}
5912 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5913 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5914)
5915
5916target_link_libraries(memory_profile_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005917 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005918 grpc_test_util
5919 grpc
5920 gpr_test_util
5921 gpr
5922)
5923
5924endif (gRPC_BUILD_TESTS)
5925if (gRPC_BUILD_TESTS)
5926
5927add_executable(memory_profile_server
5928 test/core/memory_usage/server.c
5929)
5930
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005931
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005932target_include_directories(memory_profile_server
5933 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5934 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5935 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5936 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005937 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005938 PRIVATE ${ZLIB_ROOT_DIR}
5939 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5940 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5941)
5942
5943target_link_libraries(memory_profile_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005944 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005945 grpc_test_util
5946 grpc
5947 gpr_test_util
5948 gpr
5949)
5950
5951endif (gRPC_BUILD_TESTS)
5952if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005953if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005954
5955add_executable(memory_profile_test
5956 test/core/memory_usage/memory_usage_test.c
5957)
5958
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005959
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005960target_include_directories(memory_profile_test
5961 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5962 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5963 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5964 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005965 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005966 PRIVATE ${ZLIB_ROOT_DIR}
5967 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5968 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5969)
5970
5971target_link_libraries(memory_profile_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005972 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005973 grpc_test_util
5974 grpc
5975 gpr_test_util
5976 gpr
5977)
5978
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005979endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005980endif (gRPC_BUILD_TESTS)
5981if (gRPC_BUILD_TESTS)
5982
5983add_executable(message_compress_test
5984 test/core/compression/message_compress_test.c
5985)
5986
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005987
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005988target_include_directories(message_compress_test
5989 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5990 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5991 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5992 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005993 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005994 PRIVATE ${ZLIB_ROOT_DIR}
5995 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5996 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5997)
5998
5999target_link_libraries(message_compress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006000 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006001 grpc_test_util
6002 grpc
6003 gpr_test_util
6004 gpr
6005)
6006
6007endif (gRPC_BUILD_TESTS)
6008if (gRPC_BUILD_TESTS)
6009
6010add_executable(mlog_test
6011 test/core/census/mlog_test.c
6012)
6013
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006014
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006015target_include_directories(mlog_test
6016 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6017 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6018 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6019 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006020 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006021 PRIVATE ${ZLIB_ROOT_DIR}
6022 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6023 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6024)
6025
6026target_link_libraries(mlog_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006027 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006028 grpc_test_util
6029 grpc
6030 gpr_test_util
6031 gpr
6032)
6033
6034endif (gRPC_BUILD_TESTS)
6035if (gRPC_BUILD_TESTS)
6036
6037add_executable(multiple_server_queues_test
6038 test/core/end2end/multiple_server_queues_test.c
6039)
6040
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006041
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006042target_include_directories(multiple_server_queues_test
6043 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6044 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6045 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6046 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006047 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006048 PRIVATE ${ZLIB_ROOT_DIR}
6049 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6050 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6051)
6052
6053target_link_libraries(multiple_server_queues_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006054 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006055 grpc_test_util
6056 grpc
6057 gpr_test_util
6058 gpr
6059)
6060
6061endif (gRPC_BUILD_TESTS)
6062if (gRPC_BUILD_TESTS)
6063
6064add_executable(murmur_hash_test
6065 test/core/support/murmur_hash_test.c
6066)
6067
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006068
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006069target_include_directories(murmur_hash_test
6070 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6071 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6072 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6073 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006074 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006075 PRIVATE ${ZLIB_ROOT_DIR}
6076 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6077 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6078)
6079
6080target_link_libraries(murmur_hash_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006081 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006082 gpr_test_util
6083 gpr
6084)
6085
6086endif (gRPC_BUILD_TESTS)
6087if (gRPC_BUILD_TESTS)
6088
6089add_executable(no_server_test
6090 test/core/end2end/no_server_test.c
6091)
6092
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006093
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006094target_include_directories(no_server_test
6095 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6096 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6097 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6098 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006099 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006100 PRIVATE ${ZLIB_ROOT_DIR}
6101 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6102 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6103)
6104
6105target_link_libraries(no_server_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006106 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006107 grpc_test_util
6108 grpc
6109 gpr_test_util
6110 gpr
6111)
6112
6113endif (gRPC_BUILD_TESTS)
6114if (gRPC_BUILD_TESTS)
6115
6116add_executable(percent_encoding_test
6117 test/core/slice/percent_encoding_test.c
6118)
6119
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006120
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006121target_include_directories(percent_encoding_test
6122 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6123 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6124 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6125 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006126 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006127 PRIVATE ${ZLIB_ROOT_DIR}
6128 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6129 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6130)
6131
6132target_link_libraries(percent_encoding_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006133 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006134 grpc_test_util
6135 grpc
6136 gpr_test_util
6137 gpr
6138)
6139
6140endif (gRPC_BUILD_TESTS)
6141if (gRPC_BUILD_TESTS)
Sree Kuchibhotla66131682017-02-02 09:39:07 -08006142if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006143
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08006144add_executable(pollset_set_test
6145 test/core/iomgr/pollset_set_test.c
6146)
6147
Sree Kuchibhotla66131682017-02-02 09:39:07 -08006148
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08006149target_include_directories(pollset_set_test
6150 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6151 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6152 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6153 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Sree Kuchibhotla66131682017-02-02 09:39:07 -08006154 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08006155 PRIVATE ${ZLIB_ROOT_DIR}
6156 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6157 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6158)
6159
6160target_link_libraries(pollset_set_test
Sree Kuchibhotla66131682017-02-02 09:39:07 -08006161 ${_gRPC_ALLTARGETS_LIBRARIES}
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08006162 grpc_test_util
6163 grpc
6164 gpr_test_util
6165 gpr
6166)
6167
Sree Kuchibhotla66131682017-02-02 09:39:07 -08006168endif()
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08006169endif (gRPC_BUILD_TESTS)
6170if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006171if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006172
Stanley Cheung16952182017-01-27 20:09:31 -08006173add_executable(resolve_address_posix_test
6174 test/core/iomgr/resolve_address_posix_test.c
6175)
6176
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006177
Stanley Cheung16952182017-01-27 20:09:31 -08006178target_include_directories(resolve_address_posix_test
6179 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6180 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6181 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6182 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006183 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Stanley Cheung16952182017-01-27 20:09:31 -08006184 PRIVATE ${ZLIB_ROOT_DIR}
6185 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6186 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6187)
6188
6189target_link_libraries(resolve_address_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006190 ${_gRPC_ALLTARGETS_LIBRARIES}
Stanley Cheung16952182017-01-27 20:09:31 -08006191 grpc_test_util
6192 grpc
6193 gpr_test_util
6194 gpr
6195)
6196
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006197endif()
Stanley Cheung16952182017-01-27 20:09:31 -08006198endif (gRPC_BUILD_TESTS)
6199if (gRPC_BUILD_TESTS)
6200
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006201add_executable(resolve_address_test
6202 test/core/iomgr/resolve_address_test.c
6203)
6204
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006205
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006206target_include_directories(resolve_address_test
6207 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6208 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6209 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6210 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006211 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006212 PRIVATE ${ZLIB_ROOT_DIR}
6213 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6214 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6215)
6216
6217target_link_libraries(resolve_address_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006218 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006219 grpc_test_util
6220 grpc
6221 gpr_test_util
6222 gpr
6223)
6224
6225endif (gRPC_BUILD_TESTS)
6226if (gRPC_BUILD_TESTS)
6227
6228add_executable(resource_quota_test
6229 test/core/iomgr/resource_quota_test.c
6230)
6231
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006232
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006233target_include_directories(resource_quota_test
6234 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6235 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6236 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6237 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006238 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006239 PRIVATE ${ZLIB_ROOT_DIR}
6240 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6241 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6242)
6243
6244target_link_libraries(resource_quota_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006245 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006246 grpc_test_util
6247 grpc
6248 gpr_test_util
6249 gpr
6250)
6251
6252endif (gRPC_BUILD_TESTS)
6253if (gRPC_BUILD_TESTS)
6254
6255add_executable(secure_channel_create_test
6256 test/core/surface/secure_channel_create_test.c
6257)
6258
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006259
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006260target_include_directories(secure_channel_create_test
6261 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6262 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6263 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6264 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006265 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006266 PRIVATE ${ZLIB_ROOT_DIR}
6267 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6268 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6269)
6270
6271target_link_libraries(secure_channel_create_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006272 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006273 grpc_test_util
6274 grpc
6275 gpr_test_util
6276 gpr
6277)
6278
6279endif (gRPC_BUILD_TESTS)
6280if (gRPC_BUILD_TESTS)
6281
6282add_executable(secure_endpoint_test
6283 test/core/security/secure_endpoint_test.c
6284)
6285
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006286
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006287target_include_directories(secure_endpoint_test
6288 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6289 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6290 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6291 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006292 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006293 PRIVATE ${ZLIB_ROOT_DIR}
6294 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6295 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6296)
6297
6298target_link_libraries(secure_endpoint_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006299 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006300 grpc_test_util
6301 grpc
6302 gpr_test_util
6303 gpr
6304)
6305
6306endif (gRPC_BUILD_TESTS)
6307if (gRPC_BUILD_TESTS)
6308
6309add_executable(sequential_connectivity_test
6310 test/core/surface/sequential_connectivity_test.c
6311)
6312
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006313
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006314target_include_directories(sequential_connectivity_test
6315 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6316 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6317 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6318 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006319 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006320 PRIVATE ${ZLIB_ROOT_DIR}
6321 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6322 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6323)
6324
6325target_link_libraries(sequential_connectivity_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006326 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006327 grpc_test_util
6328 grpc
6329 gpr_test_util
6330 gpr
6331)
6332
6333endif (gRPC_BUILD_TESTS)
6334if (gRPC_BUILD_TESTS)
6335
6336add_executable(server_chttp2_test
6337 test/core/surface/server_chttp2_test.c
6338)
6339
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006340
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006341target_include_directories(server_chttp2_test
6342 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6343 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6344 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6345 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006346 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006347 PRIVATE ${ZLIB_ROOT_DIR}
6348 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6349 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6350)
6351
6352target_link_libraries(server_chttp2_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006353 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006354 grpc_test_util
6355 grpc
6356 gpr_test_util
6357 gpr
6358)
6359
6360endif (gRPC_BUILD_TESTS)
6361if (gRPC_BUILD_TESTS)
6362
6363add_executable(server_test
6364 test/core/surface/server_test.c
6365)
6366
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006367
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006368target_include_directories(server_test
6369 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6370 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6371 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6372 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006373 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006374 PRIVATE ${ZLIB_ROOT_DIR}
6375 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6376 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6377)
6378
6379target_link_libraries(server_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006380 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006381 grpc_test_util
6382 grpc
6383 gpr_test_util
6384 gpr
6385)
6386
6387endif (gRPC_BUILD_TESTS)
6388if (gRPC_BUILD_TESTS)
6389
6390add_executable(set_initial_connect_string_test
6391 test/core/client_channel/set_initial_connect_string_test.c
6392)
6393
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006394
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006395target_include_directories(set_initial_connect_string_test
6396 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6397 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6398 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6399 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006400 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006401 PRIVATE ${ZLIB_ROOT_DIR}
6402 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6403 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6404)
6405
6406target_link_libraries(set_initial_connect_string_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006407 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006408 test_tcp_server
6409 grpc_test_util
6410 grpc
6411 gpr_test_util
6412 gpr
6413)
6414
6415endif (gRPC_BUILD_TESTS)
6416if (gRPC_BUILD_TESTS)
6417
6418add_executable(slice_buffer_test
6419 test/core/slice/slice_buffer_test.c
6420)
6421
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006422
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006423target_include_directories(slice_buffer_test
6424 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6425 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6426 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6427 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006428 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006429 PRIVATE ${ZLIB_ROOT_DIR}
6430 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6431 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6432)
6433
6434target_link_libraries(slice_buffer_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006435 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006436 grpc_test_util
6437 grpc
6438 gpr_test_util
6439 gpr
6440)
6441
6442endif (gRPC_BUILD_TESTS)
6443if (gRPC_BUILD_TESTS)
6444
6445add_executable(slice_string_helpers_test
6446 test/core/slice/slice_string_helpers_test.c
6447)
6448
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006449
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006450target_include_directories(slice_string_helpers_test
6451 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6452 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6453 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6454 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006455 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006456 PRIVATE ${ZLIB_ROOT_DIR}
6457 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6458 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6459)
6460
6461target_link_libraries(slice_string_helpers_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006462 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006463 grpc_test_util
6464 grpc
6465 gpr_test_util
6466 gpr
6467)
6468
6469endif (gRPC_BUILD_TESTS)
6470if (gRPC_BUILD_TESTS)
6471
6472add_executable(slice_test
6473 test/core/slice/slice_test.c
6474)
6475
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006476
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006477target_include_directories(slice_test
6478 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6479 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6480 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6481 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006482 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006483 PRIVATE ${ZLIB_ROOT_DIR}
6484 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6485 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6486)
6487
6488target_link_libraries(slice_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006489 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006490 grpc_test_util
6491 grpc
6492 gpr_test_util
6493 gpr
6494)
6495
6496endif (gRPC_BUILD_TESTS)
6497if (gRPC_BUILD_TESTS)
6498
6499add_executable(sockaddr_resolver_test
6500 test/core/client_channel/resolvers/sockaddr_resolver_test.c
6501)
6502
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006503
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006504target_include_directories(sockaddr_resolver_test
6505 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6506 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6507 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6508 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006509 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006510 PRIVATE ${ZLIB_ROOT_DIR}
6511 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6512 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6513)
6514
6515target_link_libraries(sockaddr_resolver_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006516 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006517 grpc_test_util
6518 grpc
6519 gpr_test_util
6520 gpr
6521)
6522
6523endif (gRPC_BUILD_TESTS)
6524if (gRPC_BUILD_TESTS)
6525
6526add_executable(sockaddr_utils_test
6527 test/core/iomgr/sockaddr_utils_test.c
6528)
6529
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006530
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006531target_include_directories(sockaddr_utils_test
6532 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6533 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6534 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6535 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006536 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006537 PRIVATE ${ZLIB_ROOT_DIR}
6538 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6539 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6540)
6541
6542target_link_libraries(sockaddr_utils_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006543 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006544 grpc_test_util
6545 grpc
6546 gpr_test_util
6547 gpr
6548)
6549
6550endif (gRPC_BUILD_TESTS)
6551if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006552if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006553
6554add_executable(socket_utils_test
6555 test/core/iomgr/socket_utils_test.c
6556)
6557
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006558
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006559target_include_directories(socket_utils_test
6560 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6561 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6562 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6563 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006564 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006565 PRIVATE ${ZLIB_ROOT_DIR}
6566 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6567 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6568)
6569
6570target_link_libraries(socket_utils_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006571 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006572 grpc_test_util
6573 grpc
6574 gpr_test_util
6575 gpr
6576)
6577
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006578endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006579endif (gRPC_BUILD_TESTS)
6580if (gRPC_BUILD_TESTS)
6581
Craig Tiller7c70b6c2017-01-23 07:48:42 -08006582add_executable(status_conversion_test
6583 test/core/transport/status_conversion_test.c
6584)
6585
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006586
Craig Tiller7c70b6c2017-01-23 07:48:42 -08006587target_include_directories(status_conversion_test
6588 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6589 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6590 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6591 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006592 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Craig Tiller7c70b6c2017-01-23 07:48:42 -08006593 PRIVATE ${ZLIB_ROOT_DIR}
6594 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6595 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6596)
6597
6598target_link_libraries(status_conversion_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006599 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller7c70b6c2017-01-23 07:48:42 -08006600 grpc_test_util
6601 grpc
6602 gpr_test_util
6603 gpr
6604)
6605
6606endif (gRPC_BUILD_TESTS)
6607if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006608if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller7c70b6c2017-01-23 07:48:42 -08006609
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006610add_executable(tcp_client_posix_test
6611 test/core/iomgr/tcp_client_posix_test.c
6612)
6613
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006614
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006615target_include_directories(tcp_client_posix_test
6616 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6617 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6618 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6619 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006620 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006621 PRIVATE ${ZLIB_ROOT_DIR}
6622 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6623 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6624)
6625
6626target_link_libraries(tcp_client_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006627 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006628 grpc_test_util
6629 grpc
6630 gpr_test_util
6631 gpr
6632)
6633
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006634endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006635endif (gRPC_BUILD_TESTS)
6636if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006637if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006638
6639add_executable(tcp_posix_test
6640 test/core/iomgr/tcp_posix_test.c
6641)
6642
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006643
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006644target_include_directories(tcp_posix_test
6645 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6646 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6647 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6648 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006649 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006650 PRIVATE ${ZLIB_ROOT_DIR}
6651 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6652 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6653)
6654
6655target_link_libraries(tcp_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006656 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006657 grpc_test_util
6658 grpc
6659 gpr_test_util
6660 gpr
6661)
6662
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006663endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006664endif (gRPC_BUILD_TESTS)
6665if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006666if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006667
6668add_executable(tcp_server_posix_test
6669 test/core/iomgr/tcp_server_posix_test.c
6670)
6671
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006672
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006673target_include_directories(tcp_server_posix_test
6674 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6675 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6676 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6677 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006678 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006679 PRIVATE ${ZLIB_ROOT_DIR}
6680 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6681 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6682)
6683
6684target_link_libraries(tcp_server_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006685 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006686 grpc_test_util
6687 grpc
6688 gpr_test_util
6689 gpr
6690)
6691
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006692endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006693endif (gRPC_BUILD_TESTS)
6694if (gRPC_BUILD_TESTS)
6695
6696add_executable(time_averaged_stats_test
6697 test/core/iomgr/time_averaged_stats_test.c
6698)
6699
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006700
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006701target_include_directories(time_averaged_stats_test
6702 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6703 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6704 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6705 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006706 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006707 PRIVATE ${ZLIB_ROOT_DIR}
6708 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6709 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6710)
6711
6712target_link_libraries(time_averaged_stats_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006713 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006714 grpc_test_util
6715 grpc
6716 gpr_test_util
6717 gpr
6718)
6719
6720endif (gRPC_BUILD_TESTS)
6721if (gRPC_BUILD_TESTS)
6722
6723add_executable(timeout_encoding_test
6724 test/core/transport/timeout_encoding_test.c
6725)
6726
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006727
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006728target_include_directories(timeout_encoding_test
6729 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6730 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6731 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6732 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006733 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006734 PRIVATE ${ZLIB_ROOT_DIR}
6735 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6736 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6737)
6738
6739target_link_libraries(timeout_encoding_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006740 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006741 grpc_test_util
6742 grpc
6743 gpr_test_util
6744 gpr
6745)
6746
6747endif (gRPC_BUILD_TESTS)
6748if (gRPC_BUILD_TESTS)
6749
6750add_executable(timer_heap_test
6751 test/core/iomgr/timer_heap_test.c
6752)
6753
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006754
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006755target_include_directories(timer_heap_test
6756 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6757 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6758 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6759 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006760 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006761 PRIVATE ${ZLIB_ROOT_DIR}
6762 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6763 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6764)
6765
6766target_link_libraries(timer_heap_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006767 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006768 grpc_test_util
6769 grpc
6770 gpr_test_util
6771 gpr
6772)
6773
6774endif (gRPC_BUILD_TESTS)
6775if (gRPC_BUILD_TESTS)
6776
6777add_executable(timer_list_test
6778 test/core/iomgr/timer_list_test.c
6779)
6780
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006781
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006782target_include_directories(timer_list_test
6783 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6784 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6785 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6786 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006787 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006788 PRIVATE ${ZLIB_ROOT_DIR}
6789 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6790 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6791)
6792
6793target_link_libraries(timer_list_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006794 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006795 grpc_test_util
6796 grpc
6797 gpr_test_util
6798 gpr
6799)
6800
6801endif (gRPC_BUILD_TESTS)
6802if (gRPC_BUILD_TESTS)
6803
6804add_executable(transport_connectivity_state_test
6805 test/core/transport/connectivity_state_test.c
6806)
6807
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006808
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006809target_include_directories(transport_connectivity_state_test
6810 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6811 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6812 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6813 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006814 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006815 PRIVATE ${ZLIB_ROOT_DIR}
6816 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6817 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6818)
6819
6820target_link_libraries(transport_connectivity_state_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006821 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006822 grpc_test_util
6823 grpc
6824 gpr_test_util
6825 gpr
6826)
6827
6828endif (gRPC_BUILD_TESTS)
6829if (gRPC_BUILD_TESTS)
6830
6831add_executable(transport_metadata_test
6832 test/core/transport/metadata_test.c
6833)
6834
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006835
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006836target_include_directories(transport_metadata_test
6837 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6838 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6839 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6840 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006841 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006842 PRIVATE ${ZLIB_ROOT_DIR}
6843 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6844 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6845)
6846
6847target_link_libraries(transport_metadata_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006848 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006849 grpc_test_util
6850 grpc
6851 gpr_test_util
6852 gpr
6853)
6854
6855endif (gRPC_BUILD_TESTS)
6856if (gRPC_BUILD_TESTS)
6857
6858add_executable(transport_pid_controller_test
6859 test/core/transport/pid_controller_test.c
6860)
6861
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006862
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006863target_include_directories(transport_pid_controller_test
6864 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6865 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6866 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6867 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006868 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006869 PRIVATE ${ZLIB_ROOT_DIR}
6870 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6871 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6872)
6873
6874target_link_libraries(transport_pid_controller_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006875 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006876 grpc_test_util
6877 grpc
6878 gpr_test_util
6879 gpr
6880)
6881
6882endif (gRPC_BUILD_TESTS)
6883if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006884if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006885
6886add_executable(transport_security_test
6887 test/core/tsi/transport_security_test.c
6888)
6889
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006890
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006891target_include_directories(transport_security_test
6892 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6893 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6894 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6895 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006896 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006897 PRIVATE ${ZLIB_ROOT_DIR}
6898 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6899 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6900)
6901
6902target_link_libraries(transport_security_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006903 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006904 grpc_test_util
6905 grpc
6906 gpr_test_util
6907 gpr
6908)
6909
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006910endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006911endif (gRPC_BUILD_TESTS)
6912if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006913if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006914
6915add_executable(udp_server_test
6916 test/core/iomgr/udp_server_test.c
6917)
6918
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006919
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006920target_include_directories(udp_server_test
6921 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6922 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6923 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6924 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006925 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006926 PRIVATE ${ZLIB_ROOT_DIR}
6927 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6928 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6929)
6930
6931target_link_libraries(udp_server_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006932 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006933 grpc_test_util
6934 grpc
6935 gpr_test_util
6936 gpr
6937)
6938
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006939endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006940endif (gRPC_BUILD_TESTS)
6941if (gRPC_BUILD_TESTS)
6942
6943add_executable(uri_parser_test
6944 test/core/client_channel/uri_parser_test.c
6945)
6946
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006947
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006948target_include_directories(uri_parser_test
6949 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6950 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6951 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6952 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006953 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006954 PRIVATE ${ZLIB_ROOT_DIR}
6955 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6956 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6957)
6958
6959target_link_libraries(uri_parser_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006960 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006961 grpc_test_util
6962 grpc
6963 gpr_test_util
6964 gpr
6965)
6966
6967endif (gRPC_BUILD_TESTS)
6968if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006969if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006970
6971add_executable(wakeup_fd_cv_test
6972 test/core/iomgr/wakeup_fd_cv_test.c
6973)
6974
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006975
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006976target_include_directories(wakeup_fd_cv_test
6977 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6978 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6979 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6980 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006981 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006982 PRIVATE ${ZLIB_ROOT_DIR}
6983 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6984 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6985)
6986
6987target_link_libraries(wakeup_fd_cv_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006988 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006989 grpc_test_util
6990 grpc
6991 gpr_test_util
6992 gpr
6993)
6994
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006995endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006996endif (gRPC_BUILD_TESTS)
6997if (gRPC_BUILD_TESTS)
6998
6999add_executable(alarm_cpp_test
7000 test/cpp/common/alarm_cpp_test.cc
7001 third_party/googletest/src/gtest-all.cc
7002)
7003
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007004
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007005target_include_directories(alarm_cpp_test
7006 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7007 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7008 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7009 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007010 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007011 PRIVATE ${ZLIB_ROOT_DIR}
7012 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7013 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7014 PRIVATE third_party/googletest/include
7015 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007016 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007017)
7018
7019target_link_libraries(alarm_cpp_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007020 ${_gRPC_PROTOBUF_LIBRARIES}
7021 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007022 grpc++_test_util
7023 grpc_test_util
7024 grpc++
7025 grpc
7026 gpr_test_util
7027 gpr
7028 ${_gRPC_GFLAGS_LIBRARIES}
7029)
7030
7031endif (gRPC_BUILD_TESTS)
7032if (gRPC_BUILD_TESTS)
7033
7034add_executable(async_end2end_test
7035 test/cpp/end2end/async_end2end_test.cc
7036 third_party/googletest/src/gtest-all.cc
7037)
7038
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007039
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007040target_include_directories(async_end2end_test
7041 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7042 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7043 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7044 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007045 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007046 PRIVATE ${ZLIB_ROOT_DIR}
7047 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7048 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7049 PRIVATE third_party/googletest/include
7050 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007051 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007052)
7053
7054target_link_libraries(async_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007055 ${_gRPC_PROTOBUF_LIBRARIES}
7056 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007057 grpc++_test_util
7058 grpc_test_util
7059 grpc++
7060 grpc
7061 gpr_test_util
7062 gpr
7063 ${_gRPC_GFLAGS_LIBRARIES}
7064)
7065
7066endif (gRPC_BUILD_TESTS)
7067if (gRPC_BUILD_TESTS)
7068
7069add_executable(auth_property_iterator_test
7070 test/cpp/common/auth_property_iterator_test.cc
7071 third_party/googletest/src/gtest-all.cc
7072)
7073
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007074
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007075target_include_directories(auth_property_iterator_test
7076 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7077 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7078 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7079 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007080 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007081 PRIVATE ${ZLIB_ROOT_DIR}
7082 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7083 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7084 PRIVATE third_party/googletest/include
7085 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007086 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007087)
7088
7089target_link_libraries(auth_property_iterator_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007090 ${_gRPC_PROTOBUF_LIBRARIES}
7091 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007092 grpc++_test_util
7093 grpc_test_util
7094 grpc++
7095 grpc
7096 gpr_test_util
7097 gpr
7098 ${_gRPC_GFLAGS_LIBRARIES}
7099)
7100
7101endif (gRPC_BUILD_TESTS)
7102if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007103if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007104
7105add_executable(bm_fullstack
7106 test/cpp/microbenchmarks/bm_fullstack.cc
7107 third_party/googletest/src/gtest-all.cc
7108)
7109
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007110
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007111target_include_directories(bm_fullstack
7112 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7113 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7114 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7115 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007116 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007117 PRIVATE ${ZLIB_ROOT_DIR}
7118 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7119 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7120 PRIVATE third_party/googletest/include
7121 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007122 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007123)
7124
7125target_link_libraries(bm_fullstack
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007126 ${_gRPC_PROTOBUF_LIBRARIES}
7127 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007128 benchmark
7129 grpc++_test_util
7130 grpc_test_util
7131 grpc++
7132 grpc
7133 gpr_test_util
7134 gpr
7135 ${_gRPC_GFLAGS_LIBRARIES}
7136)
7137
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007138endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007139endif (gRPC_BUILD_TESTS)
7140if (gRPC_BUILD_TESTS)
7141
7142add_executable(channel_arguments_test
7143 test/cpp/common/channel_arguments_test.cc
7144 third_party/googletest/src/gtest-all.cc
7145)
7146
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007147
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007148target_include_directories(channel_arguments_test
7149 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7150 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7151 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7152 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007153 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007154 PRIVATE ${ZLIB_ROOT_DIR}
7155 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7156 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7157 PRIVATE third_party/googletest/include
7158 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007159 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007160)
7161
7162target_link_libraries(channel_arguments_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007163 ${_gRPC_PROTOBUF_LIBRARIES}
7164 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007165 grpc++
7166 grpc
7167 gpr
7168 ${_gRPC_GFLAGS_LIBRARIES}
7169)
7170
7171endif (gRPC_BUILD_TESTS)
7172if (gRPC_BUILD_TESTS)
7173
7174add_executable(channel_filter_test
7175 test/cpp/common/channel_filter_test.cc
7176 third_party/googletest/src/gtest-all.cc
7177)
7178
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007179
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007180target_include_directories(channel_filter_test
7181 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7182 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7183 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7184 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007185 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007186 PRIVATE ${ZLIB_ROOT_DIR}
7187 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7188 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7189 PRIVATE third_party/googletest/include
7190 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007191 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007192)
7193
7194target_link_libraries(channel_filter_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007195 ${_gRPC_PROTOBUF_LIBRARIES}
7196 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007197 grpc++
7198 grpc
7199 gpr
7200 ${_gRPC_GFLAGS_LIBRARIES}
7201)
7202
7203endif (gRPC_BUILD_TESTS)
7204if (gRPC_BUILD_TESTS)
7205
7206add_executable(cli_call_test
7207 test/cpp/util/cli_call_test.cc
7208 third_party/googletest/src/gtest-all.cc
7209)
7210
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007211
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007212target_include_directories(cli_call_test
7213 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7214 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7215 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7216 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007217 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007218 PRIVATE ${ZLIB_ROOT_DIR}
7219 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7220 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7221 PRIVATE third_party/googletest/include
7222 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007223 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007224)
7225
7226target_link_libraries(cli_call_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007227 ${_gRPC_PROTOBUF_LIBRARIES}
7228 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007229 grpc_cli_libs
7230 grpc++_test_util
7231 grpc_test_util
7232 grpc++
7233 grpc
7234 gpr_test_util
7235 gpr
7236 ${_gRPC_GFLAGS_LIBRARIES}
7237)
7238
7239endif (gRPC_BUILD_TESTS)
7240if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007241if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007242
7243add_executable(client_crash_test
7244 test/cpp/end2end/client_crash_test.cc
7245 third_party/googletest/src/gtest-all.cc
7246)
7247
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007248
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007249target_include_directories(client_crash_test
7250 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7251 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7252 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7253 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007254 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007255 PRIVATE ${ZLIB_ROOT_DIR}
7256 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7257 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7258 PRIVATE third_party/googletest/include
7259 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007260 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007261)
7262
7263target_link_libraries(client_crash_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007264 ${_gRPC_PROTOBUF_LIBRARIES}
7265 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007266 grpc++_test_util
7267 grpc_test_util
7268 grpc++
7269 grpc
7270 gpr_test_util
7271 gpr
7272 ${_gRPC_GFLAGS_LIBRARIES}
7273)
7274
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007275endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007276endif (gRPC_BUILD_TESTS)
7277if (gRPC_BUILD_TESTS)
7278
7279add_executable(client_crash_test_server
7280 test/cpp/end2end/client_crash_test_server.cc
7281 third_party/googletest/src/gtest-all.cc
7282)
7283
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007284
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007285target_include_directories(client_crash_test_server
7286 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7287 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7288 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7289 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007290 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007291 PRIVATE ${ZLIB_ROOT_DIR}
7292 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7293 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7294 PRIVATE third_party/googletest/include
7295 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007296 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007297)
7298
7299target_link_libraries(client_crash_test_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007300 ${_gRPC_PROTOBUF_LIBRARIES}
7301 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007302 grpc++_test_util
7303 grpc_test_util
7304 grpc++
7305 grpc
7306 gpr_test_util
7307 gpr
7308 ${_gRPC_GFLAGS_LIBRARIES}
7309)
7310
7311endif (gRPC_BUILD_TESTS)
7312if (gRPC_BUILD_TESTS)
7313
7314add_executable(codegen_test_full
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007315 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.cc
7316 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.cc
7317 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.h
7318 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.h
7319 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
7320 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
7321 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
7322 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
7323 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.cc
7324 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.cc
7325 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.h
7326 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.h
7327 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.cc
7328 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.cc
7329 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.h
7330 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.h
7331 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.cc
7332 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.cc
7333 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.h
7334 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007335 test/cpp/codegen/codegen_test_full.cc
7336 third_party/googletest/src/gtest-all.cc
7337)
7338
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007339protobuf_generate_grpc_cpp(
7340 src/proto/grpc/testing/control.proto
7341)
7342protobuf_generate_grpc_cpp(
7343 src/proto/grpc/testing/messages.proto
7344)
7345protobuf_generate_grpc_cpp(
7346 src/proto/grpc/testing/payloads.proto
7347)
7348protobuf_generate_grpc_cpp(
7349 src/proto/grpc/testing/services.proto
7350)
7351protobuf_generate_grpc_cpp(
7352 src/proto/grpc/testing/stats.proto
7353)
7354
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007355target_include_directories(codegen_test_full
7356 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7357 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7358 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7359 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007360 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007361 PRIVATE ${ZLIB_ROOT_DIR}
7362 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7363 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7364 PRIVATE third_party/googletest/include
7365 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007366 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007367)
7368
7369target_link_libraries(codegen_test_full
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007370 ${_gRPC_PROTOBUF_LIBRARIES}
7371 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007372 grpc++
7373 grpc
7374 gpr
7375 ${_gRPC_GFLAGS_LIBRARIES}
7376)
7377
7378endif (gRPC_BUILD_TESTS)
7379if (gRPC_BUILD_TESTS)
7380
7381add_executable(codegen_test_minimal
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007382 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.cc
7383 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.cc
7384 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.h
7385 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.h
7386 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
7387 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
7388 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
7389 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
7390 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.cc
7391 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.cc
7392 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.h
7393 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.h
7394 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.cc
7395 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.cc
7396 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.h
7397 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.h
7398 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.cc
7399 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.cc
7400 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.h
7401 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007402 test/cpp/codegen/codegen_test_minimal.cc
7403 src/cpp/codegen/codegen_init.cc
7404 third_party/googletest/src/gtest-all.cc
7405)
7406
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007407protobuf_generate_grpc_cpp(
7408 src/proto/grpc/testing/control.proto
7409)
7410protobuf_generate_grpc_cpp(
7411 src/proto/grpc/testing/messages.proto
7412)
7413protobuf_generate_grpc_cpp(
7414 src/proto/grpc/testing/payloads.proto
7415)
7416protobuf_generate_grpc_cpp(
7417 src/proto/grpc/testing/services.proto
7418)
7419protobuf_generate_grpc_cpp(
7420 src/proto/grpc/testing/stats.proto
7421)
7422
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007423target_include_directories(codegen_test_minimal
7424 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7425 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7426 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7427 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007428 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007429 PRIVATE ${ZLIB_ROOT_DIR}
7430 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7431 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7432 PRIVATE third_party/googletest/include
7433 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007434 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007435)
7436
7437target_link_libraries(codegen_test_minimal
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007438 ${_gRPC_PROTOBUF_LIBRARIES}
7439 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007440 ${_gRPC_GFLAGS_LIBRARIES}
7441)
7442
7443endif (gRPC_BUILD_TESTS)
7444if (gRPC_BUILD_TESTS)
7445
7446add_executable(credentials_test
7447 test/cpp/client/credentials_test.cc
7448 third_party/googletest/src/gtest-all.cc
7449)
7450
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007451
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007452target_include_directories(credentials_test
7453 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7454 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7455 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7456 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007457 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007458 PRIVATE ${ZLIB_ROOT_DIR}
7459 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7460 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7461 PRIVATE third_party/googletest/include
7462 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007463 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007464)
7465
7466target_link_libraries(credentials_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007467 ${_gRPC_PROTOBUF_LIBRARIES}
7468 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007469 grpc++
7470 grpc
7471 gpr
7472 ${_gRPC_GFLAGS_LIBRARIES}
7473)
7474
7475endif (gRPC_BUILD_TESTS)
7476if (gRPC_BUILD_TESTS)
7477
7478add_executable(cxx_byte_buffer_test
7479 test/cpp/util/byte_buffer_test.cc
7480 third_party/googletest/src/gtest-all.cc
7481)
7482
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007483
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007484target_include_directories(cxx_byte_buffer_test
7485 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7486 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7487 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7488 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007489 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007490 PRIVATE ${ZLIB_ROOT_DIR}
7491 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7492 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7493 PRIVATE third_party/googletest/include
7494 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007495 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007496)
7497
7498target_link_libraries(cxx_byte_buffer_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007499 ${_gRPC_PROTOBUF_LIBRARIES}
7500 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007501 grpc_test_util
7502 grpc++
7503 grpc
7504 gpr_test_util
7505 gpr
7506 ${_gRPC_GFLAGS_LIBRARIES}
7507)
7508
7509endif (gRPC_BUILD_TESTS)
7510if (gRPC_BUILD_TESTS)
7511
7512add_executable(cxx_slice_test
7513 test/cpp/util/slice_test.cc
7514 third_party/googletest/src/gtest-all.cc
7515)
7516
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007517
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007518target_include_directories(cxx_slice_test
7519 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7520 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7521 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7522 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007523 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007524 PRIVATE ${ZLIB_ROOT_DIR}
7525 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7526 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7527 PRIVATE third_party/googletest/include
7528 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007529 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007530)
7531
7532target_link_libraries(cxx_slice_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007533 ${_gRPC_PROTOBUF_LIBRARIES}
7534 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007535 grpc_test_util
7536 grpc++
7537 grpc
7538 gpr_test_util
7539 gpr
7540 ${_gRPC_GFLAGS_LIBRARIES}
7541)
7542
7543endif (gRPC_BUILD_TESTS)
7544if (gRPC_BUILD_TESTS)
7545
7546add_executable(cxx_string_ref_test
7547 test/cpp/util/string_ref_test.cc
7548 third_party/googletest/src/gtest-all.cc
7549)
7550
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007551
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007552target_include_directories(cxx_string_ref_test
7553 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7554 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7555 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7556 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007557 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007558 PRIVATE ${ZLIB_ROOT_DIR}
7559 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7560 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7561 PRIVATE third_party/googletest/include
7562 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007563 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007564)
7565
7566target_link_libraries(cxx_string_ref_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007567 ${_gRPC_PROTOBUF_LIBRARIES}
7568 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007569 grpc++
7570 ${_gRPC_GFLAGS_LIBRARIES}
7571)
7572
7573endif (gRPC_BUILD_TESTS)
7574if (gRPC_BUILD_TESTS)
7575
7576add_executable(cxx_time_test
7577 test/cpp/util/time_test.cc
7578 third_party/googletest/src/gtest-all.cc
7579)
7580
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007581
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007582target_include_directories(cxx_time_test
7583 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7584 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7585 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7586 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007587 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007588 PRIVATE ${ZLIB_ROOT_DIR}
7589 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7590 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7591 PRIVATE third_party/googletest/include
7592 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007593 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007594)
7595
7596target_link_libraries(cxx_time_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007597 ${_gRPC_PROTOBUF_LIBRARIES}
7598 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007599 grpc_test_util
7600 grpc++
7601 grpc
7602 gpr_test_util
7603 gpr
7604 ${_gRPC_GFLAGS_LIBRARIES}
7605)
7606
7607endif (gRPC_BUILD_TESTS)
7608if (gRPC_BUILD_TESTS)
7609
7610add_executable(end2end_test
7611 test/cpp/end2end/end2end_test.cc
7612 third_party/googletest/src/gtest-all.cc
7613)
7614
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007615
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007616target_include_directories(end2end_test
7617 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7618 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7619 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7620 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007621 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007622 PRIVATE ${ZLIB_ROOT_DIR}
7623 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7624 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7625 PRIVATE third_party/googletest/include
7626 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007627 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007628)
7629
7630target_link_libraries(end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007631 ${_gRPC_PROTOBUF_LIBRARIES}
7632 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007633 grpc++_test_util
7634 grpc_test_util
7635 grpc++
7636 grpc
7637 gpr_test_util
7638 gpr
7639 ${_gRPC_GFLAGS_LIBRARIES}
7640)
7641
7642endif (gRPC_BUILD_TESTS)
7643if (gRPC_BUILD_TESTS)
7644
7645add_executable(filter_end2end_test
7646 test/cpp/end2end/filter_end2end_test.cc
7647 third_party/googletest/src/gtest-all.cc
7648)
7649
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007650
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007651target_include_directories(filter_end2end_test
7652 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7653 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7654 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7655 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007656 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007657 PRIVATE ${ZLIB_ROOT_DIR}
7658 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7659 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7660 PRIVATE third_party/googletest/include
7661 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007662 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007663)
7664
7665target_link_libraries(filter_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007666 ${_gRPC_PROTOBUF_LIBRARIES}
7667 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007668 grpc++_test_util
7669 grpc_test_util
7670 grpc++
7671 grpc
7672 gpr_test_util
7673 gpr
7674 ${_gRPC_GFLAGS_LIBRARIES}
7675)
7676
7677endif (gRPC_BUILD_TESTS)
7678if (gRPC_BUILD_TESTS)
7679
7680add_executable(generic_end2end_test
7681 test/cpp/end2end/generic_end2end_test.cc
7682 third_party/googletest/src/gtest-all.cc
7683)
7684
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007685
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007686target_include_directories(generic_end2end_test
7687 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7688 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7689 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7690 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007691 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007692 PRIVATE ${ZLIB_ROOT_DIR}
7693 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7694 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7695 PRIVATE third_party/googletest/include
7696 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007697 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007698)
7699
7700target_link_libraries(generic_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007701 ${_gRPC_PROTOBUF_LIBRARIES}
7702 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007703 grpc++_test_util
7704 grpc_test_util
7705 grpc++
7706 grpc
7707 gpr_test_util
7708 gpr
7709 ${_gRPC_GFLAGS_LIBRARIES}
7710)
7711
7712endif (gRPC_BUILD_TESTS)
7713if (gRPC_BUILD_TESTS)
7714
7715add_executable(golden_file_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007716 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.pb.cc
7717 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.grpc.pb.cc
7718 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.pb.h
7719 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007720 test/cpp/codegen/golden_file_test.cc
7721 third_party/googletest/src/gtest-all.cc
7722)
7723
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007724protobuf_generate_grpc_cpp(
7725 src/proto/grpc/testing/compiler_test.proto
7726)
7727
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007728target_include_directories(golden_file_test
7729 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7730 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7731 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7732 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007733 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007734 PRIVATE ${ZLIB_ROOT_DIR}
7735 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7736 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7737 PRIVATE third_party/googletest/include
7738 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007739 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007740)
7741
7742target_link_libraries(golden_file_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007743 ${_gRPC_PROTOBUF_LIBRARIES}
7744 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007745 grpc++
7746 grpc
7747 gpr
7748 ${_gRPC_GFLAGS_LIBRARIES}
7749)
7750
7751endif (gRPC_BUILD_TESTS)
7752if (gRPC_BUILD_TESTS)
7753
7754add_executable(grpc_cli
7755 test/cpp/util/grpc_cli.cc
7756 third_party/googletest/src/gtest-all.cc
7757)
7758
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007759
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007760target_include_directories(grpc_cli
7761 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7762 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7763 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7764 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007765 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007766 PRIVATE ${ZLIB_ROOT_DIR}
7767 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7768 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7769 PRIVATE third_party/googletest/include
7770 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007771 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007772)
7773
7774target_link_libraries(grpc_cli
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007775 ${_gRPC_PROTOBUF_LIBRARIES}
7776 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007777 grpc_cli_libs
7778 grpc++_proto_reflection_desc_db
7779 grpc++
7780 grpc
7781 gpr
7782 grpc++_test_config
7783 ${_gRPC_GFLAGS_LIBRARIES}
7784)
7785
7786endif (gRPC_BUILD_TESTS)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03007787
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007788add_executable(grpc_cpp_plugin
7789 src/compiler/cpp_plugin.cc
7790)
7791
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007792
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007793target_include_directories(grpc_cpp_plugin
7794 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7795 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7796 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7797 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007798 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007799 PRIVATE ${ZLIB_ROOT_DIR}
7800 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007801 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007802 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007803)
7804
7805target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03007806 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007807 ${_gRPC_PROTOBUF_LIBRARIES}
7808 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007809 grpc_plugin_support
7810)
7811
7812
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03007813if (gRPC_INSTALL)
7814 install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
7815 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
7816 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
7817 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
7818 )
7819endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03007820
7821
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007822add_executable(grpc_csharp_plugin
7823 src/compiler/csharp_plugin.cc
7824)
7825
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007826
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007827target_include_directories(grpc_csharp_plugin
7828 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7829 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7830 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7831 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007832 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007833 PRIVATE ${ZLIB_ROOT_DIR}
7834 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007835 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007836 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007837)
7838
7839target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03007840 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007841 ${_gRPC_PROTOBUF_LIBRARIES}
7842 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007843 grpc_plugin_support
7844)
7845
7846
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03007847if (gRPC_INSTALL)
7848 install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
7849 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
7850 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
7851 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
7852 )
7853endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03007854
7855
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007856add_executable(grpc_node_plugin
7857 src/compiler/node_plugin.cc
7858)
7859
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007860
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007861target_include_directories(grpc_node_plugin
7862 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7863 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7864 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7865 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007866 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007867 PRIVATE ${ZLIB_ROOT_DIR}
7868 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007869 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007870 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007871)
7872
7873target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03007874 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007875 ${_gRPC_PROTOBUF_LIBRARIES}
7876 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007877 grpc_plugin_support
7878)
7879
7880
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03007881if (gRPC_INSTALL)
7882 install(TARGETS grpc_node_plugin EXPORT gRPCTargets
7883 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
7884 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
7885 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
7886 )
7887endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03007888
7889
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007890add_executable(grpc_objective_c_plugin
7891 src/compiler/objective_c_plugin.cc
7892)
7893
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007894
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007895target_include_directories(grpc_objective_c_plugin
7896 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7897 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7898 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7899 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007900 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007901 PRIVATE ${ZLIB_ROOT_DIR}
7902 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007903 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007904 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007905)
7906
7907target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03007908 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007909 ${_gRPC_PROTOBUF_LIBRARIES}
7910 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007911 grpc_plugin_support
7912)
7913
7914
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03007915if (gRPC_INSTALL)
7916 install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
7917 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
7918 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
7919 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
7920 )
7921endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03007922
7923
Stanley Cheung857a1302016-09-29 17:26:29 -07007924add_executable(grpc_php_plugin
7925 src/compiler/php_plugin.cc
7926)
7927
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007928
Stanley Cheung857a1302016-09-29 17:26:29 -07007929target_include_directories(grpc_php_plugin
7930 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7931 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7932 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7933 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007934 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Stanley Cheung857a1302016-09-29 17:26:29 -07007935 PRIVATE ${ZLIB_ROOT_DIR}
7936 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007937 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007938 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Stanley Cheung857a1302016-09-29 17:26:29 -07007939)
7940
7941target_link_libraries(grpc_php_plugin
7942 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007943 ${_gRPC_PROTOBUF_LIBRARIES}
7944 ${_gRPC_ALLTARGETS_LIBRARIES}
Stanley Cheung857a1302016-09-29 17:26:29 -07007945 grpc_plugin_support
7946)
7947
7948
7949if (gRPC_INSTALL)
7950 install(TARGETS grpc_php_plugin EXPORT gRPCTargets
7951 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
7952 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
7953 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
7954 )
7955endif()
7956
7957
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007958add_executable(grpc_python_plugin
7959 src/compiler/python_plugin.cc
7960)
7961
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007962
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007963target_include_directories(grpc_python_plugin
7964 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7965 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7966 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7967 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007968 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007969 PRIVATE ${ZLIB_ROOT_DIR}
7970 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007971 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007972 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007973)
7974
7975target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03007976 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007977 ${_gRPC_PROTOBUF_LIBRARIES}
7978 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007979 grpc_plugin_support
7980)
7981
7982
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03007983if (gRPC_INSTALL)
7984 install(TARGETS grpc_python_plugin EXPORT gRPCTargets
7985 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
7986 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
7987 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
7988 )
7989endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03007990
7991
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007992add_executable(grpc_ruby_plugin
7993 src/compiler/ruby_plugin.cc
7994)
7995
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007996
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01007997target_include_directories(grpc_ruby_plugin
7998 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7999 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8000 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8001 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008002 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01008003 PRIVATE ${ZLIB_ROOT_DIR}
8004 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008005 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008006 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01008007)
8008
8009target_link_libraries(grpc_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03008010 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008011 ${_gRPC_PROTOBUF_LIBRARIES}
8012 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01008013 grpc_plugin_support
8014)
8015
8016
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03008017if (gRPC_INSTALL)
8018 install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
8019 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
8020 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
8021 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
8022 )
8023endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01008024
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008025if (gRPC_BUILD_TESTS)
8026
8027add_executable(grpc_tool_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008028 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc
8029 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc
8030 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h
8031 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h
8032 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc
8033 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc
8034 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h
8035 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008036 test/cpp/util/grpc_tool_test.cc
8037 third_party/googletest/src/gtest-all.cc
8038)
8039
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008040protobuf_generate_grpc_cpp(
8041 src/proto/grpc/testing/echo.proto
8042)
8043protobuf_generate_grpc_cpp(
8044 src/proto/grpc/testing/echo_messages.proto
8045)
8046
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008047target_include_directories(grpc_tool_test
8048 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8049 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8050 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8051 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008052 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008053 PRIVATE ${ZLIB_ROOT_DIR}
8054 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8055 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8056 PRIVATE third_party/googletest/include
8057 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008058 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008059)
8060
8061target_link_libraries(grpc_tool_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008062 ${_gRPC_PROTOBUF_LIBRARIES}
8063 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008064 grpc_cli_libs
8065 grpc++_proto_reflection_desc_db
8066 grpc++_reflection
8067 grpc++_test_util
8068 grpc_test_util
8069 grpc++
8070 grpc
8071 gpr_test_util
8072 gpr
8073 ${_gRPC_GFLAGS_LIBRARIES}
8074)
8075
8076endif (gRPC_BUILD_TESTS)
8077if (gRPC_BUILD_TESTS)
8078
8079add_executable(grpclb_api_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008080 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.cc
8081 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.cc
8082 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.h
8083 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008084 test/cpp/grpclb/grpclb_api_test.cc
8085 third_party/googletest/src/gtest-all.cc
8086)
8087
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008088protobuf_generate_grpc_cpp(
8089 src/proto/grpc/lb/v1/load_balancer.proto
8090)
8091
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008092target_include_directories(grpclb_api_test
8093 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8094 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8095 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8096 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008097 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008098 PRIVATE ${ZLIB_ROOT_DIR}
8099 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8100 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8101 PRIVATE third_party/googletest/include
8102 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008103 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008104)
8105
8106target_link_libraries(grpclb_api_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008107 ${_gRPC_PROTOBUF_LIBRARIES}
8108 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008109 grpc++_test_util
8110 grpc_test_util
8111 grpc++
8112 grpc
8113 ${_gRPC_GFLAGS_LIBRARIES}
8114)
8115
8116endif (gRPC_BUILD_TESTS)
8117if (gRPC_BUILD_TESTS)
8118
8119add_executable(grpclb_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008120 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.cc
8121 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.cc
8122 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.h
8123 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008124 test/cpp/grpclb/grpclb_test.cc
8125 third_party/googletest/src/gtest-all.cc
8126)
8127
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008128protobuf_generate_grpc_cpp(
8129 src/proto/grpc/lb/v1/load_balancer.proto
8130)
8131
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008132target_include_directories(grpclb_test
8133 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8134 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8135 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8136 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008137 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008138 PRIVATE ${ZLIB_ROOT_DIR}
8139 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8140 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8141 PRIVATE third_party/googletest/include
8142 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008143 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008144)
8145
8146target_link_libraries(grpclb_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008147 ${_gRPC_PROTOBUF_LIBRARIES}
8148 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008149 grpc++_test_util
8150 grpc_test_util
Jan Tattermusch1c6a1442017-01-13 14:17:40 +01008151 grpc++
8152 grpc
8153 gpr_test_util
8154 gpr
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008155 ${_gRPC_GFLAGS_LIBRARIES}
8156)
8157
8158endif (gRPC_BUILD_TESTS)
8159if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008160if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008161
8162add_executable(http2_client
8163 third_party/googletest/src/gtest-all.cc
8164)
8165
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008166
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008167target_include_directories(http2_client
8168 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8169 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8170 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8171 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008172 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008173 PRIVATE ${ZLIB_ROOT_DIR}
8174 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8175 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8176 PRIVATE third_party/googletest/include
8177 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008178 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008179)
8180
8181target_link_libraries(http2_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008182 ${_gRPC_PROTOBUF_LIBRARIES}
8183 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008184 http2_client_main
8185 grpc++_test_util
8186 grpc_test_util
8187 grpc++
8188 grpc
8189 grpc++_test_config
8190 ${_gRPC_GFLAGS_LIBRARIES}
8191)
8192
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008193endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008194endif (gRPC_BUILD_TESTS)
8195if (gRPC_BUILD_TESTS)
8196
8197add_executable(hybrid_end2end_test
8198 test/cpp/end2end/hybrid_end2end_test.cc
8199 third_party/googletest/src/gtest-all.cc
8200)
8201
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008202
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008203target_include_directories(hybrid_end2end_test
8204 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8205 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8206 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8207 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008208 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008209 PRIVATE ${ZLIB_ROOT_DIR}
8210 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8211 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8212 PRIVATE third_party/googletest/include
8213 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008214 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008215)
8216
8217target_link_libraries(hybrid_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008218 ${_gRPC_PROTOBUF_LIBRARIES}
8219 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008220 grpc++_test_util
8221 grpc_test_util
8222 grpc++
8223 grpc
8224 gpr_test_util
8225 gpr
8226 ${_gRPC_GFLAGS_LIBRARIES}
8227)
8228
8229endif (gRPC_BUILD_TESTS)
8230if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008231if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008232
8233add_executable(interop_client
8234 third_party/googletest/src/gtest-all.cc
8235)
8236
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008237
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008238target_include_directories(interop_client
8239 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8240 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8241 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8242 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008243 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008244 PRIVATE ${ZLIB_ROOT_DIR}
8245 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8246 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8247 PRIVATE third_party/googletest/include
8248 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008249 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008250)
8251
8252target_link_libraries(interop_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008253 ${_gRPC_PROTOBUF_LIBRARIES}
8254 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008255 interop_client_main
8256 interop_client_helper
8257 grpc++_test_util
8258 grpc_test_util
8259 grpc++
8260 grpc
8261 gpr_test_util
8262 gpr
8263 grpc++_test_config
8264 ${_gRPC_GFLAGS_LIBRARIES}
8265)
8266
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008267endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008268endif (gRPC_BUILD_TESTS)
8269if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008270if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008271
8272add_executable(interop_server
8273 third_party/googletest/src/gtest-all.cc
8274)
8275
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008276
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008277target_include_directories(interop_server
8278 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8279 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8280 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8281 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008282 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008283 PRIVATE ${ZLIB_ROOT_DIR}
8284 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8285 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8286 PRIVATE third_party/googletest/include
8287 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008288 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008289)
8290
8291target_link_libraries(interop_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008292 ${_gRPC_PROTOBUF_LIBRARIES}
8293 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008294 interop_server_main
8295 interop_server_helper
8296 interop_server_lib
8297 grpc++_test_util
8298 grpc_test_util
8299 grpc++
8300 grpc
8301 gpr_test_util
8302 gpr
8303 grpc++_test_config
8304 ${_gRPC_GFLAGS_LIBRARIES}
8305)
8306
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008307endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008308endif (gRPC_BUILD_TESTS)
8309if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008310if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008311
8312add_executable(interop_test
8313 test/cpp/interop/interop_test.cc
8314 third_party/googletest/src/gtest-all.cc
8315)
8316
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008317
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008318target_include_directories(interop_test
8319 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8320 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8321 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8322 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008323 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008324 PRIVATE ${ZLIB_ROOT_DIR}
8325 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8326 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8327 PRIVATE third_party/googletest/include
8328 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008329 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008330)
8331
8332target_link_libraries(interop_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008333 ${_gRPC_PROTOBUF_LIBRARIES}
8334 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008335 grpc_test_util
8336 grpc
8337 gpr_test_util
8338 gpr
8339 grpc++_test_config
8340 ${_gRPC_GFLAGS_LIBRARIES}
8341)
8342
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008343endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008344endif (gRPC_BUILD_TESTS)
8345if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008346if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008347
8348add_executable(json_run_localhost
8349 test/cpp/qps/json_run_localhost.cc
8350 third_party/googletest/src/gtest-all.cc
8351)
8352
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008353
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008354target_include_directories(json_run_localhost
8355 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8356 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8357 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8358 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008359 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008360 PRIVATE ${ZLIB_ROOT_DIR}
8361 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8362 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8363 PRIVATE third_party/googletest/include
8364 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008365 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008366)
8367
8368target_link_libraries(json_run_localhost
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008369 ${_gRPC_PROTOBUF_LIBRARIES}
8370 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008371 grpc++_test_util
8372 grpc_test_util
8373 grpc++
8374 grpc
8375 gpr_test_util
8376 gpr
8377 grpc++_test_config
8378 ${_gRPC_GFLAGS_LIBRARIES}
8379)
8380
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008381endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008382endif (gRPC_BUILD_TESTS)
8383if (gRPC_BUILD_TESTS)
8384
8385add_executable(metrics_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008386 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.cc
8387 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.cc
8388 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.h
8389 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008390 test/cpp/interop/metrics_client.cc
8391 third_party/googletest/src/gtest-all.cc
8392)
8393
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008394protobuf_generate_grpc_cpp(
8395 src/proto/grpc/testing/metrics.proto
8396)
8397
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008398target_include_directories(metrics_client
8399 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8400 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8401 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8402 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008403 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008404 PRIVATE ${ZLIB_ROOT_DIR}
8405 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8406 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8407 PRIVATE third_party/googletest/include
8408 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008409 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008410)
8411
8412target_link_libraries(metrics_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008413 ${_gRPC_PROTOBUF_LIBRARIES}
8414 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008415 grpc++
8416 grpc
8417 gpr
8418 grpc++_test_config
8419 ${_gRPC_GFLAGS_LIBRARIES}
8420)
8421
8422endif (gRPC_BUILD_TESTS)
8423if (gRPC_BUILD_TESTS)
8424
8425add_executable(mock_test
8426 test/cpp/end2end/mock_test.cc
8427 third_party/googletest/src/gtest-all.cc
8428)
8429
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008430
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008431target_include_directories(mock_test
8432 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8433 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8434 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8435 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008436 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008437 PRIVATE ${ZLIB_ROOT_DIR}
8438 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8439 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8440 PRIVATE third_party/googletest/include
8441 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008442 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008443)
8444
8445target_link_libraries(mock_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008446 ${_gRPC_PROTOBUF_LIBRARIES}
8447 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008448 grpc++_test_util
8449 grpc_test_util
8450 grpc++
8451 grpc
8452 gpr_test_util
8453 gpr
8454 ${_gRPC_GFLAGS_LIBRARIES}
8455)
8456
8457endif (gRPC_BUILD_TESTS)
8458if (gRPC_BUILD_TESTS)
8459
8460add_executable(noop-benchmark
8461 test/cpp/microbenchmarks/noop-benchmark.cc
8462 third_party/googletest/src/gtest-all.cc
8463)
8464
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008465
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008466target_include_directories(noop-benchmark
8467 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8468 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8469 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8470 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008471 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008472 PRIVATE ${ZLIB_ROOT_DIR}
8473 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8474 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8475 PRIVATE third_party/googletest/include
8476 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008477 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008478)
8479
8480target_link_libraries(noop-benchmark
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008481 ${_gRPC_PROTOBUF_LIBRARIES}
8482 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008483 benchmark
8484 ${_gRPC_GFLAGS_LIBRARIES}
8485)
8486
8487endif (gRPC_BUILD_TESTS)
8488if (gRPC_BUILD_TESTS)
8489
8490add_executable(proto_server_reflection_test
8491 test/cpp/end2end/proto_server_reflection_test.cc
8492 third_party/googletest/src/gtest-all.cc
8493)
8494
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008495
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008496target_include_directories(proto_server_reflection_test
8497 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8498 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8499 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8500 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008501 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008502 PRIVATE ${ZLIB_ROOT_DIR}
8503 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8504 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8505 PRIVATE third_party/googletest/include
8506 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008507 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008508)
8509
8510target_link_libraries(proto_server_reflection_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008511 ${_gRPC_PROTOBUF_LIBRARIES}
8512 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008513 grpc++_proto_reflection_desc_db
8514 grpc++_reflection
8515 grpc++_test_util
8516 grpc_test_util
8517 grpc++
8518 grpc
8519 gpr_test_util
8520 gpr
8521 ${_gRPC_GFLAGS_LIBRARIES}
8522)
8523
8524endif (gRPC_BUILD_TESTS)
8525if (gRPC_BUILD_TESTS)
Harvey Tuch5f3cfe92017-01-20 11:02:11 -05008526
8527add_executable(proto_utils_test
8528 test/cpp/codegen/proto_utils_test.cc
8529 third_party/googletest/src/gtest-all.cc
8530)
8531
8532
8533target_include_directories(proto_utils_test
8534 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8535 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8536 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8537 PRIVATE ${PROTOBUF_ROOT_DIR}/src
8538 PRIVATE ${BENCHMARK_ROOT_DIR}/include
8539 PRIVATE ${ZLIB_ROOT_DIR}
8540 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8541 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8542 PRIVATE third_party/googletest/include
8543 PRIVATE third_party/googletest
8544 PRIVATE ${_gRPC_PROTO_GENS_DIR}
8545)
8546
8547target_link_libraries(proto_utils_test
8548 ${_gRPC_PROTOBUF_LIBRARIES}
8549 ${_gRPC_ALLTARGETS_LIBRARIES}
8550 grpc++
8551 grpc
8552 ${_gRPC_GFLAGS_LIBRARIES}
8553)
8554
8555endif (gRPC_BUILD_TESTS)
8556if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008557if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008558
8559add_executable(qps_interarrival_test
8560 test/cpp/qps/qps_interarrival_test.cc
8561 third_party/googletest/src/gtest-all.cc
8562)
8563
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008564
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008565target_include_directories(qps_interarrival_test
8566 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8567 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8568 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8569 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008570 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008571 PRIVATE ${ZLIB_ROOT_DIR}
8572 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8573 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8574 PRIVATE third_party/googletest/include
8575 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008576 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008577)
8578
8579target_link_libraries(qps_interarrival_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008580 ${_gRPC_PROTOBUF_LIBRARIES}
8581 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008582 qps
8583 grpc++_test_util
8584 grpc_test_util
8585 grpc++
8586 grpc
8587 gpr_test_util
8588 gpr
8589 ${_gRPC_GFLAGS_LIBRARIES}
8590)
8591
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008592endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008593endif (gRPC_BUILD_TESTS)
8594if (gRPC_BUILD_TESTS)
8595
8596add_executable(qps_json_driver
8597 test/cpp/qps/qps_json_driver.cc
8598 third_party/googletest/src/gtest-all.cc
8599)
8600
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008601
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008602target_include_directories(qps_json_driver
8603 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8604 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8605 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8606 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008607 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008608 PRIVATE ${ZLIB_ROOT_DIR}
8609 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8610 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8611 PRIVATE third_party/googletest/include
8612 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008613 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008614)
8615
8616target_link_libraries(qps_json_driver
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008617 ${_gRPC_PROTOBUF_LIBRARIES}
8618 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008619 qps
8620 grpc++_test_util
8621 grpc_test_util
8622 grpc++
8623 grpc
8624 gpr_test_util
8625 gpr
8626 grpc++_test_config
8627 ${_gRPC_GFLAGS_LIBRARIES}
8628)
8629
8630endif (gRPC_BUILD_TESTS)
8631if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008632if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008633
8634add_executable(qps_openloop_test
8635 test/cpp/qps/qps_openloop_test.cc
8636 third_party/googletest/src/gtest-all.cc
8637)
8638
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008639
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008640target_include_directories(qps_openloop_test
8641 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8642 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8643 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8644 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008645 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008646 PRIVATE ${ZLIB_ROOT_DIR}
8647 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8648 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8649 PRIVATE third_party/googletest/include
8650 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008651 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008652)
8653
8654target_link_libraries(qps_openloop_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008655 ${_gRPC_PROTOBUF_LIBRARIES}
8656 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008657 qps
8658 grpc++_test_util
8659 grpc_test_util
8660 grpc++
8661 grpc
8662 gpr_test_util
8663 gpr
8664 grpc++_test_config
8665 ${_gRPC_GFLAGS_LIBRARIES}
8666)
8667
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008668endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008669endif (gRPC_BUILD_TESTS)
8670if (gRPC_BUILD_TESTS)
8671
8672add_executable(qps_worker
8673 test/cpp/qps/worker.cc
8674 third_party/googletest/src/gtest-all.cc
8675)
8676
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008677
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008678target_include_directories(qps_worker
8679 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8680 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8681 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8682 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008683 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008684 PRIVATE ${ZLIB_ROOT_DIR}
8685 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8686 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8687 PRIVATE third_party/googletest/include
8688 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008689 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008690)
8691
8692target_link_libraries(qps_worker
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008693 ${_gRPC_PROTOBUF_LIBRARIES}
8694 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008695 qps
8696 grpc++_test_util
8697 grpc_test_util
8698 grpc++
8699 grpc
8700 gpr_test_util
8701 gpr
8702 grpc++_test_config
8703 ${_gRPC_GFLAGS_LIBRARIES}
8704)
8705
8706endif (gRPC_BUILD_TESTS)
8707if (gRPC_BUILD_TESTS)
8708
8709add_executable(reconnect_interop_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008710 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
8711 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
8712 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
8713 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
8714 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
8715 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
8716 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
8717 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
8718 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
8719 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
8720 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
8721 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008722 test/cpp/interop/reconnect_interop_client.cc
8723 third_party/googletest/src/gtest-all.cc
8724)
8725
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008726protobuf_generate_grpc_cpp(
8727 src/proto/grpc/testing/empty.proto
8728)
8729protobuf_generate_grpc_cpp(
8730 src/proto/grpc/testing/messages.proto
8731)
8732protobuf_generate_grpc_cpp(
8733 src/proto/grpc/testing/test.proto
8734)
8735
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008736target_include_directories(reconnect_interop_client
8737 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8738 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8739 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8740 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008741 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008742 PRIVATE ${ZLIB_ROOT_DIR}
8743 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8744 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8745 PRIVATE third_party/googletest/include
8746 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008747 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008748)
8749
8750target_link_libraries(reconnect_interop_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008751 ${_gRPC_PROTOBUF_LIBRARIES}
8752 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008753 grpc++_test_util
8754 grpc_test_util
8755 grpc++
8756 grpc
8757 gpr_test_util
8758 gpr
8759 grpc++_test_config
8760 ${_gRPC_GFLAGS_LIBRARIES}
8761)
8762
8763endif (gRPC_BUILD_TESTS)
8764if (gRPC_BUILD_TESTS)
8765
8766add_executable(reconnect_interop_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008767 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
8768 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
8769 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
8770 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
8771 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
8772 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
8773 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
8774 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
8775 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
8776 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
8777 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
8778 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008779 test/cpp/interop/reconnect_interop_server.cc
8780 third_party/googletest/src/gtest-all.cc
8781)
8782
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008783protobuf_generate_grpc_cpp(
8784 src/proto/grpc/testing/empty.proto
8785)
8786protobuf_generate_grpc_cpp(
8787 src/proto/grpc/testing/messages.proto
8788)
8789protobuf_generate_grpc_cpp(
8790 src/proto/grpc/testing/test.proto
8791)
8792
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008793target_include_directories(reconnect_interop_server
8794 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8795 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8796 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8797 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008798 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008799 PRIVATE ${ZLIB_ROOT_DIR}
8800 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8801 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8802 PRIVATE third_party/googletest/include
8803 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008804 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008805)
8806
8807target_link_libraries(reconnect_interop_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008808 ${_gRPC_PROTOBUF_LIBRARIES}
8809 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008810 reconnect_server
8811 test_tcp_server
8812 grpc++_test_util
8813 grpc_test_util
8814 grpc++
8815 grpc
8816 gpr_test_util
8817 gpr
8818 grpc++_test_config
8819 ${_gRPC_GFLAGS_LIBRARIES}
8820)
8821
8822endif (gRPC_BUILD_TESTS)
8823if (gRPC_BUILD_TESTS)
8824
8825add_executable(round_robin_end2end_test
8826 test/cpp/end2end/round_robin_end2end_test.cc
8827 third_party/googletest/src/gtest-all.cc
8828)
8829
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008830
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008831target_include_directories(round_robin_end2end_test
8832 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8833 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8834 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8835 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008836 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008837 PRIVATE ${ZLIB_ROOT_DIR}
8838 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8839 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8840 PRIVATE third_party/googletest/include
8841 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008842 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008843)
8844
8845target_link_libraries(round_robin_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008846 ${_gRPC_PROTOBUF_LIBRARIES}
8847 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008848 grpc++_test_util
8849 grpc_test_util
8850 grpc++
8851 grpc
8852 gpr_test_util
8853 gpr
8854 ${_gRPC_GFLAGS_LIBRARIES}
8855)
8856
8857endif (gRPC_BUILD_TESTS)
8858if (gRPC_BUILD_TESTS)
8859
8860add_executable(secure_auth_context_test
8861 test/cpp/common/secure_auth_context_test.cc
8862 third_party/googletest/src/gtest-all.cc
8863)
8864
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008865
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008866target_include_directories(secure_auth_context_test
8867 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8868 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8869 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8870 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008871 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008872 PRIVATE ${ZLIB_ROOT_DIR}
8873 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8874 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8875 PRIVATE third_party/googletest/include
8876 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008877 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008878)
8879
8880target_link_libraries(secure_auth_context_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008881 ${_gRPC_PROTOBUF_LIBRARIES}
8882 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008883 grpc++_test_util
8884 grpc_test_util
8885 grpc++
8886 grpc
8887 gpr_test_util
8888 gpr
8889 ${_gRPC_GFLAGS_LIBRARIES}
8890)
8891
8892endif (gRPC_BUILD_TESTS)
8893if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008894if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008895
8896add_executable(secure_sync_unary_ping_pong_test
8897 test/cpp/qps/secure_sync_unary_ping_pong_test.cc
8898 third_party/googletest/src/gtest-all.cc
8899)
8900
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008901
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008902target_include_directories(secure_sync_unary_ping_pong_test
8903 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8904 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8905 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8906 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008907 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008908 PRIVATE ${ZLIB_ROOT_DIR}
8909 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8910 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8911 PRIVATE third_party/googletest/include
8912 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008913 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008914)
8915
8916target_link_libraries(secure_sync_unary_ping_pong_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008917 ${_gRPC_PROTOBUF_LIBRARIES}
8918 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008919 qps
8920 grpc++_test_util
8921 grpc_test_util
8922 grpc++
8923 grpc
8924 gpr_test_util
8925 gpr
8926 ${_gRPC_GFLAGS_LIBRARIES}
8927)
8928
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008929endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008930endif (gRPC_BUILD_TESTS)
8931if (gRPC_BUILD_TESTS)
8932
8933add_executable(server_builder_plugin_test
8934 test/cpp/end2end/server_builder_plugin_test.cc
8935 third_party/googletest/src/gtest-all.cc
8936)
8937
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008938
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008939target_include_directories(server_builder_plugin_test
8940 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8941 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8942 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8943 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008944 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008945 PRIVATE ${ZLIB_ROOT_DIR}
8946 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8947 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8948 PRIVATE third_party/googletest/include
8949 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008950 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008951)
8952
8953target_link_libraries(server_builder_plugin_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008954 ${_gRPC_PROTOBUF_LIBRARIES}
8955 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008956 grpc++_test_util
8957 grpc_test_util
8958 grpc++
8959 grpc
8960 gpr_test_util
8961 gpr
8962 ${_gRPC_GFLAGS_LIBRARIES}
8963)
8964
8965endif (gRPC_BUILD_TESTS)
8966if (gRPC_BUILD_TESTS)
8967
8968add_executable(server_context_test_spouse_test
8969 test/cpp/test/server_context_test_spouse_test.cc
8970 third_party/googletest/src/gtest-all.cc
8971)
8972
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008973
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008974target_include_directories(server_context_test_spouse_test
8975 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8976 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8977 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8978 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008979 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008980 PRIVATE ${ZLIB_ROOT_DIR}
8981 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8982 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8983 PRIVATE third_party/googletest/include
8984 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008985 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008986)
8987
8988target_link_libraries(server_context_test_spouse_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008989 ${_gRPC_PROTOBUF_LIBRARIES}
8990 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008991 grpc_test_util
8992 grpc++_test
8993 grpc++
8994 grpc
8995 gpr_test_util
8996 gpr
8997 ${_gRPC_GFLAGS_LIBRARIES}
8998)
8999
9000endif (gRPC_BUILD_TESTS)
9001if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009002if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009003
9004add_executable(server_crash_test
9005 test/cpp/end2end/server_crash_test.cc
9006 third_party/googletest/src/gtest-all.cc
9007)
9008
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009009
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009010target_include_directories(server_crash_test
9011 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9012 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9013 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9014 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009015 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009016 PRIVATE ${ZLIB_ROOT_DIR}
9017 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9018 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9019 PRIVATE third_party/googletest/include
9020 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009021 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009022)
9023
9024target_link_libraries(server_crash_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009025 ${_gRPC_PROTOBUF_LIBRARIES}
9026 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009027 grpc++_test_util
9028 grpc_test_util
9029 grpc++
9030 grpc
9031 gpr_test_util
9032 gpr
9033 ${_gRPC_GFLAGS_LIBRARIES}
9034)
9035
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009036endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009037endif (gRPC_BUILD_TESTS)
9038if (gRPC_BUILD_TESTS)
9039
9040add_executable(server_crash_test_client
9041 test/cpp/end2end/server_crash_test_client.cc
9042 third_party/googletest/src/gtest-all.cc
9043)
9044
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009045
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009046target_include_directories(server_crash_test_client
9047 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9048 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9049 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9050 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009051 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009052 PRIVATE ${ZLIB_ROOT_DIR}
9053 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9054 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9055 PRIVATE third_party/googletest/include
9056 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009057 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009058)
9059
9060target_link_libraries(server_crash_test_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009061 ${_gRPC_PROTOBUF_LIBRARIES}
9062 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009063 grpc++_test_util
9064 grpc_test_util
9065 grpc++
9066 grpc
9067 gpr_test_util
9068 gpr
9069 ${_gRPC_GFLAGS_LIBRARIES}
9070)
9071
9072endif (gRPC_BUILD_TESTS)
9073if (gRPC_BUILD_TESTS)
9074
9075add_executable(shutdown_test
9076 test/cpp/end2end/shutdown_test.cc
9077 third_party/googletest/src/gtest-all.cc
9078)
9079
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009080
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009081target_include_directories(shutdown_test
9082 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9083 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9084 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9085 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009086 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009087 PRIVATE ${ZLIB_ROOT_DIR}
9088 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9089 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9090 PRIVATE third_party/googletest/include
9091 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009092 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009093)
9094
9095target_link_libraries(shutdown_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009096 ${_gRPC_PROTOBUF_LIBRARIES}
9097 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009098 grpc++_test_util
9099 grpc_test_util
9100 grpc++
9101 grpc
9102 gpr_test_util
9103 gpr
9104 ${_gRPC_GFLAGS_LIBRARIES}
9105)
9106
9107endif (gRPC_BUILD_TESTS)
9108if (gRPC_BUILD_TESTS)
9109
9110add_executable(status_test
9111 test/cpp/util/status_test.cc
9112 third_party/googletest/src/gtest-all.cc
9113)
9114
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009115
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009116target_include_directories(status_test
9117 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9118 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9119 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9120 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009121 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009122 PRIVATE ${ZLIB_ROOT_DIR}
9123 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9124 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9125 PRIVATE third_party/googletest/include
9126 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009127 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009128)
9129
9130target_link_libraries(status_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009131 ${_gRPC_PROTOBUF_LIBRARIES}
9132 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009133 grpc_test_util
9134 grpc++
9135 grpc
9136 gpr_test_util
9137 gpr
9138 ${_gRPC_GFLAGS_LIBRARIES}
9139)
9140
9141endif (gRPC_BUILD_TESTS)
9142if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009143if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009144
9145add_executable(streaming_throughput_test
9146 test/cpp/end2end/streaming_throughput_test.cc
9147 third_party/googletest/src/gtest-all.cc
9148)
9149
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009150
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009151target_include_directories(streaming_throughput_test
9152 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9153 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9154 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9155 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009156 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009157 PRIVATE ${ZLIB_ROOT_DIR}
9158 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9159 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9160 PRIVATE third_party/googletest/include
9161 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009162 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009163)
9164
9165target_link_libraries(streaming_throughput_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009166 ${_gRPC_PROTOBUF_LIBRARIES}
9167 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009168 grpc++_test_util
9169 grpc_test_util
9170 grpc++
9171 grpc
9172 gpr_test_util
9173 gpr
9174 ${_gRPC_GFLAGS_LIBRARIES}
9175)
9176
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009177endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009178endif (gRPC_BUILD_TESTS)
9179if (gRPC_BUILD_TESTS)
9180
9181add_executable(stress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009182 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
9183 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
9184 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
9185 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
9186 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
9187 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
9188 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
9189 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
9190 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.cc
9191 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.cc
9192 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.h
9193 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.h
9194 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
9195 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
9196 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
9197 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009198 test/cpp/interop/interop_client.cc
9199 test/cpp/interop/stress_interop_client.cc
9200 test/cpp/interop/stress_test.cc
ncteisen87600842017-01-19 15:40:00 -08009201 test/cpp/util/create_test_channel.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009202 test/cpp/util/metrics_server.cc
9203 third_party/googletest/src/gtest-all.cc
9204)
9205
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009206protobuf_generate_grpc_cpp(
9207 src/proto/grpc/testing/empty.proto
9208)
9209protobuf_generate_grpc_cpp(
9210 src/proto/grpc/testing/messages.proto
9211)
9212protobuf_generate_grpc_cpp(
9213 src/proto/grpc/testing/metrics.proto
9214)
9215protobuf_generate_grpc_cpp(
9216 src/proto/grpc/testing/test.proto
9217)
9218
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009219target_include_directories(stress_test
9220 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9221 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9222 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9223 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009224 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009225 PRIVATE ${ZLIB_ROOT_DIR}
9226 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9227 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9228 PRIVATE third_party/googletest/include
9229 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009230 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009231)
9232
9233target_link_libraries(stress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009234 ${_gRPC_PROTOBUF_LIBRARIES}
9235 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009236 grpc++_test_util
9237 grpc_test_util
9238 grpc++
9239 grpc
9240 gpr_test_util
9241 gpr
9242 grpc++_test_config
9243 ${_gRPC_GFLAGS_LIBRARIES}
9244)
9245
9246endif (gRPC_BUILD_TESTS)
9247if (gRPC_BUILD_TESTS)
9248
9249add_executable(thread_manager_test
9250 test/cpp/thread_manager/thread_manager_test.cc
9251 third_party/googletest/src/gtest-all.cc
9252)
9253
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009254
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009255target_include_directories(thread_manager_test
9256 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9257 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9258 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9259 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009260 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009261 PRIVATE ${ZLIB_ROOT_DIR}
9262 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9263 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9264 PRIVATE third_party/googletest/include
9265 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009266 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009267)
9268
9269target_link_libraries(thread_manager_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009270 ${_gRPC_PROTOBUF_LIBRARIES}
9271 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009272 grpc++
9273 grpc
9274 gpr
9275 grpc++_test_config
9276 ${_gRPC_GFLAGS_LIBRARIES}
9277)
9278
9279endif (gRPC_BUILD_TESTS)
9280if (gRPC_BUILD_TESTS)
9281
9282add_executable(thread_stress_test
9283 test/cpp/end2end/thread_stress_test.cc
9284 third_party/googletest/src/gtest-all.cc
9285)
9286
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009287
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009288target_include_directories(thread_stress_test
9289 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9290 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9291 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9292 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009293 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009294 PRIVATE ${ZLIB_ROOT_DIR}
9295 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9296 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9297 PRIVATE third_party/googletest/include
9298 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009299 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009300)
9301
9302target_link_libraries(thread_stress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009303 ${_gRPC_PROTOBUF_LIBRARIES}
9304 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009305 grpc++_test_util
9306 grpc_test_util
9307 grpc++
9308 grpc
9309 gpr_test_util
9310 gpr
9311 ${_gRPC_GFLAGS_LIBRARIES}
9312)
9313
9314endif (gRPC_BUILD_TESTS)
9315if (gRPC_BUILD_TESTS)
Craig Tiller1bb53712017-02-04 15:39:27 -08009316if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009317
Craig Tiller9a3997c2017-01-30 13:22:33 -08009318add_executable(writes_per_rpc_test
9319 test/cpp/performance/writes_per_rpc_test.cc
9320 third_party/googletest/src/gtest-all.cc
9321)
9322
Craig Tillerc40b3472017-02-03 11:54:26 -08009323
Craig Tiller9a3997c2017-01-30 13:22:33 -08009324target_include_directories(writes_per_rpc_test
9325 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9326 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9327 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9328 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Craig Tillerc40b3472017-02-03 11:54:26 -08009329 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Craig Tiller9a3997c2017-01-30 13:22:33 -08009330 PRIVATE ${ZLIB_ROOT_DIR}
9331 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9332 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9333 PRIVATE third_party/googletest/include
9334 PRIVATE third_party/googletest
Craig Tillerc40b3472017-02-03 11:54:26 -08009335 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Craig Tiller9a3997c2017-01-30 13:22:33 -08009336)
9337
9338target_link_libraries(writes_per_rpc_test
Craig Tillerc40b3472017-02-03 11:54:26 -08009339 ${_gRPC_PROTOBUF_LIBRARIES}
9340 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller9a3997c2017-01-30 13:22:33 -08009341 grpc++_test_util
9342 grpc_test_util
9343 grpc++
9344 grpc
9345 gpr_test_util
9346 gpr
9347 ${_gRPC_GFLAGS_LIBRARIES}
9348)
9349
Craig Tiller1bb53712017-02-04 15:39:27 -08009350endif()
Craig Tiller9a3997c2017-01-30 13:22:33 -08009351endif (gRPC_BUILD_TESTS)
9352if (gRPC_BUILD_TESTS)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009353
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009354add_executable(public_headers_must_be_c89
9355 test/core/surface/public_headers_must_be_c89.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009356)
9357
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009358
9359target_include_directories(public_headers_must_be_c89
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009360 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9361 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9362 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9363 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009364 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009365 PRIVATE ${ZLIB_ROOT_DIR}
9366 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9367 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009368)
9369
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009370target_link_libraries(public_headers_must_be_c89
9371 ${_gRPC_ALLTARGETS_LIBRARIES}
9372 grpc
9373 gpr
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009374)
9375
9376endif (gRPC_BUILD_TESTS)
9377if (gRPC_BUILD_TESTS)
9378
9379add_executable(badreq_bad_client_test
9380 test/core/bad_client/tests/badreq.c
9381)
9382
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009383
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009384target_include_directories(badreq_bad_client_test
9385 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9386 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9387 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9388 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009389 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009390 PRIVATE ${ZLIB_ROOT_DIR}
9391 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9392 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9393)
9394
9395target_link_libraries(badreq_bad_client_test
9396 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009397 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009398 bad_client_test
9399 grpc_test_util_unsecure
9400 grpc_unsecure
9401 gpr_test_util
9402 gpr
9403)
9404
9405endif (gRPC_BUILD_TESTS)
9406if (gRPC_BUILD_TESTS)
9407
9408add_executable(connection_prefix_bad_client_test
9409 test/core/bad_client/tests/connection_prefix.c
9410)
9411
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009412
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009413target_include_directories(connection_prefix_bad_client_test
9414 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9415 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9416 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9417 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009418 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009419 PRIVATE ${ZLIB_ROOT_DIR}
9420 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9421 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9422)
9423
9424target_link_libraries(connection_prefix_bad_client_test
9425 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009426 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009427 bad_client_test
9428 grpc_test_util_unsecure
9429 grpc_unsecure
9430 gpr_test_util
9431 gpr
9432)
9433
9434endif (gRPC_BUILD_TESTS)
9435if (gRPC_BUILD_TESTS)
9436
9437add_executable(head_of_line_blocking_bad_client_test
9438 test/core/bad_client/tests/head_of_line_blocking.c
9439)
9440
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009441
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009442target_include_directories(head_of_line_blocking_bad_client_test
9443 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9444 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9445 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9446 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009447 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009448 PRIVATE ${ZLIB_ROOT_DIR}
9449 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9450 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9451)
9452
9453target_link_libraries(head_of_line_blocking_bad_client_test
9454 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009455 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009456 bad_client_test
9457 grpc_test_util_unsecure
9458 grpc_unsecure
9459 gpr_test_util
9460 gpr
9461)
9462
9463endif (gRPC_BUILD_TESTS)
9464if (gRPC_BUILD_TESTS)
9465
9466add_executable(headers_bad_client_test
9467 test/core/bad_client/tests/headers.c
9468)
9469
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009470
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009471target_include_directories(headers_bad_client_test
9472 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9473 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9474 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9475 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009476 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009477 PRIVATE ${ZLIB_ROOT_DIR}
9478 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9479 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9480)
9481
9482target_link_libraries(headers_bad_client_test
9483 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009484 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009485 bad_client_test
9486 grpc_test_util_unsecure
9487 grpc_unsecure
9488 gpr_test_util
9489 gpr
9490)
9491
9492endif (gRPC_BUILD_TESTS)
9493if (gRPC_BUILD_TESTS)
9494
9495add_executable(initial_settings_frame_bad_client_test
9496 test/core/bad_client/tests/initial_settings_frame.c
9497)
9498
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009499
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009500target_include_directories(initial_settings_frame_bad_client_test
9501 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9502 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9503 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9504 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009505 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009506 PRIVATE ${ZLIB_ROOT_DIR}
9507 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9508 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9509)
9510
9511target_link_libraries(initial_settings_frame_bad_client_test
9512 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009513 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009514 bad_client_test
9515 grpc_test_util_unsecure
9516 grpc_unsecure
9517 gpr_test_util
9518 gpr
9519)
9520
9521endif (gRPC_BUILD_TESTS)
9522if (gRPC_BUILD_TESTS)
9523
9524add_executable(large_metadata_bad_client_test
9525 test/core/bad_client/tests/large_metadata.c
9526)
9527
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009528
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009529target_include_directories(large_metadata_bad_client_test
9530 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9531 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9532 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9533 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009534 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009535 PRIVATE ${ZLIB_ROOT_DIR}
9536 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9537 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9538)
9539
9540target_link_libraries(large_metadata_bad_client_test
9541 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009542 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009543 bad_client_test
9544 grpc_test_util_unsecure
9545 grpc_unsecure
9546 gpr_test_util
9547 gpr
9548)
9549
9550endif (gRPC_BUILD_TESTS)
9551if (gRPC_BUILD_TESTS)
9552
9553add_executable(server_registered_method_bad_client_test
9554 test/core/bad_client/tests/server_registered_method.c
9555)
9556
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009557
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009558target_include_directories(server_registered_method_bad_client_test
9559 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9560 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9561 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9562 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009563 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009564 PRIVATE ${ZLIB_ROOT_DIR}
9565 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9566 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9567)
9568
9569target_link_libraries(server_registered_method_bad_client_test
9570 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009571 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009572 bad_client_test
9573 grpc_test_util_unsecure
9574 grpc_unsecure
9575 gpr_test_util
9576 gpr
9577)
9578
9579endif (gRPC_BUILD_TESTS)
9580if (gRPC_BUILD_TESTS)
9581
9582add_executable(simple_request_bad_client_test
9583 test/core/bad_client/tests/simple_request.c
9584)
9585
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009586
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009587target_include_directories(simple_request_bad_client_test
9588 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9589 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9590 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9591 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009592 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009593 PRIVATE ${ZLIB_ROOT_DIR}
9594 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9595 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9596)
9597
9598target_link_libraries(simple_request_bad_client_test
9599 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009600 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009601 bad_client_test
9602 grpc_test_util_unsecure
9603 grpc_unsecure
9604 gpr_test_util
9605 gpr
9606)
9607
9608endif (gRPC_BUILD_TESTS)
9609if (gRPC_BUILD_TESTS)
9610
9611add_executable(unknown_frame_bad_client_test
9612 test/core/bad_client/tests/unknown_frame.c
9613)
9614
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009615
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009616target_include_directories(unknown_frame_bad_client_test
9617 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9618 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9619 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9620 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009621 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009622 PRIVATE ${ZLIB_ROOT_DIR}
9623 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9624 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9625)
9626
9627target_link_libraries(unknown_frame_bad_client_test
9628 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009629 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009630 bad_client_test
9631 grpc_test_util_unsecure
9632 grpc_unsecure
9633 gpr_test_util
9634 gpr
9635)
9636
9637endif (gRPC_BUILD_TESTS)
9638if (gRPC_BUILD_TESTS)
9639
9640add_executable(window_overflow_bad_client_test
9641 test/core/bad_client/tests/window_overflow.c
9642)
9643
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009644
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009645target_include_directories(window_overflow_bad_client_test
9646 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9647 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9648 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9649 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009650 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009651 PRIVATE ${ZLIB_ROOT_DIR}
9652 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9653 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9654)
9655
9656target_link_libraries(window_overflow_bad_client_test
9657 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009658 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009659 bad_client_test
9660 grpc_test_util_unsecure
9661 grpc_unsecure
9662 gpr_test_util
9663 gpr
9664)
9665
9666endif (gRPC_BUILD_TESTS)
9667if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009668if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009669
9670add_executable(bad_ssl_cert_server
9671 test/core/bad_ssl/servers/cert.c
9672)
9673
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009674
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009675target_include_directories(bad_ssl_cert_server
9676 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9677 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9678 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9679 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009680 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009681 PRIVATE ${ZLIB_ROOT_DIR}
9682 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9683 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9684)
9685
9686target_link_libraries(bad_ssl_cert_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009687 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009688 bad_ssl_test_server
9689 grpc_test_util
9690 grpc
9691 gpr_test_util
9692 gpr
9693)
9694
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009695endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009696endif (gRPC_BUILD_TESTS)
9697if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009698if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009699
9700add_executable(bad_ssl_cert_test
9701 test/core/bad_ssl/bad_ssl_test.c
9702)
9703
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009704
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009705target_include_directories(bad_ssl_cert_test
9706 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9707 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9708 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9709 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009710 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009711 PRIVATE ${ZLIB_ROOT_DIR}
9712 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9713 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9714)
9715
9716target_link_libraries(bad_ssl_cert_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009717 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009718 grpc_test_util
9719 grpc
9720 gpr_test_util
9721 gpr
9722)
9723
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009724endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009725endif (gRPC_BUILD_TESTS)
9726if (gRPC_BUILD_TESTS)
9727
9728add_executable(h2_census_test
9729 test/core/end2end/fixtures/h2_census.c
9730)
9731
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009732
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009733target_include_directories(h2_census_test
9734 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9735 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9736 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9737 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009738 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009739 PRIVATE ${ZLIB_ROOT_DIR}
9740 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9741 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9742)
9743
9744target_link_libraries(h2_census_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009745 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009746 end2end_tests
9747 grpc_test_util
9748 grpc
9749 gpr_test_util
9750 gpr
9751)
9752
9753endif (gRPC_BUILD_TESTS)
9754if (gRPC_BUILD_TESTS)
9755
9756add_executable(h2_compress_test
9757 test/core/end2end/fixtures/h2_compress.c
9758)
9759
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009760
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009761target_include_directories(h2_compress_test
9762 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9763 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9764 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9765 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009766 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009767 PRIVATE ${ZLIB_ROOT_DIR}
9768 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9769 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9770)
9771
9772target_link_libraries(h2_compress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009773 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009774 end2end_tests
9775 grpc_test_util
9776 grpc
9777 gpr_test_util
9778 gpr
9779)
9780
9781endif (gRPC_BUILD_TESTS)
9782if (gRPC_BUILD_TESTS)
9783
9784add_executable(h2_fakesec_test
9785 test/core/end2end/fixtures/h2_fakesec.c
9786)
9787
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009788
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009789target_include_directories(h2_fakesec_test
9790 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9791 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9792 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9793 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009794 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009795 PRIVATE ${ZLIB_ROOT_DIR}
9796 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9797 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9798)
9799
9800target_link_libraries(h2_fakesec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009801 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009802 end2end_tests
9803 grpc_test_util
9804 grpc
9805 gpr_test_util
9806 gpr
9807)
9808
9809endif (gRPC_BUILD_TESTS)
9810if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009811if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009812
9813add_executable(h2_fd_test
9814 test/core/end2end/fixtures/h2_fd.c
9815)
9816
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009817
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009818target_include_directories(h2_fd_test
9819 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9820 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9821 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9822 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009823 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009824 PRIVATE ${ZLIB_ROOT_DIR}
9825 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9826 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9827)
9828
9829target_link_libraries(h2_fd_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009830 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009831 end2end_tests
9832 grpc_test_util
9833 grpc
9834 gpr_test_util
9835 gpr
9836)
9837
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009838endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009839endif (gRPC_BUILD_TESTS)
9840if (gRPC_BUILD_TESTS)
9841
9842add_executable(h2_full_test
9843 test/core/end2end/fixtures/h2_full.c
9844)
9845
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009846
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009847target_include_directories(h2_full_test
9848 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9849 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9850 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9851 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009852 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009853 PRIVATE ${ZLIB_ROOT_DIR}
9854 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9855 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9856)
9857
9858target_link_libraries(h2_full_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009859 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009860 end2end_tests
9861 grpc_test_util
9862 grpc
9863 gpr_test_util
9864 gpr
9865)
9866
9867endif (gRPC_BUILD_TESTS)
9868if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009869if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009870
9871add_executable(h2_full+pipe_test
9872 test/core/end2end/fixtures/h2_full+pipe.c
9873)
9874
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009875
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009876target_include_directories(h2_full+pipe_test
9877 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9878 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9879 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9880 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009881 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009882 PRIVATE ${ZLIB_ROOT_DIR}
9883 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9884 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9885)
9886
9887target_link_libraries(h2_full+pipe_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009888 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009889 end2end_tests
9890 grpc_test_util
9891 grpc
9892 gpr_test_util
9893 gpr
9894)
9895
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009896endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009897endif (gRPC_BUILD_TESTS)
9898if (gRPC_BUILD_TESTS)
9899
9900add_executable(h2_full+trace_test
9901 test/core/end2end/fixtures/h2_full+trace.c
9902)
9903
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009904
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009905target_include_directories(h2_full+trace_test
9906 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9907 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9908 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9909 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009910 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009911 PRIVATE ${ZLIB_ROOT_DIR}
9912 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9913 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9914)
9915
9916target_link_libraries(h2_full+trace_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009917 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009918 end2end_tests
9919 grpc_test_util
9920 grpc
9921 gpr_test_util
9922 gpr
9923)
9924
9925endif (gRPC_BUILD_TESTS)
9926if (gRPC_BUILD_TESTS)
9927
9928add_executable(h2_http_proxy_test
9929 test/core/end2end/fixtures/h2_http_proxy.c
9930)
9931
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009932
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009933target_include_directories(h2_http_proxy_test
9934 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9935 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9936 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9937 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009938 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009939 PRIVATE ${ZLIB_ROOT_DIR}
9940 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9941 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9942)
9943
9944target_link_libraries(h2_http_proxy_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009945 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009946 end2end_tests
9947 grpc_test_util
9948 grpc
9949 gpr_test_util
9950 gpr
9951)
9952
9953endif (gRPC_BUILD_TESTS)
9954if (gRPC_BUILD_TESTS)
9955
9956add_executable(h2_load_reporting_test
9957 test/core/end2end/fixtures/h2_load_reporting.c
9958)
9959
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009960
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009961target_include_directories(h2_load_reporting_test
9962 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9963 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9964 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9965 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009966 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009967 PRIVATE ${ZLIB_ROOT_DIR}
9968 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9969 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9970)
9971
9972target_link_libraries(h2_load_reporting_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009973 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009974 end2end_tests
9975 grpc_test_util
9976 grpc
9977 gpr_test_util
9978 gpr
9979)
9980
9981endif (gRPC_BUILD_TESTS)
9982if (gRPC_BUILD_TESTS)
9983
9984add_executable(h2_oauth2_test
9985 test/core/end2end/fixtures/h2_oauth2.c
9986)
9987
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009988
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009989target_include_directories(h2_oauth2_test
9990 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9991 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9992 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9993 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009994 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009995 PRIVATE ${ZLIB_ROOT_DIR}
9996 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9997 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9998)
9999
10000target_link_libraries(h2_oauth2_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010001 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010002 end2end_tests
10003 grpc_test_util
10004 grpc
10005 gpr_test_util
10006 gpr
10007)
10008
10009endif (gRPC_BUILD_TESTS)
10010if (gRPC_BUILD_TESTS)
10011
10012add_executable(h2_proxy_test
10013 test/core/end2end/fixtures/h2_proxy.c
10014)
10015
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010016
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010017target_include_directories(h2_proxy_test
10018 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10019 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10020 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10021 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010022 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010023 PRIVATE ${ZLIB_ROOT_DIR}
10024 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10025 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10026)
10027
10028target_link_libraries(h2_proxy_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010029 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010030 end2end_tests
10031 grpc_test_util
10032 grpc
10033 gpr_test_util
10034 gpr
10035)
10036
10037endif (gRPC_BUILD_TESTS)
10038if (gRPC_BUILD_TESTS)
10039
10040add_executable(h2_sockpair_test
10041 test/core/end2end/fixtures/h2_sockpair.c
10042)
10043
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010044
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010045target_include_directories(h2_sockpair_test
10046 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10047 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10048 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10049 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010050 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010051 PRIVATE ${ZLIB_ROOT_DIR}
10052 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10053 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10054)
10055
10056target_link_libraries(h2_sockpair_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010057 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010058 end2end_tests
10059 grpc_test_util
10060 grpc
10061 gpr_test_util
10062 gpr
10063)
10064
10065endif (gRPC_BUILD_TESTS)
10066if (gRPC_BUILD_TESTS)
10067
10068add_executable(h2_sockpair+trace_test
10069 test/core/end2end/fixtures/h2_sockpair+trace.c
10070)
10071
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010072
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010073target_include_directories(h2_sockpair+trace_test
10074 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10075 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10076 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10077 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010078 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010079 PRIVATE ${ZLIB_ROOT_DIR}
10080 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10081 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10082)
10083
10084target_link_libraries(h2_sockpair+trace_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010085 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010086 end2end_tests
10087 grpc_test_util
10088 grpc
10089 gpr_test_util
10090 gpr
10091)
10092
10093endif (gRPC_BUILD_TESTS)
10094if (gRPC_BUILD_TESTS)
10095
10096add_executable(h2_sockpair_1byte_test
10097 test/core/end2end/fixtures/h2_sockpair_1byte.c
10098)
10099
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010100
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010101target_include_directories(h2_sockpair_1byte_test
10102 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10103 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10104 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10105 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010106 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010107 PRIVATE ${ZLIB_ROOT_DIR}
10108 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10109 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10110)
10111
10112target_link_libraries(h2_sockpair_1byte_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010113 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010114 end2end_tests
10115 grpc_test_util
10116 grpc
10117 gpr_test_util
10118 gpr
10119)
10120
10121endif (gRPC_BUILD_TESTS)
10122if (gRPC_BUILD_TESTS)
10123
10124add_executable(h2_ssl_test
10125 test/core/end2end/fixtures/h2_ssl.c
10126)
10127
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010128
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010129target_include_directories(h2_ssl_test
10130 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10131 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10132 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10133 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010134 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010135 PRIVATE ${ZLIB_ROOT_DIR}
10136 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10137 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10138)
10139
10140target_link_libraries(h2_ssl_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010141 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010142 end2end_tests
10143 grpc_test_util
10144 grpc
10145 gpr_test_util
10146 gpr
10147)
10148
10149endif (gRPC_BUILD_TESTS)
10150if (gRPC_BUILD_TESTS)
10151
10152add_executable(h2_ssl_cert_test
10153 test/core/end2end/fixtures/h2_ssl_cert.c
10154)
10155
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010156
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010157target_include_directories(h2_ssl_cert_test
10158 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10159 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10160 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10161 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010162 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010163 PRIVATE ${ZLIB_ROOT_DIR}
10164 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10165 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10166)
10167
10168target_link_libraries(h2_ssl_cert_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010169 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010170 end2end_tests
10171 grpc_test_util
10172 grpc
10173 gpr_test_util
10174 gpr
10175)
10176
10177endif (gRPC_BUILD_TESTS)
10178if (gRPC_BUILD_TESTS)
10179
10180add_executable(h2_ssl_proxy_test
10181 test/core/end2end/fixtures/h2_ssl_proxy.c
10182)
10183
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010184
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010185target_include_directories(h2_ssl_proxy_test
10186 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10187 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10188 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10189 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010190 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010191 PRIVATE ${ZLIB_ROOT_DIR}
10192 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10193 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10194)
10195
10196target_link_libraries(h2_ssl_proxy_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010197 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010198 end2end_tests
10199 grpc_test_util
10200 grpc
10201 gpr_test_util
10202 gpr
10203)
10204
10205endif (gRPC_BUILD_TESTS)
10206if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010207if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010208
10209add_executable(h2_uds_test
10210 test/core/end2end/fixtures/h2_uds.c
10211)
10212
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010213
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010214target_include_directories(h2_uds_test
10215 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10216 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10217 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10218 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010219 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010220 PRIVATE ${ZLIB_ROOT_DIR}
10221 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10222 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10223)
10224
10225target_link_libraries(h2_uds_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010226 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010227 end2end_tests
10228 grpc_test_util
10229 grpc
10230 gpr_test_util
10231 gpr
10232)
10233
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010234endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010235endif (gRPC_BUILD_TESTS)
10236if (gRPC_BUILD_TESTS)
10237
10238add_executable(h2_census_nosec_test
10239 test/core/end2end/fixtures/h2_census.c
10240)
10241
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010242
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010243target_include_directories(h2_census_nosec_test
10244 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10245 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10246 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10247 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010248 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010249 PRIVATE ${ZLIB_ROOT_DIR}
10250 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10251 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10252)
10253
10254target_link_libraries(h2_census_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010255 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010256 end2end_nosec_tests
10257 grpc_test_util_unsecure
10258 grpc_unsecure
10259 gpr_test_util
10260 gpr
10261)
10262
10263endif (gRPC_BUILD_TESTS)
10264if (gRPC_BUILD_TESTS)
10265
10266add_executable(h2_compress_nosec_test
10267 test/core/end2end/fixtures/h2_compress.c
10268)
10269
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010270
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010271target_include_directories(h2_compress_nosec_test
10272 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10273 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10274 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10275 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010276 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010277 PRIVATE ${ZLIB_ROOT_DIR}
10278 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10279 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10280)
10281
10282target_link_libraries(h2_compress_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010283 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010284 end2end_nosec_tests
10285 grpc_test_util_unsecure
10286 grpc_unsecure
10287 gpr_test_util
10288 gpr
10289)
10290
10291endif (gRPC_BUILD_TESTS)
10292if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010293if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010294
10295add_executable(h2_fd_nosec_test
10296 test/core/end2end/fixtures/h2_fd.c
10297)
10298
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010299
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010300target_include_directories(h2_fd_nosec_test
10301 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10302 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10303 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10304 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010305 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010306 PRIVATE ${ZLIB_ROOT_DIR}
10307 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10308 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10309)
10310
10311target_link_libraries(h2_fd_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010312 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010313 end2end_nosec_tests
10314 grpc_test_util_unsecure
10315 grpc_unsecure
10316 gpr_test_util
10317 gpr
10318)
10319
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010320endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010321endif (gRPC_BUILD_TESTS)
10322if (gRPC_BUILD_TESTS)
10323
10324add_executable(h2_full_nosec_test
10325 test/core/end2end/fixtures/h2_full.c
10326)
10327
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010328
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010329target_include_directories(h2_full_nosec_test
10330 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10331 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10332 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10333 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010334 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010335 PRIVATE ${ZLIB_ROOT_DIR}
10336 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10337 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10338)
10339
10340target_link_libraries(h2_full_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010341 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010342 end2end_nosec_tests
10343 grpc_test_util_unsecure
10344 grpc_unsecure
10345 gpr_test_util
10346 gpr
10347)
10348
10349endif (gRPC_BUILD_TESTS)
10350if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010351if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010352
10353add_executable(h2_full+pipe_nosec_test
10354 test/core/end2end/fixtures/h2_full+pipe.c
10355)
10356
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010357
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010358target_include_directories(h2_full+pipe_nosec_test
10359 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10360 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10361 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10362 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010363 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010364 PRIVATE ${ZLIB_ROOT_DIR}
10365 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10366 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10367)
10368
10369target_link_libraries(h2_full+pipe_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010370 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010371 end2end_nosec_tests
10372 grpc_test_util_unsecure
10373 grpc_unsecure
10374 gpr_test_util
10375 gpr
10376)
10377
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010378endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010379endif (gRPC_BUILD_TESTS)
10380if (gRPC_BUILD_TESTS)
10381
10382add_executable(h2_full+trace_nosec_test
10383 test/core/end2end/fixtures/h2_full+trace.c
10384)
10385
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010386
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010387target_include_directories(h2_full+trace_nosec_test
10388 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10389 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10390 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10391 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010392 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010393 PRIVATE ${ZLIB_ROOT_DIR}
10394 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10395 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10396)
10397
10398target_link_libraries(h2_full+trace_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010399 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010400 end2end_nosec_tests
10401 grpc_test_util_unsecure
10402 grpc_unsecure
10403 gpr_test_util
10404 gpr
10405)
10406
10407endif (gRPC_BUILD_TESTS)
10408if (gRPC_BUILD_TESTS)
10409
10410add_executable(h2_http_proxy_nosec_test
10411 test/core/end2end/fixtures/h2_http_proxy.c
10412)
10413
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010414
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010415target_include_directories(h2_http_proxy_nosec_test
10416 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10417 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10418 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10419 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010420 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010421 PRIVATE ${ZLIB_ROOT_DIR}
10422 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10423 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10424)
10425
10426target_link_libraries(h2_http_proxy_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010427 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010428 end2end_nosec_tests
10429 grpc_test_util_unsecure
10430 grpc_unsecure
10431 gpr_test_util
10432 gpr
10433)
10434
10435endif (gRPC_BUILD_TESTS)
10436if (gRPC_BUILD_TESTS)
10437
10438add_executable(h2_load_reporting_nosec_test
10439 test/core/end2end/fixtures/h2_load_reporting.c
10440)
10441
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010442
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010443target_include_directories(h2_load_reporting_nosec_test
10444 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10445 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10446 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10447 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010448 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010449 PRIVATE ${ZLIB_ROOT_DIR}
10450 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10451 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10452)
10453
10454target_link_libraries(h2_load_reporting_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010455 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010456 end2end_nosec_tests
10457 grpc_test_util_unsecure
10458 grpc_unsecure
10459 gpr_test_util
10460 gpr
10461)
10462
10463endif (gRPC_BUILD_TESTS)
10464if (gRPC_BUILD_TESTS)
10465
10466add_executable(h2_proxy_nosec_test
10467 test/core/end2end/fixtures/h2_proxy.c
10468)
10469
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010470
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010471target_include_directories(h2_proxy_nosec_test
10472 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10473 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10474 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10475 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010476 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010477 PRIVATE ${ZLIB_ROOT_DIR}
10478 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10479 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10480)
10481
10482target_link_libraries(h2_proxy_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010483 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010484 end2end_nosec_tests
10485 grpc_test_util_unsecure
10486 grpc_unsecure
10487 gpr_test_util
10488 gpr
10489)
10490
10491endif (gRPC_BUILD_TESTS)
10492if (gRPC_BUILD_TESTS)
10493
10494add_executable(h2_sockpair_nosec_test
10495 test/core/end2end/fixtures/h2_sockpair.c
10496)
10497
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010498
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010499target_include_directories(h2_sockpair_nosec_test
10500 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10501 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10502 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10503 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010504 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010505 PRIVATE ${ZLIB_ROOT_DIR}
10506 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10507 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10508)
10509
10510target_link_libraries(h2_sockpair_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010511 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010512 end2end_nosec_tests
10513 grpc_test_util_unsecure
10514 grpc_unsecure
10515 gpr_test_util
10516 gpr
10517)
10518
10519endif (gRPC_BUILD_TESTS)
10520if (gRPC_BUILD_TESTS)
10521
10522add_executable(h2_sockpair+trace_nosec_test
10523 test/core/end2end/fixtures/h2_sockpair+trace.c
10524)
10525
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010526
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010527target_include_directories(h2_sockpair+trace_nosec_test
10528 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10529 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10530 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10531 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010532 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010533 PRIVATE ${ZLIB_ROOT_DIR}
10534 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10535 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10536)
10537
10538target_link_libraries(h2_sockpair+trace_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010539 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010540 end2end_nosec_tests
10541 grpc_test_util_unsecure
10542 grpc_unsecure
10543 gpr_test_util
10544 gpr
10545)
10546
10547endif (gRPC_BUILD_TESTS)
10548if (gRPC_BUILD_TESTS)
10549
10550add_executable(h2_sockpair_1byte_nosec_test
10551 test/core/end2end/fixtures/h2_sockpair_1byte.c
10552)
10553
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010554
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010555target_include_directories(h2_sockpair_1byte_nosec_test
10556 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10557 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10558 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10559 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010560 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010561 PRIVATE ${ZLIB_ROOT_DIR}
10562 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10563 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10564)
10565
10566target_link_libraries(h2_sockpair_1byte_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010567 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010568 end2end_nosec_tests
10569 grpc_test_util_unsecure
10570 grpc_unsecure
10571 gpr_test_util
10572 gpr
10573)
10574
10575endif (gRPC_BUILD_TESTS)
10576if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010577if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010578
10579add_executable(h2_uds_nosec_test
10580 test/core/end2end/fixtures/h2_uds.c
10581)
10582
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010583
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010584target_include_directories(h2_uds_nosec_test
10585 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10586 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10587 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10588 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010589 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010590 PRIVATE ${ZLIB_ROOT_DIR}
10591 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10592 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10593)
10594
10595target_link_libraries(h2_uds_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010596 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010597 end2end_nosec_tests
10598 grpc_test_util_unsecure
10599 grpc_unsecure
10600 gpr_test_util
10601 gpr
10602)
10603
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010604endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010605endif (gRPC_BUILD_TESTS)
10606if (gRPC_BUILD_TESTS)
10607
10608add_executable(api_fuzzer_one_entry
10609 test/core/end2end/fuzzers/api_fuzzer.c
10610 test/core/util/one_corpus_entry_fuzzer.c
10611)
10612
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010613
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010614target_include_directories(api_fuzzer_one_entry
10615 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10616 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10617 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10618 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010619 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010620 PRIVATE ${ZLIB_ROOT_DIR}
10621 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10622 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10623)
10624
10625target_link_libraries(api_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010626 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010627 grpc_test_util
10628 grpc
10629 gpr_test_util
10630 gpr
10631)
10632
10633endif (gRPC_BUILD_TESTS)
10634if (gRPC_BUILD_TESTS)
10635
10636add_executable(client_fuzzer_one_entry
10637 test/core/end2end/fuzzers/client_fuzzer.c
10638 test/core/util/one_corpus_entry_fuzzer.c
10639)
10640
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010641
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010642target_include_directories(client_fuzzer_one_entry
10643 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10644 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10645 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10646 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010647 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010648 PRIVATE ${ZLIB_ROOT_DIR}
10649 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10650 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10651)
10652
10653target_link_libraries(client_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010654 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010655 grpc_test_util
10656 grpc
10657 gpr_test_util
10658 gpr
10659)
10660
10661endif (gRPC_BUILD_TESTS)
10662if (gRPC_BUILD_TESTS)
10663
10664add_executable(hpack_parser_fuzzer_test_one_entry
10665 test/core/transport/chttp2/hpack_parser_fuzzer_test.c
10666 test/core/util/one_corpus_entry_fuzzer.c
10667)
10668
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010669
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010670target_include_directories(hpack_parser_fuzzer_test_one_entry
10671 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10672 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10673 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10674 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010675 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010676 PRIVATE ${ZLIB_ROOT_DIR}
10677 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10678 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10679)
10680
10681target_link_libraries(hpack_parser_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010682 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010683 grpc_test_util
10684 grpc
10685 gpr_test_util
10686 gpr
10687)
10688
10689endif (gRPC_BUILD_TESTS)
10690if (gRPC_BUILD_TESTS)
10691
10692add_executable(http_request_fuzzer_test_one_entry
10693 test/core/http/request_fuzzer.c
10694 test/core/util/one_corpus_entry_fuzzer.c
10695)
10696
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010697
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010698target_include_directories(http_request_fuzzer_test_one_entry
10699 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10700 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10701 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10702 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010703 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010704 PRIVATE ${ZLIB_ROOT_DIR}
10705 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10706 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10707)
10708
10709target_link_libraries(http_request_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010710 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010711 grpc_test_util
10712 grpc
10713 gpr_test_util
10714 gpr
10715)
10716
10717endif (gRPC_BUILD_TESTS)
10718if (gRPC_BUILD_TESTS)
10719
10720add_executable(http_response_fuzzer_test_one_entry
10721 test/core/http/response_fuzzer.c
10722 test/core/util/one_corpus_entry_fuzzer.c
10723)
10724
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010725
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010726target_include_directories(http_response_fuzzer_test_one_entry
10727 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10728 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10729 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10730 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010731 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010732 PRIVATE ${ZLIB_ROOT_DIR}
10733 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10734 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10735)
10736
10737target_link_libraries(http_response_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010738 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010739 grpc_test_util
10740 grpc
10741 gpr_test_util
10742 gpr
10743)
10744
10745endif (gRPC_BUILD_TESTS)
10746if (gRPC_BUILD_TESTS)
10747
10748add_executable(json_fuzzer_test_one_entry
10749 test/core/json/fuzzer.c
10750 test/core/util/one_corpus_entry_fuzzer.c
10751)
10752
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010753
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010754target_include_directories(json_fuzzer_test_one_entry
10755 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10756 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10757 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10758 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010759 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010760 PRIVATE ${ZLIB_ROOT_DIR}
10761 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10762 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10763)
10764
10765target_link_libraries(json_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010766 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010767 grpc_test_util
10768 grpc
10769 gpr_test_util
10770 gpr
10771)
10772
10773endif (gRPC_BUILD_TESTS)
10774if (gRPC_BUILD_TESTS)
10775
10776add_executable(nanopb_fuzzer_response_test_one_entry
10777 test/core/nanopb/fuzzer_response.c
10778 test/core/util/one_corpus_entry_fuzzer.c
10779)
10780
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010781
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010782target_include_directories(nanopb_fuzzer_response_test_one_entry
10783 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10784 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10785 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10786 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010787 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010788 PRIVATE ${ZLIB_ROOT_DIR}
10789 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10790 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10791)
10792
10793target_link_libraries(nanopb_fuzzer_response_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010794 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010795 grpc_test_util
10796 grpc
10797 gpr_test_util
10798 gpr
10799)
10800
10801endif (gRPC_BUILD_TESTS)
10802if (gRPC_BUILD_TESTS)
10803
10804add_executable(nanopb_fuzzer_serverlist_test_one_entry
10805 test/core/nanopb/fuzzer_serverlist.c
10806 test/core/util/one_corpus_entry_fuzzer.c
10807)
10808
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010809
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010810target_include_directories(nanopb_fuzzer_serverlist_test_one_entry
10811 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10812 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10813 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10814 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010815 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010816 PRIVATE ${ZLIB_ROOT_DIR}
10817 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10818 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10819)
10820
10821target_link_libraries(nanopb_fuzzer_serverlist_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010822 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010823 grpc_test_util
10824 grpc
10825 gpr_test_util
10826 gpr
10827)
10828
10829endif (gRPC_BUILD_TESTS)
10830if (gRPC_BUILD_TESTS)
10831
10832add_executable(percent_decode_fuzzer_one_entry
10833 test/core/slice/percent_decode_fuzzer.c
10834 test/core/util/one_corpus_entry_fuzzer.c
10835)
10836
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010837
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010838target_include_directories(percent_decode_fuzzer_one_entry
10839 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10840 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10841 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10842 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010843 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010844 PRIVATE ${ZLIB_ROOT_DIR}
10845 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10846 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10847)
10848
10849target_link_libraries(percent_decode_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010850 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010851 grpc_test_util
10852 grpc
10853 gpr_test_util
10854 gpr
10855)
10856
10857endif (gRPC_BUILD_TESTS)
10858if (gRPC_BUILD_TESTS)
10859
10860add_executable(percent_encode_fuzzer_one_entry
10861 test/core/slice/percent_encode_fuzzer.c
10862 test/core/util/one_corpus_entry_fuzzer.c
10863)
10864
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010865
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010866target_include_directories(percent_encode_fuzzer_one_entry
10867 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10868 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10869 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10870 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010871 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010872 PRIVATE ${ZLIB_ROOT_DIR}
10873 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10874 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10875)
10876
10877target_link_libraries(percent_encode_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010878 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010879 grpc_test_util
10880 grpc
10881 gpr_test_util
10882 gpr
10883)
10884
10885endif (gRPC_BUILD_TESTS)
10886if (gRPC_BUILD_TESTS)
10887
10888add_executable(server_fuzzer_one_entry
10889 test/core/end2end/fuzzers/server_fuzzer.c
10890 test/core/util/one_corpus_entry_fuzzer.c
10891)
10892
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010893
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010894target_include_directories(server_fuzzer_one_entry
10895 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10896 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10897 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10898 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010899 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010900 PRIVATE ${ZLIB_ROOT_DIR}
10901 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10902 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10903)
10904
10905target_link_libraries(server_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010906 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010907 grpc_test_util
10908 grpc
10909 gpr_test_util
10910 gpr
10911)
10912
10913endif (gRPC_BUILD_TESTS)
10914if (gRPC_BUILD_TESTS)
10915
10916add_executable(ssl_server_fuzzer_one_entry
10917 test/core/security/ssl_server_fuzzer.c
10918 test/core/util/one_corpus_entry_fuzzer.c
10919)
10920
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010921
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010922target_include_directories(ssl_server_fuzzer_one_entry
10923 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10924 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10925 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10926 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010927 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010928 PRIVATE ${ZLIB_ROOT_DIR}
10929 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10930 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10931)
10932
10933target_link_libraries(ssl_server_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010934 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010935 grpc_test_util
10936 grpc
10937 gpr_test_util
10938 gpr
10939)
10940
10941endif (gRPC_BUILD_TESTS)
10942if (gRPC_BUILD_TESTS)
10943
10944add_executable(uri_fuzzer_test_one_entry
10945 test/core/client_channel/uri_fuzzer_test.c
10946 test/core/util/one_corpus_entry_fuzzer.c
10947)
10948
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010949
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010950target_include_directories(uri_fuzzer_test_one_entry
10951 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10952 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10953 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10954 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010955 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010956 PRIVATE ${ZLIB_ROOT_DIR}
10957 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10958 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10959)
10960
10961target_link_libraries(uri_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010962 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010963 grpc_test_util
10964 grpc
10965 gpr_test_util
10966 gpr
10967)
10968
10969endif (gRPC_BUILD_TESTS)
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010970
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010971
10972
10973
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +020010974
10975
10976
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030010977foreach(_config gRPCConfig gRPCConfigVersion)
10978 configure_file(tools/cmake/${_config}.cmake.in
10979 ${_config}.cmake @ONLY)
10980 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
10981 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
10982 )
10983endforeach()