blob: e205a5764cfeac4880a11e5fe8c5ee580f642885 [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#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +02008# Copyright 2015 gRPC authors.
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01009#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020010# Licensed under the Apache License, Version 2.0 (the "License");
11# you may not use this file except in compliance with the License.
12# You may obtain a copy of the License at
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010013#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020014# http://www.apache.org/licenses/LICENSE-2.0
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010015#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020016# Unless required by applicable law or agreed to in writing, software
17# distributed under the License is distributed on an "AS IS" BASIS,
18# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19# See the License for the specific language governing permissions and
20# limitations under the License.
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010021
22
23
24cmake_minimum_required(VERSION 2.8)
25
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010026set(PACKAGE_NAME "grpc")
Srini Polavarapu96874472018-06-27 11:55:26 -070027set(PACKAGE_VERSION "1.13.0")
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010028set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
29set(PACKAGE_TARNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}")
30set(PACKAGE_BUGREPORT "https://github.com/grpc/grpc/issues/")
31project(${PACKAGE_NAME} C CXX)
32
Stefan Hacker471a5dc2018-01-14 13:38:20 +010033set(gRPC_INSTALL_BINDIR "bin" CACHE STRING "Installation directory for executables")
34set(gRPC_INSTALL_LIBDIR "lib" CACHE STRING "Installation directory for libraries")
35set(gRPC_INSTALL_INCLUDEDIR "include" CACHE STRING "Installation directory for headers")
36set(gRPC_INSTALL_CMAKEDIR "lib/cmake/${PACKAGE_NAME}" CACHE STRING "Installation directory for cmake config files")
Jan Tattermuscha3992d22018-05-09 17:37:27 +020037set(gRPC_INSTALL_SHAREDIR "share/grpc" CACHE STRING "Installation directory for root certificates")
Jan Tattermuschdca8d632017-06-23 15:52:40 +020038
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010039# Options
40option(gRPC_BUILD_TESTS "Build tests" OFF)
Eric Gribkoffa32a4c52018-01-25 13:16:41 -080041option(gRPC_BUILD_CODEGEN "Build codegen" ON)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010042
Alex Merryc17eb5c2017-05-15 21:17:29 +010043set(gRPC_INSTALL_default ON)
Alex Merrya65f0062017-05-15 22:59:37 +010044if (NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
45 # Disable gRPC_INSTALL by default if building as a submodule
46 set(gRPC_INSTALL_default OFF)
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030047endif()
Alex Merryc17eb5c2017-05-15 21:17:29 +010048set(gRPC_INSTALL ${gRPC_INSTALL_default} CACHE BOOL
49 "Generate installation target: gRPC_ZLIB_PROVIDER, gRPC_CARES_PROVIDER, gRPC_SSL_PROVIDER and gRPC_PROTOBUF_PROVIDER must all be \"package\"")
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030050
Jan Tattermusch41e58b42018-01-16 17:58:05 +010051# Providers for third-party dependencies (gRPC_*_PROVIDER properties):
52# "module": build the dependency using sources from git submodule (under third_party)
53# "package": use cmake's find_package functionality to locate a pre-installed dependency
54
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030055set(gRPC_ZLIB_PROVIDER "module" CACHE STRING "Provider of zlib library")
56set_property(CACHE gRPC_ZLIB_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010057
Yuchen Zeng8076d2b2016-08-25 13:23:13 -070058set(gRPC_CARES_PROVIDER "module" CACHE STRING "Provider of c-ares library")
59set_property(CACHE gRPC_CARES_PROVIDER PROPERTY STRINGS "module" "package")
60
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030061set(gRPC_SSL_PROVIDER "module" CACHE STRING "Provider of ssl library")
62set_property(CACHE gRPC_SSL_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammera72712e2016-07-06 10:30:25 +010063
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030064set(gRPC_PROTOBUF_PROVIDER "module" CACHE STRING "Provider of protobuf library")
65set_property(CACHE gRPC_PROTOBUF_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010066
Kamil Skalski6ba7d532017-06-28 19:42:26 +010067set(gRPC_PROTOBUF_PACKAGE_TYPE "" CACHE STRING "Algorithm for searching protobuf package")
68set_property(CACHE gRPC_PROTOBUF_PACKAGE_TYPE PROPERTY STRINGS "CONFIG" "MODULE")
69
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010070set(gRPC_GFLAGS_PROVIDER "module" CACHE STRING "Provider of gflags library")
71set_property(CACHE gRPC_GFLAGS_PROVIDER PROPERTY STRINGS "module" "package")
72
Jan Tattermusch438c0b52017-01-23 11:24:53 +010073set(gRPC_BENCHMARK_PROVIDER "module" CACHE STRING "Provider of benchmark library")
74set_property(CACHE gRPC_BENCHMARK_PROVIDER PROPERTY STRINGS "module" "package")
75
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030076set(gRPC_USE_PROTO_LITE OFF CACHE BOOL "Use the protobuf-lite library")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010077
Jan Tattermusch438c0b52017-01-23 11:24:53 +010078if(UNIX)
79 if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
80 set(_gRPC_PLATFORM_LINUX ON)
81 elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
82 set(_gRPC_PLATFORM_MAC ON)
Eric Gribkoffa32a4c52018-01-25 13:16:41 -080083 elseif(${CMAKE_SYSTEM_NAME} MATCHES "Android")
84 set(_gRPC_PLATFORM_ANDROID ON)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010085 else()
86 set(_gRPC_PLATFORM_POSIX ON)
87 endif()
88endif()
89if(WIN32)
90 set(_gRPC_PLATFORM_WINDOWS ON)
91endif()
92
Jan Tattermuschc09656c2017-01-27 13:36:24 +010093set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
94
Yihua Zhangeaf64862018-03-06 21:40:45 -080095add_definitions(-DPB_FIELD_16BIT)
96
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030097if (MSVC)
Jan Tattermusch51407912017-02-02 20:44:22 +010098 include(cmake/msvc_static_runtime.cmake)
Jan Tattermusch3aab96f2017-01-11 16:12:46 +010099 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 +0100100 # needed to compile protobuf
101 add_definitions(/wd4065 /wd4506)
102 # TODO(jtattermusch): revisit C4267 occurrences throughout the code
103 add_definitions(/wd4267)
Jan Tattermusch07d20922017-08-23 16:05:43 +0200104 # TODO(jtattermusch): needed to build boringssl with VS2017, revisit later
105 add_definitions(/wd4987 /wd4774 /wd4819 /wd4996 /wd4619)
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300106endif()
107
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300108if (gRPC_USE_PROTO_LITE)
109 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf-lite")
Tamas Berghammer23911562016-07-27 15:24:05 +0100110 add_definitions("-DGRPC_USE_PROTO_LITE")
111else()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300112 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100113endif()
114
Jan Tattermuschf38b1522017-12-19 14:05:41 -0800115include(cmake/zlib.cmake)
116include(cmake/cares.cmake)
117include(cmake/protobuf.cmake)
118include(cmake/ssl.cmake)
119include(cmake/gflags.cmake)
120include(cmake/benchmark.cmake)
Alexander Polcyn5de34782018-01-19 14:48:19 -0800121include(cmake/address_sorting.cmake)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100122
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300123if(NOT MSVC)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100124 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300125 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
126endif()
127
Mehrdad Afshari79ec0ff2017-04-19 03:14:26 -0700128if(_gRPC_PLATFORM_MAC)
129 set(_gRPC_ALLTARGETS_LIBRARIES ${CMAKE_DL_LIBS} m pthread)
Eric Gribkoffa32a4c52018-01-25 13:16:41 -0800130elseif(_gRPC_PLATFORM_ANDROID)
131 set(_gRPC_ALLTARGETS_LIBRARIES ${CMAKE_DL_LIBS} m)
Mehrdad Afshari79ec0ff2017-04-19 03:14:26 -0700132elseif(UNIX)
133 set(_gRPC_ALLTARGETS_LIBRARIES ${CMAKE_DL_LIBS} rt m pthread)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100134endif()
135
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300136if(WIN32 AND MSVC)
137 set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32)
Tamas Berghammer23911562016-07-27 15:24:05 +0100138endif()
139
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100140# Create directory for generated .proto files
141set(_gRPC_PROTO_GENS_DIR ${CMAKE_BINARY_DIR}/gens)
142file(MAKE_DIRECTORY ${_gRPC_PROTO_GENS_DIR})
143
144# protobuf_generate_grpc_cpp
145# --------------------------
146#
147# Add custom commands to process ``.proto`` files to C++ using protoc and
148# GRPC plugin::
149#
150# protobuf_generate_grpc_cpp [<ARGN>...]
151#
152# ``ARGN``
153# ``.proto`` files
154#
155function(protobuf_generate_grpc_cpp)
156 if(NOT ARGN)
157 message(SEND_ERROR "Error: PROTOBUF_GENERATE_GRPC_CPP() called without any proto files")
158 return()
159 endif()
160
Jan Tattermusch41e58b42018-01-16 17:58:05 +0100161 set(_protobuf_include_path -I . -I ${_gRPC_PROTOBUF_WELLKNOWN_INCLUDE_DIR})
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100162 foreach(FIL ${ARGN})
163 get_filename_component(ABS_FIL ${FIL} ABSOLUTE)
164 get_filename_component(FIL_WE ${FIL} NAME_WE)
Jan Tattermuschecc457b2017-04-07 14:06:16 +0200165 file(RELATIVE_PATH REL_FIL ${CMAKE_CURRENT_SOURCE_DIR} ${ABS_FIL})
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100166 get_filename_component(REL_DIR ${REL_FIL} DIRECTORY)
167 set(RELFIL_WE "${REL_DIR}/${FIL_WE}")
Yuchen Zenge02cbeb2017-01-19 16:33:30 -0800168
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100169 add_custom_command(
170 OUTPUT "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.cc"
171 "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.h"
Mahak Mukhi78ca0d12017-04-26 13:39:46 -0700172 "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}_mock.grpc.pb.h"
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100173 "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.cc"
174 "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.h"
Jan Tattermusch210f2a52017-08-24 17:51:47 +0200175 COMMAND ${_gRPC_PROTOBUF_PROTOC_EXECUTABLE}
Mahak Mukhi78ca0d12017-04-26 13:39:46 -0700176 ARGS --grpc_out=generate_mock_code=true:${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100177 --cpp_out=${_gRPC_PROTO_GENS_DIR}
178 --plugin=protoc-gen-grpc=$<TARGET_FILE:grpc_cpp_plugin>
179 ${_protobuf_include_path}
180 ${REL_FIL}
181 DEPENDS ${ABS_FIL} ${_gRPC_PROTOBUF_PROTOC} grpc_cpp_plugin
Jan Tattermuschecc457b2017-04-07 14:06:16 +0200182 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100183 COMMENT "Running gRPC C++ protocol buffer compiler on ${FIL}"
184 VERBATIM)
Yuchen Zenge02cbeb2017-01-19 16:33:30 -0800185
Mahak Mukhi78ca0d12017-04-26 13:39:46 -0700186 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}_mock.grpc.pb.h" "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.cc" "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.h" PROPERTIES GENERATED TRUE)
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100187 endforeach()
188endfunction()
189
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100190add_custom_target(plugins
191 DEPENDS
192 grpc_cpp_plugin
193 grpc_csharp_plugin
194 grpc_node_plugin
195 grpc_objective_c_plugin
196 grpc_php_plugin
197 grpc_python_plugin
198 grpc_ruby_plugin
199)
200
201add_custom_target(tools_c
202 DEPENDS
Craig Tiller819cd882017-04-25 13:18:22 -0700203 check_epollexclusive
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100204 grpc_create_jwt
205 grpc_print_google_default_creds_token
206 grpc_verify_jwt
ncteisencf1d28b2017-12-04 12:44:28 -0800207 gen_hpack_tables
208 gen_legal_metadata_characters
209 gen_percent_encoding_tables
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100210)
211
212add_custom_target(tools_cxx
213 DEPENDS
214)
215
216add_custom_target(tools
217 DEPENDS tools_c tools_cxx)
218
219if (gRPC_BUILD_TESTS)
220add_custom_target(buildtests_c)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100221add_dependencies(buildtests_c algorithm_test)
222add_dependencies(buildtests_c alloc_test)
223add_dependencies(buildtests_c alpn_test)
Craig Tiller9202b3f2017-03-12 22:30:38 -0700224add_dependencies(buildtests_c arena_test)
Vijay Pai8f4fbb12018-02-08 10:04:08 -0800225add_dependencies(buildtests_c avl_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100226add_dependencies(buildtests_c bad_server_response_test)
227add_dependencies(buildtests_c bin_decoder_test)
228add_dependencies(buildtests_c bin_encoder_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100229add_dependencies(buildtests_c channel_create_test)
230add_dependencies(buildtests_c chttp2_hpack_encoder_test)
231add_dependencies(buildtests_c chttp2_stream_map_test)
232add_dependencies(buildtests_c chttp2_varint_test)
Vijay Pai8a99fdb2018-01-25 15:38:20 -0800233add_dependencies(buildtests_c cmdline_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100234add_dependencies(buildtests_c combiner_test)
235add_dependencies(buildtests_c compression_test)
236add_dependencies(buildtests_c concurrent_connectivity_test)
237add_dependencies(buildtests_c connection_refused_test)
238add_dependencies(buildtests_c dns_resolver_connectivity_test)
David Garcia Quintas956fe5e2018-01-30 15:47:20 -0800239add_dependencies(buildtests_c dns_resolver_cooldown_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100240add_dependencies(buildtests_c dns_resolver_test)
241if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
242add_dependencies(buildtests_c dualstack_socket_test)
243endif()
244add_dependencies(buildtests_c endpoint_pair_test)
ncteisen3da3ce32017-02-17 09:51:25 -0800245add_dependencies(buildtests_c error_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100246if(_gRPC_PLATFORM_LINUX)
Craig Tiller6a85ee02017-04-27 19:17:11 +0000247add_dependencies(buildtests_c ev_epollsig_linux_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100248endif()
David Garcia Quintas53af23c2017-04-15 10:29:46 -0700249add_dependencies(buildtests_c fake_resolver_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100250if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Yihua Zhang7fab9bf2017-08-22 12:32:43 -0700251add_dependencies(buildtests_c fake_transport_security_test)
252endif()
253if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100254add_dependencies(buildtests_c fd_conservation_posix_test)
255endif()
256if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
257add_dependencies(buildtests_c fd_posix_test)
258endif()
259add_dependencies(buildtests_c fling_client)
260add_dependencies(buildtests_c fling_server)
261if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
262add_dependencies(buildtests_c fling_stream_test)
263endif()
264if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
265add_dependencies(buildtests_c fling_test)
266endif()
kpayson6438ab21e2018-03-08 15:47:40 -0800267if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC)
268add_dependencies(buildtests_c fork_test)
269endif()
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100270if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
271add_dependencies(buildtests_c goaway_server_test)
272endif()
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100273add_dependencies(buildtests_c gpr_cpu_test)
274add_dependencies(buildtests_c gpr_env_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100275add_dependencies(buildtests_c gpr_host_port_test)
276add_dependencies(buildtests_c gpr_log_test)
ncteisen4d9c98b2017-11-09 12:43:15 -0800277add_dependencies(buildtests_c gpr_manual_constructor_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100278add_dependencies(buildtests_c gpr_mpscq_test)
Craig Tilleredbf2b92017-02-27 07:24:00 -0800279add_dependencies(buildtests_c gpr_spinlock_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100280add_dependencies(buildtests_c gpr_string_test)
281add_dependencies(buildtests_c gpr_sync_test)
282add_dependencies(buildtests_c gpr_thd_test)
283add_dependencies(buildtests_c gpr_time_test)
284add_dependencies(buildtests_c gpr_tls_test)
285add_dependencies(buildtests_c gpr_useful_test)
286add_dependencies(buildtests_c grpc_auth_context_test)
287add_dependencies(buildtests_c grpc_b64_test)
288add_dependencies(buildtests_c grpc_byte_buffer_reader_test)
289add_dependencies(buildtests_c grpc_channel_args_test)
David Garcia Quintas243fe9d2017-08-24 14:16:37 -0700290add_dependencies(buildtests_c grpc_channel_stack_builder_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100291add_dependencies(buildtests_c grpc_channel_stack_test)
292add_dependencies(buildtests_c grpc_completion_queue_test)
murgatroid9998cdf3b2017-02-23 14:59:45 -0800293add_dependencies(buildtests_c grpc_completion_queue_threading_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100294add_dependencies(buildtests_c grpc_credentials_test)
295add_dependencies(buildtests_c grpc_fetch_oauth2)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100296if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
297add_dependencies(buildtests_c grpc_json_token_test)
298endif()
299add_dependencies(buildtests_c grpc_jwt_verifier_test)
300add_dependencies(buildtests_c grpc_security_connector_test)
Justin Burke9b9a44e2017-10-03 18:09:41 -0700301add_dependencies(buildtests_c grpc_ssl_credentials_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100302if(_gRPC_PLATFORM_LINUX)
303add_dependencies(buildtests_c handshake_client)
304endif()
305if(_gRPC_PLATFORM_LINUX)
306add_dependencies(buildtests_c handshake_server)
307endif()
Alexander Polcyn3f6b10a2017-10-28 16:57:29 -0700308if(_gRPC_PLATFORM_LINUX)
309add_dependencies(buildtests_c handshake_server_with_readahead_handshaker)
310endif()
Vijay Pai195cf1e2017-11-30 10:56:06 -0800311add_dependencies(buildtests_c histogram_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100312add_dependencies(buildtests_c hpack_parser_test)
313add_dependencies(buildtests_c hpack_table_test)
314add_dependencies(buildtests_c http_parser_test)
315add_dependencies(buildtests_c httpcli_format_request_test)
316if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
317add_dependencies(buildtests_c httpcli_test)
318endif()
319if(_gRPC_PLATFORM_LINUX)
320add_dependencies(buildtests_c httpscli_test)
321endif()
322add_dependencies(buildtests_c init_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100323add_dependencies(buildtests_c invalid_call_argument_test)
324add_dependencies(buildtests_c json_rewrite)
325add_dependencies(buildtests_c json_rewrite_test)
326add_dependencies(buildtests_c json_stream_error_test)
327add_dependencies(buildtests_c json_test)
328add_dependencies(buildtests_c lame_client_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100329add_dependencies(buildtests_c load_file_test)
330add_dependencies(buildtests_c memory_profile_client)
331add_dependencies(buildtests_c memory_profile_server)
332if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
333add_dependencies(buildtests_c memory_profile_test)
334endif()
335add_dependencies(buildtests_c message_compress_test)
Craig Tiller494e72d2017-04-03 08:43:22 -0700336add_dependencies(buildtests_c minimal_stack_is_minimal_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100337add_dependencies(buildtests_c multiple_server_queues_test)
338add_dependencies(buildtests_c murmur_hash_test)
339add_dependencies(buildtests_c no_server_test)
Alexander Polcync3b1f182017-04-18 13:51:36 -0700340add_dependencies(buildtests_c num_external_connectivity_watchers_test)
David Garcia Quintas8a0ec882017-03-03 16:53:54 -0800341add_dependencies(buildtests_c parse_address_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100342add_dependencies(buildtests_c percent_encoding_test)
Sree Kuchibhotla66131682017-02-02 09:39:07 -0800343if(_gRPC_PLATFORM_LINUX)
344add_dependencies(buildtests_c pollset_set_test)
345endif()
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100346if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
347add_dependencies(buildtests_c resolve_address_posix_test)
348endif()
349add_dependencies(buildtests_c resolve_address_test)
350add_dependencies(buildtests_c resource_quota_test)
351add_dependencies(buildtests_c secure_channel_create_test)
352add_dependencies(buildtests_c secure_endpoint_test)
353add_dependencies(buildtests_c sequential_connectivity_test)
354add_dependencies(buildtests_c server_chttp2_test)
355add_dependencies(buildtests_c server_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100356add_dependencies(buildtests_c slice_buffer_test)
357add_dependencies(buildtests_c slice_string_helpers_test)
358add_dependencies(buildtests_c slice_test)
359add_dependencies(buildtests_c sockaddr_resolver_test)
360add_dependencies(buildtests_c sockaddr_utils_test)
361if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
362add_dependencies(buildtests_c socket_utils_test)
363endif()
Yihua Zhang7fab9bf2017-08-22 12:32:43 -0700364if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
365add_dependencies(buildtests_c ssl_transport_security_test)
366endif()
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100367add_dependencies(buildtests_c status_conversion_test)
Muxi Yanc1f837c2017-05-04 18:17:13 -0700368add_dependencies(buildtests_c stream_compression_test)
Craig Tiller295df6d2017-03-01 11:28:24 -0800369add_dependencies(buildtests_c stream_owned_slice_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100370if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
371add_dependencies(buildtests_c tcp_client_posix_test)
372endif()
murgatroid9998cdf3b2017-02-23 14:59:45 -0800373add_dependencies(buildtests_c tcp_client_uv_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100374if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
375add_dependencies(buildtests_c tcp_posix_test)
376endif()
377if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
378add_dependencies(buildtests_c tcp_server_posix_test)
379endif()
murgatroid9998cdf3b2017-02-23 14:59:45 -0800380add_dependencies(buildtests_c tcp_server_uv_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100381add_dependencies(buildtests_c time_averaged_stats_test)
382add_dependencies(buildtests_c timeout_encoding_test)
383add_dependencies(buildtests_c timer_heap_test)
384add_dependencies(buildtests_c timer_list_test)
385add_dependencies(buildtests_c transport_connectivity_state_test)
Craig Tiller48bed5e2017-10-16 15:42:41 -0700386add_dependencies(buildtests_c transport_metadata_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100387if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
388add_dependencies(buildtests_c transport_security_test)
389endif()
390if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
391add_dependencies(buildtests_c udp_server_test)
392endif()
393add_dependencies(buildtests_c uri_parser_test)
394if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
395add_dependencies(buildtests_c wakeup_fd_cv_test)
396endif()
397add_dependencies(buildtests_c public_headers_must_be_c89)
398add_dependencies(buildtests_c badreq_bad_client_test)
399add_dependencies(buildtests_c connection_prefix_bad_client_test)
Ken Payson1dc08332018-01-25 16:52:51 -0800400add_dependencies(buildtests_c duplicate_header_bad_client_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100401add_dependencies(buildtests_c head_of_line_blocking_bad_client_test)
402add_dependencies(buildtests_c headers_bad_client_test)
403add_dependencies(buildtests_c initial_settings_frame_bad_client_test)
Yash Tibrewal1791df02018-01-19 18:23:20 -0800404add_dependencies(buildtests_c large_metadata_bad_client_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100405add_dependencies(buildtests_c server_registered_method_bad_client_test)
406add_dependencies(buildtests_c simple_request_bad_client_test)
407add_dependencies(buildtests_c unknown_frame_bad_client_test)
408add_dependencies(buildtests_c window_overflow_bad_client_test)
409if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
410add_dependencies(buildtests_c bad_ssl_cert_server)
411endif()
412if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
413add_dependencies(buildtests_c bad_ssl_cert_test)
414endif()
415add_dependencies(buildtests_c h2_census_test)
416add_dependencies(buildtests_c h2_compress_test)
417add_dependencies(buildtests_c h2_fakesec_test)
418if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
419add_dependencies(buildtests_c h2_fd_test)
420endif()
421add_dependencies(buildtests_c h2_full_test)
422if(_gRPC_PLATFORM_LINUX)
423add_dependencies(buildtests_c h2_full+pipe_test)
424endif()
425add_dependencies(buildtests_c h2_full+trace_test)
Muxi Yan29ff4662017-05-15 10:27:55 -0700426add_dependencies(buildtests_c h2_full+workarounds_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100427add_dependencies(buildtests_c h2_http_proxy_test)
428add_dependencies(buildtests_c h2_load_reporting_test)
429add_dependencies(buildtests_c h2_oauth2_test)
430add_dependencies(buildtests_c h2_proxy_test)
431add_dependencies(buildtests_c h2_sockpair_test)
432add_dependencies(buildtests_c h2_sockpair+trace_test)
433add_dependencies(buildtests_c h2_sockpair_1byte_test)
434add_dependencies(buildtests_c h2_ssl_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100435add_dependencies(buildtests_c h2_ssl_proxy_test)
436if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
437add_dependencies(buildtests_c h2_uds_test)
438endif()
Vijay Pai3d7d5f42017-05-04 10:02:24 -0700439add_dependencies(buildtests_c inproc_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100440add_dependencies(buildtests_c h2_census_nosec_test)
441add_dependencies(buildtests_c h2_compress_nosec_test)
442if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
443add_dependencies(buildtests_c h2_fd_nosec_test)
444endif()
445add_dependencies(buildtests_c h2_full_nosec_test)
446if(_gRPC_PLATFORM_LINUX)
447add_dependencies(buildtests_c h2_full+pipe_nosec_test)
448endif()
449add_dependencies(buildtests_c h2_full+trace_nosec_test)
Muxi Yan29ff4662017-05-15 10:27:55 -0700450add_dependencies(buildtests_c h2_full+workarounds_nosec_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100451add_dependencies(buildtests_c h2_http_proxy_nosec_test)
452add_dependencies(buildtests_c h2_load_reporting_nosec_test)
453add_dependencies(buildtests_c h2_proxy_nosec_test)
454add_dependencies(buildtests_c h2_sockpair_nosec_test)
455add_dependencies(buildtests_c h2_sockpair+trace_nosec_test)
456add_dependencies(buildtests_c h2_sockpair_1byte_nosec_test)
457if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
458add_dependencies(buildtests_c h2_uds_nosec_test)
459endif()
Vijay Pai3d7d5f42017-05-04 10:02:24 -0700460add_dependencies(buildtests_c inproc_nosec_test)
Yihua Zhangcc936632018-05-08 10:15:03 -0700461add_dependencies(buildtests_c alts_credentials_fuzzer_one_entry)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100462add_dependencies(buildtests_c api_fuzzer_one_entry)
463add_dependencies(buildtests_c client_fuzzer_one_entry)
464add_dependencies(buildtests_c hpack_parser_fuzzer_test_one_entry)
465add_dependencies(buildtests_c http_request_fuzzer_test_one_entry)
466add_dependencies(buildtests_c http_response_fuzzer_test_one_entry)
467add_dependencies(buildtests_c json_fuzzer_test_one_entry)
468add_dependencies(buildtests_c nanopb_fuzzer_response_test_one_entry)
469add_dependencies(buildtests_c nanopb_fuzzer_serverlist_test_one_entry)
470add_dependencies(buildtests_c percent_decode_fuzzer_one_entry)
471add_dependencies(buildtests_c percent_encode_fuzzer_one_entry)
472add_dependencies(buildtests_c server_fuzzer_one_entry)
473add_dependencies(buildtests_c ssl_server_fuzzer_one_entry)
474add_dependencies(buildtests_c uri_fuzzer_test_one_entry)
475
476add_custom_target(buildtests_cxx)
Vijay Pai2b226ad2018-01-11 16:11:35 -0800477add_dependencies(buildtests_cxx alarm_test)
Yihua Zhangeaf64862018-03-06 21:40:45 -0800478add_dependencies(buildtests_cxx alts_counter_test)
479add_dependencies(buildtests_cxx alts_crypt_test)
480add_dependencies(buildtests_cxx alts_crypter_test)
481add_dependencies(buildtests_cxx alts_frame_handler_test)
482add_dependencies(buildtests_cxx alts_frame_protector_test)
483add_dependencies(buildtests_cxx alts_grpc_record_protocol_test)
484add_dependencies(buildtests_cxx alts_handshaker_client_test)
485add_dependencies(buildtests_cxx alts_handshaker_service_api_test)
486add_dependencies(buildtests_cxx alts_iovec_record_protocol_test)
487add_dependencies(buildtests_cxx alts_security_connector_test)
488add_dependencies(buildtests_cxx alts_tsi_handshaker_test)
489add_dependencies(buildtests_cxx alts_tsi_utils_test)
490add_dependencies(buildtests_cxx alts_zero_copy_grpc_protector_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100491add_dependencies(buildtests_cxx async_end2end_test)
492add_dependencies(buildtests_cxx auth_property_iterator_test)
David Garcia Quintas460b5e02017-12-04 16:12:16 -0800493add_dependencies(buildtests_cxx backoff_test)
Craig Tiller50ca35e2017-10-09 08:11:48 -0700494add_dependencies(buildtests_cxx bdp_estimator_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100495if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller9202b3f2017-03-12 22:30:38 -0700496add_dependencies(buildtests_cxx bm_arena)
497endif()
498if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tillerfd044b82017-02-15 16:15:48 -0800499add_dependencies(buildtests_cxx bm_call_create)
500endif()
501if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller523d54b2017-02-23 08:52:38 -0800502add_dependencies(buildtests_cxx bm_chttp2_hpack)
Craig Tiller2f792d92017-02-22 16:26:33 -0800503endif()
504if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller18f09a02017-02-23 17:10:04 -0800505add_dependencies(buildtests_cxx bm_chttp2_transport)
506endif()
507if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tillerb3f34b62017-02-13 10:29:33 -0800508add_dependencies(buildtests_cxx bm_closure)
509endif()
510if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller14ae5382017-02-14 12:43:50 -0800511add_dependencies(buildtests_cxx bm_cq)
512endif()
513if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Sree Kuchibhotla3c754e42017-04-04 13:49:08 -0700514add_dependencies(buildtests_cxx bm_cq_multiple_threads)
515endif()
516if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller264307f2017-02-16 09:07:45 -0800517add_dependencies(buildtests_cxx bm_error)
518endif()
519if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller12d22e42017-03-03 10:14:20 -0800520add_dependencies(buildtests_cxx bm_fullstack_streaming_ping_pong)
521endif()
522if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
523add_dependencies(buildtests_cxx bm_fullstack_streaming_pump)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100524endif()
Craig Tillerb8e2bca2017-02-16 16:26:51 -0800525if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller52bd4412017-03-03 10:52:22 -0800526add_dependencies(buildtests_cxx bm_fullstack_trickle)
527endif()
528if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller62ac65b2017-03-03 09:57:43 -0800529add_dependencies(buildtests_cxx bm_fullstack_unary_ping_pong)
530endif()
531if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tillerb8e2bca2017-02-16 16:26:51 -0800532add_dependencies(buildtests_cxx bm_metadata)
533endif()
Craig Tiller1128d462017-03-03 16:46:54 -0800534if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
535add_dependencies(buildtests_cxx bm_pollset)
536endif()
Mark D. Roth3d8b32d2018-03-09 13:25:40 -0800537add_dependencies(buildtests_cxx byte_stream_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100538add_dependencies(buildtests_cxx channel_arguments_test)
539add_dependencies(buildtests_cxx channel_filter_test)
ncteisen3b42f832018-03-19 13:22:35 -0700540add_dependencies(buildtests_cxx channel_trace_test)
ncteisen16b42ca2018-05-11 11:59:38 -0400541add_dependencies(buildtests_cxx channelz_registry_test)
Yihua Zhangeaf64862018-03-06 21:40:45 -0800542add_dependencies(buildtests_cxx check_gcp_environment_linux_test)
543add_dependencies(buildtests_cxx check_gcp_environment_windows_test)
Mark D. Rothb9f34ac2017-11-21 15:47:12 -0800544add_dependencies(buildtests_cxx chttp2_settings_timeout_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100545add_dependencies(buildtests_cxx cli_call_test)
Juanli Shene5d21392017-11-14 16:07:23 -0800546add_dependencies(buildtests_cxx client_channel_stress_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100547if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
548add_dependencies(buildtests_cxx client_crash_test)
549endif()
550add_dependencies(buildtests_cxx client_crash_test_server)
David Garcia Quintas87d5a312017-06-06 19:45:58 -0700551add_dependencies(buildtests_cxx client_lb_end2end_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100552add_dependencies(buildtests_cxx codegen_test_full)
553add_dependencies(buildtests_cxx codegen_test_minimal)
554add_dependencies(buildtests_cxx credentials_test)
555add_dependencies(buildtests_cxx cxx_byte_buffer_test)
556add_dependencies(buildtests_cxx cxx_slice_test)
557add_dependencies(buildtests_cxx cxx_string_ref_test)
558add_dependencies(buildtests_cxx cxx_time_test)
559add_dependencies(buildtests_cxx end2end_test)
yang-geceec8e2017-04-10 11:58:44 -0700560add_dependencies(buildtests_cxx error_details_test)
Vijay Pai8fc37152017-12-18 14:33:51 -0800561add_dependencies(buildtests_cxx exception_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100562add_dependencies(buildtests_cxx filter_end2end_test)
563add_dependencies(buildtests_cxx generic_end2end_test)
564add_dependencies(buildtests_cxx golden_file_test)
Yihua Zhangeaf64862018-03-06 21:40:45 -0800565add_dependencies(buildtests_cxx grpc_alts_credentials_options_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100566add_dependencies(buildtests_cxx grpc_cli)
567add_dependencies(buildtests_cxx grpc_tool_test)
568add_dependencies(buildtests_cxx grpclb_api_test)
David Garcia Quintas04911ca2017-04-27 16:31:14 -0700569add_dependencies(buildtests_cxx grpclb_end2end_test)
Vijay Paifed13912017-10-11 00:07:00 -0700570add_dependencies(buildtests_cxx h2_ssl_cert_test)
Ruslan Nigmatullin99d0cee2018-03-20 09:18:29 -0700571add_dependencies(buildtests_cxx h2_ssl_session_reuse_test)
yang-g13a537b2017-02-07 13:13:20 -0800572add_dependencies(buildtests_cxx health_service_end2end_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100573if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
574add_dependencies(buildtests_cxx http2_client)
575endif()
576add_dependencies(buildtests_cxx hybrid_end2end_test)
Mark D. Rothdbdf4952018-01-18 11:21:12 -0800577add_dependencies(buildtests_cxx inlined_vector_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100578if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Vijay Pai088112f2017-08-24 10:42:27 -0700579add_dependencies(buildtests_cxx inproc_sync_unary_ping_pong_test)
580endif()
581if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100582add_dependencies(buildtests_cxx interop_client)
583endif()
584if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
585add_dependencies(buildtests_cxx interop_server)
586endif()
587if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
588add_dependencies(buildtests_cxx interop_test)
589endif()
590if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
591add_dependencies(buildtests_cxx json_run_localhost)
592endif()
Juanli Shena0aab7e2018-05-01 10:30:54 -0700593add_dependencies(buildtests_cxx lb_load_data_store_test)
Craig Tillerb3d70102017-03-31 14:17:09 -0700594add_dependencies(buildtests_cxx memory_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100595add_dependencies(buildtests_cxx metrics_client)
596add_dependencies(buildtests_cxx mock_test)
Vijay Pai132efa02018-02-09 15:28:14 -0800597add_dependencies(buildtests_cxx nonblocking_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100598add_dependencies(buildtests_cxx noop-benchmark)
Mark D. Roth324703d2018-01-11 07:41:31 -0800599add_dependencies(buildtests_cxx orphanable_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100600add_dependencies(buildtests_cxx proto_server_reflection_test)
Harvey Tuch5f3cfe92017-01-20 11:02:11 -0500601add_dependencies(buildtests_cxx proto_utils_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100602if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
603add_dependencies(buildtests_cxx qps_interarrival_test)
604endif()
605add_dependencies(buildtests_cxx qps_json_driver)
606if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
607add_dependencies(buildtests_cxx qps_openloop_test)
608endif()
609add_dependencies(buildtests_cxx qps_worker)
610add_dependencies(buildtests_cxx reconnect_interop_client)
611add_dependencies(buildtests_cxx reconnect_interop_server)
Mark D. Rothbf816d32017-11-29 11:25:34 -0800612add_dependencies(buildtests_cxx ref_counted_ptr_test)
613add_dependencies(buildtests_cxx ref_counted_test)
Mark D. Roth9db86fc2018-03-28 07:42:20 -0700614add_dependencies(buildtests_cxx retry_throttle_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100615add_dependencies(buildtests_cxx secure_auth_context_test)
616if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
617add_dependencies(buildtests_cxx secure_sync_unary_ping_pong_test)
618endif()
619add_dependencies(buildtests_cxx server_builder_plugin_test)
Craig Tiller332bcc32017-03-08 12:47:46 -0800620add_dependencies(buildtests_cxx server_builder_test)
Alexander Polcynac8b72f2018-05-04 17:18:27 -0700621if(_gRPC_PLATFORM_POSIX)
622add_dependencies(buildtests_cxx server_builder_with_socket_mutator_test)
623endif()
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100624add_dependencies(buildtests_cxx server_context_test_spouse_test)
625if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
626add_dependencies(buildtests_cxx server_crash_test)
627endif()
628add_dependencies(buildtests_cxx server_crash_test_client)
yang-g98cd36e2018-01-18 15:34:01 -0800629add_dependencies(buildtests_cxx server_early_return_test)
Mark D. Roth06966112017-07-14 07:18:39 -0700630add_dependencies(buildtests_cxx server_request_call_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100631add_dependencies(buildtests_cxx shutdown_test)
Mark D. Roth3e7f2df2018-02-26 13:17:06 -0800632add_dependencies(buildtests_cxx slice_hash_table_test)
David Garcia Quintas396d49d2018-02-28 16:06:30 -0800633add_dependencies(buildtests_cxx slice_weak_hash_table_test)
Craig Tiller97ec5eb2017-09-01 12:57:36 -0700634add_dependencies(buildtests_cxx stats_test)
Mark D. Roth718c8342018-02-28 13:00:04 -0800635add_dependencies(buildtests_cxx status_metadata_test)
Mark D. Roth718c8342018-02-28 13:00:04 -0800636add_dependencies(buildtests_cxx status_util_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100637if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
638add_dependencies(buildtests_cxx streaming_throughput_test)
639endif()
640add_dependencies(buildtests_cxx stress_test)
641add_dependencies(buildtests_cxx thread_manager_test)
642add_dependencies(buildtests_cxx thread_stress_test)
Craig Tiller247b2312017-10-09 09:16:19 -0700643add_dependencies(buildtests_cxx transport_pid_controller_test)
Yihua Zhangeaf64862018-03-06 21:40:45 -0800644add_dependencies(buildtests_cxx transport_security_common_api_test)
Craig Tiller1bb53712017-02-04 15:39:27 -0800645if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tillerc40b3472017-02-03 11:54:26 -0800646add_dependencies(buildtests_cxx writes_per_rpc_test)
Craig Tiller1bb53712017-02-04 15:39:27 -0800647endif()
Alexander Polcyn27bf05d2017-08-07 18:09:11 -0700648if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
649add_dependencies(buildtests_cxx resolver_component_test_unsecure)
650endif()
651if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
652add_dependencies(buildtests_cxx resolver_component_test)
653endif()
654if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
655add_dependencies(buildtests_cxx resolver_component_tests_runner_invoker_unsecure)
656endif()
657if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
658add_dependencies(buildtests_cxx resolver_component_tests_runner_invoker)
659endif()
Alexander Polcyn690dde62017-10-18 00:20:33 -0700660if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
661add_dependencies(buildtests_cxx address_sorting_test_unsecure)
662endif()
663if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
664add_dependencies(buildtests_cxx address_sorting_test)
665endif()
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100666
667add_custom_target(buildtests
668 DEPENDS buildtests_c buildtests_cxx)
669endif (gRPC_BUILD_TESTS)
670
Alexander Polcyn690dde62017-10-18 00:20:33 -0700671
672add_library(address_sorting
673 third_party/address_sorting/address_sorting.c
674 third_party/address_sorting/address_sorting_posix.c
675 third_party/address_sorting/address_sorting_windows.c
676)
677
678if(WIN32 AND MSVC)
679 set_target_properties(address_sorting PROPERTIES COMPILE_PDB_NAME "address_sorting"
680 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
681 )
682 if (gRPC_INSTALL)
683 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/address_sorting.pdb
684 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
685 )
686 endif()
687endif()
688
689
690target_include_directories(address_sorting
691 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
692 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
693 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
694 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
695 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
696 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
697 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
698 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -0800699 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Alexander Polcyn690dde62017-10-18 00:20:33 -0700700)
701
702target_link_libraries(address_sorting
Alexander Polcyn18caf6d2018-06-06 12:06:52 -0700703 ${_gRPC_BASELIB_LIBRARIES}
Alexander Polcyn690dde62017-10-18 00:20:33 -0700704 ${_gRPC_ALLTARGETS_LIBRARIES}
705)
706
707
708
709if (gRPC_INSTALL)
710 install(TARGETS address_sorting EXPORT gRPCTargets
711 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
712 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
713 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
714 )
715endif()
716
Yihua Zhangeaf64862018-03-06 21:40:45 -0800717if (gRPC_BUILD_TESTS)
718
719add_library(alts_test_util
720 test/core/tsi/alts/crypt/gsec_test_util.cc
721 test/core/tsi/alts/handshaker/alts_handshaker_service_api_test_lib.cc
722)
723
724if(WIN32 AND MSVC)
725 set_target_properties(alts_test_util PROPERTIES COMPILE_PDB_NAME "alts_test_util"
726 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
727 )
728 if (gRPC_INSTALL)
729 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/alts_test_util.pdb
730 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
731 )
732 endif()
733endif()
734
735
736target_include_directories(alts_test_util
737 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
738 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
739 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
740 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
741 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
742 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
743 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
744 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -0800745 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -0800746)
747
748target_link_libraries(alts_test_util
749 ${_gRPC_SSL_LIBRARIES}
750 ${_gRPC_ALLTARGETS_LIBRARIES}
751 grpc
752)
753
754
755endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100756
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100757add_library(gpr
Mark D. Rothdbdf4952018-01-18 11:21:12 -0800758 src/core/lib/gpr/alloc.cc
759 src/core/lib/gpr/arena.cc
760 src/core/lib/gpr/atm.cc
Mark D. Rothdbdf4952018-01-18 11:21:12 -0800761 src/core/lib/gpr/cpu_iphone.cc
762 src/core/lib/gpr/cpu_linux.cc
763 src/core/lib/gpr/cpu_posix.cc
764 src/core/lib/gpr/cpu_windows.cc
765 src/core/lib/gpr/env_linux.cc
766 src/core/lib/gpr/env_posix.cc
767 src/core/lib/gpr/env_windows.cc
Mark D. Rothdbdf4952018-01-18 11:21:12 -0800768 src/core/lib/gpr/host_port.cc
769 src/core/lib/gpr/log.cc
770 src/core/lib/gpr/log_android.cc
771 src/core/lib/gpr/log_linux.cc
772 src/core/lib/gpr/log_posix.cc
773 src/core/lib/gpr/log_windows.cc
774 src/core/lib/gpr/mpscq.cc
775 src/core/lib/gpr/murmur_hash.cc
776 src/core/lib/gpr/string.cc
777 src/core/lib/gpr/string_posix.cc
778 src/core/lib/gpr/string_util_windows.cc
779 src/core/lib/gpr/string_windows.cc
Mark D. Rothdbdf4952018-01-18 11:21:12 -0800780 src/core/lib/gpr/sync.cc
781 src/core/lib/gpr/sync_posix.cc
782 src/core/lib/gpr/sync_windows.cc
Mark D. Rothdbdf4952018-01-18 11:21:12 -0800783 src/core/lib/gpr/time.cc
784 src/core/lib/gpr/time_posix.cc
785 src/core/lib/gpr/time_precise.cc
786 src/core/lib/gpr/time_windows.cc
787 src/core/lib/gpr/tls_pthread.cc
788 src/core/lib/gpr/tmpfile_msys.cc
789 src/core/lib/gpr/tmpfile_posix.cc
790 src/core/lib/gpr/tmpfile_windows.cc
791 src/core/lib/gpr/wrap_memcpy.cc
kpayson64701e70d2018-04-30 17:40:00 -0700792 src/core/lib/gprpp/fork.cc
Vijay Paida693552018-02-16 22:59:03 -0800793 src/core/lib/gprpp/thd_posix.cc
794 src/core/lib/gprpp/thd_windows.cc
Yash Tibrewal83062842017-09-21 18:56:08 -0700795 src/core/lib/profiling/basic_timers.cc
796 src/core/lib/profiling/stap_timers.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100797)
798
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +0100799if(WIN32 AND MSVC)
800 set_target_properties(gpr PROPERTIES COMPILE_PDB_NAME "gpr"
801 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
802 )
803 if (gRPC_INSTALL)
804 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/gpr.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +0200805 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +0100806 )
807 endif()
808endif()
809
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100810
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100811target_include_directories(gpr
Jan Tattermuschf567ab02017-08-25 16:13:30 +0200812 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100813 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +0100814 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +0100815 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
816 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
817 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
818 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
819 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -0800820 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100821)
822
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100823target_link_libraries(gpr
824 ${_gRPC_ALLTARGETS_LIBRARIES}
825)
Eric Gribkoffa32a4c52018-01-25 13:16:41 -0800826if (_gRPC_PLATFORM_ANDROID)
827 target_link_libraries(gpr
828 android
829 log
830 )
831endif (_gRPC_PLATFORM_ANDROID)
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100832
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300833foreach(_hdr
834 include/grpc/support/alloc.h
835 include/grpc/support/atm.h
836 include/grpc/support/atm_gcc_atomic.h
837 include/grpc/support/atm_gcc_sync.h
838 include/grpc/support/atm_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300839 include/grpc/support/cpu.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300840 include/grpc/support/log.h
841 include/grpc/support/log_windows.h
842 include/grpc/support/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300843 include/grpc/support/string_util.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300844 include/grpc/support/sync.h
yang-g9ff60312017-08-24 09:08:21 -0700845 include/grpc/support/sync_custom.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300846 include/grpc/support/sync_generic.h
847 include/grpc/support/sync_posix.h
848 include/grpc/support/sync_windows.h
Vijay Paic7456902018-02-12 10:28:24 -0800849 include/grpc/support/thd_id.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300850 include/grpc/support/time.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300851 include/grpc/impl/codegen/atm.h
852 include/grpc/impl/codegen/atm_gcc_atomic.h
853 include/grpc/impl/codegen/atm_gcc_sync.h
854 include/grpc/impl/codegen/atm_windows.h
Ken Payson9714e032017-10-10 11:18:49 -0700855 include/grpc/impl/codegen/fork.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -0800856 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700857 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300858 include/grpc/impl/codegen/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300859 include/grpc/impl/codegen/sync.h
yang-g9ff60312017-08-24 09:08:21 -0700860 include/grpc/impl/codegen/sync_custom.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300861 include/grpc/impl/codegen/sync_generic.h
862 include/grpc/impl/codegen/sync_posix.h
863 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300864)
865 string(REPLACE "include/" "" _path ${_hdr})
866 get_filename_component(_path ${_path} PATH)
867 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +0200868 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300869 )
870endforeach()
871
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100872
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300873if (gRPC_INSTALL)
874 install(TARGETS gpr EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +0200875 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
876 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
877 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300878 )
879endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300880
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100881if (gRPC_BUILD_TESTS)
882
883add_library(gpr_test_util
Yash Tibrewal34a57d02017-10-23 15:33:21 -0700884 test/core/util/test_config.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100885)
886
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +0100887if(WIN32 AND MSVC)
888 set_target_properties(gpr_test_util PROPERTIES COMPILE_PDB_NAME "gpr_test_util"
889 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
890 )
891 if (gRPC_INSTALL)
892 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/gpr_test_util.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +0200893 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +0100894 )
895 endif()
896endif()
897
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100898
899target_include_directories(gpr_test_util
Jan Tattermuschf567ab02017-08-25 16:13:30 +0200900 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100901 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +0100902 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +0100903 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
904 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
905 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
906 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
907 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -0800908 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100909)
910
911target_link_libraries(gpr_test_util
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100912 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100913 gpr
914)
915
916
917endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100918
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100919add_library(grpc
Yash Tibrewal83062842017-09-21 18:56:08 -0700920 src/core/lib/surface/init.cc
Vijay Pai8f4fbb12018-02-08 10:04:08 -0800921 src/core/lib/avl/avl.cc
Craig Tillerd48bd072017-10-06 11:25:14 -0700922 src/core/lib/backoff/backoff.cc
Yash Tibrewal83062842017-09-21 18:56:08 -0700923 src/core/lib/channel/channel_args.cc
924 src/core/lib/channel/channel_stack.cc
925 src/core/lib/channel/channel_stack_builder.cc
ncteisen3b42f832018-03-19 13:22:35 -0700926 src/core/lib/channel/channel_trace.cc
ncteisenbba88402018-05-11 11:54:41 -0400927 src/core/lib/channel/channelz_registry.cc
Yash Tibrewal83062842017-09-21 18:56:08 -0700928 src/core/lib/channel/connected_channel.cc
929 src/core/lib/channel/handshaker.cc
930 src/core/lib/channel/handshaker_factory.cc
931 src/core/lib/channel/handshaker_registry.cc
ncteisen3b42f832018-03-19 13:22:35 -0700932 src/core/lib/channel/status_util.cc
Yash Tibrewal83062842017-09-21 18:56:08 -0700933 src/core/lib/compression/compression.cc
Muxi Yan03fc8572017-10-06 18:47:09 -0700934 src/core/lib/compression/compression_internal.cc
Yash Tibrewal83062842017-09-21 18:56:08 -0700935 src/core/lib/compression/message_compress.cc
936 src/core/lib/compression/stream_compression.cc
Yash Tibrewalbc460fa2017-10-02 17:42:41 -0700937 src/core/lib/compression/stream_compression_gzip.cc
938 src/core/lib/compression/stream_compression_identity.cc
Yash Tibrewal83062842017-09-21 18:56:08 -0700939 src/core/lib/debug/stats.cc
940 src/core/lib/debug/stats_data.cc
941 src/core/lib/http/format_request.cc
942 src/core/lib/http/httpcli.cc
943 src/core/lib/http/parser.cc
944 src/core/lib/iomgr/call_combiner.cc
Yash Tibrewal83062842017-09-21 18:56:08 -0700945 src/core/lib/iomgr/combiner.cc
946 src/core/lib/iomgr/endpoint.cc
947 src/core/lib/iomgr/endpoint_pair_posix.cc
948 src/core/lib/iomgr/endpoint_pair_uv.cc
949 src/core/lib/iomgr/endpoint_pair_windows.cc
950 src/core/lib/iomgr/error.cc
951 src/core/lib/iomgr/ev_epoll1_linux.cc
952 src/core/lib/iomgr/ev_epollex_linux.cc
953 src/core/lib/iomgr/ev_epollsig_linux.cc
954 src/core/lib/iomgr/ev_poll_posix.cc
955 src/core/lib/iomgr/ev_posix.cc
956 src/core/lib/iomgr/ev_windows.cc
957 src/core/lib/iomgr/exec_ctx.cc
958 src/core/lib/iomgr/executor.cc
Nicolas "Pixel" Noble18a68372017-11-20 23:33:22 +0100959 src/core/lib/iomgr/fork_posix.cc
960 src/core/lib/iomgr/fork_windows.cc
Yash Tibrewal83062842017-09-21 18:56:08 -0700961 src/core/lib/iomgr/gethostname_fallback.cc
962 src/core/lib/iomgr/gethostname_host_name_max.cc
963 src/core/lib/iomgr/gethostname_sysconf.cc
964 src/core/lib/iomgr/iocp_windows.cc
965 src/core/lib/iomgr/iomgr.cc
kpayson64539f5062018-03-12 19:16:30 -0700966 src/core/lib/iomgr/iomgr_custom.cc
967 src/core/lib/iomgr/iomgr_internal.cc
Yash Tibrewal83062842017-09-21 18:56:08 -0700968 src/core/lib/iomgr/iomgr_posix.cc
969 src/core/lib/iomgr/iomgr_uv.cc
970 src/core/lib/iomgr/iomgr_windows.cc
971 src/core/lib/iomgr/is_epollexclusive_available.cc
972 src/core/lib/iomgr/load_file.cc
973 src/core/lib/iomgr/lockfree_event.cc
974 src/core/lib/iomgr/network_status_tracker.cc
975 src/core/lib/iomgr/polling_entity.cc
kpayson64539f5062018-03-12 19:16:30 -0700976 src/core/lib/iomgr/pollset.cc
977 src/core/lib/iomgr/pollset_custom.cc
978 src/core/lib/iomgr/pollset_set.cc
979 src/core/lib/iomgr/pollset_set_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -0700980 src/core/lib/iomgr/pollset_set_windows.cc
981 src/core/lib/iomgr/pollset_uv.cc
982 src/core/lib/iomgr/pollset_windows.cc
kpayson64539f5062018-03-12 19:16:30 -0700983 src/core/lib/iomgr/resolve_address.cc
984 src/core/lib/iomgr/resolve_address_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -0700985 src/core/lib/iomgr/resolve_address_posix.cc
Yash Tibrewal83062842017-09-21 18:56:08 -0700986 src/core/lib/iomgr/resolve_address_windows.cc
987 src/core/lib/iomgr/resource_quota.cc
988 src/core/lib/iomgr/sockaddr_utils.cc
989 src/core/lib/iomgr/socket_factory_posix.cc
990 src/core/lib/iomgr/socket_mutator.cc
991 src/core/lib/iomgr/socket_utils_common_posix.cc
992 src/core/lib/iomgr/socket_utils_linux.cc
993 src/core/lib/iomgr/socket_utils_posix.cc
994 src/core/lib/iomgr/socket_utils_uv.cc
Yash Tibrewal26c78032017-09-28 14:34:43 -0700995 src/core/lib/iomgr/socket_utils_windows.cc
Yash Tibrewal83062842017-09-21 18:56:08 -0700996 src/core/lib/iomgr/socket_windows.cc
kpayson64539f5062018-03-12 19:16:30 -0700997 src/core/lib/iomgr/tcp_client.cc
998 src/core/lib/iomgr/tcp_client_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -0700999 src/core/lib/iomgr/tcp_client_posix.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001000 src/core/lib/iomgr/tcp_client_windows.cc
kpayson64539f5062018-03-12 19:16:30 -07001001 src/core/lib/iomgr/tcp_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001002 src/core/lib/iomgr/tcp_posix.cc
kpayson64539f5062018-03-12 19:16:30 -07001003 src/core/lib/iomgr/tcp_server.cc
1004 src/core/lib/iomgr/tcp_server_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001005 src/core/lib/iomgr/tcp_server_posix.cc
1006 src/core/lib/iomgr/tcp_server_utils_posix_common.cc
1007 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc
1008 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001009 src/core/lib/iomgr/tcp_server_windows.cc
1010 src/core/lib/iomgr/tcp_uv.cc
1011 src/core/lib/iomgr/tcp_windows.cc
1012 src/core/lib/iomgr/time_averaged_stats.cc
kpayson64539f5062018-03-12 19:16:30 -07001013 src/core/lib/iomgr/timer.cc
1014 src/core/lib/iomgr/timer_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001015 src/core/lib/iomgr/timer_generic.cc
1016 src/core/lib/iomgr/timer_heap.cc
1017 src/core/lib/iomgr/timer_manager.cc
1018 src/core/lib/iomgr/timer_uv.cc
1019 src/core/lib/iomgr/udp_server.cc
1020 src/core/lib/iomgr/unix_sockets_posix.cc
1021 src/core/lib/iomgr/unix_sockets_posix_noop.cc
1022 src/core/lib/iomgr/wakeup_fd_cv.cc
1023 src/core/lib/iomgr/wakeup_fd_eventfd.cc
1024 src/core/lib/iomgr/wakeup_fd_nospecial.cc
1025 src/core/lib/iomgr/wakeup_fd_pipe.cc
1026 src/core/lib/iomgr/wakeup_fd_posix.cc
1027 src/core/lib/json/json.cc
1028 src/core/lib/json/json_reader.cc
1029 src/core/lib/json/json_string.cc
1030 src/core/lib/json/json_writer.cc
1031 src/core/lib/slice/b64.cc
1032 src/core/lib/slice/percent_encoding.cc
1033 src/core/lib/slice/slice.cc
1034 src/core/lib/slice/slice_buffer.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001035 src/core/lib/slice/slice_intern.cc
1036 src/core/lib/slice/slice_string_helpers.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001037 src/core/lib/surface/api_trace.cc
1038 src/core/lib/surface/byte_buffer.cc
1039 src/core/lib/surface/byte_buffer_reader.cc
1040 src/core/lib/surface/call.cc
1041 src/core/lib/surface/call_details.cc
1042 src/core/lib/surface/call_log_batch.cc
1043 src/core/lib/surface/channel.cc
1044 src/core/lib/surface/channel_init.cc
1045 src/core/lib/surface/channel_ping.cc
1046 src/core/lib/surface/channel_stack_type.cc
1047 src/core/lib/surface/completion_queue.cc
1048 src/core/lib/surface/completion_queue_factory.cc
1049 src/core/lib/surface/event_string.cc
Craig Tiller8ebb5442017-04-07 16:01:55 -07001050 src/core/lib/surface/lame_client.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001051 src/core/lib/surface/metadata_array.cc
1052 src/core/lib/surface/server.cc
1053 src/core/lib/surface/validate_metadata.cc
1054 src/core/lib/surface/version.cc
1055 src/core/lib/transport/bdp_estimator.cc
1056 src/core/lib/transport/byte_stream.cc
1057 src/core/lib/transport/connectivity_state.cc
1058 src/core/lib/transport/error_utils.cc
1059 src/core/lib/transport/metadata.cc
1060 src/core/lib/transport/metadata_batch.cc
1061 src/core/lib/transport/pid_controller.cc
1062 src/core/lib/transport/service_config.cc
1063 src/core/lib/transport/static_metadata.cc
1064 src/core/lib/transport/status_conversion.cc
Mark D. Roth718c8342018-02-28 13:00:04 -08001065 src/core/lib/transport/status_metadata.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001066 src/core/lib/transport/timeout_encoding.cc
1067 src/core/lib/transport/transport.cc
1068 src/core/lib/transport/transport_op_string.cc
1069 src/core/lib/debug/trace.cc
1070 src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.cc
1071 src/core/ext/transport/chttp2/transport/bin_decoder.cc
1072 src/core/ext/transport/chttp2/transport/bin_encoder.cc
1073 src/core/ext/transport/chttp2/transport/chttp2_plugin.cc
1074 src/core/ext/transport/chttp2/transport/chttp2_transport.cc
1075 src/core/ext/transport/chttp2/transport/flow_control.cc
1076 src/core/ext/transport/chttp2/transport/frame_data.cc
1077 src/core/ext/transport/chttp2/transport/frame_goaway.cc
1078 src/core/ext/transport/chttp2/transport/frame_ping.cc
1079 src/core/ext/transport/chttp2/transport/frame_rst_stream.cc
1080 src/core/ext/transport/chttp2/transport/frame_settings.cc
1081 src/core/ext/transport/chttp2/transport/frame_window_update.cc
1082 src/core/ext/transport/chttp2/transport/hpack_encoder.cc
1083 src/core/ext/transport/chttp2/transport/hpack_parser.cc
1084 src/core/ext/transport/chttp2/transport/hpack_table.cc
1085 src/core/ext/transport/chttp2/transport/http2_settings.cc
1086 src/core/ext/transport/chttp2/transport/huffsyms.cc
1087 src/core/ext/transport/chttp2/transport/incoming_metadata.cc
1088 src/core/ext/transport/chttp2/transport/parsing.cc
1089 src/core/ext/transport/chttp2/transport/stream_lists.cc
1090 src/core/ext/transport/chttp2/transport/stream_map.cc
1091 src/core/ext/transport/chttp2/transport/varint.cc
1092 src/core/ext/transport/chttp2/transport/writing.cc
1093 src/core/ext/transport/chttp2/alpn/alpn.cc
1094 src/core/ext/filters/http/client/http_client_filter.cc
1095 src/core/ext/filters/http/http_filters_plugin.cc
1096 src/core/ext/filters/http/message_compress/message_compress_filter.cc
1097 src/core/ext/filters/http/server/http_server_filter.cc
1098 src/core/lib/http/httpcli_security_connector.cc
1099 src/core/lib/security/context/security_context.cc
Yihua Zhangeaf64862018-03-06 21:40:45 -08001100 src/core/lib/security/credentials/alts/alts_credentials.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001101 src/core/lib/security/credentials/composite/composite_credentials.cc
1102 src/core/lib/security/credentials/credentials.cc
1103 src/core/lib/security/credentials/credentials_metadata.cc
1104 src/core/lib/security/credentials/fake/fake_credentials.cc
1105 src/core/lib/security/credentials/google_default/credentials_generic.cc
1106 src/core/lib/security/credentials/google_default/google_default_credentials.cc
1107 src/core/lib/security/credentials/iam/iam_credentials.cc
1108 src/core/lib/security/credentials/jwt/json_token.cc
1109 src/core/lib/security/credentials/jwt/jwt_credentials.cc
1110 src/core/lib/security/credentials/jwt/jwt_verifier.cc
1111 src/core/lib/security/credentials/oauth2/oauth2_credentials.cc
1112 src/core/lib/security/credentials/plugin/plugin_credentials.cc
1113 src/core/lib/security/credentials/ssl/ssl_credentials.cc
Yihua Zhangeaf64862018-03-06 21:40:45 -08001114 src/core/lib/security/security_connector/alts_security_connector.cc
Yihua Zhang75f0a9f2018-02-20 10:09:47 -08001115 src/core/lib/security/security_connector/security_connector.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001116 src/core/lib/security/transport/client_auth_filter.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001117 src/core/lib/security/transport/secure_endpoint.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001118 src/core/lib/security/transport/security_handshaker.cc
1119 src/core/lib/security/transport/server_auth_filter.cc
Mark D. Roth3e7f2df2018-02-26 13:17:06 -08001120 src/core/lib/security/transport/target_authority_table.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001121 src/core/lib/security/transport/tsi_error.cc
1122 src/core/lib/security/util/json_util.cc
1123 src/core/lib/surface/init_secure.cc
Yihua Zhangeaf64862018-03-06 21:40:45 -08001124 src/core/tsi/alts/crypt/aes_gcm.cc
1125 src/core/tsi/alts/crypt/gsec.cc
1126 src/core/tsi/alts/frame_protector/alts_counter.cc
1127 src/core/tsi/alts/frame_protector/alts_crypter.cc
1128 src/core/tsi/alts/frame_protector/alts_frame_protector.cc
1129 src/core/tsi/alts/frame_protector/alts_record_protocol_crypter_common.cc
1130 src/core/tsi/alts/frame_protector/alts_seal_privacy_integrity_crypter.cc
1131 src/core/tsi/alts/frame_protector/alts_unseal_privacy_integrity_crypter.cc
1132 src/core/tsi/alts/frame_protector/frame_handler.cc
1133 src/core/tsi/alts/handshaker/alts_handshaker_client.cc
1134 src/core/tsi/alts/handshaker/alts_tsi_event.cc
1135 src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc
1136 src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.cc
1137 src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.cc
1138 src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.cc
1139 src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.cc
1140 src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc
1141 src/core/lib/security/credentials/alts/check_gcp_environment.cc
1142 src/core/lib/security/credentials/alts/check_gcp_environment_linux.cc
1143 src/core/lib/security/credentials/alts/check_gcp_environment_no_op.cc
1144 src/core/lib/security/credentials/alts/check_gcp_environment_windows.cc
1145 src/core/lib/security/credentials/alts/grpc_alts_credentials_client_options.cc
1146 src/core/lib/security/credentials/alts/grpc_alts_credentials_options.cc
1147 src/core/lib/security/credentials/alts/grpc_alts_credentials_server_options.cc
1148 src/core/tsi/alts/handshaker/alts_handshaker_service_api.cc
1149 src/core/tsi/alts/handshaker/alts_handshaker_service_api_util.cc
1150 src/core/tsi/alts/handshaker/alts_tsi_utils.cc
1151 src/core/tsi/alts/handshaker/transport_security_common_api.cc
1152 src/core/tsi/alts/handshaker/altscontext.pb.c
1153 src/core/tsi/alts/handshaker/handshaker.pb.c
1154 src/core/tsi/alts/handshaker/transport_security_common.pb.c
1155 third_party/nanopb/pb_common.c
1156 third_party/nanopb/pb_decode.c
1157 third_party/nanopb/pb_encode.c
Yash Tibrewal83062842017-09-21 18:56:08 -07001158 src/core/tsi/transport_security.cc
Yihua Zhangeaf64862018-03-06 21:40:45 -08001159 src/core/ext/transport/chttp2/client/insecure/channel_create.cc
1160 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.cc
David Garcia Quintas49f625f2018-03-27 11:23:49 -07001161 src/core/ext/transport/chttp2/client/authority.cc
Yihua Zhangeaf64862018-03-06 21:40:45 -08001162 src/core/ext/transport/chttp2/client/chttp2_connector.cc
Yuchen Zeng0bad30a2017-10-05 21:47:39 -07001163 src/core/ext/filters/client_channel/backup_poller.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001164 src/core/ext/filters/client_channel/channel_connectivity.cc
1165 src/core/ext/filters/client_channel/client_channel.cc
1166 src/core/ext/filters/client_channel/client_channel_factory.cc
1167 src/core/ext/filters/client_channel/client_channel_plugin.cc
1168 src/core/ext/filters/client_channel/connector.cc
1169 src/core/ext/filters/client_channel/http_connect_handshaker.cc
1170 src/core/ext/filters/client_channel/http_proxy.cc
1171 src/core/ext/filters/client_channel/lb_policy.cc
1172 src/core/ext/filters/client_channel/lb_policy_factory.cc
1173 src/core/ext/filters/client_channel/lb_policy_registry.cc
Mark D. Roth3e7f2df2018-02-26 13:17:06 -08001174 src/core/ext/filters/client_channel/method_params.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001175 src/core/ext/filters/client_channel/parse_address.cc
1176 src/core/ext/filters/client_channel/proxy_mapper.cc
1177 src/core/ext/filters/client_channel/proxy_mapper_registry.cc
1178 src/core/ext/filters/client_channel/resolver.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001179 src/core/ext/filters/client_channel/resolver_registry.cc
1180 src/core/ext/filters/client_channel/retry_throttle.cc
1181 src/core/ext/filters/client_channel/subchannel.cc
1182 src/core/ext/filters/client_channel/subchannel_index.cc
1183 src/core/ext/filters/client_channel/uri_parser.cc
1184 src/core/ext/filters/deadline/deadline_filter.cc
Yihua Zhangeaf64862018-03-06 21:40:45 -08001185 src/core/tsi/alts_transport_security.cc
1186 src/core/tsi/fake_transport_security.cc
Ruslan Nigmatullin99d0cee2018-03-20 09:18:29 -07001187 src/core/tsi/ssl/session_cache/ssl_session_boringssl.cc
1188 src/core/tsi/ssl/session_cache/ssl_session_cache.cc
1189 src/core/tsi/ssl/session_cache/ssl_session_openssl.cc
Yihua Zhangeaf64862018-03-06 21:40:45 -08001190 src/core/tsi/ssl_transport_security.cc
1191 src/core/tsi/transport_security_grpc.cc
1192 src/core/ext/transport/chttp2/server/chttp2_server.cc
1193 src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001194 src/core/ext/transport/chttp2/server/insecure/server_chttp2.cc
1195 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001196 src/core/ext/transport/inproc/inproc_plugin.cc
1197 src/core/ext/transport/inproc/inproc_transport.cc
1198 src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc
1199 src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc
1200 src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.cc
1201 src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.cc
1202 src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc
Craig Tiller9eb0fde2017-03-31 16:59:30 -07001203 src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
Yash Tibrewal83062842017-09-21 18:56:08 -07001204 src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc
1205 src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc
1206 src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc
1207 src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc
1208 src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc
1209 src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc
1210 src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_fallback.cc
1211 src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc
1212 src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc
1213 src/core/ext/filters/load_reporting/server_load_reporting_filter.cc
1214 src/core/ext/filters/load_reporting/server_load_reporting_plugin.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001215 src/core/ext/census/grpc_context.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001216 src/core/ext/filters/max_age/max_age_filter.cc
1217 src/core/ext/filters/message_size/message_size_filter.cc
David Garcia Quintas961353a2018-03-15 16:11:05 -07001218 src/core/ext/filters/http/client_authority_filter.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001219 src/core/ext/filters/workarounds/workaround_cronet_compression_filter.cc
1220 src/core/ext/filters/workarounds/workaround_utils.cc
Yash Tibrewal1c9b5842017-09-21 15:49:55 -07001221 src/core/plugin_registry/grpc_plugin_registry.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001222)
1223
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001224if(WIN32 AND MSVC)
1225 set_target_properties(grpc PROPERTIES COMPILE_PDB_NAME "grpc"
1226 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
1227 )
1228 if (gRPC_INSTALL)
1229 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02001230 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001231 )
1232 endif()
1233endif()
1234
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001235
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001236target_include_directories(grpc
Jan Tattermuschf567ab02017-08-25 16:13:30 +02001237 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001238 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01001239 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01001240 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
1241 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
1242 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
1243 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
1244 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08001245 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001246)
1247
1248target_link_libraries(grpc
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001249 ${_gRPC_BASELIB_LIBRARIES}
1250 ${_gRPC_SSL_LIBRARIES}
1251 ${_gRPC_ZLIB_LIBRARIES}
Yuchen Zeng8076d2b2016-08-25 13:23:13 -07001252 ${_gRPC_CARES_LIBRARIES}
Alexander Polcyn690dde62017-10-18 00:20:33 -07001253 ${_gRPC_ADDRESS_SORTING_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001254 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001255 gpr
1256)
1257
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001258foreach(_hdr
Vijay Paiefce6e12017-09-14 09:07:50 -07001259 include/grpc/impl/codegen/byte_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001260 include/grpc/impl/codegen/byte_buffer_reader.h
1261 include/grpc/impl/codegen/compression_types.h
1262 include/grpc/impl/codegen/connectivity_state.h
1263 include/grpc/impl/codegen/grpc_types.h
1264 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07001265 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001266 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001267 include/grpc/impl/codegen/atm.h
1268 include/grpc/impl/codegen/atm_gcc_atomic.h
1269 include/grpc/impl/codegen/atm_gcc_sync.h
1270 include/grpc/impl/codegen/atm_windows.h
Ken Payson9714e032017-10-10 11:18:49 -07001271 include/grpc/impl/codegen/fork.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08001272 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001273 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001274 include/grpc/impl/codegen/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001275 include/grpc/impl/codegen/sync.h
yang-g9ff60312017-08-24 09:08:21 -07001276 include/grpc/impl/codegen/sync_custom.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001277 include/grpc/impl/codegen/sync_generic.h
1278 include/grpc/impl/codegen/sync_posix.h
1279 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001280 include/grpc/grpc_security.h
Vijay Pai42807252017-07-28 15:08:24 -07001281 include/grpc/byte_buffer.h
1282 include/grpc/byte_buffer_reader.h
1283 include/grpc/compression.h
Ken Payson9714e032017-10-10 11:18:49 -07001284 include/grpc/fork.h
Vijay Pai42807252017-07-28 15:08:24 -07001285 include/grpc/grpc.h
1286 include/grpc/grpc_posix.h
1287 include/grpc/grpc_security_constants.h
1288 include/grpc/load_reporting.h
1289 include/grpc/slice.h
1290 include/grpc/slice_buffer.h
1291 include/grpc/status.h
1292 include/grpc/support/workaround_list.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001293 include/grpc/census.h
1294)
1295 string(REPLACE "include/" "" _path ${_hdr})
1296 get_filename_component(_path ${_path} PATH)
1297 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02001298 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001299 )
1300endforeach()
1301
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001302
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001303if (gRPC_INSTALL)
1304 install(TARGETS grpc EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02001305 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
1306 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
1307 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001308 )
1309endif()
1310
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001311
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001312add_library(grpc_cronet
Yash Tibrewal83062842017-09-21 18:56:08 -07001313 src/core/lib/surface/init.cc
Vijay Pai8f4fbb12018-02-08 10:04:08 -08001314 src/core/lib/avl/avl.cc
Craig Tillerd48bd072017-10-06 11:25:14 -07001315 src/core/lib/backoff/backoff.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001316 src/core/lib/channel/channel_args.cc
1317 src/core/lib/channel/channel_stack.cc
1318 src/core/lib/channel/channel_stack_builder.cc
ncteisen3b42f832018-03-19 13:22:35 -07001319 src/core/lib/channel/channel_trace.cc
ncteisenbba88402018-05-11 11:54:41 -04001320 src/core/lib/channel/channelz_registry.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001321 src/core/lib/channel/connected_channel.cc
1322 src/core/lib/channel/handshaker.cc
1323 src/core/lib/channel/handshaker_factory.cc
1324 src/core/lib/channel/handshaker_registry.cc
ncteisen3b42f832018-03-19 13:22:35 -07001325 src/core/lib/channel/status_util.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001326 src/core/lib/compression/compression.cc
Muxi Yan03fc8572017-10-06 18:47:09 -07001327 src/core/lib/compression/compression_internal.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001328 src/core/lib/compression/message_compress.cc
1329 src/core/lib/compression/stream_compression.cc
Yash Tibrewalbc460fa2017-10-02 17:42:41 -07001330 src/core/lib/compression/stream_compression_gzip.cc
1331 src/core/lib/compression/stream_compression_identity.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001332 src/core/lib/debug/stats.cc
1333 src/core/lib/debug/stats_data.cc
1334 src/core/lib/http/format_request.cc
1335 src/core/lib/http/httpcli.cc
1336 src/core/lib/http/parser.cc
1337 src/core/lib/iomgr/call_combiner.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001338 src/core/lib/iomgr/combiner.cc
1339 src/core/lib/iomgr/endpoint.cc
1340 src/core/lib/iomgr/endpoint_pair_posix.cc
1341 src/core/lib/iomgr/endpoint_pair_uv.cc
1342 src/core/lib/iomgr/endpoint_pair_windows.cc
1343 src/core/lib/iomgr/error.cc
1344 src/core/lib/iomgr/ev_epoll1_linux.cc
1345 src/core/lib/iomgr/ev_epollex_linux.cc
1346 src/core/lib/iomgr/ev_epollsig_linux.cc
1347 src/core/lib/iomgr/ev_poll_posix.cc
1348 src/core/lib/iomgr/ev_posix.cc
1349 src/core/lib/iomgr/ev_windows.cc
1350 src/core/lib/iomgr/exec_ctx.cc
1351 src/core/lib/iomgr/executor.cc
Nicolas "Pixel" Noble18a68372017-11-20 23:33:22 +01001352 src/core/lib/iomgr/fork_posix.cc
1353 src/core/lib/iomgr/fork_windows.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001354 src/core/lib/iomgr/gethostname_fallback.cc
1355 src/core/lib/iomgr/gethostname_host_name_max.cc
1356 src/core/lib/iomgr/gethostname_sysconf.cc
1357 src/core/lib/iomgr/iocp_windows.cc
1358 src/core/lib/iomgr/iomgr.cc
kpayson64539f5062018-03-12 19:16:30 -07001359 src/core/lib/iomgr/iomgr_custom.cc
1360 src/core/lib/iomgr/iomgr_internal.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001361 src/core/lib/iomgr/iomgr_posix.cc
1362 src/core/lib/iomgr/iomgr_uv.cc
1363 src/core/lib/iomgr/iomgr_windows.cc
1364 src/core/lib/iomgr/is_epollexclusive_available.cc
1365 src/core/lib/iomgr/load_file.cc
1366 src/core/lib/iomgr/lockfree_event.cc
1367 src/core/lib/iomgr/network_status_tracker.cc
1368 src/core/lib/iomgr/polling_entity.cc
kpayson64539f5062018-03-12 19:16:30 -07001369 src/core/lib/iomgr/pollset.cc
1370 src/core/lib/iomgr/pollset_custom.cc
1371 src/core/lib/iomgr/pollset_set.cc
1372 src/core/lib/iomgr/pollset_set_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001373 src/core/lib/iomgr/pollset_set_windows.cc
1374 src/core/lib/iomgr/pollset_uv.cc
1375 src/core/lib/iomgr/pollset_windows.cc
kpayson64539f5062018-03-12 19:16:30 -07001376 src/core/lib/iomgr/resolve_address.cc
1377 src/core/lib/iomgr/resolve_address_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001378 src/core/lib/iomgr/resolve_address_posix.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001379 src/core/lib/iomgr/resolve_address_windows.cc
1380 src/core/lib/iomgr/resource_quota.cc
1381 src/core/lib/iomgr/sockaddr_utils.cc
1382 src/core/lib/iomgr/socket_factory_posix.cc
1383 src/core/lib/iomgr/socket_mutator.cc
1384 src/core/lib/iomgr/socket_utils_common_posix.cc
1385 src/core/lib/iomgr/socket_utils_linux.cc
1386 src/core/lib/iomgr/socket_utils_posix.cc
1387 src/core/lib/iomgr/socket_utils_uv.cc
Yash Tibrewal26c78032017-09-28 14:34:43 -07001388 src/core/lib/iomgr/socket_utils_windows.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001389 src/core/lib/iomgr/socket_windows.cc
kpayson64539f5062018-03-12 19:16:30 -07001390 src/core/lib/iomgr/tcp_client.cc
1391 src/core/lib/iomgr/tcp_client_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001392 src/core/lib/iomgr/tcp_client_posix.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001393 src/core/lib/iomgr/tcp_client_windows.cc
kpayson64539f5062018-03-12 19:16:30 -07001394 src/core/lib/iomgr/tcp_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001395 src/core/lib/iomgr/tcp_posix.cc
kpayson64539f5062018-03-12 19:16:30 -07001396 src/core/lib/iomgr/tcp_server.cc
1397 src/core/lib/iomgr/tcp_server_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001398 src/core/lib/iomgr/tcp_server_posix.cc
1399 src/core/lib/iomgr/tcp_server_utils_posix_common.cc
1400 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc
1401 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001402 src/core/lib/iomgr/tcp_server_windows.cc
1403 src/core/lib/iomgr/tcp_uv.cc
1404 src/core/lib/iomgr/tcp_windows.cc
1405 src/core/lib/iomgr/time_averaged_stats.cc
kpayson64539f5062018-03-12 19:16:30 -07001406 src/core/lib/iomgr/timer.cc
1407 src/core/lib/iomgr/timer_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001408 src/core/lib/iomgr/timer_generic.cc
1409 src/core/lib/iomgr/timer_heap.cc
1410 src/core/lib/iomgr/timer_manager.cc
1411 src/core/lib/iomgr/timer_uv.cc
1412 src/core/lib/iomgr/udp_server.cc
1413 src/core/lib/iomgr/unix_sockets_posix.cc
1414 src/core/lib/iomgr/unix_sockets_posix_noop.cc
1415 src/core/lib/iomgr/wakeup_fd_cv.cc
1416 src/core/lib/iomgr/wakeup_fd_eventfd.cc
1417 src/core/lib/iomgr/wakeup_fd_nospecial.cc
1418 src/core/lib/iomgr/wakeup_fd_pipe.cc
1419 src/core/lib/iomgr/wakeup_fd_posix.cc
1420 src/core/lib/json/json.cc
1421 src/core/lib/json/json_reader.cc
1422 src/core/lib/json/json_string.cc
1423 src/core/lib/json/json_writer.cc
1424 src/core/lib/slice/b64.cc
1425 src/core/lib/slice/percent_encoding.cc
1426 src/core/lib/slice/slice.cc
1427 src/core/lib/slice/slice_buffer.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001428 src/core/lib/slice/slice_intern.cc
1429 src/core/lib/slice/slice_string_helpers.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001430 src/core/lib/surface/api_trace.cc
1431 src/core/lib/surface/byte_buffer.cc
1432 src/core/lib/surface/byte_buffer_reader.cc
1433 src/core/lib/surface/call.cc
1434 src/core/lib/surface/call_details.cc
1435 src/core/lib/surface/call_log_batch.cc
1436 src/core/lib/surface/channel.cc
1437 src/core/lib/surface/channel_init.cc
1438 src/core/lib/surface/channel_ping.cc
1439 src/core/lib/surface/channel_stack_type.cc
1440 src/core/lib/surface/completion_queue.cc
1441 src/core/lib/surface/completion_queue_factory.cc
1442 src/core/lib/surface/event_string.cc
Craig Tiller8ebb5442017-04-07 16:01:55 -07001443 src/core/lib/surface/lame_client.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001444 src/core/lib/surface/metadata_array.cc
1445 src/core/lib/surface/server.cc
1446 src/core/lib/surface/validate_metadata.cc
1447 src/core/lib/surface/version.cc
1448 src/core/lib/transport/bdp_estimator.cc
1449 src/core/lib/transport/byte_stream.cc
1450 src/core/lib/transport/connectivity_state.cc
1451 src/core/lib/transport/error_utils.cc
1452 src/core/lib/transport/metadata.cc
1453 src/core/lib/transport/metadata_batch.cc
1454 src/core/lib/transport/pid_controller.cc
1455 src/core/lib/transport/service_config.cc
1456 src/core/lib/transport/static_metadata.cc
1457 src/core/lib/transport/status_conversion.cc
Mark D. Roth718c8342018-02-28 13:00:04 -08001458 src/core/lib/transport/status_metadata.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001459 src/core/lib/transport/timeout_encoding.cc
1460 src/core/lib/transport/transport.cc
1461 src/core/lib/transport/transport_op_string.cc
1462 src/core/lib/debug/trace.cc
1463 src/core/ext/transport/cronet/client/secure/cronet_channel_create.cc
1464 src/core/ext/transport/cronet/transport/cronet_api_dummy.cc
1465 src/core/ext/transport/cronet/transport/cronet_transport.cc
1466 src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc
1467 src/core/ext/transport/chttp2/transport/bin_decoder.cc
1468 src/core/ext/transport/chttp2/transport/bin_encoder.cc
1469 src/core/ext/transport/chttp2/transport/chttp2_plugin.cc
1470 src/core/ext/transport/chttp2/transport/chttp2_transport.cc
1471 src/core/ext/transport/chttp2/transport/flow_control.cc
1472 src/core/ext/transport/chttp2/transport/frame_data.cc
1473 src/core/ext/transport/chttp2/transport/frame_goaway.cc
1474 src/core/ext/transport/chttp2/transport/frame_ping.cc
1475 src/core/ext/transport/chttp2/transport/frame_rst_stream.cc
1476 src/core/ext/transport/chttp2/transport/frame_settings.cc
1477 src/core/ext/transport/chttp2/transport/frame_window_update.cc
1478 src/core/ext/transport/chttp2/transport/hpack_encoder.cc
1479 src/core/ext/transport/chttp2/transport/hpack_parser.cc
1480 src/core/ext/transport/chttp2/transport/hpack_table.cc
1481 src/core/ext/transport/chttp2/transport/http2_settings.cc
1482 src/core/ext/transport/chttp2/transport/huffsyms.cc
1483 src/core/ext/transport/chttp2/transport/incoming_metadata.cc
1484 src/core/ext/transport/chttp2/transport/parsing.cc
1485 src/core/ext/transport/chttp2/transport/stream_lists.cc
1486 src/core/ext/transport/chttp2/transport/stream_map.cc
1487 src/core/ext/transport/chttp2/transport/varint.cc
1488 src/core/ext/transport/chttp2/transport/writing.cc
1489 src/core/ext/transport/chttp2/alpn/alpn.cc
1490 src/core/ext/filters/http/client/http_client_filter.cc
1491 src/core/ext/filters/http/http_filters_plugin.cc
1492 src/core/ext/filters/http/message_compress/message_compress_filter.cc
1493 src/core/ext/filters/http/server/http_server_filter.cc
Yuchen Zeng0bad30a2017-10-05 21:47:39 -07001494 src/core/ext/filters/client_channel/backup_poller.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001495 src/core/ext/filters/client_channel/channel_connectivity.cc
1496 src/core/ext/filters/client_channel/client_channel.cc
1497 src/core/ext/filters/client_channel/client_channel_factory.cc
1498 src/core/ext/filters/client_channel/client_channel_plugin.cc
1499 src/core/ext/filters/client_channel/connector.cc
1500 src/core/ext/filters/client_channel/http_connect_handshaker.cc
1501 src/core/ext/filters/client_channel/http_proxy.cc
1502 src/core/ext/filters/client_channel/lb_policy.cc
1503 src/core/ext/filters/client_channel/lb_policy_factory.cc
1504 src/core/ext/filters/client_channel/lb_policy_registry.cc
Mark D. Roth3e7f2df2018-02-26 13:17:06 -08001505 src/core/ext/filters/client_channel/method_params.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001506 src/core/ext/filters/client_channel/parse_address.cc
1507 src/core/ext/filters/client_channel/proxy_mapper.cc
1508 src/core/ext/filters/client_channel/proxy_mapper_registry.cc
1509 src/core/ext/filters/client_channel/resolver.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001510 src/core/ext/filters/client_channel/resolver_registry.cc
1511 src/core/ext/filters/client_channel/retry_throttle.cc
1512 src/core/ext/filters/client_channel/subchannel.cc
1513 src/core/ext/filters/client_channel/subchannel_index.cc
1514 src/core/ext/filters/client_channel/uri_parser.cc
1515 src/core/ext/filters/deadline/deadline_filter.cc
1516 src/core/lib/http/httpcli_security_connector.cc
1517 src/core/lib/security/context/security_context.cc
Yihua Zhangeaf64862018-03-06 21:40:45 -08001518 src/core/lib/security/credentials/alts/alts_credentials.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001519 src/core/lib/security/credentials/composite/composite_credentials.cc
1520 src/core/lib/security/credentials/credentials.cc
1521 src/core/lib/security/credentials/credentials_metadata.cc
1522 src/core/lib/security/credentials/fake/fake_credentials.cc
1523 src/core/lib/security/credentials/google_default/credentials_generic.cc
1524 src/core/lib/security/credentials/google_default/google_default_credentials.cc
1525 src/core/lib/security/credentials/iam/iam_credentials.cc
1526 src/core/lib/security/credentials/jwt/json_token.cc
1527 src/core/lib/security/credentials/jwt/jwt_credentials.cc
1528 src/core/lib/security/credentials/jwt/jwt_verifier.cc
1529 src/core/lib/security/credentials/oauth2/oauth2_credentials.cc
1530 src/core/lib/security/credentials/plugin/plugin_credentials.cc
1531 src/core/lib/security/credentials/ssl/ssl_credentials.cc
Yihua Zhangeaf64862018-03-06 21:40:45 -08001532 src/core/lib/security/security_connector/alts_security_connector.cc
Yihua Zhang75f0a9f2018-02-20 10:09:47 -08001533 src/core/lib/security/security_connector/security_connector.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001534 src/core/lib/security/transport/client_auth_filter.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001535 src/core/lib/security/transport/secure_endpoint.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001536 src/core/lib/security/transport/security_handshaker.cc
1537 src/core/lib/security/transport/server_auth_filter.cc
Mark D. Roth3e7f2df2018-02-26 13:17:06 -08001538 src/core/lib/security/transport/target_authority_table.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001539 src/core/lib/security/transport/tsi_error.cc
1540 src/core/lib/security/util/json_util.cc
1541 src/core/lib/surface/init_secure.cc
Yihua Zhangeaf64862018-03-06 21:40:45 -08001542 src/core/tsi/alts/crypt/aes_gcm.cc
1543 src/core/tsi/alts/crypt/gsec.cc
1544 src/core/tsi/alts/frame_protector/alts_counter.cc
1545 src/core/tsi/alts/frame_protector/alts_crypter.cc
1546 src/core/tsi/alts/frame_protector/alts_frame_protector.cc
1547 src/core/tsi/alts/frame_protector/alts_record_protocol_crypter_common.cc
1548 src/core/tsi/alts/frame_protector/alts_seal_privacy_integrity_crypter.cc
1549 src/core/tsi/alts/frame_protector/alts_unseal_privacy_integrity_crypter.cc
1550 src/core/tsi/alts/frame_protector/frame_handler.cc
1551 src/core/tsi/alts/handshaker/alts_handshaker_client.cc
1552 src/core/tsi/alts/handshaker/alts_tsi_event.cc
1553 src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc
1554 src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.cc
1555 src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.cc
1556 src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.cc
1557 src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.cc
1558 src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc
1559 src/core/lib/security/credentials/alts/check_gcp_environment.cc
1560 src/core/lib/security/credentials/alts/check_gcp_environment_linux.cc
1561 src/core/lib/security/credentials/alts/check_gcp_environment_no_op.cc
1562 src/core/lib/security/credentials/alts/check_gcp_environment_windows.cc
1563 src/core/lib/security/credentials/alts/grpc_alts_credentials_client_options.cc
1564 src/core/lib/security/credentials/alts/grpc_alts_credentials_options.cc
1565 src/core/lib/security/credentials/alts/grpc_alts_credentials_server_options.cc
1566 src/core/tsi/alts/handshaker/alts_handshaker_service_api.cc
1567 src/core/tsi/alts/handshaker/alts_handshaker_service_api_util.cc
1568 src/core/tsi/alts/handshaker/alts_tsi_utils.cc
1569 src/core/tsi/alts/handshaker/transport_security_common_api.cc
1570 src/core/tsi/alts/handshaker/altscontext.pb.c
1571 src/core/tsi/alts/handshaker/handshaker.pb.c
1572 src/core/tsi/alts/handshaker/transport_security_common.pb.c
1573 third_party/nanopb/pb_common.c
1574 third_party/nanopb/pb_decode.c
1575 third_party/nanopb/pb_encode.c
1576 src/core/tsi/transport_security.cc
Yihua Zhangeaf64862018-03-06 21:40:45 -08001577 src/core/ext/transport/chttp2/client/insecure/channel_create.cc
1578 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.cc
David Garcia Quintas49f625f2018-03-27 11:23:49 -07001579 src/core/ext/transport/chttp2/client/authority.cc
Yihua Zhangeaf64862018-03-06 21:40:45 -08001580 src/core/ext/transport/chttp2/client/chttp2_connector.cc
Yihua Zhangd36fe072018-01-23 10:40:45 -08001581 src/core/tsi/alts_transport_security.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001582 src/core/tsi/fake_transport_security.cc
Ruslan Nigmatullin99d0cee2018-03-20 09:18:29 -07001583 src/core/tsi/ssl/session_cache/ssl_session_boringssl.cc
1584 src/core/tsi/ssl/session_cache/ssl_session_cache.cc
1585 src/core/tsi/ssl/session_cache/ssl_session_openssl.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001586 src/core/tsi/ssl_transport_security.cc
1587 src/core/tsi/transport_security_grpc.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001588 src/core/ext/filters/load_reporting/server_load_reporting_filter.cc
1589 src/core/ext/filters/load_reporting/server_load_reporting_plugin.cc
Yash Tibrewal1c9b5842017-09-21 15:49:55 -07001590 src/core/plugin_registry/grpc_cronet_plugin_registry.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001591)
1592
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001593if(WIN32 AND MSVC)
1594 set_target_properties(grpc_cronet PROPERTIES COMPILE_PDB_NAME "grpc_cronet"
1595 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
1596 )
1597 if (gRPC_INSTALL)
1598 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_cronet.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02001599 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001600 )
1601 endif()
1602endif()
1603
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001604
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001605target_include_directories(grpc_cronet
Jan Tattermuschf567ab02017-08-25 16:13:30 +02001606 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001607 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01001608 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01001609 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
1610 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
1611 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
1612 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
1613 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08001614 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001615)
1616
1617target_link_libraries(grpc_cronet
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001618 ${_gRPC_BASELIB_LIBRARIES}
1619 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch807693b2017-06-12 10:15:27 +02001620 ${_gRPC_ZLIB_LIBRARIES}
1621 ${_gRPC_CARES_LIBRARIES}
Alexander Polcyn690dde62017-10-18 00:20:33 -07001622 ${_gRPC_ADDRESS_SORTING_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001623 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001624 gpr
1625)
1626
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001627foreach(_hdr
Vijay Paiefce6e12017-09-14 09:07:50 -07001628 include/grpc/impl/codegen/byte_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001629 include/grpc/impl/codegen/byte_buffer_reader.h
1630 include/grpc/impl/codegen/compression_types.h
1631 include/grpc/impl/codegen/connectivity_state.h
1632 include/grpc/impl/codegen/grpc_types.h
1633 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07001634 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001635 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001636 include/grpc/impl/codegen/atm.h
1637 include/grpc/impl/codegen/atm_gcc_atomic.h
1638 include/grpc/impl/codegen/atm_gcc_sync.h
1639 include/grpc/impl/codegen/atm_windows.h
Ken Payson9714e032017-10-10 11:18:49 -07001640 include/grpc/impl/codegen/fork.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08001641 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001642 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001643 include/grpc/impl/codegen/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001644 include/grpc/impl/codegen/sync.h
yang-g9ff60312017-08-24 09:08:21 -07001645 include/grpc/impl/codegen/sync_custom.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001646 include/grpc/impl/codegen/sync_generic.h
1647 include/grpc/impl/codegen/sync_posix.h
1648 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001649 include/grpc/grpc_cronet.h
1650 include/grpc/grpc_security.h
Vijay Pai42807252017-07-28 15:08:24 -07001651 include/grpc/grpc_security_constants.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001652)
1653 string(REPLACE "include/" "" _path ${_hdr})
1654 get_filename_component(_path ${_path} PATH)
1655 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02001656 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001657 )
1658endforeach()
1659
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001660
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001661if (gRPC_INSTALL)
1662 install(TARGETS grpc_cronet EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02001663 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
1664 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
1665 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001666 )
1667endif()
1668
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001669if (gRPC_BUILD_TESTS)
1670
1671add_library(grpc_test_util
Yash Tibrewal34a57d02017-10-23 15:33:21 -07001672 test/core/end2end/data/client_certs.cc
1673 test/core/end2end/data/server1_cert.cc
1674 test/core/end2end/data/server1_key.cc
1675 test/core/end2end/data/test_root_cert.cc
1676 test/core/security/oauth2_utils.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001677 src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc
Yash Tibrewal34a57d02017-10-23 15:33:21 -07001678 test/core/end2end/cq_verifier.cc
1679 test/core/end2end/fixtures/http_proxy_fixture.cc
1680 test/core/end2end/fixtures/proxy.cc
1681 test/core/iomgr/endpoint_tests.cc
Craig Tiller92226062017-10-08 21:16:12 -07001682 test/core/util/debugger_macros.cc
Yihua Zhangcc936632018-05-08 10:15:03 -07001683 test/core/util/fuzzer_util.cc
Yash Tibrewal34a57d02017-10-23 15:33:21 -07001684 test/core/util/grpc_profiler.cc
Vijay Pai195cf1e2017-11-30 10:56:06 -08001685 test/core/util/histogram.cc
Yash Tibrewal34a57d02017-10-23 15:33:21 -07001686 test/core/util/memory_counters.cc
1687 test/core/util/mock_endpoint.cc
1688 test/core/util/parse_hexstring.cc
1689 test/core/util/passthru_endpoint.cc
1690 test/core/util/port.cc
Adele Zhou5b7cdef2017-11-29 16:25:17 -08001691 test/core/util/port_isolated_runtime_environment.cc
Yash Tibrewal34a57d02017-10-23 15:33:21 -07001692 test/core/util/port_server_client.cc
1693 test/core/util/slice_splitter.cc
Vijay Pai8a99fdb2018-01-25 15:38:20 -08001694 test/core/util/subprocess_posix.cc
1695 test/core/util/subprocess_windows.cc
ncteisenaa3b1972017-11-17 15:56:27 -08001696 test/core/util/tracer_util.cc
Yash Tibrewal34a57d02017-10-23 15:33:21 -07001697 test/core/util/trickle_endpoint.cc
Vijay Pai80e23d12018-01-25 21:50:18 -08001698 test/core/util/cmdline.cc
Vijay Pai8f4fbb12018-02-08 10:04:08 -08001699 src/core/lib/avl/avl.cc
Craig Tillerd48bd072017-10-06 11:25:14 -07001700 src/core/lib/backoff/backoff.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001701 src/core/lib/channel/channel_args.cc
1702 src/core/lib/channel/channel_stack.cc
1703 src/core/lib/channel/channel_stack_builder.cc
ncteisen3b42f832018-03-19 13:22:35 -07001704 src/core/lib/channel/channel_trace.cc
ncteisenbba88402018-05-11 11:54:41 -04001705 src/core/lib/channel/channelz_registry.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001706 src/core/lib/channel/connected_channel.cc
1707 src/core/lib/channel/handshaker.cc
1708 src/core/lib/channel/handshaker_factory.cc
1709 src/core/lib/channel/handshaker_registry.cc
ncteisen3b42f832018-03-19 13:22:35 -07001710 src/core/lib/channel/status_util.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001711 src/core/lib/compression/compression.cc
Muxi Yan03fc8572017-10-06 18:47:09 -07001712 src/core/lib/compression/compression_internal.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001713 src/core/lib/compression/message_compress.cc
1714 src/core/lib/compression/stream_compression.cc
Yash Tibrewalbc460fa2017-10-02 17:42:41 -07001715 src/core/lib/compression/stream_compression_gzip.cc
1716 src/core/lib/compression/stream_compression_identity.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001717 src/core/lib/debug/stats.cc
1718 src/core/lib/debug/stats_data.cc
1719 src/core/lib/http/format_request.cc
1720 src/core/lib/http/httpcli.cc
1721 src/core/lib/http/parser.cc
1722 src/core/lib/iomgr/call_combiner.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001723 src/core/lib/iomgr/combiner.cc
1724 src/core/lib/iomgr/endpoint.cc
1725 src/core/lib/iomgr/endpoint_pair_posix.cc
1726 src/core/lib/iomgr/endpoint_pair_uv.cc
1727 src/core/lib/iomgr/endpoint_pair_windows.cc
1728 src/core/lib/iomgr/error.cc
1729 src/core/lib/iomgr/ev_epoll1_linux.cc
1730 src/core/lib/iomgr/ev_epollex_linux.cc
1731 src/core/lib/iomgr/ev_epollsig_linux.cc
1732 src/core/lib/iomgr/ev_poll_posix.cc
1733 src/core/lib/iomgr/ev_posix.cc
1734 src/core/lib/iomgr/ev_windows.cc
1735 src/core/lib/iomgr/exec_ctx.cc
1736 src/core/lib/iomgr/executor.cc
Nicolas "Pixel" Noble18a68372017-11-20 23:33:22 +01001737 src/core/lib/iomgr/fork_posix.cc
1738 src/core/lib/iomgr/fork_windows.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001739 src/core/lib/iomgr/gethostname_fallback.cc
1740 src/core/lib/iomgr/gethostname_host_name_max.cc
1741 src/core/lib/iomgr/gethostname_sysconf.cc
1742 src/core/lib/iomgr/iocp_windows.cc
1743 src/core/lib/iomgr/iomgr.cc
kpayson64539f5062018-03-12 19:16:30 -07001744 src/core/lib/iomgr/iomgr_custom.cc
1745 src/core/lib/iomgr/iomgr_internal.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001746 src/core/lib/iomgr/iomgr_posix.cc
1747 src/core/lib/iomgr/iomgr_uv.cc
1748 src/core/lib/iomgr/iomgr_windows.cc
1749 src/core/lib/iomgr/is_epollexclusive_available.cc
1750 src/core/lib/iomgr/load_file.cc
1751 src/core/lib/iomgr/lockfree_event.cc
1752 src/core/lib/iomgr/network_status_tracker.cc
1753 src/core/lib/iomgr/polling_entity.cc
kpayson64539f5062018-03-12 19:16:30 -07001754 src/core/lib/iomgr/pollset.cc
1755 src/core/lib/iomgr/pollset_custom.cc
1756 src/core/lib/iomgr/pollset_set.cc
1757 src/core/lib/iomgr/pollset_set_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001758 src/core/lib/iomgr/pollset_set_windows.cc
1759 src/core/lib/iomgr/pollset_uv.cc
1760 src/core/lib/iomgr/pollset_windows.cc
kpayson64539f5062018-03-12 19:16:30 -07001761 src/core/lib/iomgr/resolve_address.cc
1762 src/core/lib/iomgr/resolve_address_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001763 src/core/lib/iomgr/resolve_address_posix.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001764 src/core/lib/iomgr/resolve_address_windows.cc
1765 src/core/lib/iomgr/resource_quota.cc
1766 src/core/lib/iomgr/sockaddr_utils.cc
1767 src/core/lib/iomgr/socket_factory_posix.cc
1768 src/core/lib/iomgr/socket_mutator.cc
1769 src/core/lib/iomgr/socket_utils_common_posix.cc
1770 src/core/lib/iomgr/socket_utils_linux.cc
1771 src/core/lib/iomgr/socket_utils_posix.cc
1772 src/core/lib/iomgr/socket_utils_uv.cc
Yash Tibrewal26c78032017-09-28 14:34:43 -07001773 src/core/lib/iomgr/socket_utils_windows.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001774 src/core/lib/iomgr/socket_windows.cc
kpayson64539f5062018-03-12 19:16:30 -07001775 src/core/lib/iomgr/tcp_client.cc
1776 src/core/lib/iomgr/tcp_client_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001777 src/core/lib/iomgr/tcp_client_posix.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001778 src/core/lib/iomgr/tcp_client_windows.cc
kpayson64539f5062018-03-12 19:16:30 -07001779 src/core/lib/iomgr/tcp_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001780 src/core/lib/iomgr/tcp_posix.cc
kpayson64539f5062018-03-12 19:16:30 -07001781 src/core/lib/iomgr/tcp_server.cc
1782 src/core/lib/iomgr/tcp_server_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001783 src/core/lib/iomgr/tcp_server_posix.cc
1784 src/core/lib/iomgr/tcp_server_utils_posix_common.cc
1785 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc
1786 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001787 src/core/lib/iomgr/tcp_server_windows.cc
1788 src/core/lib/iomgr/tcp_uv.cc
1789 src/core/lib/iomgr/tcp_windows.cc
1790 src/core/lib/iomgr/time_averaged_stats.cc
kpayson64539f5062018-03-12 19:16:30 -07001791 src/core/lib/iomgr/timer.cc
1792 src/core/lib/iomgr/timer_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001793 src/core/lib/iomgr/timer_generic.cc
1794 src/core/lib/iomgr/timer_heap.cc
1795 src/core/lib/iomgr/timer_manager.cc
1796 src/core/lib/iomgr/timer_uv.cc
1797 src/core/lib/iomgr/udp_server.cc
1798 src/core/lib/iomgr/unix_sockets_posix.cc
1799 src/core/lib/iomgr/unix_sockets_posix_noop.cc
1800 src/core/lib/iomgr/wakeup_fd_cv.cc
1801 src/core/lib/iomgr/wakeup_fd_eventfd.cc
1802 src/core/lib/iomgr/wakeup_fd_nospecial.cc
1803 src/core/lib/iomgr/wakeup_fd_pipe.cc
1804 src/core/lib/iomgr/wakeup_fd_posix.cc
1805 src/core/lib/json/json.cc
1806 src/core/lib/json/json_reader.cc
1807 src/core/lib/json/json_string.cc
1808 src/core/lib/json/json_writer.cc
1809 src/core/lib/slice/b64.cc
1810 src/core/lib/slice/percent_encoding.cc
1811 src/core/lib/slice/slice.cc
1812 src/core/lib/slice/slice_buffer.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001813 src/core/lib/slice/slice_intern.cc
1814 src/core/lib/slice/slice_string_helpers.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001815 src/core/lib/surface/api_trace.cc
1816 src/core/lib/surface/byte_buffer.cc
1817 src/core/lib/surface/byte_buffer_reader.cc
1818 src/core/lib/surface/call.cc
1819 src/core/lib/surface/call_details.cc
1820 src/core/lib/surface/call_log_batch.cc
1821 src/core/lib/surface/channel.cc
1822 src/core/lib/surface/channel_init.cc
1823 src/core/lib/surface/channel_ping.cc
1824 src/core/lib/surface/channel_stack_type.cc
1825 src/core/lib/surface/completion_queue.cc
1826 src/core/lib/surface/completion_queue_factory.cc
1827 src/core/lib/surface/event_string.cc
Craig Tiller8ebb5442017-04-07 16:01:55 -07001828 src/core/lib/surface/lame_client.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001829 src/core/lib/surface/metadata_array.cc
1830 src/core/lib/surface/server.cc
1831 src/core/lib/surface/validate_metadata.cc
1832 src/core/lib/surface/version.cc
1833 src/core/lib/transport/bdp_estimator.cc
1834 src/core/lib/transport/byte_stream.cc
1835 src/core/lib/transport/connectivity_state.cc
1836 src/core/lib/transport/error_utils.cc
1837 src/core/lib/transport/metadata.cc
1838 src/core/lib/transport/metadata_batch.cc
1839 src/core/lib/transport/pid_controller.cc
1840 src/core/lib/transport/service_config.cc
1841 src/core/lib/transport/static_metadata.cc
1842 src/core/lib/transport/status_conversion.cc
Mark D. Roth718c8342018-02-28 13:00:04 -08001843 src/core/lib/transport/status_metadata.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001844 src/core/lib/transport/timeout_encoding.cc
1845 src/core/lib/transport/transport.cc
1846 src/core/lib/transport/transport_op_string.cc
1847 src/core/lib/debug/trace.cc
Yuchen Zeng0bad30a2017-10-05 21:47:39 -07001848 src/core/ext/filters/client_channel/backup_poller.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001849 src/core/ext/filters/client_channel/channel_connectivity.cc
1850 src/core/ext/filters/client_channel/client_channel.cc
1851 src/core/ext/filters/client_channel/client_channel_factory.cc
1852 src/core/ext/filters/client_channel/client_channel_plugin.cc
1853 src/core/ext/filters/client_channel/connector.cc
1854 src/core/ext/filters/client_channel/http_connect_handshaker.cc
1855 src/core/ext/filters/client_channel/http_proxy.cc
1856 src/core/ext/filters/client_channel/lb_policy.cc
1857 src/core/ext/filters/client_channel/lb_policy_factory.cc
1858 src/core/ext/filters/client_channel/lb_policy_registry.cc
Mark D. Roth3e7f2df2018-02-26 13:17:06 -08001859 src/core/ext/filters/client_channel/method_params.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001860 src/core/ext/filters/client_channel/parse_address.cc
1861 src/core/ext/filters/client_channel/proxy_mapper.cc
1862 src/core/ext/filters/client_channel/proxy_mapper_registry.cc
1863 src/core/ext/filters/client_channel/resolver.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07001864 src/core/ext/filters/client_channel/resolver_registry.cc
1865 src/core/ext/filters/client_channel/retry_throttle.cc
1866 src/core/ext/filters/client_channel/subchannel.cc
1867 src/core/ext/filters/client_channel/subchannel_index.cc
1868 src/core/ext/filters/client_channel/uri_parser.cc
1869 src/core/ext/filters/deadline/deadline_filter.cc
1870 src/core/ext/transport/chttp2/transport/bin_decoder.cc
1871 src/core/ext/transport/chttp2/transport/bin_encoder.cc
1872 src/core/ext/transport/chttp2/transport/chttp2_plugin.cc
1873 src/core/ext/transport/chttp2/transport/chttp2_transport.cc
1874 src/core/ext/transport/chttp2/transport/flow_control.cc
1875 src/core/ext/transport/chttp2/transport/frame_data.cc
1876 src/core/ext/transport/chttp2/transport/frame_goaway.cc
1877 src/core/ext/transport/chttp2/transport/frame_ping.cc
1878 src/core/ext/transport/chttp2/transport/frame_rst_stream.cc
1879 src/core/ext/transport/chttp2/transport/frame_settings.cc
1880 src/core/ext/transport/chttp2/transport/frame_window_update.cc
1881 src/core/ext/transport/chttp2/transport/hpack_encoder.cc
1882 src/core/ext/transport/chttp2/transport/hpack_parser.cc
1883 src/core/ext/transport/chttp2/transport/hpack_table.cc
1884 src/core/ext/transport/chttp2/transport/http2_settings.cc
1885 src/core/ext/transport/chttp2/transport/huffsyms.cc
1886 src/core/ext/transport/chttp2/transport/incoming_metadata.cc
1887 src/core/ext/transport/chttp2/transport/parsing.cc
1888 src/core/ext/transport/chttp2/transport/stream_lists.cc
1889 src/core/ext/transport/chttp2/transport/stream_map.cc
1890 src/core/ext/transport/chttp2/transport/varint.cc
1891 src/core/ext/transport/chttp2/transport/writing.cc
1892 src/core/ext/transport/chttp2/alpn/alpn.cc
1893 src/core/ext/filters/http/client/http_client_filter.cc
1894 src/core/ext/filters/http/http_filters_plugin.cc
1895 src/core/ext/filters/http/message_compress/message_compress_filter.cc
1896 src/core/ext/filters/http/server/http_server_filter.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001897)
1898
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001899if(WIN32 AND MSVC)
1900 set_target_properties(grpc_test_util PROPERTIES COMPILE_PDB_NAME "grpc_test_util"
1901 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
1902 )
1903 if (gRPC_INSTALL)
1904 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_test_util.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02001905 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001906 )
1907 endif()
1908endif()
1909
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001910
1911target_include_directories(grpc_test_util
Jan Tattermuschf567ab02017-08-25 16:13:30 +02001912 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001913 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01001914 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01001915 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
1916 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
1917 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
1918 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
1919 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08001920 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001921)
1922
1923target_link_libraries(grpc_test_util
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001924 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001925 gpr_test_util
1926 gpr
1927 grpc
1928)
1929
1930foreach(_hdr
Vijay Pai80e23d12018-01-25 21:50:18 -08001931 include/grpc/support/alloc.h
1932 include/grpc/support/atm.h
1933 include/grpc/support/atm_gcc_atomic.h
1934 include/grpc/support/atm_gcc_sync.h
1935 include/grpc/support/atm_windows.h
Vijay Pai80e23d12018-01-25 21:50:18 -08001936 include/grpc/support/cpu.h
Vijay Pai80e23d12018-01-25 21:50:18 -08001937 include/grpc/support/log.h
1938 include/grpc/support/log_windows.h
1939 include/grpc/support/port_platform.h
1940 include/grpc/support/string_util.h
1941 include/grpc/support/sync.h
1942 include/grpc/support/sync_custom.h
1943 include/grpc/support/sync_generic.h
1944 include/grpc/support/sync_posix.h
1945 include/grpc/support/sync_windows.h
Vijay Paic7456902018-02-12 10:28:24 -08001946 include/grpc/support/thd_id.h
Vijay Pai80e23d12018-01-25 21:50:18 -08001947 include/grpc/support/time.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001948 include/grpc/impl/codegen/atm.h
1949 include/grpc/impl/codegen/atm_gcc_atomic.h
1950 include/grpc/impl/codegen/atm_gcc_sync.h
1951 include/grpc/impl/codegen/atm_windows.h
Ken Payson9714e032017-10-10 11:18:49 -07001952 include/grpc/impl/codegen/fork.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001953 include/grpc/impl/codegen/gpr_slice.h
1954 include/grpc/impl/codegen/gpr_types.h
1955 include/grpc/impl/codegen/port_platform.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001956 include/grpc/impl/codegen/sync.h
yang-g9ff60312017-08-24 09:08:21 -07001957 include/grpc/impl/codegen/sync_custom.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001958 include/grpc/impl/codegen/sync_generic.h
1959 include/grpc/impl/codegen/sync_posix.h
1960 include/grpc/impl/codegen/sync_windows.h
Vijay Pai80e23d12018-01-25 21:50:18 -08001961 include/grpc/impl/codegen/byte_buffer.h
1962 include/grpc/impl/codegen/byte_buffer_reader.h
1963 include/grpc/impl/codegen/compression_types.h
1964 include/grpc/impl/codegen/connectivity_state.h
1965 include/grpc/impl/codegen/grpc_types.h
1966 include/grpc/impl/codegen/propagation_bits.h
1967 include/grpc/impl/codegen/slice.h
1968 include/grpc/impl/codegen/status.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001969)
1970 string(REPLACE "include/" "" _path ${_hdr})
1971 get_filename_component(_path ${_path} PATH)
1972 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02001973 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001974 )
1975endforeach()
1976
1977endif (gRPC_BUILD_TESTS)
1978if (gRPC_BUILD_TESTS)
1979
1980add_library(grpc_test_util_unsecure
Yash Tibrewal83062842017-09-21 18:56:08 -07001981 src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc
Yash Tibrewal34a57d02017-10-23 15:33:21 -07001982 test/core/end2end/cq_verifier.cc
1983 test/core/end2end/fixtures/http_proxy_fixture.cc
1984 test/core/end2end/fixtures/proxy.cc
1985 test/core/iomgr/endpoint_tests.cc
Craig Tiller92226062017-10-08 21:16:12 -07001986 test/core/util/debugger_macros.cc
Yihua Zhangcc936632018-05-08 10:15:03 -07001987 test/core/util/fuzzer_util.cc
Yash Tibrewal34a57d02017-10-23 15:33:21 -07001988 test/core/util/grpc_profiler.cc
Vijay Pai195cf1e2017-11-30 10:56:06 -08001989 test/core/util/histogram.cc
Yash Tibrewal34a57d02017-10-23 15:33:21 -07001990 test/core/util/memory_counters.cc
1991 test/core/util/mock_endpoint.cc
1992 test/core/util/parse_hexstring.cc
1993 test/core/util/passthru_endpoint.cc
1994 test/core/util/port.cc
Adele Zhou5b7cdef2017-11-29 16:25:17 -08001995 test/core/util/port_isolated_runtime_environment.cc
Yash Tibrewal34a57d02017-10-23 15:33:21 -07001996 test/core/util/port_server_client.cc
1997 test/core/util/slice_splitter.cc
Vijay Pai8a99fdb2018-01-25 15:38:20 -08001998 test/core/util/subprocess_posix.cc
1999 test/core/util/subprocess_windows.cc
ncteisenaa3b1972017-11-17 15:56:27 -08002000 test/core/util/tracer_util.cc
Yash Tibrewal34a57d02017-10-23 15:33:21 -07002001 test/core/util/trickle_endpoint.cc
Vijay Pai80e23d12018-01-25 21:50:18 -08002002 test/core/util/cmdline.cc
Vijay Pai8f4fbb12018-02-08 10:04:08 -08002003 src/core/lib/avl/avl.cc
Craig Tillerd48bd072017-10-06 11:25:14 -07002004 src/core/lib/backoff/backoff.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002005 src/core/lib/channel/channel_args.cc
2006 src/core/lib/channel/channel_stack.cc
2007 src/core/lib/channel/channel_stack_builder.cc
ncteisen3b42f832018-03-19 13:22:35 -07002008 src/core/lib/channel/channel_trace.cc
ncteisenbba88402018-05-11 11:54:41 -04002009 src/core/lib/channel/channelz_registry.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002010 src/core/lib/channel/connected_channel.cc
2011 src/core/lib/channel/handshaker.cc
2012 src/core/lib/channel/handshaker_factory.cc
2013 src/core/lib/channel/handshaker_registry.cc
ncteisen3b42f832018-03-19 13:22:35 -07002014 src/core/lib/channel/status_util.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002015 src/core/lib/compression/compression.cc
Muxi Yan03fc8572017-10-06 18:47:09 -07002016 src/core/lib/compression/compression_internal.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002017 src/core/lib/compression/message_compress.cc
2018 src/core/lib/compression/stream_compression.cc
Yash Tibrewalbc460fa2017-10-02 17:42:41 -07002019 src/core/lib/compression/stream_compression_gzip.cc
2020 src/core/lib/compression/stream_compression_identity.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002021 src/core/lib/debug/stats.cc
2022 src/core/lib/debug/stats_data.cc
2023 src/core/lib/http/format_request.cc
2024 src/core/lib/http/httpcli.cc
2025 src/core/lib/http/parser.cc
2026 src/core/lib/iomgr/call_combiner.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002027 src/core/lib/iomgr/combiner.cc
2028 src/core/lib/iomgr/endpoint.cc
2029 src/core/lib/iomgr/endpoint_pair_posix.cc
2030 src/core/lib/iomgr/endpoint_pair_uv.cc
2031 src/core/lib/iomgr/endpoint_pair_windows.cc
2032 src/core/lib/iomgr/error.cc
2033 src/core/lib/iomgr/ev_epoll1_linux.cc
2034 src/core/lib/iomgr/ev_epollex_linux.cc
2035 src/core/lib/iomgr/ev_epollsig_linux.cc
2036 src/core/lib/iomgr/ev_poll_posix.cc
2037 src/core/lib/iomgr/ev_posix.cc
2038 src/core/lib/iomgr/ev_windows.cc
2039 src/core/lib/iomgr/exec_ctx.cc
2040 src/core/lib/iomgr/executor.cc
Nicolas "Pixel" Noble18a68372017-11-20 23:33:22 +01002041 src/core/lib/iomgr/fork_posix.cc
2042 src/core/lib/iomgr/fork_windows.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002043 src/core/lib/iomgr/gethostname_fallback.cc
2044 src/core/lib/iomgr/gethostname_host_name_max.cc
2045 src/core/lib/iomgr/gethostname_sysconf.cc
2046 src/core/lib/iomgr/iocp_windows.cc
2047 src/core/lib/iomgr/iomgr.cc
kpayson64539f5062018-03-12 19:16:30 -07002048 src/core/lib/iomgr/iomgr_custom.cc
2049 src/core/lib/iomgr/iomgr_internal.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002050 src/core/lib/iomgr/iomgr_posix.cc
2051 src/core/lib/iomgr/iomgr_uv.cc
2052 src/core/lib/iomgr/iomgr_windows.cc
2053 src/core/lib/iomgr/is_epollexclusive_available.cc
2054 src/core/lib/iomgr/load_file.cc
2055 src/core/lib/iomgr/lockfree_event.cc
2056 src/core/lib/iomgr/network_status_tracker.cc
2057 src/core/lib/iomgr/polling_entity.cc
kpayson64539f5062018-03-12 19:16:30 -07002058 src/core/lib/iomgr/pollset.cc
2059 src/core/lib/iomgr/pollset_custom.cc
2060 src/core/lib/iomgr/pollset_set.cc
2061 src/core/lib/iomgr/pollset_set_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002062 src/core/lib/iomgr/pollset_set_windows.cc
2063 src/core/lib/iomgr/pollset_uv.cc
2064 src/core/lib/iomgr/pollset_windows.cc
kpayson64539f5062018-03-12 19:16:30 -07002065 src/core/lib/iomgr/resolve_address.cc
2066 src/core/lib/iomgr/resolve_address_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002067 src/core/lib/iomgr/resolve_address_posix.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002068 src/core/lib/iomgr/resolve_address_windows.cc
2069 src/core/lib/iomgr/resource_quota.cc
2070 src/core/lib/iomgr/sockaddr_utils.cc
2071 src/core/lib/iomgr/socket_factory_posix.cc
2072 src/core/lib/iomgr/socket_mutator.cc
2073 src/core/lib/iomgr/socket_utils_common_posix.cc
2074 src/core/lib/iomgr/socket_utils_linux.cc
2075 src/core/lib/iomgr/socket_utils_posix.cc
2076 src/core/lib/iomgr/socket_utils_uv.cc
Yash Tibrewal26c78032017-09-28 14:34:43 -07002077 src/core/lib/iomgr/socket_utils_windows.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002078 src/core/lib/iomgr/socket_windows.cc
kpayson64539f5062018-03-12 19:16:30 -07002079 src/core/lib/iomgr/tcp_client.cc
2080 src/core/lib/iomgr/tcp_client_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002081 src/core/lib/iomgr/tcp_client_posix.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002082 src/core/lib/iomgr/tcp_client_windows.cc
kpayson64539f5062018-03-12 19:16:30 -07002083 src/core/lib/iomgr/tcp_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002084 src/core/lib/iomgr/tcp_posix.cc
kpayson64539f5062018-03-12 19:16:30 -07002085 src/core/lib/iomgr/tcp_server.cc
2086 src/core/lib/iomgr/tcp_server_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002087 src/core/lib/iomgr/tcp_server_posix.cc
2088 src/core/lib/iomgr/tcp_server_utils_posix_common.cc
2089 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc
2090 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002091 src/core/lib/iomgr/tcp_server_windows.cc
2092 src/core/lib/iomgr/tcp_uv.cc
2093 src/core/lib/iomgr/tcp_windows.cc
2094 src/core/lib/iomgr/time_averaged_stats.cc
kpayson64539f5062018-03-12 19:16:30 -07002095 src/core/lib/iomgr/timer.cc
2096 src/core/lib/iomgr/timer_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002097 src/core/lib/iomgr/timer_generic.cc
2098 src/core/lib/iomgr/timer_heap.cc
2099 src/core/lib/iomgr/timer_manager.cc
2100 src/core/lib/iomgr/timer_uv.cc
2101 src/core/lib/iomgr/udp_server.cc
2102 src/core/lib/iomgr/unix_sockets_posix.cc
2103 src/core/lib/iomgr/unix_sockets_posix_noop.cc
2104 src/core/lib/iomgr/wakeup_fd_cv.cc
2105 src/core/lib/iomgr/wakeup_fd_eventfd.cc
2106 src/core/lib/iomgr/wakeup_fd_nospecial.cc
2107 src/core/lib/iomgr/wakeup_fd_pipe.cc
2108 src/core/lib/iomgr/wakeup_fd_posix.cc
2109 src/core/lib/json/json.cc
2110 src/core/lib/json/json_reader.cc
2111 src/core/lib/json/json_string.cc
2112 src/core/lib/json/json_writer.cc
2113 src/core/lib/slice/b64.cc
2114 src/core/lib/slice/percent_encoding.cc
2115 src/core/lib/slice/slice.cc
2116 src/core/lib/slice/slice_buffer.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002117 src/core/lib/slice/slice_intern.cc
2118 src/core/lib/slice/slice_string_helpers.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002119 src/core/lib/surface/api_trace.cc
2120 src/core/lib/surface/byte_buffer.cc
2121 src/core/lib/surface/byte_buffer_reader.cc
2122 src/core/lib/surface/call.cc
2123 src/core/lib/surface/call_details.cc
2124 src/core/lib/surface/call_log_batch.cc
2125 src/core/lib/surface/channel.cc
2126 src/core/lib/surface/channel_init.cc
2127 src/core/lib/surface/channel_ping.cc
2128 src/core/lib/surface/channel_stack_type.cc
2129 src/core/lib/surface/completion_queue.cc
2130 src/core/lib/surface/completion_queue_factory.cc
2131 src/core/lib/surface/event_string.cc
Vijay Pai168034b2017-07-31 00:53:10 -07002132 src/core/lib/surface/lame_client.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002133 src/core/lib/surface/metadata_array.cc
2134 src/core/lib/surface/server.cc
2135 src/core/lib/surface/validate_metadata.cc
2136 src/core/lib/surface/version.cc
2137 src/core/lib/transport/bdp_estimator.cc
2138 src/core/lib/transport/byte_stream.cc
2139 src/core/lib/transport/connectivity_state.cc
2140 src/core/lib/transport/error_utils.cc
2141 src/core/lib/transport/metadata.cc
2142 src/core/lib/transport/metadata_batch.cc
2143 src/core/lib/transport/pid_controller.cc
2144 src/core/lib/transport/service_config.cc
2145 src/core/lib/transport/static_metadata.cc
2146 src/core/lib/transport/status_conversion.cc
Mark D. Roth718c8342018-02-28 13:00:04 -08002147 src/core/lib/transport/status_metadata.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002148 src/core/lib/transport/timeout_encoding.cc
2149 src/core/lib/transport/transport.cc
2150 src/core/lib/transport/transport_op_string.cc
2151 src/core/lib/debug/trace.cc
Yuchen Zeng0bad30a2017-10-05 21:47:39 -07002152 src/core/ext/filters/client_channel/backup_poller.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002153 src/core/ext/filters/client_channel/channel_connectivity.cc
2154 src/core/ext/filters/client_channel/client_channel.cc
2155 src/core/ext/filters/client_channel/client_channel_factory.cc
2156 src/core/ext/filters/client_channel/client_channel_plugin.cc
2157 src/core/ext/filters/client_channel/connector.cc
2158 src/core/ext/filters/client_channel/http_connect_handshaker.cc
2159 src/core/ext/filters/client_channel/http_proxy.cc
2160 src/core/ext/filters/client_channel/lb_policy.cc
2161 src/core/ext/filters/client_channel/lb_policy_factory.cc
2162 src/core/ext/filters/client_channel/lb_policy_registry.cc
Mark D. Roth3e7f2df2018-02-26 13:17:06 -08002163 src/core/ext/filters/client_channel/method_params.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002164 src/core/ext/filters/client_channel/parse_address.cc
2165 src/core/ext/filters/client_channel/proxy_mapper.cc
2166 src/core/ext/filters/client_channel/proxy_mapper_registry.cc
2167 src/core/ext/filters/client_channel/resolver.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002168 src/core/ext/filters/client_channel/resolver_registry.cc
2169 src/core/ext/filters/client_channel/retry_throttle.cc
2170 src/core/ext/filters/client_channel/subchannel.cc
2171 src/core/ext/filters/client_channel/subchannel_index.cc
2172 src/core/ext/filters/client_channel/uri_parser.cc
2173 src/core/ext/filters/deadline/deadline_filter.cc
2174 src/core/ext/transport/chttp2/transport/bin_decoder.cc
2175 src/core/ext/transport/chttp2/transport/bin_encoder.cc
2176 src/core/ext/transport/chttp2/transport/chttp2_plugin.cc
2177 src/core/ext/transport/chttp2/transport/chttp2_transport.cc
2178 src/core/ext/transport/chttp2/transport/flow_control.cc
2179 src/core/ext/transport/chttp2/transport/frame_data.cc
2180 src/core/ext/transport/chttp2/transport/frame_goaway.cc
2181 src/core/ext/transport/chttp2/transport/frame_ping.cc
2182 src/core/ext/transport/chttp2/transport/frame_rst_stream.cc
2183 src/core/ext/transport/chttp2/transport/frame_settings.cc
2184 src/core/ext/transport/chttp2/transport/frame_window_update.cc
2185 src/core/ext/transport/chttp2/transport/hpack_encoder.cc
2186 src/core/ext/transport/chttp2/transport/hpack_parser.cc
2187 src/core/ext/transport/chttp2/transport/hpack_table.cc
2188 src/core/ext/transport/chttp2/transport/http2_settings.cc
2189 src/core/ext/transport/chttp2/transport/huffsyms.cc
2190 src/core/ext/transport/chttp2/transport/incoming_metadata.cc
2191 src/core/ext/transport/chttp2/transport/parsing.cc
2192 src/core/ext/transport/chttp2/transport/stream_lists.cc
2193 src/core/ext/transport/chttp2/transport/stream_map.cc
2194 src/core/ext/transport/chttp2/transport/varint.cc
2195 src/core/ext/transport/chttp2/transport/writing.cc
2196 src/core/ext/transport/chttp2/alpn/alpn.cc
2197 src/core/ext/filters/http/client/http_client_filter.cc
2198 src/core/ext/filters/http/http_filters_plugin.cc
2199 src/core/ext/filters/http/message_compress/message_compress_filter.cc
2200 src/core/ext/filters/http/server/http_server_filter.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002201)
2202
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002203if(WIN32 AND MSVC)
2204 set_target_properties(grpc_test_util_unsecure PROPERTIES COMPILE_PDB_NAME "grpc_test_util_unsecure"
2205 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2206 )
2207 if (gRPC_INSTALL)
2208 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_test_util_unsecure.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002209 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002210 )
2211 endif()
2212endif()
2213
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002214
2215target_include_directories(grpc_test_util_unsecure
Jan Tattermuschf567ab02017-08-25 16:13:30 +02002216 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002217 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01002218 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01002219 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
2220 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
2221 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
2222 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
2223 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08002224 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002225)
2226
2227target_link_libraries(grpc_test_util_unsecure
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002228 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002229 gpr
2230 gpr_test_util
2231 grpc_unsecure
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002232)
2233
Vijay Pai168034b2017-07-31 00:53:10 -07002234foreach(_hdr
Vijay Pai80e23d12018-01-25 21:50:18 -08002235 include/grpc/support/alloc.h
2236 include/grpc/support/atm.h
2237 include/grpc/support/atm_gcc_atomic.h
2238 include/grpc/support/atm_gcc_sync.h
2239 include/grpc/support/atm_windows.h
Vijay Pai80e23d12018-01-25 21:50:18 -08002240 include/grpc/support/cpu.h
Vijay Pai80e23d12018-01-25 21:50:18 -08002241 include/grpc/support/log.h
2242 include/grpc/support/log_windows.h
2243 include/grpc/support/port_platform.h
2244 include/grpc/support/string_util.h
2245 include/grpc/support/sync.h
2246 include/grpc/support/sync_custom.h
2247 include/grpc/support/sync_generic.h
2248 include/grpc/support/sync_posix.h
2249 include/grpc/support/sync_windows.h
Vijay Paic7456902018-02-12 10:28:24 -08002250 include/grpc/support/thd_id.h
Vijay Pai80e23d12018-01-25 21:50:18 -08002251 include/grpc/support/time.h
Vijay Pai168034b2017-07-31 00:53:10 -07002252 include/grpc/impl/codegen/atm.h
2253 include/grpc/impl/codegen/atm_gcc_atomic.h
2254 include/grpc/impl/codegen/atm_gcc_sync.h
2255 include/grpc/impl/codegen/atm_windows.h
Ken Payson9714e032017-10-10 11:18:49 -07002256 include/grpc/impl/codegen/fork.h
Vijay Pai168034b2017-07-31 00:53:10 -07002257 include/grpc/impl/codegen/gpr_slice.h
2258 include/grpc/impl/codegen/gpr_types.h
2259 include/grpc/impl/codegen/port_platform.h
2260 include/grpc/impl/codegen/sync.h
yang-g9ff60312017-08-24 09:08:21 -07002261 include/grpc/impl/codegen/sync_custom.h
Vijay Pai168034b2017-07-31 00:53:10 -07002262 include/grpc/impl/codegen/sync_generic.h
2263 include/grpc/impl/codegen/sync_posix.h
2264 include/grpc/impl/codegen/sync_windows.h
Vijay Pai80e23d12018-01-25 21:50:18 -08002265 include/grpc/impl/codegen/byte_buffer.h
2266 include/grpc/impl/codegen/byte_buffer_reader.h
2267 include/grpc/impl/codegen/compression_types.h
2268 include/grpc/impl/codegen/connectivity_state.h
2269 include/grpc/impl/codegen/grpc_types.h
2270 include/grpc/impl/codegen/propagation_bits.h
2271 include/grpc/impl/codegen/slice.h
2272 include/grpc/impl/codegen/status.h
Vijay Pai168034b2017-07-31 00:53:10 -07002273)
2274 string(REPLACE "include/" "" _path ${_hdr})
2275 get_filename_component(_path ${_path} PATH)
2276 install(FILES ${_hdr}
2277 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
2278 )
2279endforeach()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002280
2281endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002282
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002283add_library(grpc_unsecure
Yash Tibrewal83062842017-09-21 18:56:08 -07002284 src/core/lib/surface/init.cc
2285 src/core/lib/surface/init_unsecure.cc
Vijay Pai8f4fbb12018-02-08 10:04:08 -08002286 src/core/lib/avl/avl.cc
Craig Tillerd48bd072017-10-06 11:25:14 -07002287 src/core/lib/backoff/backoff.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002288 src/core/lib/channel/channel_args.cc
2289 src/core/lib/channel/channel_stack.cc
2290 src/core/lib/channel/channel_stack_builder.cc
ncteisen3b42f832018-03-19 13:22:35 -07002291 src/core/lib/channel/channel_trace.cc
ncteisenbba88402018-05-11 11:54:41 -04002292 src/core/lib/channel/channelz_registry.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002293 src/core/lib/channel/connected_channel.cc
2294 src/core/lib/channel/handshaker.cc
2295 src/core/lib/channel/handshaker_factory.cc
2296 src/core/lib/channel/handshaker_registry.cc
ncteisen3b42f832018-03-19 13:22:35 -07002297 src/core/lib/channel/status_util.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002298 src/core/lib/compression/compression.cc
Muxi Yan03fc8572017-10-06 18:47:09 -07002299 src/core/lib/compression/compression_internal.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002300 src/core/lib/compression/message_compress.cc
2301 src/core/lib/compression/stream_compression.cc
Yash Tibrewalbc460fa2017-10-02 17:42:41 -07002302 src/core/lib/compression/stream_compression_gzip.cc
2303 src/core/lib/compression/stream_compression_identity.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002304 src/core/lib/debug/stats.cc
2305 src/core/lib/debug/stats_data.cc
2306 src/core/lib/http/format_request.cc
2307 src/core/lib/http/httpcli.cc
2308 src/core/lib/http/parser.cc
2309 src/core/lib/iomgr/call_combiner.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002310 src/core/lib/iomgr/combiner.cc
2311 src/core/lib/iomgr/endpoint.cc
2312 src/core/lib/iomgr/endpoint_pair_posix.cc
2313 src/core/lib/iomgr/endpoint_pair_uv.cc
2314 src/core/lib/iomgr/endpoint_pair_windows.cc
2315 src/core/lib/iomgr/error.cc
2316 src/core/lib/iomgr/ev_epoll1_linux.cc
2317 src/core/lib/iomgr/ev_epollex_linux.cc
2318 src/core/lib/iomgr/ev_epollsig_linux.cc
2319 src/core/lib/iomgr/ev_poll_posix.cc
2320 src/core/lib/iomgr/ev_posix.cc
2321 src/core/lib/iomgr/ev_windows.cc
2322 src/core/lib/iomgr/exec_ctx.cc
2323 src/core/lib/iomgr/executor.cc
Nicolas "Pixel" Noble18a68372017-11-20 23:33:22 +01002324 src/core/lib/iomgr/fork_posix.cc
2325 src/core/lib/iomgr/fork_windows.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002326 src/core/lib/iomgr/gethostname_fallback.cc
2327 src/core/lib/iomgr/gethostname_host_name_max.cc
2328 src/core/lib/iomgr/gethostname_sysconf.cc
2329 src/core/lib/iomgr/iocp_windows.cc
2330 src/core/lib/iomgr/iomgr.cc
kpayson64539f5062018-03-12 19:16:30 -07002331 src/core/lib/iomgr/iomgr_custom.cc
2332 src/core/lib/iomgr/iomgr_internal.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002333 src/core/lib/iomgr/iomgr_posix.cc
2334 src/core/lib/iomgr/iomgr_uv.cc
2335 src/core/lib/iomgr/iomgr_windows.cc
2336 src/core/lib/iomgr/is_epollexclusive_available.cc
2337 src/core/lib/iomgr/load_file.cc
2338 src/core/lib/iomgr/lockfree_event.cc
2339 src/core/lib/iomgr/network_status_tracker.cc
2340 src/core/lib/iomgr/polling_entity.cc
kpayson64539f5062018-03-12 19:16:30 -07002341 src/core/lib/iomgr/pollset.cc
2342 src/core/lib/iomgr/pollset_custom.cc
2343 src/core/lib/iomgr/pollset_set.cc
2344 src/core/lib/iomgr/pollset_set_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002345 src/core/lib/iomgr/pollset_set_windows.cc
2346 src/core/lib/iomgr/pollset_uv.cc
2347 src/core/lib/iomgr/pollset_windows.cc
kpayson64539f5062018-03-12 19:16:30 -07002348 src/core/lib/iomgr/resolve_address.cc
2349 src/core/lib/iomgr/resolve_address_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002350 src/core/lib/iomgr/resolve_address_posix.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002351 src/core/lib/iomgr/resolve_address_windows.cc
2352 src/core/lib/iomgr/resource_quota.cc
2353 src/core/lib/iomgr/sockaddr_utils.cc
2354 src/core/lib/iomgr/socket_factory_posix.cc
2355 src/core/lib/iomgr/socket_mutator.cc
2356 src/core/lib/iomgr/socket_utils_common_posix.cc
2357 src/core/lib/iomgr/socket_utils_linux.cc
2358 src/core/lib/iomgr/socket_utils_posix.cc
2359 src/core/lib/iomgr/socket_utils_uv.cc
Yash Tibrewal26c78032017-09-28 14:34:43 -07002360 src/core/lib/iomgr/socket_utils_windows.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002361 src/core/lib/iomgr/socket_windows.cc
kpayson64539f5062018-03-12 19:16:30 -07002362 src/core/lib/iomgr/tcp_client.cc
2363 src/core/lib/iomgr/tcp_client_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002364 src/core/lib/iomgr/tcp_client_posix.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002365 src/core/lib/iomgr/tcp_client_windows.cc
kpayson64539f5062018-03-12 19:16:30 -07002366 src/core/lib/iomgr/tcp_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002367 src/core/lib/iomgr/tcp_posix.cc
kpayson64539f5062018-03-12 19:16:30 -07002368 src/core/lib/iomgr/tcp_server.cc
2369 src/core/lib/iomgr/tcp_server_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002370 src/core/lib/iomgr/tcp_server_posix.cc
2371 src/core/lib/iomgr/tcp_server_utils_posix_common.cc
2372 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc
2373 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002374 src/core/lib/iomgr/tcp_server_windows.cc
2375 src/core/lib/iomgr/tcp_uv.cc
2376 src/core/lib/iomgr/tcp_windows.cc
2377 src/core/lib/iomgr/time_averaged_stats.cc
kpayson64539f5062018-03-12 19:16:30 -07002378 src/core/lib/iomgr/timer.cc
2379 src/core/lib/iomgr/timer_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002380 src/core/lib/iomgr/timer_generic.cc
2381 src/core/lib/iomgr/timer_heap.cc
2382 src/core/lib/iomgr/timer_manager.cc
2383 src/core/lib/iomgr/timer_uv.cc
2384 src/core/lib/iomgr/udp_server.cc
2385 src/core/lib/iomgr/unix_sockets_posix.cc
2386 src/core/lib/iomgr/unix_sockets_posix_noop.cc
2387 src/core/lib/iomgr/wakeup_fd_cv.cc
2388 src/core/lib/iomgr/wakeup_fd_eventfd.cc
2389 src/core/lib/iomgr/wakeup_fd_nospecial.cc
2390 src/core/lib/iomgr/wakeup_fd_pipe.cc
2391 src/core/lib/iomgr/wakeup_fd_posix.cc
2392 src/core/lib/json/json.cc
2393 src/core/lib/json/json_reader.cc
2394 src/core/lib/json/json_string.cc
2395 src/core/lib/json/json_writer.cc
2396 src/core/lib/slice/b64.cc
2397 src/core/lib/slice/percent_encoding.cc
2398 src/core/lib/slice/slice.cc
2399 src/core/lib/slice/slice_buffer.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002400 src/core/lib/slice/slice_intern.cc
2401 src/core/lib/slice/slice_string_helpers.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002402 src/core/lib/surface/api_trace.cc
2403 src/core/lib/surface/byte_buffer.cc
2404 src/core/lib/surface/byte_buffer_reader.cc
2405 src/core/lib/surface/call.cc
2406 src/core/lib/surface/call_details.cc
2407 src/core/lib/surface/call_log_batch.cc
2408 src/core/lib/surface/channel.cc
2409 src/core/lib/surface/channel_init.cc
2410 src/core/lib/surface/channel_ping.cc
2411 src/core/lib/surface/channel_stack_type.cc
2412 src/core/lib/surface/completion_queue.cc
2413 src/core/lib/surface/completion_queue_factory.cc
2414 src/core/lib/surface/event_string.cc
Craig Tiller8ebb5442017-04-07 16:01:55 -07002415 src/core/lib/surface/lame_client.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002416 src/core/lib/surface/metadata_array.cc
2417 src/core/lib/surface/server.cc
2418 src/core/lib/surface/validate_metadata.cc
2419 src/core/lib/surface/version.cc
2420 src/core/lib/transport/bdp_estimator.cc
2421 src/core/lib/transport/byte_stream.cc
2422 src/core/lib/transport/connectivity_state.cc
2423 src/core/lib/transport/error_utils.cc
2424 src/core/lib/transport/metadata.cc
2425 src/core/lib/transport/metadata_batch.cc
2426 src/core/lib/transport/pid_controller.cc
2427 src/core/lib/transport/service_config.cc
2428 src/core/lib/transport/static_metadata.cc
2429 src/core/lib/transport/status_conversion.cc
Mark D. Roth718c8342018-02-28 13:00:04 -08002430 src/core/lib/transport/status_metadata.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002431 src/core/lib/transport/timeout_encoding.cc
2432 src/core/lib/transport/transport.cc
2433 src/core/lib/transport/transport_op_string.cc
2434 src/core/lib/debug/trace.cc
2435 src/core/ext/transport/chttp2/server/insecure/server_chttp2.cc
2436 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.cc
2437 src/core/ext/transport/chttp2/transport/bin_decoder.cc
2438 src/core/ext/transport/chttp2/transport/bin_encoder.cc
2439 src/core/ext/transport/chttp2/transport/chttp2_plugin.cc
2440 src/core/ext/transport/chttp2/transport/chttp2_transport.cc
2441 src/core/ext/transport/chttp2/transport/flow_control.cc
2442 src/core/ext/transport/chttp2/transport/frame_data.cc
2443 src/core/ext/transport/chttp2/transport/frame_goaway.cc
2444 src/core/ext/transport/chttp2/transport/frame_ping.cc
2445 src/core/ext/transport/chttp2/transport/frame_rst_stream.cc
2446 src/core/ext/transport/chttp2/transport/frame_settings.cc
2447 src/core/ext/transport/chttp2/transport/frame_window_update.cc
2448 src/core/ext/transport/chttp2/transport/hpack_encoder.cc
2449 src/core/ext/transport/chttp2/transport/hpack_parser.cc
2450 src/core/ext/transport/chttp2/transport/hpack_table.cc
2451 src/core/ext/transport/chttp2/transport/http2_settings.cc
2452 src/core/ext/transport/chttp2/transport/huffsyms.cc
2453 src/core/ext/transport/chttp2/transport/incoming_metadata.cc
2454 src/core/ext/transport/chttp2/transport/parsing.cc
2455 src/core/ext/transport/chttp2/transport/stream_lists.cc
2456 src/core/ext/transport/chttp2/transport/stream_map.cc
2457 src/core/ext/transport/chttp2/transport/varint.cc
2458 src/core/ext/transport/chttp2/transport/writing.cc
2459 src/core/ext/transport/chttp2/alpn/alpn.cc
2460 src/core/ext/filters/http/client/http_client_filter.cc
2461 src/core/ext/filters/http/http_filters_plugin.cc
2462 src/core/ext/filters/http/message_compress/message_compress_filter.cc
2463 src/core/ext/filters/http/server/http_server_filter.cc
2464 src/core/ext/transport/chttp2/server/chttp2_server.cc
2465 src/core/ext/transport/chttp2/client/insecure/channel_create.cc
2466 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.cc
David Garcia Quintas49f625f2018-03-27 11:23:49 -07002467 src/core/ext/transport/chttp2/client/authority.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002468 src/core/ext/transport/chttp2/client/chttp2_connector.cc
Yuchen Zeng0bad30a2017-10-05 21:47:39 -07002469 src/core/ext/filters/client_channel/backup_poller.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002470 src/core/ext/filters/client_channel/channel_connectivity.cc
2471 src/core/ext/filters/client_channel/client_channel.cc
2472 src/core/ext/filters/client_channel/client_channel_factory.cc
2473 src/core/ext/filters/client_channel/client_channel_plugin.cc
2474 src/core/ext/filters/client_channel/connector.cc
2475 src/core/ext/filters/client_channel/http_connect_handshaker.cc
2476 src/core/ext/filters/client_channel/http_proxy.cc
2477 src/core/ext/filters/client_channel/lb_policy.cc
2478 src/core/ext/filters/client_channel/lb_policy_factory.cc
2479 src/core/ext/filters/client_channel/lb_policy_registry.cc
Mark D. Roth3e7f2df2018-02-26 13:17:06 -08002480 src/core/ext/filters/client_channel/method_params.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002481 src/core/ext/filters/client_channel/parse_address.cc
2482 src/core/ext/filters/client_channel/proxy_mapper.cc
2483 src/core/ext/filters/client_channel/proxy_mapper_registry.cc
2484 src/core/ext/filters/client_channel/resolver.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002485 src/core/ext/filters/client_channel/resolver_registry.cc
2486 src/core/ext/filters/client_channel/retry_throttle.cc
2487 src/core/ext/filters/client_channel/subchannel.cc
2488 src/core/ext/filters/client_channel/subchannel_index.cc
2489 src/core/ext/filters/client_channel/uri_parser.cc
2490 src/core/ext/filters/deadline/deadline_filter.cc
2491 src/core/ext/transport/inproc/inproc_plugin.cc
2492 src/core/ext/transport/inproc/inproc_transport.cc
2493 src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc
2494 src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc
2495 src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc
2496 src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_fallback.cc
2497 src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc
2498 src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc
2499 src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc
2500 src/core/ext/filters/load_reporting/server_load_reporting_filter.cc
2501 src/core/ext/filters/load_reporting/server_load_reporting_plugin.cc
2502 src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc
2503 src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc
2504 src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.cc
2505 src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.cc
2506 src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc
Craig Tiller9eb0fde2017-03-31 16:59:30 -07002507 src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002508 third_party/nanopb/pb_common.c
2509 third_party/nanopb/pb_decode.c
2510 third_party/nanopb/pb_encode.c
Yash Tibrewal83062842017-09-21 18:56:08 -07002511 src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc
2512 src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002513 src/core/ext/census/grpc_context.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002514 src/core/ext/filters/max_age/max_age_filter.cc
2515 src/core/ext/filters/message_size/message_size_filter.cc
David Garcia Quintas961353a2018-03-15 16:11:05 -07002516 src/core/ext/filters/http/client_authority_filter.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07002517 src/core/ext/filters/workarounds/workaround_cronet_compression_filter.cc
2518 src/core/ext/filters/workarounds/workaround_utils.cc
Yash Tibrewal1c9b5842017-09-21 15:49:55 -07002519 src/core/plugin_registry/grpc_unsecure_plugin_registry.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002520)
2521
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002522if(WIN32 AND MSVC)
2523 set_target_properties(grpc_unsecure PROPERTIES COMPILE_PDB_NAME "grpc_unsecure"
2524 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2525 )
2526 if (gRPC_INSTALL)
2527 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_unsecure.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002528 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002529 )
2530 endif()
2531endif()
2532
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002533
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002534target_include_directories(grpc_unsecure
Jan Tattermuschf567ab02017-08-25 16:13:30 +02002535 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002536 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01002537 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01002538 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
2539 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
2540 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
2541 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
2542 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08002543 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002544)
2545
2546target_link_libraries(grpc_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002547 ${_gRPC_BASELIB_LIBRARIES}
Jan Tattermusch807693b2017-06-12 10:15:27 +02002548 ${_gRPC_ZLIB_LIBRARIES}
2549 ${_gRPC_CARES_LIBRARIES}
Alexander Polcyn690dde62017-10-18 00:20:33 -07002550 ${_gRPC_ADDRESS_SORTING_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002551 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002552 gpr
2553)
2554
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002555foreach(_hdr
Vijay Paiefce6e12017-09-14 09:07:50 -07002556 include/grpc/impl/codegen/byte_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002557 include/grpc/impl/codegen/byte_buffer_reader.h
2558 include/grpc/impl/codegen/compression_types.h
2559 include/grpc/impl/codegen/connectivity_state.h
2560 include/grpc/impl/codegen/grpc_types.h
2561 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07002562 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002563 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002564 include/grpc/impl/codegen/atm.h
2565 include/grpc/impl/codegen/atm_gcc_atomic.h
2566 include/grpc/impl/codegen/atm_gcc_sync.h
2567 include/grpc/impl/codegen/atm_windows.h
Ken Payson9714e032017-10-10 11:18:49 -07002568 include/grpc/impl/codegen/fork.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08002569 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07002570 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002571 include/grpc/impl/codegen/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002572 include/grpc/impl/codegen/sync.h
yang-g9ff60312017-08-24 09:08:21 -07002573 include/grpc/impl/codegen/sync_custom.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002574 include/grpc/impl/codegen/sync_generic.h
2575 include/grpc/impl/codegen/sync_posix.h
2576 include/grpc/impl/codegen/sync_windows.h
Vijay Pai42807252017-07-28 15:08:24 -07002577 include/grpc/byte_buffer.h
2578 include/grpc/byte_buffer_reader.h
2579 include/grpc/compression.h
Ken Payson9714e032017-10-10 11:18:49 -07002580 include/grpc/fork.h
Vijay Pai42807252017-07-28 15:08:24 -07002581 include/grpc/grpc.h
2582 include/grpc/grpc_posix.h
2583 include/grpc/grpc_security_constants.h
2584 include/grpc/load_reporting.h
2585 include/grpc/slice.h
2586 include/grpc/slice_buffer.h
2587 include/grpc/status.h
2588 include/grpc/support/workaround_list.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002589 include/grpc/census.h
2590)
2591 string(REPLACE "include/" "" _path ${_hdr})
2592 get_filename_component(_path ${_path} PATH)
2593 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002594 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002595 )
2596endforeach()
2597
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002598
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002599if (gRPC_INSTALL)
2600 install(TARGETS grpc_unsecure EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002601 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
2602 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
2603 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002604 )
2605endif()
2606
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002607if (gRPC_BUILD_TESTS)
2608
2609add_library(reconnect_server
Yash Tibrewal34a57d02017-10-23 15:33:21 -07002610 test/core/util/reconnect_server.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002611)
2612
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002613if(WIN32 AND MSVC)
2614 set_target_properties(reconnect_server PROPERTIES COMPILE_PDB_NAME "reconnect_server"
2615 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2616 )
2617 if (gRPC_INSTALL)
2618 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/reconnect_server.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002619 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002620 )
2621 endif()
2622endif()
2623
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002624
2625target_include_directories(reconnect_server
Jan Tattermuschf567ab02017-08-25 16:13:30 +02002626 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002627 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01002628 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01002629 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
2630 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
2631 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
2632 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
2633 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08002634 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002635)
2636
2637target_link_libraries(reconnect_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002638 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002639 test_tcp_server
2640 grpc_test_util
2641 grpc
2642 gpr_test_util
2643 gpr
2644)
2645
2646
2647endif (gRPC_BUILD_TESTS)
2648if (gRPC_BUILD_TESTS)
2649
2650add_library(test_tcp_server
Yash Tibrewal34a57d02017-10-23 15:33:21 -07002651 test/core/util/test_tcp_server.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002652)
2653
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002654if(WIN32 AND MSVC)
2655 set_target_properties(test_tcp_server PROPERTIES COMPILE_PDB_NAME "test_tcp_server"
2656 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2657 )
2658 if (gRPC_INSTALL)
2659 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/test_tcp_server.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002660 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002661 )
2662 endif()
2663endif()
2664
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002665
2666target_include_directories(test_tcp_server
Jan Tattermuschf567ab02017-08-25 16:13:30 +02002667 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002668 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01002669 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01002670 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
2671 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
2672 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
2673 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
2674 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08002675 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002676)
2677
2678target_link_libraries(test_tcp_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002679 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002680 grpc_test_util
2681 grpc
2682 gpr_test_util
2683 gpr
2684)
2685
2686
2687endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002688
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002689add_library(grpc++
murgatroid991ca0f3e2016-08-26 14:58:49 -07002690 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002691 src/cpp/client/secure_credentials.cc
2692 src/cpp/common/auth_property_iterator.cc
2693 src/cpp/common/secure_auth_context.cc
2694 src/cpp/common/secure_channel_arguments.cc
2695 src/cpp/common/secure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07002696 src/cpp/server/insecure_server_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002697 src/cpp/server/secure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002698 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002699 src/cpp/client/client_context.cc
2700 src/cpp/client/create_channel.cc
2701 src/cpp/client/create_channel_internal.cc
2702 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002703 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002704 src/cpp/client/generic_stub.cc
Vijay Pai2b226ad2018-01-11 16:11:35 -08002705 src/cpp/common/alarm.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002706 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07002707 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002708 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002709 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07002710 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002711 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07002712 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002713 src/cpp/server/async_generic_service.cc
Craig Tiller4751c282017-01-10 14:29:00 -08002714 src/cpp/server/channel_argument_option.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002715 src/cpp/server/create_default_thread_pool.cc
2716 src/cpp/server/dynamic_thread_pool.cc
yang-gc3c475f2016-12-27 10:37:26 -08002717 src/cpp/server/health/default_health_check_service.cc
2718 src/cpp/server/health/health.pb.c
2719 src/cpp/server/health/health_check_service.cc
2720 src/cpp/server/health/health_check_service_server_builder_option.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002721 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002722 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002723 src/cpp/server/server_context.cc
2724 src/cpp/server/server_credentials.cc
2725 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07002726 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002727 src/cpp/util/byte_buffer_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002728 src/cpp/util/status.cc
2729 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002730 src/cpp/util/time_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002731 src/cpp/codegen/codegen_init.cc
2732)
2733
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002734if(WIN32 AND MSVC)
2735 set_target_properties(grpc++ PROPERTIES COMPILE_PDB_NAME "grpc++"
2736 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2737 )
2738 if (gRPC_INSTALL)
2739 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002740 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002741 )
2742 endif()
2743endif()
2744
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002745
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002746target_include_directories(grpc++
Jan Tattermuschf567ab02017-08-25 16:13:30 +02002747 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002748 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01002749 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01002750 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
2751 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
2752 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
2753 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
2754 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08002755 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002756 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002757)
2758
2759target_link_libraries(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002760 ${_gRPC_BASELIB_LIBRARIES}
2761 ${_gRPC_SSL_LIBRARIES}
2762 ${_gRPC_PROTOBUF_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002763 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002764 grpc
Vijay Pai42807252017-07-28 15:08:24 -07002765 gpr
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002766)
2767
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002768foreach(_hdr
2769 include/grpc++/alarm.h
2770 include/grpc++/channel.h
2771 include/grpc++/client_context.h
2772 include/grpc++/completion_queue.h
2773 include/grpc++/create_channel.h
2774 include/grpc++/create_channel_posix.h
yang-g04981242016-12-01 11:53:08 -08002775 include/grpc++/ext/health_check_service_server_builder_option.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002776 include/grpc++/generic/async_generic_service.h
2777 include/grpc++/generic/generic_stub.h
2778 include/grpc++/grpc++.h
yang-g1accb122016-12-28 10:38:04 -08002779 include/grpc++/health_check_service_interface.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002780 include/grpc++/impl/call.h
Craig Tiller4751c282017-01-10 14:29:00 -08002781 include/grpc++/impl/channel_argument_option.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002782 include/grpc++/impl/client_unary_call.h
2783 include/grpc++/impl/codegen/core_codegen.h
2784 include/grpc++/impl/grpc_library.h
2785 include/grpc++/impl/method_handler_impl.h
2786 include/grpc++/impl/rpc_method.h
2787 include/grpc++/impl/rpc_service_method.h
2788 include/grpc++/impl/serialization_traits.h
2789 include/grpc++/impl/server_builder_option.h
2790 include/grpc++/impl/server_builder_plugin.h
2791 include/grpc++/impl/server_initializer.h
2792 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07002793 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002794 include/grpc++/security/auth_context.h
2795 include/grpc++/security/auth_metadata_processor.h
2796 include/grpc++/security/credentials.h
2797 include/grpc++/security/server_credentials.h
2798 include/grpc++/server.h
2799 include/grpc++/server_builder.h
2800 include/grpc++/server_context.h
2801 include/grpc++/server_posix.h
2802 include/grpc++/support/async_stream.h
2803 include/grpc++/support/async_unary_call.h
2804 include/grpc++/support/byte_buffer.h
2805 include/grpc++/support/channel_arguments.h
2806 include/grpc++/support/config.h
2807 include/grpc++/support/slice.h
2808 include/grpc++/support/status.h
2809 include/grpc++/support/status_code_enum.h
2810 include/grpc++/support/string_ref.h
2811 include/grpc++/support/stub_options.h
2812 include/grpc++/support/sync_stream.h
2813 include/grpc++/support/time.h
Muxi Yan0e00c432018-01-26 15:39:32 -08002814 include/grpcpp/alarm.h
2815 include/grpcpp/channel.h
2816 include/grpcpp/client_context.h
2817 include/grpcpp/completion_queue.h
2818 include/grpcpp/create_channel.h
2819 include/grpcpp/create_channel_posix.h
2820 include/grpcpp/ext/health_check_service_server_builder_option.h
2821 include/grpcpp/generic/async_generic_service.h
2822 include/grpcpp/generic/generic_stub.h
2823 include/grpcpp/grpcpp.h
2824 include/grpcpp/health_check_service_interface.h
2825 include/grpcpp/impl/call.h
2826 include/grpcpp/impl/channel_argument_option.h
2827 include/grpcpp/impl/client_unary_call.h
2828 include/grpcpp/impl/codegen/core_codegen.h
2829 include/grpcpp/impl/grpc_library.h
2830 include/grpcpp/impl/method_handler_impl.h
2831 include/grpcpp/impl/rpc_method.h
2832 include/grpcpp/impl/rpc_service_method.h
2833 include/grpcpp/impl/serialization_traits.h
2834 include/grpcpp/impl/server_builder_option.h
2835 include/grpcpp/impl/server_builder_plugin.h
2836 include/grpcpp/impl/server_initializer.h
2837 include/grpcpp/impl/service_type.h
2838 include/grpcpp/resource_quota.h
2839 include/grpcpp/security/auth_context.h
2840 include/grpcpp/security/auth_metadata_processor.h
2841 include/grpcpp/security/credentials.h
2842 include/grpcpp/security/server_credentials.h
2843 include/grpcpp/server.h
2844 include/grpcpp/server_builder.h
2845 include/grpcpp/server_context.h
2846 include/grpcpp/server_posix.h
2847 include/grpcpp/support/async_stream.h
2848 include/grpcpp/support/async_unary_call.h
2849 include/grpcpp/support/byte_buffer.h
2850 include/grpcpp/support/channel_arguments.h
2851 include/grpcpp/support/config.h
ncteisencf5b2662018-02-27 11:55:10 -08002852 include/grpcpp/support/proto_buffer_reader.h
2853 include/grpcpp/support/proto_buffer_writer.h
Muxi Yan0e00c432018-01-26 15:39:32 -08002854 include/grpcpp/support/slice.h
2855 include/grpcpp/support/status.h
2856 include/grpcpp/support/status_code_enum.h
2857 include/grpcpp/support/string_ref.h
2858 include/grpcpp/support/stub_options.h
2859 include/grpcpp/support/sync_stream.h
2860 include/grpcpp/support/time.h
Vijay Pai42807252017-07-28 15:08:24 -07002861 include/grpc/support/alloc.h
2862 include/grpc/support/atm.h
2863 include/grpc/support/atm_gcc_atomic.h
2864 include/grpc/support/atm_gcc_sync.h
2865 include/grpc/support/atm_windows.h
Vijay Pai42807252017-07-28 15:08:24 -07002866 include/grpc/support/cpu.h
Vijay Pai42807252017-07-28 15:08:24 -07002867 include/grpc/support/log.h
2868 include/grpc/support/log_windows.h
2869 include/grpc/support/port_platform.h
2870 include/grpc/support/string_util.h
Vijay Pai42807252017-07-28 15:08:24 -07002871 include/grpc/support/sync.h
yang-g9ff60312017-08-24 09:08:21 -07002872 include/grpc/support/sync_custom.h
Vijay Pai42807252017-07-28 15:08:24 -07002873 include/grpc/support/sync_generic.h
2874 include/grpc/support/sync_posix.h
2875 include/grpc/support/sync_windows.h
Vijay Paic7456902018-02-12 10:28:24 -08002876 include/grpc/support/thd_id.h
Vijay Pai42807252017-07-28 15:08:24 -07002877 include/grpc/support/time.h
Vijay Pai42807252017-07-28 15:08:24 -07002878 include/grpc/impl/codegen/atm.h
2879 include/grpc/impl/codegen/atm_gcc_atomic.h
2880 include/grpc/impl/codegen/atm_gcc_sync.h
2881 include/grpc/impl/codegen/atm_windows.h
Ken Payson9714e032017-10-10 11:18:49 -07002882 include/grpc/impl/codegen/fork.h
Vijay Pai42807252017-07-28 15:08:24 -07002883 include/grpc/impl/codegen/gpr_slice.h
2884 include/grpc/impl/codegen/gpr_types.h
2885 include/grpc/impl/codegen/port_platform.h
2886 include/grpc/impl/codegen/sync.h
yang-g9ff60312017-08-24 09:08:21 -07002887 include/grpc/impl/codegen/sync_custom.h
Vijay Pai42807252017-07-28 15:08:24 -07002888 include/grpc/impl/codegen/sync_generic.h
2889 include/grpc/impl/codegen/sync_posix.h
2890 include/grpc/impl/codegen/sync_windows.h
2891 include/grpc/byte_buffer.h
2892 include/grpc/byte_buffer_reader.h
2893 include/grpc/compression.h
Ken Payson9714e032017-10-10 11:18:49 -07002894 include/grpc/fork.h
Vijay Pai42807252017-07-28 15:08:24 -07002895 include/grpc/grpc.h
2896 include/grpc/grpc_posix.h
2897 include/grpc/grpc_security_constants.h
2898 include/grpc/load_reporting.h
2899 include/grpc/slice.h
2900 include/grpc/slice_buffer.h
2901 include/grpc/status.h
2902 include/grpc/support/workaround_list.h
Vijay Paiefce6e12017-09-14 09:07:50 -07002903 include/grpc/impl/codegen/byte_buffer.h
Vijay Pai42807252017-07-28 15:08:24 -07002904 include/grpc/impl/codegen/byte_buffer_reader.h
2905 include/grpc/impl/codegen/compression_types.h
2906 include/grpc/impl/codegen/connectivity_state.h
Vijay Pai42807252017-07-28 15:08:24 -07002907 include/grpc/impl/codegen/grpc_types.h
2908 include/grpc/impl/codegen/propagation_bits.h
2909 include/grpc/impl/codegen/slice.h
2910 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002911 include/grpc++/impl/codegen/async_stream.h
2912 include/grpc++/impl/codegen/async_unary_call.h
Vijay Paiefce6e12017-09-14 09:07:50 -07002913 include/grpc++/impl/codegen/byte_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002914 include/grpc++/impl/codegen/call.h
2915 include/grpc++/impl/codegen/call_hook.h
2916 include/grpc++/impl/codegen/channel_interface.h
2917 include/grpc++/impl/codegen/client_context.h
2918 include/grpc++/impl/codegen/client_unary_call.h
2919 include/grpc++/impl/codegen/completion_queue.h
2920 include/grpc++/impl/codegen/completion_queue_tag.h
2921 include/grpc++/impl/codegen/config.h
2922 include/grpc++/impl/codegen/core_codegen_interface.h
2923 include/grpc++/impl/codegen/create_auth_context.h
2924 include/grpc++/impl/codegen/grpc_library.h
yang-g988b47c2017-01-31 09:51:45 -08002925 include/grpc++/impl/codegen/metadata_map.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002926 include/grpc++/impl/codegen/method_handler_impl.h
2927 include/grpc++/impl/codegen/rpc_method.h
2928 include/grpc++/impl/codegen/rpc_service_method.h
2929 include/grpc++/impl/codegen/security/auth_context.h
2930 include/grpc++/impl/codegen/serialization_traits.h
2931 include/grpc++/impl/codegen/server_context.h
2932 include/grpc++/impl/codegen/server_interface.h
2933 include/grpc++/impl/codegen/service_type.h
Craig Tiller7c70b6c2017-01-23 07:48:42 -08002934 include/grpc++/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002935 include/grpc++/impl/codegen/status.h
2936 include/grpc++/impl/codegen/status_code_enum.h
2937 include/grpc++/impl/codegen/string_ref.h
2938 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002939 include/grpc++/impl/codegen/sync_stream.h
2940 include/grpc++/impl/codegen/time.h
Muxi Yan0e00c432018-01-26 15:39:32 -08002941 include/grpcpp/impl/codegen/async_stream.h
2942 include/grpcpp/impl/codegen/async_unary_call.h
2943 include/grpcpp/impl/codegen/byte_buffer.h
2944 include/grpcpp/impl/codegen/call.h
2945 include/grpcpp/impl/codegen/call_hook.h
2946 include/grpcpp/impl/codegen/channel_interface.h
2947 include/grpcpp/impl/codegen/client_context.h
2948 include/grpcpp/impl/codegen/client_unary_call.h
2949 include/grpcpp/impl/codegen/completion_queue.h
2950 include/grpcpp/impl/codegen/completion_queue_tag.h
2951 include/grpcpp/impl/codegen/config.h
2952 include/grpcpp/impl/codegen/core_codegen_interface.h
2953 include/grpcpp/impl/codegen/create_auth_context.h
2954 include/grpcpp/impl/codegen/grpc_library.h
2955 include/grpcpp/impl/codegen/metadata_map.h
2956 include/grpcpp/impl/codegen/method_handler_impl.h
2957 include/grpcpp/impl/codegen/rpc_method.h
2958 include/grpcpp/impl/codegen/rpc_service_method.h
2959 include/grpcpp/impl/codegen/security/auth_context.h
2960 include/grpcpp/impl/codegen/serialization_traits.h
2961 include/grpcpp/impl/codegen/server_context.h
2962 include/grpcpp/impl/codegen/server_interface.h
2963 include/grpcpp/impl/codegen/service_type.h
2964 include/grpcpp/impl/codegen/slice.h
2965 include/grpcpp/impl/codegen/status.h
2966 include/grpcpp/impl/codegen/status_code_enum.h
2967 include/grpcpp/impl/codegen/string_ref.h
2968 include/grpcpp/impl/codegen/stub_options.h
2969 include/grpcpp/impl/codegen/sync_stream.h
2970 include/grpcpp/impl/codegen/time.h
Piotr Pietraszkiewicza5fac1f2017-02-09 11:15:44 +01002971 include/grpc++/impl/codegen/proto_utils.h
ncteisencf5b2662018-02-27 11:55:10 -08002972 include/grpcpp/impl/codegen/proto_buffer_reader.h
2973 include/grpcpp/impl/codegen/proto_buffer_writer.h
Muxi Yan0e00c432018-01-26 15:39:32 -08002974 include/grpcpp/impl/codegen/proto_utils.h
Piotr Pietraszkiewicza5fac1f2017-02-09 11:15:44 +01002975 include/grpc++/impl/codegen/config_protobuf.h
Muxi Yan0e00c432018-01-26 15:39:32 -08002976 include/grpcpp/impl/codegen/config_protobuf.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002977)
2978 string(REPLACE "include/" "" _path ${_hdr})
2979 get_filename_component(_path ${_path} PATH)
2980 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002981 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002982 )
2983endforeach()
2984
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002985
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002986if (gRPC_INSTALL)
2987 install(TARGETS grpc++ EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002988 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
2989 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
2990 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002991 )
2992endif()
2993
Craig Tiller28972352017-08-31 15:52:57 -07002994if (gRPC_BUILD_TESTS)
2995
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08002996if (gRPC_BUILD_CODEGEN)
Craig Tiller28972352017-08-31 15:52:57 -07002997add_library(grpc++_core_stats
2998 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/core/stats.pb.cc
2999 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/core/stats.grpc.pb.cc
3000 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/core/stats.pb.h
3001 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/core/stats.grpc.pb.h
3002 src/cpp/util/core_stats.cc
3003)
3004
3005if(WIN32 AND MSVC)
3006 set_target_properties(grpc++_core_stats PROPERTIES COMPILE_PDB_NAME "grpc++_core_stats"
3007 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3008 )
3009 if (gRPC_INSTALL)
3010 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_core_stats.pdb
3011 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
3012 )
3013 endif()
3014endif()
3015
3016protobuf_generate_grpc_cpp(
3017 src/proto/grpc/core/stats.proto
3018)
3019
3020target_include_directories(grpc++_core_stats
Jan Tattermuschf567ab02017-08-25 16:13:30 +02003021 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Craig Tiller28972352017-08-31 15:52:57 -07003022 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01003023 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01003024 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
3025 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
3026 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
3027 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
3028 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08003029 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Craig Tiller28972352017-08-31 15:52:57 -07003030 PRIVATE third_party/googletest/googletest/include
3031 PRIVATE third_party/googletest/googletest
3032 PRIVATE third_party/googletest/googlemock/include
3033 PRIVATE third_party/googletest/googlemock
3034 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3035)
3036
3037target_link_libraries(grpc++_core_stats
3038 ${_gRPC_PROTOBUF_LIBRARIES}
3039 ${_gRPC_ALLTARGETS_LIBRARIES}
3040 grpc++
3041)
3042
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08003043endif (gRPC_BUILD_CODEGEN)
Craig Tiller28972352017-08-31 15:52:57 -07003044
3045endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003046
Garrett Casto931a26b2016-10-04 09:18:29 -07003047add_library(grpc++_cronet
3048 src/cpp/client/cronet_credentials.cc
3049 src/cpp/client/insecure_credentials.cc
3050 src/cpp/common/insecure_create_auth_context.cc
3051 src/cpp/server/insecure_server_credentials.cc
3052 src/cpp/client/channel_cc.cc
3053 src/cpp/client/client_context.cc
3054 src/cpp/client/create_channel.cc
3055 src/cpp/client/create_channel_internal.cc
3056 src/cpp/client/create_channel_posix.cc
3057 src/cpp/client/credentials_cc.cc
3058 src/cpp/client/generic_stub.cc
Vijay Pai2b226ad2018-01-11 16:11:35 -08003059 src/cpp/common/alarm.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07003060 src/cpp/common/channel_arguments.cc
3061 src/cpp/common/channel_filter.cc
3062 src/cpp/common/completion_queue_cc.cc
3063 src/cpp/common/core_codegen.cc
Craig Tiller3d357d92016-10-26 20:52:03 -07003064 src/cpp/common/resource_quota_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07003065 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07003066 src/cpp/common/version_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07003067 src/cpp/server/async_generic_service.cc
Craig Tiller4751c282017-01-10 14:29:00 -08003068 src/cpp/server/channel_argument_option.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07003069 src/cpp/server/create_default_thread_pool.cc
3070 src/cpp/server/dynamic_thread_pool.cc
yang-gc3c475f2016-12-27 10:37:26 -08003071 src/cpp/server/health/default_health_check_service.cc
3072 src/cpp/server/health/health.pb.c
3073 src/cpp/server/health/health_check_service.cc
3074 src/cpp/server/health/health_check_service_server_builder_option.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07003075 src/cpp/server/server_builder.cc
3076 src/cpp/server/server_cc.cc
3077 src/cpp/server/server_context.cc
3078 src/cpp/server/server_credentials.cc
3079 src/cpp/server/server_posix.cc
Sree Kuchibhotla33d54942016-10-25 10:03:52 -07003080 src/cpp/thread_manager/thread_manager.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07003081 src/cpp/util/byte_buffer_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07003082 src/cpp/util/status.cc
3083 src/cpp/util/string_ref.cc
3084 src/cpp/util/time_cc.cc
yang-g75ea6a22017-05-19 13:06:37 -07003085 src/cpp/codegen/codegen_init.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003086 src/core/ext/transport/chttp2/client/insecure/channel_create.cc
3087 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.cc
David Garcia Quintas49f625f2018-03-27 11:23:49 -07003088 src/core/ext/transport/chttp2/client/authority.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003089 src/core/ext/transport/chttp2/client/chttp2_connector.cc
3090 src/core/ext/transport/chttp2/transport/bin_decoder.cc
3091 src/core/ext/transport/chttp2/transport/bin_encoder.cc
3092 src/core/ext/transport/chttp2/transport/chttp2_plugin.cc
3093 src/core/ext/transport/chttp2/transport/chttp2_transport.cc
3094 src/core/ext/transport/chttp2/transport/flow_control.cc
3095 src/core/ext/transport/chttp2/transport/frame_data.cc
3096 src/core/ext/transport/chttp2/transport/frame_goaway.cc
3097 src/core/ext/transport/chttp2/transport/frame_ping.cc
3098 src/core/ext/transport/chttp2/transport/frame_rst_stream.cc
3099 src/core/ext/transport/chttp2/transport/frame_settings.cc
3100 src/core/ext/transport/chttp2/transport/frame_window_update.cc
3101 src/core/ext/transport/chttp2/transport/hpack_encoder.cc
3102 src/core/ext/transport/chttp2/transport/hpack_parser.cc
3103 src/core/ext/transport/chttp2/transport/hpack_table.cc
3104 src/core/ext/transport/chttp2/transport/http2_settings.cc
3105 src/core/ext/transport/chttp2/transport/huffsyms.cc
3106 src/core/ext/transport/chttp2/transport/incoming_metadata.cc
3107 src/core/ext/transport/chttp2/transport/parsing.cc
3108 src/core/ext/transport/chttp2/transport/stream_lists.cc
3109 src/core/ext/transport/chttp2/transport/stream_map.cc
3110 src/core/ext/transport/chttp2/transport/varint.cc
3111 src/core/ext/transport/chttp2/transport/writing.cc
Vijay Pai8f4fbb12018-02-08 10:04:08 -08003112 src/core/lib/avl/avl.cc
Craig Tillerd48bd072017-10-06 11:25:14 -07003113 src/core/lib/backoff/backoff.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003114 src/core/lib/channel/channel_args.cc
3115 src/core/lib/channel/channel_stack.cc
3116 src/core/lib/channel/channel_stack_builder.cc
ncteisen3b42f832018-03-19 13:22:35 -07003117 src/core/lib/channel/channel_trace.cc
ncteisenbba88402018-05-11 11:54:41 -04003118 src/core/lib/channel/channelz_registry.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003119 src/core/lib/channel/connected_channel.cc
3120 src/core/lib/channel/handshaker.cc
3121 src/core/lib/channel/handshaker_factory.cc
3122 src/core/lib/channel/handshaker_registry.cc
ncteisen3b42f832018-03-19 13:22:35 -07003123 src/core/lib/channel/status_util.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003124 src/core/lib/compression/compression.cc
Muxi Yan03fc8572017-10-06 18:47:09 -07003125 src/core/lib/compression/compression_internal.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003126 src/core/lib/compression/message_compress.cc
3127 src/core/lib/compression/stream_compression.cc
Yash Tibrewalbc460fa2017-10-02 17:42:41 -07003128 src/core/lib/compression/stream_compression_gzip.cc
3129 src/core/lib/compression/stream_compression_identity.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003130 src/core/lib/debug/stats.cc
3131 src/core/lib/debug/stats_data.cc
3132 src/core/lib/http/format_request.cc
3133 src/core/lib/http/httpcli.cc
3134 src/core/lib/http/parser.cc
3135 src/core/lib/iomgr/call_combiner.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003136 src/core/lib/iomgr/combiner.cc
3137 src/core/lib/iomgr/endpoint.cc
3138 src/core/lib/iomgr/endpoint_pair_posix.cc
3139 src/core/lib/iomgr/endpoint_pair_uv.cc
3140 src/core/lib/iomgr/endpoint_pair_windows.cc
3141 src/core/lib/iomgr/error.cc
3142 src/core/lib/iomgr/ev_epoll1_linux.cc
3143 src/core/lib/iomgr/ev_epollex_linux.cc
3144 src/core/lib/iomgr/ev_epollsig_linux.cc
3145 src/core/lib/iomgr/ev_poll_posix.cc
3146 src/core/lib/iomgr/ev_posix.cc
3147 src/core/lib/iomgr/ev_windows.cc
3148 src/core/lib/iomgr/exec_ctx.cc
3149 src/core/lib/iomgr/executor.cc
Nicolas "Pixel" Noble18a68372017-11-20 23:33:22 +01003150 src/core/lib/iomgr/fork_posix.cc
3151 src/core/lib/iomgr/fork_windows.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003152 src/core/lib/iomgr/gethostname_fallback.cc
3153 src/core/lib/iomgr/gethostname_host_name_max.cc
3154 src/core/lib/iomgr/gethostname_sysconf.cc
3155 src/core/lib/iomgr/iocp_windows.cc
3156 src/core/lib/iomgr/iomgr.cc
kpayson64539f5062018-03-12 19:16:30 -07003157 src/core/lib/iomgr/iomgr_custom.cc
3158 src/core/lib/iomgr/iomgr_internal.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003159 src/core/lib/iomgr/iomgr_posix.cc
3160 src/core/lib/iomgr/iomgr_uv.cc
3161 src/core/lib/iomgr/iomgr_windows.cc
3162 src/core/lib/iomgr/is_epollexclusive_available.cc
3163 src/core/lib/iomgr/load_file.cc
3164 src/core/lib/iomgr/lockfree_event.cc
3165 src/core/lib/iomgr/network_status_tracker.cc
3166 src/core/lib/iomgr/polling_entity.cc
kpayson64539f5062018-03-12 19:16:30 -07003167 src/core/lib/iomgr/pollset.cc
3168 src/core/lib/iomgr/pollset_custom.cc
3169 src/core/lib/iomgr/pollset_set.cc
3170 src/core/lib/iomgr/pollset_set_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003171 src/core/lib/iomgr/pollset_set_windows.cc
3172 src/core/lib/iomgr/pollset_uv.cc
3173 src/core/lib/iomgr/pollset_windows.cc
kpayson64539f5062018-03-12 19:16:30 -07003174 src/core/lib/iomgr/resolve_address.cc
3175 src/core/lib/iomgr/resolve_address_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003176 src/core/lib/iomgr/resolve_address_posix.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003177 src/core/lib/iomgr/resolve_address_windows.cc
3178 src/core/lib/iomgr/resource_quota.cc
3179 src/core/lib/iomgr/sockaddr_utils.cc
3180 src/core/lib/iomgr/socket_factory_posix.cc
3181 src/core/lib/iomgr/socket_mutator.cc
3182 src/core/lib/iomgr/socket_utils_common_posix.cc
3183 src/core/lib/iomgr/socket_utils_linux.cc
3184 src/core/lib/iomgr/socket_utils_posix.cc
3185 src/core/lib/iomgr/socket_utils_uv.cc
Yash Tibrewal26c78032017-09-28 14:34:43 -07003186 src/core/lib/iomgr/socket_utils_windows.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003187 src/core/lib/iomgr/socket_windows.cc
kpayson64539f5062018-03-12 19:16:30 -07003188 src/core/lib/iomgr/tcp_client.cc
3189 src/core/lib/iomgr/tcp_client_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003190 src/core/lib/iomgr/tcp_client_posix.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003191 src/core/lib/iomgr/tcp_client_windows.cc
kpayson64539f5062018-03-12 19:16:30 -07003192 src/core/lib/iomgr/tcp_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003193 src/core/lib/iomgr/tcp_posix.cc
kpayson64539f5062018-03-12 19:16:30 -07003194 src/core/lib/iomgr/tcp_server.cc
3195 src/core/lib/iomgr/tcp_server_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003196 src/core/lib/iomgr/tcp_server_posix.cc
3197 src/core/lib/iomgr/tcp_server_utils_posix_common.cc
3198 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc
3199 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003200 src/core/lib/iomgr/tcp_server_windows.cc
3201 src/core/lib/iomgr/tcp_uv.cc
3202 src/core/lib/iomgr/tcp_windows.cc
3203 src/core/lib/iomgr/time_averaged_stats.cc
kpayson64539f5062018-03-12 19:16:30 -07003204 src/core/lib/iomgr/timer.cc
3205 src/core/lib/iomgr/timer_custom.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003206 src/core/lib/iomgr/timer_generic.cc
3207 src/core/lib/iomgr/timer_heap.cc
3208 src/core/lib/iomgr/timer_manager.cc
3209 src/core/lib/iomgr/timer_uv.cc
3210 src/core/lib/iomgr/udp_server.cc
3211 src/core/lib/iomgr/unix_sockets_posix.cc
3212 src/core/lib/iomgr/unix_sockets_posix_noop.cc
3213 src/core/lib/iomgr/wakeup_fd_cv.cc
3214 src/core/lib/iomgr/wakeup_fd_eventfd.cc
3215 src/core/lib/iomgr/wakeup_fd_nospecial.cc
3216 src/core/lib/iomgr/wakeup_fd_pipe.cc
3217 src/core/lib/iomgr/wakeup_fd_posix.cc
3218 src/core/lib/json/json.cc
3219 src/core/lib/json/json_reader.cc
3220 src/core/lib/json/json_string.cc
3221 src/core/lib/json/json_writer.cc
3222 src/core/lib/slice/b64.cc
3223 src/core/lib/slice/percent_encoding.cc
3224 src/core/lib/slice/slice.cc
3225 src/core/lib/slice/slice_buffer.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003226 src/core/lib/slice/slice_intern.cc
3227 src/core/lib/slice/slice_string_helpers.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003228 src/core/lib/surface/api_trace.cc
3229 src/core/lib/surface/byte_buffer.cc
3230 src/core/lib/surface/byte_buffer_reader.cc
3231 src/core/lib/surface/call.cc
3232 src/core/lib/surface/call_details.cc
3233 src/core/lib/surface/call_log_batch.cc
3234 src/core/lib/surface/channel.cc
3235 src/core/lib/surface/channel_init.cc
3236 src/core/lib/surface/channel_ping.cc
3237 src/core/lib/surface/channel_stack_type.cc
3238 src/core/lib/surface/completion_queue.cc
3239 src/core/lib/surface/completion_queue_factory.cc
3240 src/core/lib/surface/event_string.cc
Craig Tiller8ebb5442017-04-07 16:01:55 -07003241 src/core/lib/surface/lame_client.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003242 src/core/lib/surface/metadata_array.cc
3243 src/core/lib/surface/server.cc
3244 src/core/lib/surface/validate_metadata.cc
3245 src/core/lib/surface/version.cc
3246 src/core/lib/transport/bdp_estimator.cc
3247 src/core/lib/transport/byte_stream.cc
3248 src/core/lib/transport/connectivity_state.cc
3249 src/core/lib/transport/error_utils.cc
3250 src/core/lib/transport/metadata.cc
3251 src/core/lib/transport/metadata_batch.cc
3252 src/core/lib/transport/pid_controller.cc
3253 src/core/lib/transport/service_config.cc
3254 src/core/lib/transport/static_metadata.cc
3255 src/core/lib/transport/status_conversion.cc
Mark D. Roth718c8342018-02-28 13:00:04 -08003256 src/core/lib/transport/status_metadata.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003257 src/core/lib/transport/timeout_encoding.cc
3258 src/core/lib/transport/transport.cc
3259 src/core/lib/transport/transport_op_string.cc
3260 src/core/lib/debug/trace.cc
3261 src/core/ext/transport/chttp2/alpn/alpn.cc
3262 src/core/ext/filters/http/client/http_client_filter.cc
3263 src/core/ext/filters/http/http_filters_plugin.cc
3264 src/core/ext/filters/http/message_compress/message_compress_filter.cc
3265 src/core/ext/filters/http/server/http_server_filter.cc
Yuchen Zeng0bad30a2017-10-05 21:47:39 -07003266 src/core/ext/filters/client_channel/backup_poller.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003267 src/core/ext/filters/client_channel/channel_connectivity.cc
3268 src/core/ext/filters/client_channel/client_channel.cc
3269 src/core/ext/filters/client_channel/client_channel_factory.cc
3270 src/core/ext/filters/client_channel/client_channel_plugin.cc
3271 src/core/ext/filters/client_channel/connector.cc
3272 src/core/ext/filters/client_channel/http_connect_handshaker.cc
3273 src/core/ext/filters/client_channel/http_proxy.cc
3274 src/core/ext/filters/client_channel/lb_policy.cc
3275 src/core/ext/filters/client_channel/lb_policy_factory.cc
3276 src/core/ext/filters/client_channel/lb_policy_registry.cc
Mark D. Roth3e7f2df2018-02-26 13:17:06 -08003277 src/core/ext/filters/client_channel/method_params.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003278 src/core/ext/filters/client_channel/parse_address.cc
3279 src/core/ext/filters/client_channel/proxy_mapper.cc
3280 src/core/ext/filters/client_channel/proxy_mapper_registry.cc
3281 src/core/ext/filters/client_channel/resolver.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003282 src/core/ext/filters/client_channel/resolver_registry.cc
3283 src/core/ext/filters/client_channel/retry_throttle.cc
3284 src/core/ext/filters/client_channel/subchannel.cc
3285 src/core/ext/filters/client_channel/subchannel_index.cc
3286 src/core/ext/filters/client_channel/uri_parser.cc
3287 src/core/ext/filters/deadline/deadline_filter.cc
3288 src/core/ext/transport/chttp2/server/insecure/server_chttp2.cc
3289 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.cc
3290 src/core/ext/transport/chttp2/server/chttp2_server.cc
Yash Tibrewal83062842017-09-21 18:56:08 -07003291 src/core/ext/census/grpc_context.cc
Vijay Pai42807252017-07-28 15:08:24 -07003292 third_party/nanopb/pb_common.c
3293 third_party/nanopb/pb_decode.c
3294 third_party/nanopb/pb_encode.c
Garrett Casto931a26b2016-10-04 09:18:29 -07003295)
3296
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003297if(WIN32 AND MSVC)
3298 set_target_properties(grpc++_cronet PROPERTIES COMPILE_PDB_NAME "grpc++_cronet"
3299 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3300 )
3301 if (gRPC_INSTALL)
3302 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_cronet.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003303 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003304 )
3305 endif()
3306endif()
3307
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003308
Garrett Casto931a26b2016-10-04 09:18:29 -07003309target_include_directories(grpc++_cronet
Jan Tattermuschf567ab02017-08-25 16:13:30 +02003310 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Garrett Casto931a26b2016-10-04 09:18:29 -07003311 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01003312 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01003313 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
3314 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
3315 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
3316 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
3317 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08003318 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003319 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Garrett Casto931a26b2016-10-04 09:18:29 -07003320)
3321
3322target_link_libraries(grpc++_cronet
3323 ${_gRPC_BASELIB_LIBRARIES}
3324 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003325 ${_gRPC_PROTOBUF_LIBRARIES}
3326 ${_gRPC_ALLTARGETS_LIBRARIES}
Garrett Casto931a26b2016-10-04 09:18:29 -07003327 gpr
3328 grpc_cronet
yang-g75ea6a22017-05-19 13:06:37 -07003329 grpc
Garrett Casto931a26b2016-10-04 09:18:29 -07003330)
3331
3332foreach(_hdr
3333 include/grpc++/alarm.h
3334 include/grpc++/channel.h
3335 include/grpc++/client_context.h
3336 include/grpc++/completion_queue.h
3337 include/grpc++/create_channel.h
3338 include/grpc++/create_channel_posix.h
yang-g04981242016-12-01 11:53:08 -08003339 include/grpc++/ext/health_check_service_server_builder_option.h
Garrett Casto931a26b2016-10-04 09:18:29 -07003340 include/grpc++/generic/async_generic_service.h
3341 include/grpc++/generic/generic_stub.h
3342 include/grpc++/grpc++.h
yang-g1accb122016-12-28 10:38:04 -08003343 include/grpc++/health_check_service_interface.h
Garrett Casto931a26b2016-10-04 09:18:29 -07003344 include/grpc++/impl/call.h
Craig Tiller4751c282017-01-10 14:29:00 -08003345 include/grpc++/impl/channel_argument_option.h
Garrett Casto931a26b2016-10-04 09:18:29 -07003346 include/grpc++/impl/client_unary_call.h
3347 include/grpc++/impl/codegen/core_codegen.h
3348 include/grpc++/impl/grpc_library.h
3349 include/grpc++/impl/method_handler_impl.h
3350 include/grpc++/impl/rpc_method.h
3351 include/grpc++/impl/rpc_service_method.h
3352 include/grpc++/impl/serialization_traits.h
3353 include/grpc++/impl/server_builder_option.h
3354 include/grpc++/impl/server_builder_plugin.h
3355 include/grpc++/impl/server_initializer.h
3356 include/grpc++/impl/service_type.h
Craig Tiller3d357d92016-10-26 20:52:03 -07003357 include/grpc++/resource_quota.h
Garrett Casto931a26b2016-10-04 09:18:29 -07003358 include/grpc++/security/auth_context.h
3359 include/grpc++/security/auth_metadata_processor.h
3360 include/grpc++/security/credentials.h
3361 include/grpc++/security/server_credentials.h
3362 include/grpc++/server.h
3363 include/grpc++/server_builder.h
3364 include/grpc++/server_context.h
3365 include/grpc++/server_posix.h
3366 include/grpc++/support/async_stream.h
3367 include/grpc++/support/async_unary_call.h
3368 include/grpc++/support/byte_buffer.h
3369 include/grpc++/support/channel_arguments.h
3370 include/grpc++/support/config.h
3371 include/grpc++/support/slice.h
3372 include/grpc++/support/status.h
3373 include/grpc++/support/status_code_enum.h
3374 include/grpc++/support/string_ref.h
3375 include/grpc++/support/stub_options.h
3376 include/grpc++/support/sync_stream.h
3377 include/grpc++/support/time.h
Muxi Yan0e00c432018-01-26 15:39:32 -08003378 include/grpcpp/alarm.h
3379 include/grpcpp/channel.h
3380 include/grpcpp/client_context.h
3381 include/grpcpp/completion_queue.h
3382 include/grpcpp/create_channel.h
3383 include/grpcpp/create_channel_posix.h
3384 include/grpcpp/ext/health_check_service_server_builder_option.h
3385 include/grpcpp/generic/async_generic_service.h
3386 include/grpcpp/generic/generic_stub.h
3387 include/grpcpp/grpcpp.h
3388 include/grpcpp/health_check_service_interface.h
3389 include/grpcpp/impl/call.h
3390 include/grpcpp/impl/channel_argument_option.h
3391 include/grpcpp/impl/client_unary_call.h
3392 include/grpcpp/impl/codegen/core_codegen.h
3393 include/grpcpp/impl/grpc_library.h
3394 include/grpcpp/impl/method_handler_impl.h
3395 include/grpcpp/impl/rpc_method.h
3396 include/grpcpp/impl/rpc_service_method.h
3397 include/grpcpp/impl/serialization_traits.h
3398 include/grpcpp/impl/server_builder_option.h
3399 include/grpcpp/impl/server_builder_plugin.h
3400 include/grpcpp/impl/server_initializer.h
3401 include/grpcpp/impl/service_type.h
3402 include/grpcpp/resource_quota.h
3403 include/grpcpp/security/auth_context.h
3404 include/grpcpp/security/auth_metadata_processor.h
3405 include/grpcpp/security/credentials.h
3406 include/grpcpp/security/server_credentials.h
3407 include/grpcpp/server.h
3408 include/grpcpp/server_builder.h
3409 include/grpcpp/server_context.h
3410 include/grpcpp/server_posix.h
3411 include/grpcpp/support/async_stream.h
3412 include/grpcpp/support/async_unary_call.h
3413 include/grpcpp/support/byte_buffer.h
3414 include/grpcpp/support/channel_arguments.h
3415 include/grpcpp/support/config.h
ncteisencf5b2662018-02-27 11:55:10 -08003416 include/grpcpp/support/proto_buffer_reader.h
3417 include/grpcpp/support/proto_buffer_writer.h
Muxi Yan0e00c432018-01-26 15:39:32 -08003418 include/grpcpp/support/slice.h
3419 include/grpcpp/support/status.h
3420 include/grpcpp/support/status_code_enum.h
3421 include/grpcpp/support/string_ref.h
3422 include/grpcpp/support/stub_options.h
3423 include/grpcpp/support/sync_stream.h
3424 include/grpcpp/support/time.h
Vijay Pai42807252017-07-28 15:08:24 -07003425 include/grpc/support/alloc.h
3426 include/grpc/support/atm.h
3427 include/grpc/support/atm_gcc_atomic.h
3428 include/grpc/support/atm_gcc_sync.h
3429 include/grpc/support/atm_windows.h
Vijay Pai42807252017-07-28 15:08:24 -07003430 include/grpc/support/cpu.h
Vijay Pai42807252017-07-28 15:08:24 -07003431 include/grpc/support/log.h
3432 include/grpc/support/log_windows.h
3433 include/grpc/support/port_platform.h
3434 include/grpc/support/string_util.h
Vijay Pai42807252017-07-28 15:08:24 -07003435 include/grpc/support/sync.h
yang-g9ff60312017-08-24 09:08:21 -07003436 include/grpc/support/sync_custom.h
Vijay Pai42807252017-07-28 15:08:24 -07003437 include/grpc/support/sync_generic.h
3438 include/grpc/support/sync_posix.h
3439 include/grpc/support/sync_windows.h
Vijay Paic7456902018-02-12 10:28:24 -08003440 include/grpc/support/thd_id.h
Vijay Pai42807252017-07-28 15:08:24 -07003441 include/grpc/support/time.h
Vijay Pai42807252017-07-28 15:08:24 -07003442 include/grpc/impl/codegen/atm.h
3443 include/grpc/impl/codegen/atm_gcc_atomic.h
3444 include/grpc/impl/codegen/atm_gcc_sync.h
3445 include/grpc/impl/codegen/atm_windows.h
Ken Payson9714e032017-10-10 11:18:49 -07003446 include/grpc/impl/codegen/fork.h
Vijay Pai42807252017-07-28 15:08:24 -07003447 include/grpc/impl/codegen/gpr_slice.h
3448 include/grpc/impl/codegen/gpr_types.h
3449 include/grpc/impl/codegen/port_platform.h
3450 include/grpc/impl/codegen/sync.h
yang-g9ff60312017-08-24 09:08:21 -07003451 include/grpc/impl/codegen/sync_custom.h
Vijay Pai42807252017-07-28 15:08:24 -07003452 include/grpc/impl/codegen/sync_generic.h
3453 include/grpc/impl/codegen/sync_posix.h
3454 include/grpc/impl/codegen/sync_windows.h
3455 include/grpc/byte_buffer.h
3456 include/grpc/byte_buffer_reader.h
3457 include/grpc/compression.h
Ken Payson9714e032017-10-10 11:18:49 -07003458 include/grpc/fork.h
Vijay Pai42807252017-07-28 15:08:24 -07003459 include/grpc/grpc.h
3460 include/grpc/grpc_posix.h
3461 include/grpc/grpc_security_constants.h
3462 include/grpc/load_reporting.h
3463 include/grpc/slice.h
3464 include/grpc/slice_buffer.h
3465 include/grpc/status.h
3466 include/grpc/support/workaround_list.h
Vijay Paiefce6e12017-09-14 09:07:50 -07003467 include/grpc/impl/codegen/byte_buffer.h
Vijay Pai42807252017-07-28 15:08:24 -07003468 include/grpc/impl/codegen/byte_buffer_reader.h
3469 include/grpc/impl/codegen/compression_types.h
3470 include/grpc/impl/codegen/connectivity_state.h
Vijay Pai42807252017-07-28 15:08:24 -07003471 include/grpc/impl/codegen/grpc_types.h
3472 include/grpc/impl/codegen/propagation_bits.h
3473 include/grpc/impl/codegen/slice.h
3474 include/grpc/impl/codegen/status.h
Garrett Casto931a26b2016-10-04 09:18:29 -07003475 include/grpc++/impl/codegen/async_stream.h
3476 include/grpc++/impl/codegen/async_unary_call.h
Vijay Paiefce6e12017-09-14 09:07:50 -07003477 include/grpc++/impl/codegen/byte_buffer.h
Garrett Casto931a26b2016-10-04 09:18:29 -07003478 include/grpc++/impl/codegen/call.h
3479 include/grpc++/impl/codegen/call_hook.h
3480 include/grpc++/impl/codegen/channel_interface.h
3481 include/grpc++/impl/codegen/client_context.h
3482 include/grpc++/impl/codegen/client_unary_call.h
3483 include/grpc++/impl/codegen/completion_queue.h
3484 include/grpc++/impl/codegen/completion_queue_tag.h
3485 include/grpc++/impl/codegen/config.h
3486 include/grpc++/impl/codegen/core_codegen_interface.h
3487 include/grpc++/impl/codegen/create_auth_context.h
3488 include/grpc++/impl/codegen/grpc_library.h
yang-g988b47c2017-01-31 09:51:45 -08003489 include/grpc++/impl/codegen/metadata_map.h
Garrett Casto931a26b2016-10-04 09:18:29 -07003490 include/grpc++/impl/codegen/method_handler_impl.h
3491 include/grpc++/impl/codegen/rpc_method.h
3492 include/grpc++/impl/codegen/rpc_service_method.h
3493 include/grpc++/impl/codegen/security/auth_context.h
3494 include/grpc++/impl/codegen/serialization_traits.h
3495 include/grpc++/impl/codegen/server_context.h
3496 include/grpc++/impl/codegen/server_interface.h
3497 include/grpc++/impl/codegen/service_type.h
Craig Tiller7c70b6c2017-01-23 07:48:42 -08003498 include/grpc++/impl/codegen/slice.h
Garrett Casto931a26b2016-10-04 09:18:29 -07003499 include/grpc++/impl/codegen/status.h
3500 include/grpc++/impl/codegen/status_code_enum.h
Garrett Casto931a26b2016-10-04 09:18:29 -07003501 include/grpc++/impl/codegen/string_ref.h
3502 include/grpc++/impl/codegen/stub_options.h
Garrett Casto931a26b2016-10-04 09:18:29 -07003503 include/grpc++/impl/codegen/sync_stream.h
3504 include/grpc++/impl/codegen/time.h
Muxi Yan0e00c432018-01-26 15:39:32 -08003505 include/grpcpp/impl/codegen/async_stream.h
3506 include/grpcpp/impl/codegen/async_unary_call.h
3507 include/grpcpp/impl/codegen/byte_buffer.h
3508 include/grpcpp/impl/codegen/call.h
3509 include/grpcpp/impl/codegen/call_hook.h
3510 include/grpcpp/impl/codegen/channel_interface.h
3511 include/grpcpp/impl/codegen/client_context.h
3512 include/grpcpp/impl/codegen/client_unary_call.h
3513 include/grpcpp/impl/codegen/completion_queue.h
3514 include/grpcpp/impl/codegen/completion_queue_tag.h
3515 include/grpcpp/impl/codegen/config.h
3516 include/grpcpp/impl/codegen/core_codegen_interface.h
3517 include/grpcpp/impl/codegen/create_auth_context.h
3518 include/grpcpp/impl/codegen/grpc_library.h
3519 include/grpcpp/impl/codegen/metadata_map.h
3520 include/grpcpp/impl/codegen/method_handler_impl.h
3521 include/grpcpp/impl/codegen/rpc_method.h
3522 include/grpcpp/impl/codegen/rpc_service_method.h
3523 include/grpcpp/impl/codegen/security/auth_context.h
3524 include/grpcpp/impl/codegen/serialization_traits.h
3525 include/grpcpp/impl/codegen/server_context.h
3526 include/grpcpp/impl/codegen/server_interface.h
3527 include/grpcpp/impl/codegen/service_type.h
3528 include/grpcpp/impl/codegen/slice.h
3529 include/grpcpp/impl/codegen/status.h
3530 include/grpcpp/impl/codegen/status_code_enum.h
3531 include/grpcpp/impl/codegen/string_ref.h
3532 include/grpcpp/impl/codegen/stub_options.h
3533 include/grpcpp/impl/codegen/sync_stream.h
3534 include/grpcpp/impl/codegen/time.h
ncteisen3770ac92016-11-28 11:02:41 -08003535 include/grpc/census.h
Garrett Casto931a26b2016-10-04 09:18:29 -07003536)
3537 string(REPLACE "include/" "" _path ${_hdr})
3538 get_filename_component(_path ${_path} PATH)
3539 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003540 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Garrett Casto931a26b2016-10-04 09:18:29 -07003541 )
3542endforeach()
3543
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003544
Garrett Casto931a26b2016-10-04 09:18:29 -07003545if (gRPC_INSTALL)
3546 install(TARGETS grpc++_cronet EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003547 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
3548 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
3549 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Garrett Casto931a26b2016-10-04 09:18:29 -07003550 )
3551endif()
3552
yang-geceec8e2017-04-10 11:58:44 -07003553
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08003554if (gRPC_BUILD_CODEGEN)
yang-geceec8e2017-04-10 11:58:44 -07003555add_library(grpc++_error_details
3556 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/status/status.pb.cc
3557 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/status/status.grpc.pb.cc
3558 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/status/status.pb.h
3559 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/status/status.grpc.pb.h
3560 src/cpp/util/error_details.cc
3561)
3562
3563if(WIN32 AND MSVC)
3564 set_target_properties(grpc++_error_details PROPERTIES COMPILE_PDB_NAME "grpc++_error_details"
3565 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3566 )
3567 if (gRPC_INSTALL)
3568 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_error_details.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003569 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
yang-geceec8e2017-04-10 11:58:44 -07003570 )
3571 endif()
3572endif()
3573
3574protobuf_generate_grpc_cpp(
3575 src/proto/grpc/status/status.proto
3576)
3577
3578target_include_directories(grpc++_error_details
Jan Tattermuschf567ab02017-08-25 16:13:30 +02003579 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
yang-geceec8e2017-04-10 11:58:44 -07003580 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01003581 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01003582 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
3583 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
3584 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
3585 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
3586 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08003587 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
yang-geceec8e2017-04-10 11:58:44 -07003588 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3589)
3590
3591target_link_libraries(grpc++_error_details
3592 ${_gRPC_BASELIB_LIBRARIES}
3593 ${_gRPC_PROTOBUF_LIBRARIES}
3594 ${_gRPC_ALLTARGETS_LIBRARIES}
3595 grpc++
3596)
3597
3598foreach(_hdr
3599 include/grpc++/support/error_details.h
Muxi Yan0e00c432018-01-26 15:39:32 -08003600 include/grpcpp/support/error_details.h
yang-geceec8e2017-04-10 11:58:44 -07003601)
3602 string(REPLACE "include/" "" _path ${_hdr})
3603 get_filename_component(_path ${_path} PATH)
3604 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003605 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
yang-geceec8e2017-04-10 11:58:44 -07003606 )
3607endforeach()
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08003608endif (gRPC_BUILD_CODEGEN)
yang-geceec8e2017-04-10 11:58:44 -07003609
3610
3611if (gRPC_INSTALL)
3612 install(TARGETS grpc++_error_details EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003613 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
3614 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
3615 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
yang-geceec8e2017-04-10 11:58:44 -07003616 )
3617endif()
3618
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003619if (gRPC_BUILD_TESTS)
3620
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08003621if (gRPC_BUILD_CODEGEN)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003622add_library(grpc++_proto_reflection_desc_db
3623 test/cpp/util/proto_reflection_descriptor_database.cc
3624 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.cc
3625 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.cc
3626 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.h
3627 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h
3628)
3629
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003630if(WIN32 AND MSVC)
3631 set_target_properties(grpc++_proto_reflection_desc_db PROPERTIES COMPILE_PDB_NAME "grpc++_proto_reflection_desc_db"
3632 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3633 )
3634 if (gRPC_INSTALL)
3635 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_proto_reflection_desc_db.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003636 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003637 )
3638 endif()
3639endif()
3640
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003641protobuf_generate_grpc_cpp(
3642 src/proto/grpc/reflection/v1alpha/reflection.proto
3643)
3644
3645target_include_directories(grpc++_proto_reflection_desc_db
Jan Tattermuschf567ab02017-08-25 16:13:30 +02003646 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003647 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01003648 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01003649 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
3650 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
3651 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
3652 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
3653 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08003654 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07003655 PRIVATE third_party/googletest/googletest/include
3656 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07003657 PRIVATE third_party/googletest/googlemock/include
3658 PRIVATE third_party/googletest/googlemock
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003659 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3660)
3661
3662target_link_libraries(grpc++_proto_reflection_desc_db
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003663 ${_gRPC_PROTOBUF_LIBRARIES}
3664 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003665 grpc++
Jan Tattermuschb77a20b2017-05-18 16:45:07 +02003666 grpc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003667)
3668
3669foreach(_hdr
3670 include/grpc++/impl/codegen/config_protobuf.h
Muxi Yan0e00c432018-01-26 15:39:32 -08003671 include/grpcpp/impl/codegen/config_protobuf.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003672)
3673 string(REPLACE "include/" "" _path ${_hdr})
3674 get_filename_component(_path ${_path} PATH)
3675 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003676 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003677 )
3678endforeach()
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08003679endif (gRPC_BUILD_CODEGEN)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003680
3681endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003682
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08003683if (gRPC_BUILD_CODEGEN)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003684add_library(grpc++_reflection
3685 src/cpp/ext/proto_server_reflection.cc
3686 src/cpp/ext/proto_server_reflection_plugin.cc
3687 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.cc
3688 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.cc
3689 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.h
3690 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h
3691)
3692
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003693if(WIN32 AND MSVC)
3694 set_target_properties(grpc++_reflection PROPERTIES COMPILE_PDB_NAME "grpc++_reflection"
3695 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3696 )
3697 if (gRPC_INSTALL)
3698 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_reflection.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003699 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003700 )
3701 endif()
3702endif()
3703
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003704protobuf_generate_grpc_cpp(
3705 src/proto/grpc/reflection/v1alpha/reflection.proto
3706)
3707
3708target_include_directories(grpc++_reflection
Jan Tattermuschf567ab02017-08-25 16:13:30 +02003709 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003710 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01003711 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01003712 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
3713 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
3714 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
3715 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
3716 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08003717 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003718 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3719)
3720
3721target_link_libraries(grpc++_reflection
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003722 ${_gRPC_PROTOBUF_LIBRARIES}
3723 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003724 grpc++
Jan Tattermuschb77a20b2017-05-18 16:45:07 +02003725 grpc
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003726)
3727
3728foreach(_hdr
3729 include/grpc++/ext/proto_server_reflection_plugin.h
Muxi Yan0e00c432018-01-26 15:39:32 -08003730 include/grpcpp/ext/proto_server_reflection_plugin.h
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003731)
3732 string(REPLACE "include/" "" _path ${_hdr})
3733 get_filename_component(_path ${_path} PATH)
3734 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003735 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003736 )
3737endforeach()
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08003738endif (gRPC_BUILD_CODEGEN)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003739
3740
3741if (gRPC_INSTALL)
3742 install(TARGETS grpc++_reflection EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003743 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
3744 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
3745 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003746 )
3747endif()
3748
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003749if (gRPC_BUILD_TESTS)
3750
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003751add_library(grpc++_test_config
3752 test/cpp/util/test_config_cc.cc
3753)
3754
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003755if(WIN32 AND MSVC)
3756 set_target_properties(grpc++_test_config PROPERTIES COMPILE_PDB_NAME "grpc++_test_config"
3757 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3758 )
3759 if (gRPC_INSTALL)
3760 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_test_config.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003761 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003762 )
3763 endif()
3764endif()
3765
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003766
3767target_include_directories(grpc++_test_config
Jan Tattermuschf567ab02017-08-25 16:13:30 +02003768 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003769 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01003770 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01003771 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
3772 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
3773 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
3774 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
3775 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08003776 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07003777 PRIVATE third_party/googletest/googletest/include
3778 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07003779 PRIVATE third_party/googletest/googlemock/include
3780 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003781 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003782)
3783
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003784target_link_libraries(grpc++_test_config
3785 ${_gRPC_PROTOBUF_LIBRARIES}
3786 ${_gRPC_ALLTARGETS_LIBRARIES}
3787)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003788
3789
3790endif (gRPC_BUILD_TESTS)
3791if (gRPC_BUILD_TESTS)
3792
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08003793if (gRPC_BUILD_CODEGEN)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003794add_library(grpc++_test_util
ncteisen3b42f832018-03-19 13:22:35 -07003795 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/channelz/channelz.pb.cc
3796 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/channelz/channelz.grpc.pb.cc
3797 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/channelz/channelz.pb.h
3798 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/channelz/channelz.grpc.pb.h
yang-ga7198022017-01-26 13:23:52 -08003799 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.pb.cc
3800 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.grpc.pb.cc
3801 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.pb.h
3802 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003803 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc
3804 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc
3805 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h
3806 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h
3807 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc
3808 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc
3809 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h
3810 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07003811 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_mock.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003812 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.pb.cc
3813 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.cc
3814 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.pb.h
3815 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.h
3816 test/cpp/end2end/test_service_impl.cc
3817 test/cpp/util/byte_buffer_proto_helper.cc
ncteisen3b42f832018-03-19 13:22:35 -07003818 test/cpp/util/channel_trace_proto_helper.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003819 test/cpp/util/create_test_channel.cc
3820 test/cpp/util/string_ref_helper.cc
3821 test/cpp/util/subprocess.cc
3822 test/cpp/util/test_credentials_provider.cc
3823 src/cpp/codegen/codegen_init.cc
3824)
3825
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003826if(WIN32 AND MSVC)
3827 set_target_properties(grpc++_test_util PROPERTIES COMPILE_PDB_NAME "grpc++_test_util"
3828 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3829 )
3830 if (gRPC_INSTALL)
3831 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_test_util.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003832 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003833 )
3834 endif()
3835endif()
3836
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003837protobuf_generate_grpc_cpp(
ncteisen3b42f832018-03-19 13:22:35 -07003838 src/proto/grpc/channelz/channelz.proto
3839)
3840protobuf_generate_grpc_cpp(
yang-ga7198022017-01-26 13:23:52 -08003841 src/proto/grpc/health/v1/health.proto
3842)
3843protobuf_generate_grpc_cpp(
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003844 src/proto/grpc/testing/echo_messages.proto
3845)
3846protobuf_generate_grpc_cpp(
3847 src/proto/grpc/testing/echo.proto
3848)
3849protobuf_generate_grpc_cpp(
3850 src/proto/grpc/testing/duplicate/echo_duplicate.proto
3851)
3852
3853target_include_directories(grpc++_test_util
Jan Tattermuschf567ab02017-08-25 16:13:30 +02003854 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003855 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01003856 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01003857 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
3858 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
3859 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
3860 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
3861 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08003862 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07003863 PRIVATE third_party/googletest/googletest/include
3864 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07003865 PRIVATE third_party/googletest/googlemock/include
3866 PRIVATE third_party/googletest/googlemock
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003867 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3868)
3869
3870target_link_libraries(grpc++_test_util
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003871 ${_gRPC_PROTOBUF_LIBRARIES}
3872 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003873 grpc++
3874 grpc_test_util
Jan Tattermuschb77a20b2017-05-18 16:45:07 +02003875 grpc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003876)
3877
3878foreach(_hdr
3879 include/grpc++/impl/codegen/async_stream.h
3880 include/grpc++/impl/codegen/async_unary_call.h
Vijay Paiefce6e12017-09-14 09:07:50 -07003881 include/grpc++/impl/codegen/byte_buffer.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003882 include/grpc++/impl/codegen/call.h
3883 include/grpc++/impl/codegen/call_hook.h
3884 include/grpc++/impl/codegen/channel_interface.h
3885 include/grpc++/impl/codegen/client_context.h
3886 include/grpc++/impl/codegen/client_unary_call.h
3887 include/grpc++/impl/codegen/completion_queue.h
3888 include/grpc++/impl/codegen/completion_queue_tag.h
3889 include/grpc++/impl/codegen/config.h
3890 include/grpc++/impl/codegen/core_codegen_interface.h
3891 include/grpc++/impl/codegen/create_auth_context.h
3892 include/grpc++/impl/codegen/grpc_library.h
yang-g988b47c2017-01-31 09:51:45 -08003893 include/grpc++/impl/codegen/metadata_map.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003894 include/grpc++/impl/codegen/method_handler_impl.h
3895 include/grpc++/impl/codegen/rpc_method.h
3896 include/grpc++/impl/codegen/rpc_service_method.h
3897 include/grpc++/impl/codegen/security/auth_context.h
3898 include/grpc++/impl/codegen/serialization_traits.h
3899 include/grpc++/impl/codegen/server_context.h
3900 include/grpc++/impl/codegen/server_interface.h
3901 include/grpc++/impl/codegen/service_type.h
Craig Tiller7c70b6c2017-01-23 07:48:42 -08003902 include/grpc++/impl/codegen/slice.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003903 include/grpc++/impl/codegen/status.h
3904 include/grpc++/impl/codegen/status_code_enum.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003905 include/grpc++/impl/codegen/string_ref.h
3906 include/grpc++/impl/codegen/stub_options.h
3907 include/grpc++/impl/codegen/sync_stream.h
3908 include/grpc++/impl/codegen/time.h
Muxi Yan0e00c432018-01-26 15:39:32 -08003909 include/grpcpp/impl/codegen/async_stream.h
3910 include/grpcpp/impl/codegen/async_unary_call.h
3911 include/grpcpp/impl/codegen/byte_buffer.h
3912 include/grpcpp/impl/codegen/call.h
3913 include/grpcpp/impl/codegen/call_hook.h
3914 include/grpcpp/impl/codegen/channel_interface.h
3915 include/grpcpp/impl/codegen/client_context.h
3916 include/grpcpp/impl/codegen/client_unary_call.h
3917 include/grpcpp/impl/codegen/completion_queue.h
3918 include/grpcpp/impl/codegen/completion_queue_tag.h
3919 include/grpcpp/impl/codegen/config.h
3920 include/grpcpp/impl/codegen/core_codegen_interface.h
3921 include/grpcpp/impl/codegen/create_auth_context.h
3922 include/grpcpp/impl/codegen/grpc_library.h
3923 include/grpcpp/impl/codegen/metadata_map.h
3924 include/grpcpp/impl/codegen/method_handler_impl.h
3925 include/grpcpp/impl/codegen/rpc_method.h
3926 include/grpcpp/impl/codegen/rpc_service_method.h
3927 include/grpcpp/impl/codegen/security/auth_context.h
3928 include/grpcpp/impl/codegen/serialization_traits.h
3929 include/grpcpp/impl/codegen/server_context.h
3930 include/grpcpp/impl/codegen/server_interface.h
3931 include/grpcpp/impl/codegen/service_type.h
3932 include/grpcpp/impl/codegen/slice.h
3933 include/grpcpp/impl/codegen/status.h
3934 include/grpcpp/impl/codegen/status_code_enum.h
3935 include/grpcpp/impl/codegen/string_ref.h
3936 include/grpcpp/impl/codegen/stub_options.h
3937 include/grpcpp/impl/codegen/sync_stream.h
3938 include/grpcpp/impl/codegen/time.h
Vijay Paiefce6e12017-09-14 09:07:50 -07003939 include/grpc/impl/codegen/byte_buffer.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003940 include/grpc/impl/codegen/byte_buffer_reader.h
3941 include/grpc/impl/codegen/compression_types.h
3942 include/grpc/impl/codegen/connectivity_state.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003943 include/grpc/impl/codegen/grpc_types.h
3944 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07003945 include/grpc/impl/codegen/slice.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003946 include/grpc/impl/codegen/status.h
3947 include/grpc/impl/codegen/atm.h
3948 include/grpc/impl/codegen/atm_gcc_atomic.h
3949 include/grpc/impl/codegen/atm_gcc_sync.h
3950 include/grpc/impl/codegen/atm_windows.h
Ken Payson9714e032017-10-10 11:18:49 -07003951 include/grpc/impl/codegen/fork.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003952 include/grpc/impl/codegen/gpr_slice.h
3953 include/grpc/impl/codegen/gpr_types.h
3954 include/grpc/impl/codegen/port_platform.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003955 include/grpc/impl/codegen/sync.h
yang-g9ff60312017-08-24 09:08:21 -07003956 include/grpc/impl/codegen/sync_custom.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003957 include/grpc/impl/codegen/sync_generic.h
3958 include/grpc/impl/codegen/sync_posix.h
3959 include/grpc/impl/codegen/sync_windows.h
3960 include/grpc++/impl/codegen/proto_utils.h
ncteisencf5b2662018-02-27 11:55:10 -08003961 include/grpcpp/impl/codegen/proto_buffer_reader.h
3962 include/grpcpp/impl/codegen/proto_buffer_writer.h
Muxi Yan0e00c432018-01-26 15:39:32 -08003963 include/grpcpp/impl/codegen/proto_utils.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003964 include/grpc++/impl/codegen/config_protobuf.h
Muxi Yan0e00c432018-01-26 15:39:32 -08003965 include/grpcpp/impl/codegen/config_protobuf.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003966)
3967 string(REPLACE "include/" "" _path ${_hdr})
3968 get_filename_component(_path ${_path} PATH)
3969 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003970 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003971 )
3972endforeach()
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08003973endif (gRPC_BUILD_CODEGEN)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003974
3975endif (gRPC_BUILD_TESTS)
Vijay Pai168034b2017-07-31 00:53:10 -07003976if (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003977
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08003978if (gRPC_BUILD_CODEGEN)
Vijay Pai168034b2017-07-31 00:53:10 -07003979add_library(grpc++_test_util_unsecure
3980 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.pb.cc
3981 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.grpc.pb.cc
3982 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.pb.h
3983 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.grpc.pb.h
3984 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc
3985 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc
3986 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h
3987 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h
3988 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc
3989 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc
3990 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h
3991 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h
3992 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_mock.grpc.pb.h
3993 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.pb.cc
3994 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.cc
3995 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.pb.h
3996 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.h
3997 test/cpp/end2end/test_service_impl.cc
3998 test/cpp/util/byte_buffer_proto_helper.cc
3999 test/cpp/util/string_ref_helper.cc
4000 test/cpp/util/subprocess.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004001 src/cpp/codegen/codegen_init.cc
4002)
4003
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004004if(WIN32 AND MSVC)
Vijay Pai168034b2017-07-31 00:53:10 -07004005 set_target_properties(grpc++_test_util_unsecure PROPERTIES COMPILE_PDB_NAME "grpc++_test_util_unsecure"
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004006 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4007 )
4008 if (gRPC_INSTALL)
Vijay Pai168034b2017-07-31 00:53:10 -07004009 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_test_util_unsecure.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004010 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004011 )
4012 endif()
4013endif()
4014
Vijay Pai168034b2017-07-31 00:53:10 -07004015protobuf_generate_grpc_cpp(
4016 src/proto/grpc/health/v1/health.proto
4017)
4018protobuf_generate_grpc_cpp(
4019 src/proto/grpc/testing/echo_messages.proto
4020)
4021protobuf_generate_grpc_cpp(
4022 src/proto/grpc/testing/echo.proto
4023)
4024protobuf_generate_grpc_cpp(
4025 src/proto/grpc/testing/duplicate/echo_duplicate.proto
4026)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01004027
Vijay Pai168034b2017-07-31 00:53:10 -07004028target_include_directories(grpc++_test_util_unsecure
Jan Tattermuschf567ab02017-08-25 16:13:30 +02004029 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004030 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01004031 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01004032 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
4033 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
4034 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
4035 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
4036 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08004037 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Vijay Pai168034b2017-07-31 00:53:10 -07004038 PRIVATE third_party/googletest/googletest/include
4039 PRIVATE third_party/googletest/googletest
4040 PRIVATE third_party/googletest/googlemock/include
4041 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004042 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004043)
4044
Vijay Pai168034b2017-07-31 00:53:10 -07004045target_link_libraries(grpc++_test_util_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03004046 ${_gRPC_PROTOBUF_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004047 ${_gRPC_ALLTARGETS_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -07004048 grpc++_unsecure
4049 grpc_test_util_unsecure
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004050 grpc_unsecure
4051)
4052
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03004053foreach(_hdr
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03004054 include/grpc++/impl/codegen/async_stream.h
4055 include/grpc++/impl/codegen/async_unary_call.h
Vijay Paiefce6e12017-09-14 09:07:50 -07004056 include/grpc++/impl/codegen/byte_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03004057 include/grpc++/impl/codegen/call.h
4058 include/grpc++/impl/codegen/call_hook.h
4059 include/grpc++/impl/codegen/channel_interface.h
4060 include/grpc++/impl/codegen/client_context.h
4061 include/grpc++/impl/codegen/client_unary_call.h
4062 include/grpc++/impl/codegen/completion_queue.h
4063 include/grpc++/impl/codegen/completion_queue_tag.h
4064 include/grpc++/impl/codegen/config.h
4065 include/grpc++/impl/codegen/core_codegen_interface.h
4066 include/grpc++/impl/codegen/create_auth_context.h
4067 include/grpc++/impl/codegen/grpc_library.h
yang-g988b47c2017-01-31 09:51:45 -08004068 include/grpc++/impl/codegen/metadata_map.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03004069 include/grpc++/impl/codegen/method_handler_impl.h
4070 include/grpc++/impl/codegen/rpc_method.h
4071 include/grpc++/impl/codegen/rpc_service_method.h
4072 include/grpc++/impl/codegen/security/auth_context.h
4073 include/grpc++/impl/codegen/serialization_traits.h
4074 include/grpc++/impl/codegen/server_context.h
4075 include/grpc++/impl/codegen/server_interface.h
4076 include/grpc++/impl/codegen/service_type.h
Craig Tiller7c70b6c2017-01-23 07:48:42 -08004077 include/grpc++/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03004078 include/grpc++/impl/codegen/status.h
4079 include/grpc++/impl/codegen/status_code_enum.h
4080 include/grpc++/impl/codegen/string_ref.h
4081 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03004082 include/grpc++/impl/codegen/sync_stream.h
4083 include/grpc++/impl/codegen/time.h
Muxi Yan0e00c432018-01-26 15:39:32 -08004084 include/grpcpp/impl/codegen/async_stream.h
4085 include/grpcpp/impl/codegen/async_unary_call.h
4086 include/grpcpp/impl/codegen/byte_buffer.h
4087 include/grpcpp/impl/codegen/call.h
4088 include/grpcpp/impl/codegen/call_hook.h
4089 include/grpcpp/impl/codegen/channel_interface.h
4090 include/grpcpp/impl/codegen/client_context.h
4091 include/grpcpp/impl/codegen/client_unary_call.h
4092 include/grpcpp/impl/codegen/completion_queue.h
4093 include/grpcpp/impl/codegen/completion_queue_tag.h
4094 include/grpcpp/impl/codegen/config.h
4095 include/grpcpp/impl/codegen/core_codegen_interface.h
4096 include/grpcpp/impl/codegen/create_auth_context.h
4097 include/grpcpp/impl/codegen/grpc_library.h
4098 include/grpcpp/impl/codegen/metadata_map.h
4099 include/grpcpp/impl/codegen/method_handler_impl.h
4100 include/grpcpp/impl/codegen/rpc_method.h
4101 include/grpcpp/impl/codegen/rpc_service_method.h
4102 include/grpcpp/impl/codegen/security/auth_context.h
4103 include/grpcpp/impl/codegen/serialization_traits.h
4104 include/grpcpp/impl/codegen/server_context.h
4105 include/grpcpp/impl/codegen/server_interface.h
4106 include/grpcpp/impl/codegen/service_type.h
4107 include/grpcpp/impl/codegen/slice.h
4108 include/grpcpp/impl/codegen/status.h
4109 include/grpcpp/impl/codegen/status_code_enum.h
4110 include/grpcpp/impl/codegen/string_ref.h
4111 include/grpcpp/impl/codegen/stub_options.h
4112 include/grpcpp/impl/codegen/sync_stream.h
4113 include/grpcpp/impl/codegen/time.h
Vijay Paiefce6e12017-09-14 09:07:50 -07004114 include/grpc/impl/codegen/byte_buffer.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02004115 include/grpc/impl/codegen/byte_buffer_reader.h
4116 include/grpc/impl/codegen/compression_types.h
4117 include/grpc/impl/codegen/connectivity_state.h
4118 include/grpc/impl/codegen/grpc_types.h
4119 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07004120 include/grpc/impl/codegen/slice.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02004121 include/grpc/impl/codegen/status.h
4122 include/grpc/impl/codegen/atm.h
4123 include/grpc/impl/codegen/atm_gcc_atomic.h
4124 include/grpc/impl/codegen/atm_gcc_sync.h
4125 include/grpc/impl/codegen/atm_windows.h
Ken Payson9714e032017-10-10 11:18:49 -07004126 include/grpc/impl/codegen/fork.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08004127 include/grpc/impl/codegen/gpr_slice.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02004128 include/grpc/impl/codegen/gpr_types.h
4129 include/grpc/impl/codegen/port_platform.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02004130 include/grpc/impl/codegen/sync.h
yang-g9ff60312017-08-24 09:08:21 -07004131 include/grpc/impl/codegen/sync_custom.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03004132 include/grpc/impl/codegen/sync_generic.h
4133 include/grpc/impl/codegen/sync_posix.h
4134 include/grpc/impl/codegen/sync_windows.h
4135 include/grpc++/impl/codegen/proto_utils.h
ncteisencf5b2662018-02-27 11:55:10 -08004136 include/grpcpp/impl/codegen/proto_buffer_reader.h
4137 include/grpcpp/impl/codegen/proto_buffer_writer.h
Muxi Yan0e00c432018-01-26 15:39:32 -08004138 include/grpcpp/impl/codegen/proto_utils.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03004139 include/grpc++/impl/codegen/config_protobuf.h
Muxi Yan0e00c432018-01-26 15:39:32 -08004140 include/grpcpp/impl/codegen/config_protobuf.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03004141)
4142 string(REPLACE "include/" "" _path ${_hdr})
4143 get_filename_component(_path ${_path} PATH)
4144 install(FILES ${_hdr}
4145 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
4146 )
4147endforeach()
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08004148endif (gRPC_BUILD_CODEGEN)
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004149
4150endif (gRPC_BUILD_TESTS)
4151
4152add_library(grpc++_unsecure
4153 src/cpp/client/insecure_credentials.cc
4154 src/cpp/common/insecure_create_auth_context.cc
4155 src/cpp/server/insecure_server_credentials.cc
4156 src/cpp/client/channel_cc.cc
4157 src/cpp/client/client_context.cc
4158 src/cpp/client/create_channel.cc
4159 src/cpp/client/create_channel_internal.cc
4160 src/cpp/client/create_channel_posix.cc
4161 src/cpp/client/credentials_cc.cc
4162 src/cpp/client/generic_stub.cc
Vijay Pai2b226ad2018-01-11 16:11:35 -08004163 src/cpp/common/alarm.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004164 src/cpp/common/channel_arguments.cc
4165 src/cpp/common/channel_filter.cc
4166 src/cpp/common/completion_queue_cc.cc
4167 src/cpp/common/core_codegen.cc
4168 src/cpp/common/resource_quota_cc.cc
4169 src/cpp/common/rpc_method.cc
4170 src/cpp/common/version_cc.cc
4171 src/cpp/server/async_generic_service.cc
4172 src/cpp/server/channel_argument_option.cc
4173 src/cpp/server/create_default_thread_pool.cc
4174 src/cpp/server/dynamic_thread_pool.cc
4175 src/cpp/server/health/default_health_check_service.cc
4176 src/cpp/server/health/health.pb.c
4177 src/cpp/server/health/health_check_service.cc
4178 src/cpp/server/health/health_check_service_server_builder_option.cc
4179 src/cpp/server/server_builder.cc
4180 src/cpp/server/server_cc.cc
4181 src/cpp/server/server_context.cc
4182 src/cpp/server/server_credentials.cc
4183 src/cpp/server/server_posix.cc
4184 src/cpp/thread_manager/thread_manager.cc
4185 src/cpp/util/byte_buffer_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004186 src/cpp/util/status.cc
4187 src/cpp/util/string_ref.cc
4188 src/cpp/util/time_cc.cc
4189 src/cpp/codegen/codegen_init.cc
4190)
4191
4192if(WIN32 AND MSVC)
4193 set_target_properties(grpc++_unsecure PROPERTIES COMPILE_PDB_NAME "grpc++_unsecure"
4194 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4195 )
4196 if (gRPC_INSTALL)
4197 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_unsecure.pdb
4198 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
4199 )
4200 endif()
4201endif()
4202
4203
4204target_include_directories(grpc++_unsecure
Jan Tattermuschf567ab02017-08-25 16:13:30 +02004205 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004206 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01004207 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01004208 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
4209 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
4210 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
4211 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
4212 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08004213 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004214 PRIVATE ${_gRPC_PROTO_GENS_DIR}
4215)
4216
4217target_link_libraries(grpc++_unsecure
4218 ${_gRPC_BASELIB_LIBRARIES}
4219 ${_gRPC_PROTOBUF_LIBRARIES}
4220 ${_gRPC_ALLTARGETS_LIBRARIES}
4221 gpr
4222 grpc_unsecure
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004223)
4224
4225foreach(_hdr
4226 include/grpc++/alarm.h
4227 include/grpc++/channel.h
4228 include/grpc++/client_context.h
4229 include/grpc++/completion_queue.h
4230 include/grpc++/create_channel.h
4231 include/grpc++/create_channel_posix.h
4232 include/grpc++/ext/health_check_service_server_builder_option.h
4233 include/grpc++/generic/async_generic_service.h
4234 include/grpc++/generic/generic_stub.h
4235 include/grpc++/grpc++.h
4236 include/grpc++/health_check_service_interface.h
4237 include/grpc++/impl/call.h
4238 include/grpc++/impl/channel_argument_option.h
4239 include/grpc++/impl/client_unary_call.h
4240 include/grpc++/impl/codegen/core_codegen.h
4241 include/grpc++/impl/grpc_library.h
4242 include/grpc++/impl/method_handler_impl.h
4243 include/grpc++/impl/rpc_method.h
4244 include/grpc++/impl/rpc_service_method.h
4245 include/grpc++/impl/serialization_traits.h
4246 include/grpc++/impl/server_builder_option.h
4247 include/grpc++/impl/server_builder_plugin.h
4248 include/grpc++/impl/server_initializer.h
4249 include/grpc++/impl/service_type.h
4250 include/grpc++/resource_quota.h
4251 include/grpc++/security/auth_context.h
4252 include/grpc++/security/auth_metadata_processor.h
4253 include/grpc++/security/credentials.h
4254 include/grpc++/security/server_credentials.h
4255 include/grpc++/server.h
4256 include/grpc++/server_builder.h
4257 include/grpc++/server_context.h
4258 include/grpc++/server_posix.h
4259 include/grpc++/support/async_stream.h
4260 include/grpc++/support/async_unary_call.h
4261 include/grpc++/support/byte_buffer.h
4262 include/grpc++/support/channel_arguments.h
4263 include/grpc++/support/config.h
4264 include/grpc++/support/slice.h
4265 include/grpc++/support/status.h
4266 include/grpc++/support/status_code_enum.h
4267 include/grpc++/support/string_ref.h
4268 include/grpc++/support/stub_options.h
4269 include/grpc++/support/sync_stream.h
4270 include/grpc++/support/time.h
Muxi Yan0e00c432018-01-26 15:39:32 -08004271 include/grpcpp/alarm.h
4272 include/grpcpp/channel.h
4273 include/grpcpp/client_context.h
4274 include/grpcpp/completion_queue.h
4275 include/grpcpp/create_channel.h
4276 include/grpcpp/create_channel_posix.h
4277 include/grpcpp/ext/health_check_service_server_builder_option.h
4278 include/grpcpp/generic/async_generic_service.h
4279 include/grpcpp/generic/generic_stub.h
4280 include/grpcpp/grpcpp.h
4281 include/grpcpp/health_check_service_interface.h
4282 include/grpcpp/impl/call.h
4283 include/grpcpp/impl/channel_argument_option.h
4284 include/grpcpp/impl/client_unary_call.h
4285 include/grpcpp/impl/codegen/core_codegen.h
4286 include/grpcpp/impl/grpc_library.h
4287 include/grpcpp/impl/method_handler_impl.h
4288 include/grpcpp/impl/rpc_method.h
4289 include/grpcpp/impl/rpc_service_method.h
4290 include/grpcpp/impl/serialization_traits.h
4291 include/grpcpp/impl/server_builder_option.h
4292 include/grpcpp/impl/server_builder_plugin.h
4293 include/grpcpp/impl/server_initializer.h
4294 include/grpcpp/impl/service_type.h
4295 include/grpcpp/resource_quota.h
4296 include/grpcpp/security/auth_context.h
4297 include/grpcpp/security/auth_metadata_processor.h
4298 include/grpcpp/security/credentials.h
4299 include/grpcpp/security/server_credentials.h
4300 include/grpcpp/server.h
4301 include/grpcpp/server_builder.h
4302 include/grpcpp/server_context.h
4303 include/grpcpp/server_posix.h
4304 include/grpcpp/support/async_stream.h
4305 include/grpcpp/support/async_unary_call.h
4306 include/grpcpp/support/byte_buffer.h
4307 include/grpcpp/support/channel_arguments.h
4308 include/grpcpp/support/config.h
ncteisencf5b2662018-02-27 11:55:10 -08004309 include/grpcpp/support/proto_buffer_reader.h
4310 include/grpcpp/support/proto_buffer_writer.h
Muxi Yan0e00c432018-01-26 15:39:32 -08004311 include/grpcpp/support/slice.h
4312 include/grpcpp/support/status.h
4313 include/grpcpp/support/status_code_enum.h
4314 include/grpcpp/support/string_ref.h
4315 include/grpcpp/support/stub_options.h
4316 include/grpcpp/support/sync_stream.h
4317 include/grpcpp/support/time.h
Vijay Pai42807252017-07-28 15:08:24 -07004318 include/grpc/support/alloc.h
4319 include/grpc/support/atm.h
4320 include/grpc/support/atm_gcc_atomic.h
4321 include/grpc/support/atm_gcc_sync.h
4322 include/grpc/support/atm_windows.h
Vijay Pai42807252017-07-28 15:08:24 -07004323 include/grpc/support/cpu.h
Vijay Pai42807252017-07-28 15:08:24 -07004324 include/grpc/support/log.h
4325 include/grpc/support/log_windows.h
4326 include/grpc/support/port_platform.h
4327 include/grpc/support/string_util.h
Vijay Pai42807252017-07-28 15:08:24 -07004328 include/grpc/support/sync.h
yang-g9ff60312017-08-24 09:08:21 -07004329 include/grpc/support/sync_custom.h
Vijay Pai42807252017-07-28 15:08:24 -07004330 include/grpc/support/sync_generic.h
4331 include/grpc/support/sync_posix.h
4332 include/grpc/support/sync_windows.h
Vijay Paic7456902018-02-12 10:28:24 -08004333 include/grpc/support/thd_id.h
Vijay Pai42807252017-07-28 15:08:24 -07004334 include/grpc/support/time.h
Vijay Pai42807252017-07-28 15:08:24 -07004335 include/grpc/impl/codegen/atm.h
4336 include/grpc/impl/codegen/atm_gcc_atomic.h
4337 include/grpc/impl/codegen/atm_gcc_sync.h
4338 include/grpc/impl/codegen/atm_windows.h
Ken Payson9714e032017-10-10 11:18:49 -07004339 include/grpc/impl/codegen/fork.h
Vijay Pai42807252017-07-28 15:08:24 -07004340 include/grpc/impl/codegen/gpr_slice.h
4341 include/grpc/impl/codegen/gpr_types.h
4342 include/grpc/impl/codegen/port_platform.h
4343 include/grpc/impl/codegen/sync.h
yang-g9ff60312017-08-24 09:08:21 -07004344 include/grpc/impl/codegen/sync_custom.h
Vijay Pai42807252017-07-28 15:08:24 -07004345 include/grpc/impl/codegen/sync_generic.h
4346 include/grpc/impl/codegen/sync_posix.h
4347 include/grpc/impl/codegen/sync_windows.h
4348 include/grpc/byte_buffer.h
4349 include/grpc/byte_buffer_reader.h
4350 include/grpc/compression.h
Ken Payson9714e032017-10-10 11:18:49 -07004351 include/grpc/fork.h
Vijay Pai42807252017-07-28 15:08:24 -07004352 include/grpc/grpc.h
4353 include/grpc/grpc_posix.h
4354 include/grpc/grpc_security_constants.h
4355 include/grpc/load_reporting.h
4356 include/grpc/slice.h
4357 include/grpc/slice_buffer.h
4358 include/grpc/status.h
4359 include/grpc/support/workaround_list.h
Vijay Paiefce6e12017-09-14 09:07:50 -07004360 include/grpc/impl/codegen/byte_buffer.h
Vijay Pai42807252017-07-28 15:08:24 -07004361 include/grpc/impl/codegen/byte_buffer_reader.h
4362 include/grpc/impl/codegen/compression_types.h
4363 include/grpc/impl/codegen/connectivity_state.h
Vijay Pai42807252017-07-28 15:08:24 -07004364 include/grpc/impl/codegen/grpc_types.h
4365 include/grpc/impl/codegen/propagation_bits.h
4366 include/grpc/impl/codegen/slice.h
4367 include/grpc/impl/codegen/status.h
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004368 include/grpc++/impl/codegen/async_stream.h
4369 include/grpc++/impl/codegen/async_unary_call.h
Vijay Paiefce6e12017-09-14 09:07:50 -07004370 include/grpc++/impl/codegen/byte_buffer.h
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004371 include/grpc++/impl/codegen/call.h
4372 include/grpc++/impl/codegen/call_hook.h
4373 include/grpc++/impl/codegen/channel_interface.h
4374 include/grpc++/impl/codegen/client_context.h
4375 include/grpc++/impl/codegen/client_unary_call.h
4376 include/grpc++/impl/codegen/completion_queue.h
4377 include/grpc++/impl/codegen/completion_queue_tag.h
4378 include/grpc++/impl/codegen/config.h
4379 include/grpc++/impl/codegen/core_codegen_interface.h
4380 include/grpc++/impl/codegen/create_auth_context.h
4381 include/grpc++/impl/codegen/grpc_library.h
4382 include/grpc++/impl/codegen/metadata_map.h
4383 include/grpc++/impl/codegen/method_handler_impl.h
4384 include/grpc++/impl/codegen/rpc_method.h
4385 include/grpc++/impl/codegen/rpc_service_method.h
4386 include/grpc++/impl/codegen/security/auth_context.h
4387 include/grpc++/impl/codegen/serialization_traits.h
4388 include/grpc++/impl/codegen/server_context.h
4389 include/grpc++/impl/codegen/server_interface.h
4390 include/grpc++/impl/codegen/service_type.h
4391 include/grpc++/impl/codegen/slice.h
4392 include/grpc++/impl/codegen/status.h
4393 include/grpc++/impl/codegen/status_code_enum.h
4394 include/grpc++/impl/codegen/string_ref.h
4395 include/grpc++/impl/codegen/stub_options.h
4396 include/grpc++/impl/codegen/sync_stream.h
4397 include/grpc++/impl/codegen/time.h
Muxi Yan0e00c432018-01-26 15:39:32 -08004398 include/grpcpp/impl/codegen/async_stream.h
4399 include/grpcpp/impl/codegen/async_unary_call.h
4400 include/grpcpp/impl/codegen/byte_buffer.h
4401 include/grpcpp/impl/codegen/call.h
4402 include/grpcpp/impl/codegen/call_hook.h
4403 include/grpcpp/impl/codegen/channel_interface.h
4404 include/grpcpp/impl/codegen/client_context.h
4405 include/grpcpp/impl/codegen/client_unary_call.h
4406 include/grpcpp/impl/codegen/completion_queue.h
4407 include/grpcpp/impl/codegen/completion_queue_tag.h
4408 include/grpcpp/impl/codegen/config.h
4409 include/grpcpp/impl/codegen/core_codegen_interface.h
4410 include/grpcpp/impl/codegen/create_auth_context.h
4411 include/grpcpp/impl/codegen/grpc_library.h
4412 include/grpcpp/impl/codegen/metadata_map.h
4413 include/grpcpp/impl/codegen/method_handler_impl.h
4414 include/grpcpp/impl/codegen/rpc_method.h
4415 include/grpcpp/impl/codegen/rpc_service_method.h
4416 include/grpcpp/impl/codegen/security/auth_context.h
4417 include/grpcpp/impl/codegen/serialization_traits.h
4418 include/grpcpp/impl/codegen/server_context.h
4419 include/grpcpp/impl/codegen/server_interface.h
4420 include/grpcpp/impl/codegen/service_type.h
4421 include/grpcpp/impl/codegen/slice.h
4422 include/grpcpp/impl/codegen/status.h
4423 include/grpcpp/impl/codegen/status_code_enum.h
4424 include/grpcpp/impl/codegen/string_ref.h
4425 include/grpcpp/impl/codegen/stub_options.h
4426 include/grpcpp/impl/codegen/sync_stream.h
4427 include/grpcpp/impl/codegen/time.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03004428)
4429 string(REPLACE "include/" "" _path ${_hdr})
4430 get_filename_component(_path ${_path} PATH)
4431 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004432 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03004433 )
4434endforeach()
4435
Jan Tattermusch54492aa2017-01-17 11:53:33 +01004436
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03004437if (gRPC_INSTALL)
4438 install(TARGETS grpc++_unsecure EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004439 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
4440 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
4441 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03004442 )
4443endif()
4444
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004445if (gRPC_BUILD_TESTS)
4446
Craig Tiller5e321532017-03-03 08:50:25 -08004447add_library(grpc_benchmark
Craig Tillerf09ec592017-03-03 16:52:37 -08004448 test/cpp/microbenchmarks/helpers.cc
Craig Tiller5e321532017-03-03 08:50:25 -08004449)
4450
4451if(WIN32 AND MSVC)
4452 set_target_properties(grpc_benchmark PROPERTIES COMPILE_PDB_NAME "grpc_benchmark"
4453 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4454 )
4455 if (gRPC_INSTALL)
4456 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_benchmark.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004457 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Craig Tiller5e321532017-03-03 08:50:25 -08004458 )
4459 endif()
4460endif()
4461
4462
4463target_include_directories(grpc_benchmark
Jan Tattermuschf567ab02017-08-25 16:13:30 +02004464 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Craig Tiller5e321532017-03-03 08:50:25 -08004465 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01004466 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01004467 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
4468 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
4469 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
4470 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
4471 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08004472 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07004473 PRIVATE third_party/googletest/googletest/include
4474 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07004475 PRIVATE third_party/googletest/googlemock/include
4476 PRIVATE third_party/googletest/googlemock
Craig Tiller5e321532017-03-03 08:50:25 -08004477 PRIVATE ${_gRPC_PROTO_GENS_DIR}
4478)
4479
4480target_link_libraries(grpc_benchmark
4481 ${_gRPC_PROTOBUF_LIBRARIES}
4482 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01004483 ${_gRPC_BENCHMARK_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -07004484 grpc++_unsecure
4485 grpc_test_util_unsecure
4486 grpc_unsecure
Craig Tiller5e321532017-03-03 08:50:25 -08004487 ${_gRPC_GFLAGS_LIBRARIES}
4488)
4489
4490
4491endif (gRPC_BUILD_TESTS)
4492if (gRPC_BUILD_TESTS)
4493
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08004494if (gRPC_BUILD_CODEGEN)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004495add_library(grpc_cli_libs
4496 test/cpp/util/cli_call.cc
4497 test/cpp/util/cli_credentials.cc
4498 test/cpp/util/grpc_tool.cc
4499 test/cpp/util/proto_file_parser.cc
4500 test/cpp/util/service_describer.cc
4501 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.cc
4502 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.cc
4503 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.h
4504 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h
4505)
4506
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004507if(WIN32 AND MSVC)
4508 set_target_properties(grpc_cli_libs PROPERTIES COMPILE_PDB_NAME "grpc_cli_libs"
4509 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4510 )
4511 if (gRPC_INSTALL)
4512 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_cli_libs.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004513 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004514 )
4515 endif()
4516endif()
4517
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004518protobuf_generate_grpc_cpp(
4519 src/proto/grpc/reflection/v1alpha/reflection.proto
4520)
4521
4522target_include_directories(grpc_cli_libs
Jan Tattermuschf567ab02017-08-25 16:13:30 +02004523 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004524 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01004525 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01004526 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
4527 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
4528 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
4529 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
4530 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08004531 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07004532 PRIVATE third_party/googletest/googletest/include
4533 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07004534 PRIVATE third_party/googletest/googlemock/include
4535 PRIVATE third_party/googletest/googlemock
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004536 PRIVATE ${_gRPC_PROTO_GENS_DIR}
4537)
4538
4539target_link_libraries(grpc_cli_libs
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004540 ${_gRPC_PROTOBUF_LIBRARIES}
4541 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004542 grpc++_proto_reflection_desc_db
4543 grpc++
Jan Tattermuschb77a20b2017-05-18 16:45:07 +02004544 grpc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004545)
4546
4547foreach(_hdr
4548 include/grpc++/impl/codegen/config_protobuf.h
Muxi Yan0e00c432018-01-26 15:39:32 -08004549 include/grpcpp/impl/codegen/config_protobuf.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004550)
4551 string(REPLACE "include/" "" _path ${_hdr})
4552 get_filename_component(_path ${_path} PATH)
4553 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004554 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004555 )
4556endforeach()
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08004557endif (gRPC_BUILD_CODEGEN)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004558
4559endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01004560
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004561add_library(grpc_plugin_support
4562 src/compiler/cpp_generator.cc
4563 src/compiler/csharp_generator.cc
4564 src/compiler/node_generator.cc
4565 src/compiler/objective_c_generator.cc
Stanley Cheung857a1302016-09-29 17:26:29 -07004566 src/compiler/php_generator.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004567 src/compiler/python_generator.cc
4568 src/compiler/ruby_generator.cc
4569)
4570
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004571if(WIN32 AND MSVC)
4572 set_target_properties(grpc_plugin_support PROPERTIES COMPILE_PDB_NAME "grpc_plugin_support"
4573 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4574 )
4575 if (gRPC_INSTALL)
4576 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_plugin_support.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004577 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004578 )
4579 endif()
4580endif()
4581
Jan Tattermusch54492aa2017-01-17 11:53:33 +01004582
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004583target_include_directories(grpc_plugin_support
Jan Tattermuschf567ab02017-08-25 16:13:30 +02004584 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004585 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01004586 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01004587 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
4588 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
4589 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
4590 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
4591 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08004592 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004593 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004594)
4595
4596target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03004597 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004598 ${_gRPC_PROTOBUF_LIBRARIES}
4599 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01004600)
4601
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03004602foreach(_hdr
4603 include/grpc++/impl/codegen/config_protobuf.h
Muxi Yan0e00c432018-01-26 15:39:32 -08004604 include/grpcpp/impl/codegen/config_protobuf.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03004605)
4606 string(REPLACE "include/" "" _path ${_hdr})
4607 get_filename_component(_path ${_path} PATH)
4608 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004609 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03004610 )
4611endforeach()
4612
Jan Tattermusch54492aa2017-01-17 11:53:33 +01004613
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03004614if (gRPC_INSTALL)
4615 install(TARGETS grpc_plugin_support EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004616 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
4617 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
4618 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03004619 )
4620endif()
4621
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004622if (gRPC_BUILD_TESTS)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03004623
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08004624if (gRPC_BUILD_CODEGEN)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004625add_library(http2_client_main
4626 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
4627 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
4628 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
4629 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
4630 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
4631 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
4632 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
4633 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
4634 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
4635 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
4636 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
4637 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
4638 test/cpp/interop/http2_client.cc
4639)
4640
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004641if(WIN32 AND MSVC)
4642 set_target_properties(http2_client_main PROPERTIES COMPILE_PDB_NAME "http2_client_main"
4643 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4644 )
4645 if (gRPC_INSTALL)
4646 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/http2_client_main.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004647 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004648 )
4649 endif()
4650endif()
4651
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004652protobuf_generate_grpc_cpp(
4653 src/proto/grpc/testing/empty.proto
4654)
4655protobuf_generate_grpc_cpp(
4656 src/proto/grpc/testing/messages.proto
4657)
4658protobuf_generate_grpc_cpp(
4659 src/proto/grpc/testing/test.proto
4660)
4661
4662target_include_directories(http2_client_main
Jan Tattermuschf567ab02017-08-25 16:13:30 +02004663 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004664 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01004665 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01004666 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
4667 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
4668 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
4669 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
4670 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08004671 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07004672 PRIVATE third_party/googletest/googletest/include
4673 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07004674 PRIVATE third_party/googletest/googlemock/include
4675 PRIVATE third_party/googletest/googlemock
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004676 PRIVATE ${_gRPC_PROTO_GENS_DIR}
4677)
4678
4679target_link_libraries(http2_client_main
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004680 ${_gRPC_PROTOBUF_LIBRARIES}
4681 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004682 grpc++_test_util
4683 grpc_test_util
4684 grpc++
4685 grpc
4686 grpc++_test_config
4687)
4688
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08004689endif (gRPC_BUILD_CODEGEN)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004690
4691endif (gRPC_BUILD_TESTS)
4692if (gRPC_BUILD_TESTS)
4693
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08004694if (gRPC_BUILD_CODEGEN)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004695add_library(interop_client_helper
4696 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
4697 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
4698 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
4699 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
4700 test/cpp/interop/client_helper.cc
4701)
4702
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004703if(WIN32 AND MSVC)
4704 set_target_properties(interop_client_helper PROPERTIES COMPILE_PDB_NAME "interop_client_helper"
4705 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4706 )
4707 if (gRPC_INSTALL)
4708 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_client_helper.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004709 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004710 )
4711 endif()
4712endif()
4713
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004714protobuf_generate_grpc_cpp(
4715 src/proto/grpc/testing/messages.proto
4716)
4717
4718target_include_directories(interop_client_helper
Jan Tattermuschf567ab02017-08-25 16:13:30 +02004719 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004720 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01004721 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01004722 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
4723 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
4724 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
4725 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
4726 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08004727 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07004728 PRIVATE third_party/googletest/googletest/include
4729 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07004730 PRIVATE third_party/googletest/googlemock/include
4731 PRIVATE third_party/googletest/googlemock
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004732 PRIVATE ${_gRPC_PROTO_GENS_DIR}
4733)
4734
4735target_link_libraries(interop_client_helper
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004736 ${_gRPC_PROTOBUF_LIBRARIES}
4737 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004738 grpc++_test_util
4739 grpc_test_util
4740 grpc++
4741 grpc
4742 gpr
4743)
4744
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08004745endif (gRPC_BUILD_CODEGEN)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004746
4747endif (gRPC_BUILD_TESTS)
4748if (gRPC_BUILD_TESTS)
4749
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08004750if (gRPC_BUILD_CODEGEN)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004751add_library(interop_client_main
4752 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
4753 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
4754 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
4755 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
4756 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
4757 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
4758 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
4759 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
4760 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
4761 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
4762 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
4763 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
4764 test/cpp/interop/client.cc
4765 test/cpp/interop/interop_client.cc
4766)
4767
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004768if(WIN32 AND MSVC)
4769 set_target_properties(interop_client_main PROPERTIES COMPILE_PDB_NAME "interop_client_main"
4770 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4771 )
4772 if (gRPC_INSTALL)
4773 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_client_main.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004774 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004775 )
4776 endif()
4777endif()
4778
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004779protobuf_generate_grpc_cpp(
4780 src/proto/grpc/testing/empty.proto
4781)
4782protobuf_generate_grpc_cpp(
4783 src/proto/grpc/testing/messages.proto
4784)
4785protobuf_generate_grpc_cpp(
4786 src/proto/grpc/testing/test.proto
4787)
4788
4789target_include_directories(interop_client_main
Jan Tattermuschf567ab02017-08-25 16:13:30 +02004790 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004791 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01004792 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01004793 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
4794 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
4795 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
4796 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
4797 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08004798 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07004799 PRIVATE third_party/googletest/googletest/include
4800 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07004801 PRIVATE third_party/googletest/googlemock/include
4802 PRIVATE third_party/googletest/googlemock
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004803 PRIVATE ${_gRPC_PROTO_GENS_DIR}
4804)
4805
4806target_link_libraries(interop_client_main
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004807 ${_gRPC_PROTOBUF_LIBRARIES}
4808 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004809 interop_client_helper
4810 grpc++_test_util
4811 grpc_test_util
4812 grpc++
4813 grpc
4814 gpr_test_util
4815 gpr
4816 grpc++_test_config
4817)
4818
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08004819endif (gRPC_BUILD_CODEGEN)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004820
4821endif (gRPC_BUILD_TESTS)
4822if (gRPC_BUILD_TESTS)
4823
4824add_library(interop_server_helper
4825 test/cpp/interop/server_helper.cc
4826)
4827
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004828if(WIN32 AND MSVC)
4829 set_target_properties(interop_server_helper PROPERTIES COMPILE_PDB_NAME "interop_server_helper"
4830 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4831 )
4832 if (gRPC_INSTALL)
4833 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_server_helper.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004834 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004835 )
4836 endif()
4837endif()
4838
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004839
4840target_include_directories(interop_server_helper
Jan Tattermuschf567ab02017-08-25 16:13:30 +02004841 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004842 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01004843 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01004844 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
4845 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
4846 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
4847 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
4848 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08004849 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07004850 PRIVATE third_party/googletest/googletest/include
4851 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07004852 PRIVATE third_party/googletest/googlemock/include
4853 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004854 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004855)
4856
4857target_link_libraries(interop_server_helper
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004858 ${_gRPC_PROTOBUF_LIBRARIES}
4859 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004860 grpc++_test_util
4861 grpc_test_util
4862 grpc++
4863 grpc
4864 gpr
4865)
4866
4867
4868endif (gRPC_BUILD_TESTS)
4869if (gRPC_BUILD_TESTS)
4870
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08004871if (gRPC_BUILD_CODEGEN)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004872add_library(interop_server_lib
4873 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
4874 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
4875 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
4876 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
4877 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
4878 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
4879 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
4880 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
4881 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
4882 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
4883 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
4884 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
4885 test/cpp/interop/interop_server.cc
4886)
4887
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004888if(WIN32 AND MSVC)
4889 set_target_properties(interop_server_lib PROPERTIES COMPILE_PDB_NAME "interop_server_lib"
4890 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4891 )
4892 if (gRPC_INSTALL)
4893 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_server_lib.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004894 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004895 )
4896 endif()
4897endif()
4898
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004899protobuf_generate_grpc_cpp(
4900 src/proto/grpc/testing/empty.proto
4901)
4902protobuf_generate_grpc_cpp(
4903 src/proto/grpc/testing/messages.proto
4904)
4905protobuf_generate_grpc_cpp(
4906 src/proto/grpc/testing/test.proto
4907)
4908
4909target_include_directories(interop_server_lib
Jan Tattermuschf567ab02017-08-25 16:13:30 +02004910 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004911 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01004912 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01004913 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
4914 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
4915 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
4916 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
4917 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08004918 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07004919 PRIVATE third_party/googletest/googletest/include
4920 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07004921 PRIVATE third_party/googletest/googlemock/include
4922 PRIVATE third_party/googletest/googlemock
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004923 PRIVATE ${_gRPC_PROTO_GENS_DIR}
4924)
4925
4926target_link_libraries(interop_server_lib
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004927 ${_gRPC_PROTOBUF_LIBRARIES}
4928 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004929 interop_server_helper
4930 grpc++_test_util
4931 grpc_test_util
4932 grpc++
4933 grpc
4934 gpr_test_util
4935 gpr
4936 grpc++_test_config
4937)
4938
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08004939endif (gRPC_BUILD_CODEGEN)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004940
4941endif (gRPC_BUILD_TESTS)
4942if (gRPC_BUILD_TESTS)
4943
4944add_library(interop_server_main
4945 test/cpp/interop/interop_server_bootstrap.cc
4946)
4947
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004948if(WIN32 AND MSVC)
4949 set_target_properties(interop_server_main PROPERTIES COMPILE_PDB_NAME "interop_server_main"
4950 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4951 )
4952 if (gRPC_INSTALL)
4953 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_server_main.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004954 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004955 )
4956 endif()
4957endif()
4958
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004959
4960target_include_directories(interop_server_main
Jan Tattermuschf567ab02017-08-25 16:13:30 +02004961 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004962 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01004963 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01004964 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
4965 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
4966 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
4967 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
4968 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08004969 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07004970 PRIVATE third_party/googletest/googletest/include
4971 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07004972 PRIVATE third_party/googletest/googlemock/include
4973 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004974 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004975)
4976
4977target_link_libraries(interop_server_main
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004978 ${_gRPC_PROTOBUF_LIBRARIES}
4979 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004980 interop_server_lib
4981)
4982
4983
4984endif (gRPC_BUILD_TESTS)
4985if (gRPC_BUILD_TESTS)
4986
Juanli Shena0aab7e2018-05-01 10:30:54 -07004987add_library(lb_load_data_store
4988 src/cpp/server/load_reporter/load_data_store.cc
4989)
4990
4991if(WIN32 AND MSVC)
4992 set_target_properties(lb_load_data_store PROPERTIES COMPILE_PDB_NAME "lb_load_data_store"
4993 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4994 )
4995 if (gRPC_INSTALL)
4996 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/lb_load_data_store.pdb
4997 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
4998 )
4999 endif()
5000endif()
5001
5002
5003target_include_directories(lb_load_data_store
5004 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
5005 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5006 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
5007 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5008 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5009 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5010 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5011 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
5012 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
5013 PRIVATE third_party/googletest/googletest/include
5014 PRIVATE third_party/googletest/googletest
5015 PRIVATE third_party/googletest/googlemock/include
5016 PRIVATE third_party/googletest/googlemock
5017 PRIVATE ${_gRPC_PROTO_GENS_DIR}
5018)
5019
5020target_link_libraries(lb_load_data_store
5021 ${_gRPC_PROTOBUF_LIBRARIES}
5022 ${_gRPC_ALLTARGETS_LIBRARIES}
5023 grpc++
5024)
5025
5026
5027endif (gRPC_BUILD_TESTS)
5028if (gRPC_BUILD_TESTS)
5029
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08005030if (gRPC_BUILD_CODEGEN)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005031add_library(qps
5032 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
5033 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
5034 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
5035 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
5036 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.cc
5037 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.cc
5038 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.h
5039 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.h
5040 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.cc
5041 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.cc
5042 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.h
5043 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.h
5044 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.cc
5045 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.cc
5046 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.h
5047 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.h
kpayson647a20c962018-04-18 15:19:55 -07005048 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/benchmark_service.pb.cc
5049 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/benchmark_service.grpc.pb.cc
5050 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/benchmark_service.pb.h
5051 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/benchmark_service.grpc.pb.h
5052 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/report_qps_scenario_service.pb.cc
5053 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/report_qps_scenario_service.grpc.pb.cc
5054 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/report_qps_scenario_service.pb.h
5055 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/report_qps_scenario_service.grpc.pb.h
5056 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/worker_service.pb.cc
5057 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/worker_service.grpc.pb.cc
5058 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/worker_service.pb.h
5059 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/worker_service.grpc.pb.h
Nicolas "Pixel" Nobleb02dd012017-03-24 18:45:22 +01005060 test/cpp/qps/benchmark_config.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005061 test/cpp/qps/client_async.cc
5062 test/cpp/qps/client_sync.cc
5063 test/cpp/qps/driver.cc
5064 test/cpp/qps/parse_json.cc
5065 test/cpp/qps/qps_worker.cc
5066 test/cpp/qps/report.cc
5067 test/cpp/qps/server_async.cc
5068 test/cpp/qps/server_sync.cc
5069 test/cpp/qps/usage_timer.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005070)
5071
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01005072if(WIN32 AND MSVC)
5073 set_target_properties(qps PROPERTIES COMPILE_PDB_NAME "qps"
5074 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
5075 )
5076 if (gRPC_INSTALL)
5077 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/qps.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02005078 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01005079 )
5080 endif()
5081endif()
5082
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005083protobuf_generate_grpc_cpp(
5084 src/proto/grpc/testing/messages.proto
5085)
5086protobuf_generate_grpc_cpp(
5087 src/proto/grpc/testing/payloads.proto
5088)
5089protobuf_generate_grpc_cpp(
5090 src/proto/grpc/testing/stats.proto
5091)
5092protobuf_generate_grpc_cpp(
5093 src/proto/grpc/testing/control.proto
5094)
5095protobuf_generate_grpc_cpp(
kpayson647a20c962018-04-18 15:19:55 -07005096 src/proto/grpc/testing/benchmark_service.proto
5097)
5098protobuf_generate_grpc_cpp(
5099 src/proto/grpc/testing/report_qps_scenario_service.proto
5100)
5101protobuf_generate_grpc_cpp(
5102 src/proto/grpc/testing/worker_service.proto
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005103)
5104
5105target_include_directories(qps
Jan Tattermuschf567ab02017-08-25 16:13:30 +02005106 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005107 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005108 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005109 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5110 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5111 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5112 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5113 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005114 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07005115 PRIVATE third_party/googletest/googletest/include
5116 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07005117 PRIVATE third_party/googletest/googlemock/include
5118 PRIVATE third_party/googletest/googlemock
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005119 PRIVATE ${_gRPC_PROTO_GENS_DIR}
5120)
5121
5122target_link_libraries(qps
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005123 ${_gRPC_PROTOBUF_LIBRARIES}
5124 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005125 grpc_test_util
5126 grpc++_test_util
Craig Tiller28972352017-08-31 15:52:57 -07005127 grpc++_core_stats
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005128 grpc++
Jan Tattermuschb77a20b2017-05-18 16:45:07 +02005129 grpc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005130)
5131
Eric Gribkoffa32a4c52018-01-25 13:16:41 -08005132endif (gRPC_BUILD_CODEGEN)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005133
5134endif (gRPC_BUILD_TESTS)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005135
Jan Tattermuschc09656c2017-01-27 13:36:24 +01005136add_library(grpc_csharp_ext SHARED
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005137 src/csharp/ext/grpc_csharp_ext.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005138)
5139
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01005140if(WIN32 AND MSVC)
5141 set_target_properties(grpc_csharp_ext PROPERTIES COMPILE_PDB_NAME "grpc_csharp_ext"
5142 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
5143 )
5144 if (gRPC_INSTALL)
5145 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_csharp_ext.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02005146 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01005147 )
5148 endif()
5149endif()
5150
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005151
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005152target_include_directories(grpc_csharp_ext
Jan Tattermuschf567ab02017-08-25 16:13:30 +02005153 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005154 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005155 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005156 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5157 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5158 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5159 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5160 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005161 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005162)
5163
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005164target_link_libraries(grpc_csharp_ext
5165 ${_gRPC_ALLTARGETS_LIBRARIES}
5166 grpc
5167 gpr
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005168)
5169
5170
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005171
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005172if (gRPC_INSTALL)
5173 install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02005174 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
5175 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
5176 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005177 )
5178endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005179
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005180if (gRPC_BUILD_TESTS)
5181
5182add_library(bad_client_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005183 test/core/bad_client/bad_client.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005184)
5185
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01005186if(WIN32 AND MSVC)
5187 set_target_properties(bad_client_test PROPERTIES COMPILE_PDB_NAME "bad_client_test"
5188 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
5189 )
5190 if (gRPC_INSTALL)
5191 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/bad_client_test.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02005192 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01005193 )
5194 endif()
5195endif()
5196
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005197
5198target_include_directories(bad_client_test
Jan Tattermuschf567ab02017-08-25 16:13:30 +02005199 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005200 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005201 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005202 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5203 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5204 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5205 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5206 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005207 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005208)
5209
5210target_link_libraries(bad_client_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005211 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005212 grpc_test_util_unsecure
5213 grpc_unsecure
5214 gpr_test_util
5215 gpr
5216)
5217
5218
5219endif (gRPC_BUILD_TESTS)
5220if (gRPC_BUILD_TESTS)
5221
5222add_library(bad_ssl_test_server
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005223 test/core/bad_ssl/server_common.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005224)
5225
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01005226if(WIN32 AND MSVC)
5227 set_target_properties(bad_ssl_test_server PROPERTIES COMPILE_PDB_NAME "bad_ssl_test_server"
5228 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
5229 )
5230 if (gRPC_INSTALL)
5231 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/bad_ssl_test_server.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02005232 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01005233 )
5234 endif()
5235endif()
5236
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005237
5238target_include_directories(bad_ssl_test_server
Jan Tattermuschf567ab02017-08-25 16:13:30 +02005239 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005240 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005241 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005242 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5243 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5244 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5245 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5246 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005247 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005248)
5249
5250target_link_libraries(bad_ssl_test_server
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
5258
5259endif (gRPC_BUILD_TESTS)
5260if (gRPC_BUILD_TESTS)
5261
5262add_library(end2end_tests
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005263 test/core/end2end/end2end_tests.cc
5264 test/core/end2end/end2end_test_utils.cc
5265 test/core/end2end/tests/authority_not_supported.cc
5266 test/core/end2end/tests/bad_hostname.cc
5267 test/core/end2end/tests/bad_ping.cc
5268 test/core/end2end/tests/binary_metadata.cc
5269 test/core/end2end/tests/call_creds.cc
David Garcia Quintas861363d2018-03-26 15:57:33 -07005270 test/core/end2end/tests/call_host_override.cc
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005271 test/core/end2end/tests/cancel_after_accept.cc
5272 test/core/end2end/tests/cancel_after_client_done.cc
5273 test/core/end2end/tests/cancel_after_invoke.cc
5274 test/core/end2end/tests/cancel_after_round_trip.cc
5275 test/core/end2end/tests/cancel_before_invoke.cc
5276 test/core/end2end/tests/cancel_in_a_vacuum.cc
5277 test/core/end2end/tests/cancel_with_status.cc
5278 test/core/end2end/tests/compressed_payload.cc
5279 test/core/end2end/tests/connectivity.cc
5280 test/core/end2end/tests/default_host.cc
5281 test/core/end2end/tests/disappearing_server.cc
5282 test/core/end2end/tests/empty_batch.cc
5283 test/core/end2end/tests/filter_call_init_fails.cc
5284 test/core/end2end/tests/filter_causes_close.cc
5285 test/core/end2end/tests/filter_latency.cc
Ken Paysonb3532972018-01-11 20:25:30 -08005286 test/core/end2end/tests/filter_status_code.cc
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005287 test/core/end2end/tests/graceful_server_shutdown.cc
5288 test/core/end2end/tests/high_initial_seqno.cc
5289 test/core/end2end/tests/hpack_size.cc
5290 test/core/end2end/tests/idempotent_request.cc
5291 test/core/end2end/tests/invoke_large_request.cc
5292 test/core/end2end/tests/keepalive_timeout.cc
5293 test/core/end2end/tests/large_metadata.cc
5294 test/core/end2end/tests/load_reporting_hook.cc
5295 test/core/end2end/tests/max_concurrent_streams.cc
5296 test/core/end2end/tests/max_connection_age.cc
5297 test/core/end2end/tests/max_connection_idle.cc
5298 test/core/end2end/tests/max_message_length.cc
5299 test/core/end2end/tests/negative_deadline.cc
5300 test/core/end2end/tests/network_status_change.cc
5301 test/core/end2end/tests/no_logging.cc
5302 test/core/end2end/tests/no_op.cc
5303 test/core/end2end/tests/payload.cc
5304 test/core/end2end/tests/ping.cc
5305 test/core/end2end/tests/ping_pong_streaming.cc
5306 test/core/end2end/tests/proxy_auth.cc
5307 test/core/end2end/tests/registered_call.cc
5308 test/core/end2end/tests/request_with_flags.cc
5309 test/core/end2end/tests/request_with_payload.cc
5310 test/core/end2end/tests/resource_quota_server.cc
Mark D. Roth718c8342018-02-28 13:00:04 -08005311 test/core/end2end/tests/retry.cc
5312 test/core/end2end/tests/retry_cancellation.cc
5313 test/core/end2end/tests/retry_disabled.cc
5314 test/core/end2end/tests/retry_exceeds_buffer_size_in_initial_batch.cc
5315 test/core/end2end/tests/retry_exceeds_buffer_size_in_subsequent_batch.cc
5316 test/core/end2end/tests/retry_non_retriable_status.cc
Mark D. Rothde077ac2018-04-12 08:05:44 -07005317 test/core/end2end/tests/retry_non_retriable_status_before_recv_trailing_metadata_started.cc
Mark D. Roth718c8342018-02-28 13:00:04 -08005318 test/core/end2end/tests/retry_recv_initial_metadata.cc
5319 test/core/end2end/tests/retry_recv_message.cc
5320 test/core/end2end/tests/retry_server_pushback_delay.cc
5321 test/core/end2end/tests/retry_server_pushback_disabled.cc
5322 test/core/end2end/tests/retry_streaming.cc
5323 test/core/end2end/tests/retry_streaming_after_commit.cc
5324 test/core/end2end/tests/retry_streaming_succeeds_before_replay_finished.cc
5325 test/core/end2end/tests/retry_throttled.cc
5326 test/core/end2end/tests/retry_too_many_attempts.cc
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005327 test/core/end2end/tests/server_finishes_request.cc
5328 test/core/end2end/tests/shutdown_finishes_calls.cc
5329 test/core/end2end/tests/shutdown_finishes_tags.cc
5330 test/core/end2end/tests/simple_cacheable_request.cc
5331 test/core/end2end/tests/simple_delayed_request.cc
5332 test/core/end2end/tests/simple_metadata.cc
5333 test/core/end2end/tests/simple_request.cc
5334 test/core/end2end/tests/stream_compression_compressed_payload.cc
5335 test/core/end2end/tests/stream_compression_payload.cc
5336 test/core/end2end/tests/stream_compression_ping_pong_streaming.cc
5337 test/core/end2end/tests/streaming_error_response.cc
5338 test/core/end2end/tests/trailing_metadata.cc
5339 test/core/end2end/tests/workaround_cronet_compression.cc
5340 test/core/end2end/tests/write_buffering.cc
5341 test/core/end2end/tests/write_buffering_at_end.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005342)
5343
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01005344if(WIN32 AND MSVC)
5345 set_target_properties(end2end_tests PROPERTIES COMPILE_PDB_NAME "end2end_tests"
5346 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
5347 )
5348 if (gRPC_INSTALL)
5349 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/end2end_tests.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02005350 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01005351 )
5352 endif()
5353endif()
5354
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005355
5356target_include_directories(end2end_tests
Jan Tattermuschf567ab02017-08-25 16:13:30 +02005357 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005358 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005359 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005360 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5361 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5362 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5363 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5364 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005365 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005366)
5367
5368target_link_libraries(end2end_tests
5369 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005370 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005371 grpc_test_util
5372 grpc
5373 gpr_test_util
5374 gpr
5375)
5376
5377
5378endif (gRPC_BUILD_TESTS)
5379if (gRPC_BUILD_TESTS)
5380
5381add_library(end2end_nosec_tests
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005382 test/core/end2end/end2end_nosec_tests.cc
5383 test/core/end2end/end2end_test_utils.cc
5384 test/core/end2end/tests/authority_not_supported.cc
5385 test/core/end2end/tests/bad_hostname.cc
5386 test/core/end2end/tests/bad_ping.cc
5387 test/core/end2end/tests/binary_metadata.cc
David Garcia Quintas861363d2018-03-26 15:57:33 -07005388 test/core/end2end/tests/call_host_override.cc
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005389 test/core/end2end/tests/cancel_after_accept.cc
5390 test/core/end2end/tests/cancel_after_client_done.cc
5391 test/core/end2end/tests/cancel_after_invoke.cc
5392 test/core/end2end/tests/cancel_after_round_trip.cc
5393 test/core/end2end/tests/cancel_before_invoke.cc
5394 test/core/end2end/tests/cancel_in_a_vacuum.cc
5395 test/core/end2end/tests/cancel_with_status.cc
5396 test/core/end2end/tests/compressed_payload.cc
5397 test/core/end2end/tests/connectivity.cc
5398 test/core/end2end/tests/default_host.cc
5399 test/core/end2end/tests/disappearing_server.cc
5400 test/core/end2end/tests/empty_batch.cc
5401 test/core/end2end/tests/filter_call_init_fails.cc
5402 test/core/end2end/tests/filter_causes_close.cc
5403 test/core/end2end/tests/filter_latency.cc
Ken Paysonb3532972018-01-11 20:25:30 -08005404 test/core/end2end/tests/filter_status_code.cc
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005405 test/core/end2end/tests/graceful_server_shutdown.cc
5406 test/core/end2end/tests/high_initial_seqno.cc
5407 test/core/end2end/tests/hpack_size.cc
5408 test/core/end2end/tests/idempotent_request.cc
5409 test/core/end2end/tests/invoke_large_request.cc
5410 test/core/end2end/tests/keepalive_timeout.cc
5411 test/core/end2end/tests/large_metadata.cc
5412 test/core/end2end/tests/load_reporting_hook.cc
5413 test/core/end2end/tests/max_concurrent_streams.cc
5414 test/core/end2end/tests/max_connection_age.cc
5415 test/core/end2end/tests/max_connection_idle.cc
5416 test/core/end2end/tests/max_message_length.cc
5417 test/core/end2end/tests/negative_deadline.cc
5418 test/core/end2end/tests/network_status_change.cc
5419 test/core/end2end/tests/no_logging.cc
5420 test/core/end2end/tests/no_op.cc
5421 test/core/end2end/tests/payload.cc
5422 test/core/end2end/tests/ping.cc
5423 test/core/end2end/tests/ping_pong_streaming.cc
5424 test/core/end2end/tests/proxy_auth.cc
5425 test/core/end2end/tests/registered_call.cc
5426 test/core/end2end/tests/request_with_flags.cc
5427 test/core/end2end/tests/request_with_payload.cc
5428 test/core/end2end/tests/resource_quota_server.cc
Mark D. Roth718c8342018-02-28 13:00:04 -08005429 test/core/end2end/tests/retry.cc
5430 test/core/end2end/tests/retry_cancellation.cc
5431 test/core/end2end/tests/retry_disabled.cc
5432 test/core/end2end/tests/retry_exceeds_buffer_size_in_initial_batch.cc
5433 test/core/end2end/tests/retry_exceeds_buffer_size_in_subsequent_batch.cc
5434 test/core/end2end/tests/retry_non_retriable_status.cc
Mark D. Rothde077ac2018-04-12 08:05:44 -07005435 test/core/end2end/tests/retry_non_retriable_status_before_recv_trailing_metadata_started.cc
Mark D. Roth718c8342018-02-28 13:00:04 -08005436 test/core/end2end/tests/retry_recv_initial_metadata.cc
5437 test/core/end2end/tests/retry_recv_message.cc
5438 test/core/end2end/tests/retry_server_pushback_delay.cc
5439 test/core/end2end/tests/retry_server_pushback_disabled.cc
5440 test/core/end2end/tests/retry_streaming.cc
5441 test/core/end2end/tests/retry_streaming_after_commit.cc
5442 test/core/end2end/tests/retry_streaming_succeeds_before_replay_finished.cc
5443 test/core/end2end/tests/retry_throttled.cc
5444 test/core/end2end/tests/retry_too_many_attempts.cc
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005445 test/core/end2end/tests/server_finishes_request.cc
5446 test/core/end2end/tests/shutdown_finishes_calls.cc
5447 test/core/end2end/tests/shutdown_finishes_tags.cc
5448 test/core/end2end/tests/simple_cacheable_request.cc
5449 test/core/end2end/tests/simple_delayed_request.cc
5450 test/core/end2end/tests/simple_metadata.cc
5451 test/core/end2end/tests/simple_request.cc
5452 test/core/end2end/tests/stream_compression_compressed_payload.cc
5453 test/core/end2end/tests/stream_compression_payload.cc
5454 test/core/end2end/tests/stream_compression_ping_pong_streaming.cc
5455 test/core/end2end/tests/streaming_error_response.cc
5456 test/core/end2end/tests/trailing_metadata.cc
5457 test/core/end2end/tests/workaround_cronet_compression.cc
5458 test/core/end2end/tests/write_buffering.cc
5459 test/core/end2end/tests/write_buffering_at_end.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005460)
5461
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01005462if(WIN32 AND MSVC)
5463 set_target_properties(end2end_nosec_tests PROPERTIES COMPILE_PDB_NAME "end2end_nosec_tests"
5464 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
5465 )
5466 if (gRPC_INSTALL)
5467 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/end2end_nosec_tests.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02005468 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01005469 )
5470 endif()
5471endif()
5472
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005473
5474target_include_directories(end2end_nosec_tests
Jan Tattermuschf567ab02017-08-25 16:13:30 +02005475 PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005476 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005477 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005478 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5479 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5480 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5481 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5482 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005483 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005484)
5485
5486target_link_libraries(end2end_nosec_tests
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005487 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005488 grpc_test_util_unsecure
5489 grpc_unsecure
5490 gpr_test_util
5491 gpr
5492)
5493
5494
5495endif (gRPC_BUILD_TESTS)
5496
5497if (gRPC_BUILD_TESTS)
5498
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005499add_executable(algorithm_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005500 test/core/compression/algorithm_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005501)
5502
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005503
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005504target_include_directories(algorithm_test
5505 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5506 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005507 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005508 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5509 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5510 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5511 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5512 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005513 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005514)
5515
5516target_link_libraries(algorithm_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005517 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005518 grpc_test_util
5519 grpc
5520 gpr_test_util
5521 gpr
5522)
5523
5524endif (gRPC_BUILD_TESTS)
5525if (gRPC_BUILD_TESTS)
5526
5527add_executable(alloc_test
Mark D. Rothdbdf4952018-01-18 11:21:12 -08005528 test/core/gpr/alloc_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005529)
5530
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005531
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005532target_include_directories(alloc_test
5533 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5534 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005535 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005536 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5537 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5538 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5539 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5540 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005541 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005542)
5543
5544target_link_libraries(alloc_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005545 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005546 gpr_test_util
5547 gpr
5548)
5549
5550endif (gRPC_BUILD_TESTS)
5551if (gRPC_BUILD_TESTS)
5552
5553add_executable(alpn_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005554 test/core/transport/chttp2/alpn_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005555)
5556
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005557
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005558target_include_directories(alpn_test
5559 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5560 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005561 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005562 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5563 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5564 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5565 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5566 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005567 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005568)
5569
5570target_link_libraries(alpn_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005571 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005572 grpc_test_util
5573 grpc
5574 gpr_test_util
5575 gpr
5576)
5577
5578endif (gRPC_BUILD_TESTS)
5579if (gRPC_BUILD_TESTS)
5580
Craig Tiller9202b3f2017-03-12 22:30:38 -07005581add_executable(arena_test
Mark D. Rothdbdf4952018-01-18 11:21:12 -08005582 test/core/gpr/arena_test.cc
Craig Tiller9202b3f2017-03-12 22:30:38 -07005583)
5584
5585
5586target_include_directories(arena_test
5587 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5588 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005589 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005590 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5591 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5592 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5593 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5594 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005595 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Craig Tiller9202b3f2017-03-12 22:30:38 -07005596)
5597
5598target_link_libraries(arena_test
5599 ${_gRPC_ALLTARGETS_LIBRARIES}
5600 gpr_test_util
5601 gpr
5602)
5603
5604endif (gRPC_BUILD_TESTS)
5605if (gRPC_BUILD_TESTS)
5606
Vijay Pai8f4fbb12018-02-08 10:04:08 -08005607add_executable(avl_test
5608 test/core/avl/avl_test.cc
5609)
5610
5611
5612target_include_directories(avl_test
5613 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5614 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5615 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
5616 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5617 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5618 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5619 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5620 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005621 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Vijay Pai8f4fbb12018-02-08 10:04:08 -08005622)
5623
5624target_link_libraries(avl_test
5625 ${_gRPC_ALLTARGETS_LIBRARIES}
5626 gpr_test_util
5627 gpr
5628 grpc
5629)
5630
5631endif (gRPC_BUILD_TESTS)
5632if (gRPC_BUILD_TESTS)
5633
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005634add_executable(bad_server_response_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005635 test/core/end2end/bad_server_response_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005636)
5637
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005638
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005639target_include_directories(bad_server_response_test
5640 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5641 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005642 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005643 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5644 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5645 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5646 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5647 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005648 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005649)
5650
5651target_link_libraries(bad_server_response_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005652 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005653 test_tcp_server
5654 grpc_test_util
5655 grpc
5656 gpr_test_util
5657 gpr
5658)
5659
5660endif (gRPC_BUILD_TESTS)
5661if (gRPC_BUILD_TESTS)
5662
5663add_executable(bin_decoder_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005664 test/core/transport/chttp2/bin_decoder_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005665)
5666
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005667
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005668target_include_directories(bin_decoder_test
5669 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5670 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005671 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005672 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5673 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5674 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5675 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5676 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005677 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005678)
5679
5680target_link_libraries(bin_decoder_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005681 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005682 grpc_test_util
5683 grpc
5684)
5685
5686endif (gRPC_BUILD_TESTS)
5687if (gRPC_BUILD_TESTS)
5688
5689add_executable(bin_encoder_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005690 test/core/transport/chttp2/bin_encoder_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005691)
5692
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005693
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005694target_include_directories(bin_encoder_test
5695 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5696 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005697 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005698 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5699 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5700 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5701 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5702 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005703 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005704)
5705
5706target_link_libraries(bin_encoder_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005707 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005708 grpc_test_util
5709 grpc
5710)
5711
5712endif (gRPC_BUILD_TESTS)
5713if (gRPC_BUILD_TESTS)
5714
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005715add_executable(channel_create_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005716 test/core/surface/channel_create_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005717)
5718
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005719
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005720target_include_directories(channel_create_test
5721 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5722 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005723 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005724 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5725 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5726 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5727 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5728 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005729 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005730)
5731
5732target_link_libraries(channel_create_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005733 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005734 grpc_test_util
5735 grpc
5736 gpr_test_util
5737 gpr
5738)
5739
5740endif (gRPC_BUILD_TESTS)
Craig Tiller819cd882017-04-25 13:18:22 -07005741
5742add_executable(check_epollexclusive
Yash Tibrewal1cf99922017-10-26 11:19:27 -07005743 test/build/check_epollexclusive.c
Craig Tiller819cd882017-04-25 13:18:22 -07005744)
5745
5746
5747target_include_directories(check_epollexclusive
5748 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5749 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005750 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005751 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5752 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5753 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5754 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5755 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005756 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Craig Tiller819cd882017-04-25 13:18:22 -07005757)
5758
5759target_link_libraries(check_epollexclusive
5760 ${_gRPC_ALLTARGETS_LIBRARIES}
5761 grpc
5762 gpr
5763)
5764
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005765if (gRPC_BUILD_TESTS)
5766
5767add_executable(chttp2_hpack_encoder_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005768 test/core/transport/chttp2/hpack_encoder_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005769)
5770
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005771
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005772target_include_directories(chttp2_hpack_encoder_test
5773 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5774 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005775 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005776 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5777 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5778 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5779 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5780 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005781 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005782)
5783
5784target_link_libraries(chttp2_hpack_encoder_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005785 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005786 grpc_test_util
5787 grpc
5788 gpr_test_util
5789 gpr
5790)
5791
5792endif (gRPC_BUILD_TESTS)
5793if (gRPC_BUILD_TESTS)
5794
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005795add_executable(chttp2_stream_map_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005796 test/core/transport/chttp2/stream_map_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005797)
5798
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005799
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005800target_include_directories(chttp2_stream_map_test
5801 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5802 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005803 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005804 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5805 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5806 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5807 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5808 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005809 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005810)
5811
5812target_link_libraries(chttp2_stream_map_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005813 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005814 grpc_test_util
5815 grpc
5816 gpr_test_util
5817 gpr
5818)
5819
5820endif (gRPC_BUILD_TESTS)
5821if (gRPC_BUILD_TESTS)
5822
5823add_executable(chttp2_varint_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005824 test/core/transport/chttp2/varint_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005825)
5826
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005827
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005828target_include_directories(chttp2_varint_test
5829 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5830 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005831 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005832 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5833 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5834 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5835 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5836 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005837 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005838)
5839
5840target_link_libraries(chttp2_varint_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005841 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005842 grpc_test_util
5843 grpc
5844 gpr_test_util
5845 gpr
5846)
5847
5848endif (gRPC_BUILD_TESTS)
5849if (gRPC_BUILD_TESTS)
5850
Vijay Pai8a99fdb2018-01-25 15:38:20 -08005851add_executable(cmdline_test
5852 test/core/util/cmdline_test.cc
5853)
5854
5855
5856target_include_directories(cmdline_test
5857 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5858 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5859 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
5860 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5861 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5862 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5863 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5864 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005865 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Vijay Pai8a99fdb2018-01-25 15:38:20 -08005866)
5867
5868target_link_libraries(cmdline_test
5869 ${_gRPC_ALLTARGETS_LIBRARIES}
5870 gpr
5871 gpr_test_util
5872 grpc_test_util
5873)
5874
5875endif (gRPC_BUILD_TESTS)
5876if (gRPC_BUILD_TESTS)
5877
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005878add_executable(combiner_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005879 test/core/iomgr/combiner_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005880)
5881
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005882
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005883target_include_directories(combiner_test
5884 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5885 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005886 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005887 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5888 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5889 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5890 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5891 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005892 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005893)
5894
5895target_link_libraries(combiner_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005896 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005897 grpc_test_util
5898 grpc
5899 gpr_test_util
5900 gpr
5901)
5902
5903endif (gRPC_BUILD_TESTS)
5904if (gRPC_BUILD_TESTS)
5905
5906add_executable(compression_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005907 test/core/compression/compression_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005908)
5909
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005910
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005911target_include_directories(compression_test
5912 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5913 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005914 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005915 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5916 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5917 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5918 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5919 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005920 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005921)
5922
5923target_link_libraries(compression_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005924 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005925 grpc_test_util
5926 grpc
5927 gpr_test_util
5928 gpr
5929)
5930
5931endif (gRPC_BUILD_TESTS)
5932if (gRPC_BUILD_TESTS)
5933
5934add_executable(concurrent_connectivity_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005935 test/core/surface/concurrent_connectivity_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005936)
5937
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005938
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005939target_include_directories(concurrent_connectivity_test
5940 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5941 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005942 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005943 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5944 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5945 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5946 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5947 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005948 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005949)
5950
5951target_link_libraries(concurrent_connectivity_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005952 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005953 grpc_test_util
5954 grpc
5955 gpr_test_util
5956 gpr
5957)
5958
5959endif (gRPC_BUILD_TESTS)
5960if (gRPC_BUILD_TESTS)
5961
5962add_executable(connection_refused_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005963 test/core/end2end/connection_refused_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005964)
5965
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005966
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005967target_include_directories(connection_refused_test
5968 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5969 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005970 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005971 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
5972 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
5973 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
5974 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
5975 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08005976 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005977)
5978
5979target_link_libraries(connection_refused_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005980 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005981 grpc_test_util
5982 grpc
5983 gpr_test_util
5984 gpr
5985)
5986
5987endif (gRPC_BUILD_TESTS)
5988if (gRPC_BUILD_TESTS)
5989
5990add_executable(dns_resolver_connectivity_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07005991 test/core/client_channel/resolvers/dns_resolver_connectivity_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005992)
5993
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005994
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005995target_include_directories(dns_resolver_connectivity_test
5996 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5997 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01005998 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01005999 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6000 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6001 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6002 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6003 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006004 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006005)
6006
6007target_link_libraries(dns_resolver_connectivity_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006008 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006009 grpc_test_util
6010 grpc
6011 gpr_test_util
6012 gpr
6013)
6014
6015endif (gRPC_BUILD_TESTS)
6016if (gRPC_BUILD_TESTS)
6017
David Garcia Quintas956fe5e2018-01-30 15:47:20 -08006018add_executable(dns_resolver_cooldown_test
6019 test/core/client_channel/resolvers/dns_resolver_cooldown_test.cc
6020)
6021
6022
6023target_include_directories(dns_resolver_cooldown_test
6024 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6025 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6026 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
6027 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6028 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6029 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6030 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6031 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006032 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
David Garcia Quintas956fe5e2018-01-30 15:47:20 -08006033)
6034
6035target_link_libraries(dns_resolver_cooldown_test
6036 ${_gRPC_ALLTARGETS_LIBRARIES}
6037 grpc_test_util
6038 grpc
6039 gpr_test_util
6040 gpr
6041)
6042
6043endif (gRPC_BUILD_TESTS)
6044if (gRPC_BUILD_TESTS)
6045
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006046add_executable(dns_resolver_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006047 test/core/client_channel/resolvers/dns_resolver_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006048)
6049
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006050
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006051target_include_directories(dns_resolver_test
6052 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6053 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006054 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006055 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6056 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6057 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6058 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6059 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006060 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006061)
6062
6063target_link_libraries(dns_resolver_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006064 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006065 grpc_test_util
6066 grpc
6067 gpr_test_util
6068 gpr
6069)
6070
6071endif (gRPC_BUILD_TESTS)
6072if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006073if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006074
6075add_executable(dualstack_socket_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006076 test/core/end2end/dualstack_socket_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006077)
6078
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006079
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006080target_include_directories(dualstack_socket_test
6081 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6082 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006083 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006084 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6085 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6086 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6087 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6088 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006089 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006090)
6091
6092target_link_libraries(dualstack_socket_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006093 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006094 grpc_test_util
6095 grpc
6096 gpr_test_util
6097 gpr
6098)
6099
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006100endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006101endif (gRPC_BUILD_TESTS)
6102if (gRPC_BUILD_TESTS)
6103
6104add_executable(endpoint_pair_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006105 test/core/iomgr/endpoint_pair_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006106)
6107
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006108
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006109target_include_directories(endpoint_pair_test
6110 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6111 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006112 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006113 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6114 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6115 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6116 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6117 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006118 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006119)
6120
6121target_link_libraries(endpoint_pair_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006122 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006123 grpc_test_util
6124 grpc
6125 gpr_test_util
6126 gpr
6127)
6128
6129endif (gRPC_BUILD_TESTS)
6130if (gRPC_BUILD_TESTS)
ncteisen3da3ce32017-02-17 09:51:25 -08006131
6132add_executable(error_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006133 test/core/iomgr/error_test.cc
ncteisen3da3ce32017-02-17 09:51:25 -08006134)
6135
6136
6137target_include_directories(error_test
6138 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6139 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006140 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006141 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6142 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6143 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6144 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6145 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006146 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
ncteisen3da3ce32017-02-17 09:51:25 -08006147)
6148
6149target_link_libraries(error_test
6150 ${_gRPC_ALLTARGETS_LIBRARIES}
6151 grpc_test_util
6152 grpc
6153 gpr_test_util
6154 gpr
6155)
6156
6157endif (gRPC_BUILD_TESTS)
6158if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006159if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006160
Craig Tiller6a85ee02017-04-27 19:17:11 +00006161add_executable(ev_epollsig_linux_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006162 test/core/iomgr/ev_epollsig_linux_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006163)
6164
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006165
Craig Tiller6a85ee02017-04-27 19:17:11 +00006166target_include_directories(ev_epollsig_linux_test
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006167 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6168 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006169 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006170 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6171 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6172 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6173 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6174 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006175 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006176)
6177
Craig Tiller6a85ee02017-04-27 19:17:11 +00006178target_link_libraries(ev_epollsig_linux_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006179 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006180 grpc_test_util
6181 grpc
6182 gpr_test_util
6183 gpr
6184)
6185
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006186endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006187endif (gRPC_BUILD_TESTS)
6188if (gRPC_BUILD_TESTS)
David Garcia Quintas53af23c2017-04-15 10:29:46 -07006189
6190add_executable(fake_resolver_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006191 test/core/client_channel/resolvers/fake_resolver_test.cc
David Garcia Quintas53af23c2017-04-15 10:29:46 -07006192)
6193
6194
6195target_include_directories(fake_resolver_test
6196 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6197 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006198 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006199 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6200 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6201 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6202 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6203 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006204 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
David Garcia Quintas53af23c2017-04-15 10:29:46 -07006205)
6206
6207target_link_libraries(fake_resolver_test
6208 ${_gRPC_ALLTARGETS_LIBRARIES}
6209 grpc_test_util
6210 grpc
6211 gpr_test_util
6212 gpr
6213)
6214
6215endif (gRPC_BUILD_TESTS)
6216if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006217if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006218
Yihua Zhang7fab9bf2017-08-22 12:32:43 -07006219add_executable(fake_transport_security_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006220 test/core/tsi/fake_transport_security_test.cc
6221 test/core/tsi/transport_security_test_lib.cc
Yihua Zhang7fab9bf2017-08-22 12:32:43 -07006222)
6223
6224
6225target_include_directories(fake_transport_security_test
6226 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6227 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006228 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006229 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6230 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6231 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6232 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6233 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006234 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhang7fab9bf2017-08-22 12:32:43 -07006235)
6236
6237target_link_libraries(fake_transport_security_test
6238 ${_gRPC_ALLTARGETS_LIBRARIES}
6239 gpr_test_util
6240 gpr
6241 grpc
6242)
6243
6244endif()
6245endif (gRPC_BUILD_TESTS)
6246if (gRPC_BUILD_TESTS)
6247if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
6248
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006249add_executable(fd_conservation_posix_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006250 test/core/iomgr/fd_conservation_posix_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006251)
6252
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006253
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006254target_include_directories(fd_conservation_posix_test
6255 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6256 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006257 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006258 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6259 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6260 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6261 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6262 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006263 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006264)
6265
6266target_link_libraries(fd_conservation_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006267 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006268 grpc_test_util
6269 grpc
6270 gpr_test_util
6271 gpr
6272)
6273
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006274endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006275endif (gRPC_BUILD_TESTS)
6276if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006277if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006278
6279add_executable(fd_posix_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006280 test/core/iomgr/fd_posix_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006281)
6282
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006283
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006284target_include_directories(fd_posix_test
6285 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6286 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006287 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006288 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6289 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6290 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6291 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6292 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006293 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006294)
6295
6296target_link_libraries(fd_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006297 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006298 grpc_test_util
6299 grpc
6300 gpr_test_util
6301 gpr
6302)
6303
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006304endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006305endif (gRPC_BUILD_TESTS)
6306if (gRPC_BUILD_TESTS)
6307
6308add_executable(fling_client
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006309 test/core/fling/client.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006310)
6311
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006312
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006313target_include_directories(fling_client
6314 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6315 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006316 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006317 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6318 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6319 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6320 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6321 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006322 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006323)
6324
6325target_link_libraries(fling_client
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(fling_server
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006337 test/core/fling/server.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006338)
6339
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006340
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006341target_include_directories(fling_server
6342 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6343 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006344 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006345 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6346 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6347 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6348 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6349 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006350 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006351)
6352
6353target_link_libraries(fling_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006354 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006355 grpc_test_util
6356 grpc
6357 gpr_test_util
6358 gpr
6359)
6360
6361endif (gRPC_BUILD_TESTS)
6362if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006363if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006364
6365add_executable(fling_stream_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006366 test/core/fling/fling_stream_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006367)
6368
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006369
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006370target_include_directories(fling_stream_test
6371 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6372 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006373 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006374 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6375 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6376 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6377 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6378 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006379 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006380)
6381
6382target_link_libraries(fling_stream_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006383 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006384 grpc_test_util
6385 grpc
6386 gpr_test_util
6387 gpr
6388)
6389
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006390endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006391endif (gRPC_BUILD_TESTS)
6392if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006393if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006394
6395add_executable(fling_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006396 test/core/fling/fling_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006397)
6398
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006399
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006400target_include_directories(fling_test
6401 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6402 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006403 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006404 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6405 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6406 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6407 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6408 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006409 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006410)
6411
6412target_link_libraries(fling_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006413 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006414 grpc_test_util
6415 grpc
6416 gpr_test_util
6417 gpr
6418)
6419
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006420endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006421endif (gRPC_BUILD_TESTS)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006422if (gRPC_BUILD_TESTS)
kpayson6438ab21e2018-03-08 15:47:40 -08006423if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC)
6424
6425add_executable(fork_test
kpayson64701e70d2018-04-30 17:40:00 -07006426 test/core/gprpp/fork_test.cc
kpayson6438ab21e2018-03-08 15:47:40 -08006427)
6428
6429
6430target_include_directories(fork_test
6431 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6432 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6433 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
6434 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6435 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6436 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6437 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6438 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
kpayson64c934a2e2018-05-11 12:22:47 -07006439 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
kpayson6438ab21e2018-03-08 15:47:40 -08006440)
6441
6442target_link_libraries(fork_test
6443 ${_gRPC_ALLTARGETS_LIBRARIES}
6444 gpr_test_util
6445 gpr
6446)
6447
6448endif()
6449endif (gRPC_BUILD_TESTS)
6450if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006451if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006452
6453add_executable(goaway_server_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006454 test/core/end2end/goaway_server_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006455)
6456
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006457
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006458target_include_directories(goaway_server_test
6459 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6460 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006461 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006462 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6463 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6464 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6465 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6466 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006467 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006468)
6469
6470target_link_libraries(goaway_server_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006471 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006472 grpc_test_util
6473 grpc
6474 gpr_test_util
6475 gpr
6476)
6477
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006478endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006479endif (gRPC_BUILD_TESTS)
6480if (gRPC_BUILD_TESTS)
6481
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006482add_executable(gpr_cpu_test
Mark D. Rothdbdf4952018-01-18 11:21:12 -08006483 test/core/gpr/cpu_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006484)
6485
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006486
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006487target_include_directories(gpr_cpu_test
6488 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6489 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006490 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006491 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6492 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6493 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6494 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6495 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006496 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006497)
6498
6499target_link_libraries(gpr_cpu_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006500 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006501 gpr_test_util
6502 gpr
6503)
6504
6505endif (gRPC_BUILD_TESTS)
6506if (gRPC_BUILD_TESTS)
6507
6508add_executable(gpr_env_test
Mark D. Rothdbdf4952018-01-18 11:21:12 -08006509 test/core/gpr/env_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006510)
6511
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006512
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006513target_include_directories(gpr_env_test
6514 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6515 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006516 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006517 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6518 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6519 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6520 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6521 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006522 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006523)
6524
6525target_link_libraries(gpr_env_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006526 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006527 gpr_test_util
6528 gpr
6529)
6530
6531endif (gRPC_BUILD_TESTS)
6532if (gRPC_BUILD_TESTS)
6533
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006534add_executable(gpr_host_port_test
Mark D. Rothdbdf4952018-01-18 11:21:12 -08006535 test/core/gpr/host_port_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006536)
6537
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006538
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006539target_include_directories(gpr_host_port_test
6540 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6541 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006542 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006543 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6544 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6545 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6546 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6547 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006548 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006549)
6550
6551target_link_libraries(gpr_host_port_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006552 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006553 gpr_test_util
6554 gpr
6555)
6556
6557endif (gRPC_BUILD_TESTS)
6558if (gRPC_BUILD_TESTS)
6559
6560add_executable(gpr_log_test
Mark D. Rothdbdf4952018-01-18 11:21:12 -08006561 test/core/gpr/log_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006562)
6563
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006564
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006565target_include_directories(gpr_log_test
6566 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6567 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006568 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006569 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6570 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6571 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6572 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6573 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006574 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006575)
6576
6577target_link_libraries(gpr_log_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006578 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006579 gpr_test_util
6580 gpr
6581)
6582
6583endif (gRPC_BUILD_TESTS)
6584if (gRPC_BUILD_TESTS)
6585
ncteisen4d9c98b2017-11-09 12:43:15 -08006586add_executable(gpr_manual_constructor_test
Mark D. Roth4f2b0fd2018-01-19 12:12:23 -08006587 test/core/gprpp/manual_constructor_test.cc
ncteisen4d9c98b2017-11-09 12:43:15 -08006588)
6589
6590
6591target_include_directories(gpr_manual_constructor_test
6592 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6593 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006594 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006595 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6596 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6597 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6598 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6599 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006600 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
ncteisen4d9c98b2017-11-09 12:43:15 -08006601)
6602
6603target_link_libraries(gpr_manual_constructor_test
6604 ${_gRPC_ALLTARGETS_LIBRARIES}
6605 gpr_test_util
6606 gpr
6607)
6608
6609endif (gRPC_BUILD_TESTS)
6610if (gRPC_BUILD_TESTS)
6611
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006612add_executable(gpr_mpscq_test
Mark D. Rothdbdf4952018-01-18 11:21:12 -08006613 test/core/gpr/mpscq_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006614)
6615
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006616
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006617target_include_directories(gpr_mpscq_test
6618 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6619 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006620 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006621 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6622 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6623 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6624 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6625 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006626 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006627)
6628
6629target_link_libraries(gpr_mpscq_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006630 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006631 gpr_test_util
6632 gpr
6633)
6634
6635endif (gRPC_BUILD_TESTS)
6636if (gRPC_BUILD_TESTS)
6637
Craig Tilleredbf2b92017-02-27 07:24:00 -08006638add_executable(gpr_spinlock_test
Mark D. Rothdbdf4952018-01-18 11:21:12 -08006639 test/core/gpr/spinlock_test.cc
Craig Tilleredbf2b92017-02-27 07:24:00 -08006640)
6641
6642
6643target_include_directories(gpr_spinlock_test
6644 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6645 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006646 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006647 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6648 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6649 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6650 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6651 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006652 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Craig Tilleredbf2b92017-02-27 07:24:00 -08006653)
6654
6655target_link_libraries(gpr_spinlock_test
6656 ${_gRPC_ALLTARGETS_LIBRARIES}
6657 gpr_test_util
6658 gpr
6659)
6660
6661endif (gRPC_BUILD_TESTS)
6662if (gRPC_BUILD_TESTS)
6663
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006664add_executable(gpr_string_test
Mark D. Rothdbdf4952018-01-18 11:21:12 -08006665 test/core/gpr/string_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006666)
6667
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006668
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006669target_include_directories(gpr_string_test
6670 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6671 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006672 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006673 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6674 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6675 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6676 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6677 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006678 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006679)
6680
6681target_link_libraries(gpr_string_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006682 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006683 gpr_test_util
6684 gpr
6685)
6686
6687endif (gRPC_BUILD_TESTS)
6688if (gRPC_BUILD_TESTS)
6689
6690add_executable(gpr_sync_test
Mark D. Rothdbdf4952018-01-18 11:21:12 -08006691 test/core/gpr/sync_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006692)
6693
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006694
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006695target_include_directories(gpr_sync_test
6696 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6697 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006698 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006699 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6700 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6701 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6702 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6703 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006704 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006705)
6706
6707target_link_libraries(gpr_sync_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006708 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006709 gpr_test_util
6710 gpr
6711)
6712
6713endif (gRPC_BUILD_TESTS)
6714if (gRPC_BUILD_TESTS)
6715
6716add_executable(gpr_thd_test
Vijay Paida693552018-02-16 22:59:03 -08006717 test/core/gprpp/thd_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006718)
6719
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006720
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006721target_include_directories(gpr_thd_test
6722 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6723 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006724 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006725 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6726 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6727 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6728 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6729 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006730 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006731)
6732
6733target_link_libraries(gpr_thd_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006734 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006735 gpr_test_util
6736 gpr
6737)
6738
6739endif (gRPC_BUILD_TESTS)
6740if (gRPC_BUILD_TESTS)
6741
6742add_executable(gpr_time_test
Mark D. Rothdbdf4952018-01-18 11:21:12 -08006743 test/core/gpr/time_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006744)
6745
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006746
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006747target_include_directories(gpr_time_test
6748 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6749 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006750 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006751 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6752 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6753 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6754 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6755 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006756 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006757)
6758
6759target_link_libraries(gpr_time_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006760 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006761 gpr_test_util
6762 gpr
6763)
6764
6765endif (gRPC_BUILD_TESTS)
6766if (gRPC_BUILD_TESTS)
6767
6768add_executable(gpr_tls_test
Mark D. Rothdbdf4952018-01-18 11:21:12 -08006769 test/core/gpr/tls_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006770)
6771
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006772
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006773target_include_directories(gpr_tls_test
6774 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6775 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006776 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006777 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6778 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6779 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6780 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6781 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006782 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006783)
6784
6785target_link_libraries(gpr_tls_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006786 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006787 gpr_test_util
6788 gpr
6789)
6790
6791endif (gRPC_BUILD_TESTS)
6792if (gRPC_BUILD_TESTS)
6793
6794add_executable(gpr_useful_test
Mark D. Rothdbdf4952018-01-18 11:21:12 -08006795 test/core/gpr/useful_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006796)
6797
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006798
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006799target_include_directories(gpr_useful_test
6800 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6801 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006802 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006803 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6804 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6805 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6806 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6807 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006808 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006809)
6810
6811target_link_libraries(gpr_useful_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006812 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006813 gpr_test_util
6814 gpr
6815)
6816
6817endif (gRPC_BUILD_TESTS)
6818if (gRPC_BUILD_TESTS)
6819
6820add_executable(grpc_auth_context_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006821 test/core/security/auth_context_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006822)
6823
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006824
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006825target_include_directories(grpc_auth_context_test
6826 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6827 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006828 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006829 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6830 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6831 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6832 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6833 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006834 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006835)
6836
6837target_link_libraries(grpc_auth_context_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006838 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006839 grpc_test_util
6840 grpc
6841 gpr_test_util
6842 gpr
6843)
6844
6845endif (gRPC_BUILD_TESTS)
6846if (gRPC_BUILD_TESTS)
6847
6848add_executable(grpc_b64_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006849 test/core/slice/b64_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006850)
6851
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006852
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006853target_include_directories(grpc_b64_test
6854 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6855 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006856 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006857 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6858 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6859 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6860 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6861 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006862 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006863)
6864
6865target_link_libraries(grpc_b64_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006866 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006867 grpc_test_util
6868 grpc
6869 gpr_test_util
6870 gpr
6871)
6872
6873endif (gRPC_BUILD_TESTS)
6874if (gRPC_BUILD_TESTS)
6875
6876add_executable(grpc_byte_buffer_reader_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006877 test/core/surface/byte_buffer_reader_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006878)
6879
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006880
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006881target_include_directories(grpc_byte_buffer_reader_test
6882 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6883 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006884 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006885 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6886 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6887 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6888 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6889 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006890 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006891)
6892
6893target_link_libraries(grpc_byte_buffer_reader_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006894 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006895 grpc_test_util
6896 grpc
6897 gpr_test_util
6898 gpr
6899)
6900
6901endif (gRPC_BUILD_TESTS)
6902if (gRPC_BUILD_TESTS)
6903
6904add_executable(grpc_channel_args_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006905 test/core/channel/channel_args_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006906)
6907
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006908
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006909target_include_directories(grpc_channel_args_test
6910 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6911 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006912 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006913 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6914 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6915 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6916 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6917 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006918 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006919)
6920
6921target_link_libraries(grpc_channel_args_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006922 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006923 grpc_test_util
6924 grpc
6925 gpr_test_util
6926 gpr
6927)
6928
6929endif (gRPC_BUILD_TESTS)
6930if (gRPC_BUILD_TESTS)
6931
David Garcia Quintas243fe9d2017-08-24 14:16:37 -07006932add_executable(grpc_channel_stack_builder_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006933 test/core/channel/channel_stack_builder_test.cc
David Garcia Quintas243fe9d2017-08-24 14:16:37 -07006934)
6935
6936
6937target_include_directories(grpc_channel_stack_builder_test
6938 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6939 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006940 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006941 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6942 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6943 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6944 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6945 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006946 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
David Garcia Quintas243fe9d2017-08-24 14:16:37 -07006947)
6948
6949target_link_libraries(grpc_channel_stack_builder_test
6950 ${_gRPC_ALLTARGETS_LIBRARIES}
6951 grpc_test_util
6952 grpc
6953 gpr_test_util
6954 gpr
6955)
6956
6957endif (gRPC_BUILD_TESTS)
6958if (gRPC_BUILD_TESTS)
6959
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006960add_executable(grpc_channel_stack_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006961 test/core/channel/channel_stack_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006962)
6963
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006964
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006965target_include_directories(grpc_channel_stack_test
6966 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6967 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006968 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006969 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6970 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6971 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
6972 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
6973 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08006974 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006975)
6976
6977target_link_libraries(grpc_channel_stack_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006978 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006979 grpc_test_util
6980 grpc
6981 gpr_test_util
6982 gpr
6983)
6984
6985endif (gRPC_BUILD_TESTS)
6986if (gRPC_BUILD_TESTS)
6987
6988add_executable(grpc_completion_queue_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07006989 test/core/surface/completion_queue_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006990)
6991
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006992
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006993target_include_directories(grpc_completion_queue_test
6994 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6995 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01006996 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01006997 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
6998 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
6999 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7000 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7001 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007002 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007003)
7004
7005target_link_libraries(grpc_completion_queue_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007006 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007007 grpc_test_util
7008 grpc
7009 gpr_test_util
7010 gpr
7011)
7012
7013endif (gRPC_BUILD_TESTS)
murgatroid991191b722017-02-08 11:56:52 -08007014if (gRPC_BUILD_TESTS)
7015
7016add_executable(grpc_completion_queue_threading_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007017 test/core/surface/completion_queue_threading_test.cc
murgatroid991191b722017-02-08 11:56:52 -08007018)
7019
murgatroid9998cdf3b2017-02-23 14:59:45 -08007020
murgatroid991191b722017-02-08 11:56:52 -08007021target_include_directories(grpc_completion_queue_threading_test
7022 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7023 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007024 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007025 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7026 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7027 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7028 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7029 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007030 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
murgatroid991191b722017-02-08 11:56:52 -08007031)
7032
7033target_link_libraries(grpc_completion_queue_threading_test
murgatroid9998cdf3b2017-02-23 14:59:45 -08007034 ${_gRPC_ALLTARGETS_LIBRARIES}
murgatroid991191b722017-02-08 11:56:52 -08007035 grpc_test_util
7036 grpc
7037 gpr_test_util
7038 gpr
7039)
7040
7041endif (gRPC_BUILD_TESTS)
Craig Tiller1c7a8422016-08-18 11:13:11 -07007042
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01007043add_executable(grpc_create_jwt
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007044 test/core/security/create_jwt.cc
Vijay Pai80e23d12018-01-25 21:50:18 -08007045 test/core/util/cmdline.cc
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01007046)
7047
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007048
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01007049target_include_directories(grpc_create_jwt
7050 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7051 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007052 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007053 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7054 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7055 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7056 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7057 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007058 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01007059)
7060
7061target_link_libraries(grpc_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03007062 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007063 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01007064 grpc
7065 gpr
7066)
7067
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007068if (gRPC_BUILD_TESTS)
7069
7070add_executable(grpc_credentials_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007071 test/core/security/credentials_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007072)
7073
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007074
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007075target_include_directories(grpc_credentials_test
7076 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7077 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007078 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007079 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7080 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7081 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7082 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7083 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007084 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007085)
7086
7087target_link_libraries(grpc_credentials_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007088 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007089 grpc_test_util
7090 grpc
7091 gpr_test_util
7092 gpr
7093)
7094
7095endif (gRPC_BUILD_TESTS)
7096if (gRPC_BUILD_TESTS)
7097
7098add_executable(grpc_fetch_oauth2
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007099 test/core/security/fetch_oauth2.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007100)
7101
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007102
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007103target_include_directories(grpc_fetch_oauth2
7104 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7105 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007106 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007107 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7108 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7109 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7110 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7111 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007112 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007113)
7114
7115target_link_libraries(grpc_fetch_oauth2
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007116 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007117 grpc_test_util
7118 grpc
7119 gpr_test_util
7120 gpr
7121)
7122
7123endif (gRPC_BUILD_TESTS)
7124if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007125if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007126
7127add_executable(grpc_json_token_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007128 test/core/security/json_token_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007129)
7130
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007131
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007132target_include_directories(grpc_json_token_test
7133 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7134 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007135 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007136 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7137 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7138 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7139 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7140 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007141 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007142)
7143
7144target_link_libraries(grpc_json_token_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007145 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007146 grpc_test_util
7147 grpc
7148 gpr_test_util
7149 gpr
7150)
7151
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007152endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007153endif (gRPC_BUILD_TESTS)
7154if (gRPC_BUILD_TESTS)
7155
7156add_executable(grpc_jwt_verifier_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007157 test/core/security/jwt_verifier_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007158)
7159
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007160
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007161target_include_directories(grpc_jwt_verifier_test
7162 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7163 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007164 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007165 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7166 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7167 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7168 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7169 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007170 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007171)
7172
7173target_link_libraries(grpc_jwt_verifier_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007174 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007175 grpc_test_util
7176 grpc
7177 gpr_test_util
7178 gpr
7179)
7180
7181endif (gRPC_BUILD_TESTS)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03007182
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01007183add_executable(grpc_print_google_default_creds_token
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007184 test/core/security/print_google_default_creds_token.cc
Vijay Pai80e23d12018-01-25 21:50:18 -08007185 test/core/util/cmdline.cc
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01007186)
7187
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007188
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01007189target_include_directories(grpc_print_google_default_creds_token
7190 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7191 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007192 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007193 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7194 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7195 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7196 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7197 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007198 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01007199)
7200
7201target_link_libraries(grpc_print_google_default_creds_token
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007202 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01007203 grpc
7204 gpr
7205)
7206
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007207if (gRPC_BUILD_TESTS)
7208
7209add_executable(grpc_security_connector_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007210 test/core/security/security_connector_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007211)
7212
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007213
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007214target_include_directories(grpc_security_connector_test
7215 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7216 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007217 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007218 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7219 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7220 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7221 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7222 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007223 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007224)
7225
7226target_link_libraries(grpc_security_connector_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007227 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007228 grpc_test_util
7229 grpc
7230 gpr_test_util
7231 gpr
7232)
7233
7234endif (gRPC_BUILD_TESTS)
Justin Burke9b9a44e2017-10-03 18:09:41 -07007235if (gRPC_BUILD_TESTS)
7236
7237add_executable(grpc_ssl_credentials_test
Yash Tibrewalaf922462017-10-25 16:29:49 -07007238 test/core/security/ssl_credentials_test.cc
Justin Burke9b9a44e2017-10-03 18:09:41 -07007239)
7240
7241
7242target_include_directories(grpc_ssl_credentials_test
7243 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7244 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007245 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007246 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7247 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7248 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7249 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7250 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007251 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Justin Burke9b9a44e2017-10-03 18:09:41 -07007252)
7253
7254target_link_libraries(grpc_ssl_credentials_test
7255 ${_gRPC_ALLTARGETS_LIBRARIES}
7256 grpc_test_util
7257 grpc
7258 gpr_test_util
7259 gpr
7260)
7261
7262endif (gRPC_BUILD_TESTS)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03007263
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01007264add_executable(grpc_verify_jwt
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007265 test/core/security/verify_jwt.cc
Vijay Pai80e23d12018-01-25 21:50:18 -08007266 test/core/util/cmdline.cc
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01007267)
7268
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007269
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01007270target_include_directories(grpc_verify_jwt
7271 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7272 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007273 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007274 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7275 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7276 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7277 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7278 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007279 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01007280)
7281
7282target_link_libraries(grpc_verify_jwt
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007283 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01007284 grpc
7285 gpr
7286)
7287
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007288if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007289if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007290
7291add_executable(handshake_client
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007292 test/core/handshake/client_ssl.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007293)
7294
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007295
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007296target_include_directories(handshake_client
7297 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7298 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007299 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007300 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7301 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7302 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7303 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7304 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007305 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007306)
7307
7308target_link_libraries(handshake_client
7309 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007310 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007311 grpc_test_util
7312 grpc
7313 gpr_test_util
7314 gpr
7315)
7316
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007317endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007318endif (gRPC_BUILD_TESTS)
7319if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007320if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007321
7322add_executable(handshake_server
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007323 test/core/handshake/server_ssl.cc
Alexander Polcyn248c4f52017-11-13 16:31:27 -08007324 test/core/handshake/server_ssl_common.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007325)
7326
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007327
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007328target_include_directories(handshake_server
7329 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7330 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007331 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007332 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7333 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7334 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7335 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7336 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007337 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007338)
7339
7340target_link_libraries(handshake_server
7341 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007342 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007343 grpc_test_util
7344 grpc
7345 gpr_test_util
7346 gpr
7347)
7348
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007349endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007350endif (gRPC_BUILD_TESTS)
7351if (gRPC_BUILD_TESTS)
Alexander Polcyn3f6b10a2017-10-28 16:57:29 -07007352if(_gRPC_PLATFORM_LINUX)
7353
7354add_executable(handshake_server_with_readahead_handshaker
Alexander Polcyn248c4f52017-11-13 16:31:27 -08007355 test/core/handshake/readahead_handshaker_server_ssl.cc
7356 test/core/handshake/server_ssl_common.cc
Alexander Polcyn3f6b10a2017-10-28 16:57:29 -07007357)
7358
7359
7360target_include_directories(handshake_server_with_readahead_handshaker
7361 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7362 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007363 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007364 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7365 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7366 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7367 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7368 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007369 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Alexander Polcyn3f6b10a2017-10-28 16:57:29 -07007370)
7371
7372target_link_libraries(handshake_server_with_readahead_handshaker
7373 ${_gRPC_SSL_LIBRARIES}
7374 ${_gRPC_ALLTARGETS_LIBRARIES}
7375 grpc_test_util
7376 grpc
7377 gpr_test_util
7378 gpr
7379)
7380
7381endif()
7382endif (gRPC_BUILD_TESTS)
7383if (gRPC_BUILD_TESTS)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007384
Vijay Pai195cf1e2017-11-30 10:56:06 -08007385add_executable(histogram_test
7386 test/core/util/histogram_test.cc
7387)
7388
7389
7390target_include_directories(histogram_test
7391 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7392 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007393 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007394 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7395 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7396 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7397 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7398 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007399 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Vijay Pai195cf1e2017-11-30 10:56:06 -08007400)
7401
7402target_link_libraries(histogram_test
7403 ${_gRPC_ALLTARGETS_LIBRARIES}
7404 grpc_test_util
7405 gpr
7406)
7407
7408endif (gRPC_BUILD_TESTS)
7409if (gRPC_BUILD_TESTS)
7410
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007411add_executable(hpack_parser_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007412 test/core/transport/chttp2/hpack_parser_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007413)
7414
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007415
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007416target_include_directories(hpack_parser_test
7417 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7418 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007419 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007420 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7421 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7422 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7423 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7424 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007425 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007426)
7427
7428target_link_libraries(hpack_parser_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007429 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007430 grpc_test_util
7431 grpc
7432 gpr_test_util
7433 gpr
7434)
7435
7436endif (gRPC_BUILD_TESTS)
7437if (gRPC_BUILD_TESTS)
7438
7439add_executable(hpack_table_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007440 test/core/transport/chttp2/hpack_table_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007441)
7442
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007443
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007444target_include_directories(hpack_table_test
7445 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7446 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007447 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007448 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7449 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7450 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7451 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7452 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007453 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007454)
7455
7456target_link_libraries(hpack_table_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007457 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007458 grpc_test_util
7459 grpc
7460 gpr_test_util
7461 gpr
7462)
7463
7464endif (gRPC_BUILD_TESTS)
7465if (gRPC_BUILD_TESTS)
7466
7467add_executable(http_parser_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007468 test/core/http/parser_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007469)
7470
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007471
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007472target_include_directories(http_parser_test
7473 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7474 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007475 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007476 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7477 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7478 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7479 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7480 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007481 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007482)
7483
7484target_link_libraries(http_parser_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007485 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007486 grpc_test_util
7487 grpc
7488 gpr_test_util
7489 gpr
7490)
7491
7492endif (gRPC_BUILD_TESTS)
7493if (gRPC_BUILD_TESTS)
7494
7495add_executable(httpcli_format_request_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007496 test/core/http/format_request_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007497)
7498
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007499
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007500target_include_directories(httpcli_format_request_test
7501 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7502 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007503 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007504 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7505 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7506 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7507 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7508 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007509 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007510)
7511
7512target_link_libraries(httpcli_format_request_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007513 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007514 grpc_test_util
7515 grpc
7516 gpr_test_util
7517 gpr
7518)
7519
7520endif (gRPC_BUILD_TESTS)
7521if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007522if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007523
7524add_executable(httpcli_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007525 test/core/http/httpcli_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007526)
7527
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007528
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007529target_include_directories(httpcli_test
7530 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7531 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007532 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007533 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7534 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7535 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7536 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7537 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007538 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007539)
7540
7541target_link_libraries(httpcli_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007542 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007543 grpc_test_util
7544 grpc
7545 gpr_test_util
7546 gpr
7547)
7548
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007549endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007550endif (gRPC_BUILD_TESTS)
7551if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007552if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007553
7554add_executable(httpscli_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007555 test/core/http/httpscli_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007556)
7557
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007558
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007559target_include_directories(httpscli_test
7560 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7561 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007562 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007563 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7564 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7565 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7566 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7567 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007568 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007569)
7570
7571target_link_libraries(httpscli_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007572 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007573 grpc_test_util
7574 grpc
7575 gpr_test_util
7576 gpr
7577)
7578
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007579endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007580endif (gRPC_BUILD_TESTS)
7581if (gRPC_BUILD_TESTS)
7582
7583add_executable(init_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007584 test/core/surface/init_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007585)
7586
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007587
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007588target_include_directories(init_test
7589 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7590 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007591 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007592 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7593 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7594 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7595 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7596 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007597 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007598)
7599
7600target_link_libraries(init_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007601 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007602 grpc_test_util
7603 grpc
7604 gpr_test_util
7605 gpr
7606)
7607
7608endif (gRPC_BUILD_TESTS)
7609if (gRPC_BUILD_TESTS)
7610
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007611add_executable(invalid_call_argument_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007612 test/core/end2end/invalid_call_argument_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007613)
7614
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007615
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007616target_include_directories(invalid_call_argument_test
7617 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7618 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007619 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007620 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7621 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7622 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7623 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7624 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007625 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007626)
7627
7628target_link_libraries(invalid_call_argument_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007629 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007630 grpc_test_util
7631 grpc
7632 gpr_test_util
7633 gpr
7634)
7635
7636endif (gRPC_BUILD_TESTS)
7637if (gRPC_BUILD_TESTS)
7638
7639add_executable(json_rewrite
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007640 test/core/json/json_rewrite.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007641)
7642
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007643
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007644target_include_directories(json_rewrite
7645 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7646 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007647 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007648 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7649 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7650 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7651 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7652 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007653 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007654)
7655
7656target_link_libraries(json_rewrite
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007657 ${_gRPC_ALLTARGETS_LIBRARIES}
Vijay Pai8a99fdb2018-01-25 15:38:20 -08007658 grpc_test_util
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007659 grpc
Vijay Pai8a99fdb2018-01-25 15:38:20 -08007660 gpr_test_util
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007661 gpr
7662)
7663
7664endif (gRPC_BUILD_TESTS)
7665if (gRPC_BUILD_TESTS)
7666
7667add_executable(json_rewrite_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007668 test/core/json/json_rewrite_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007669)
7670
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007671
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007672target_include_directories(json_rewrite_test
7673 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7674 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007675 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007676 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7677 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7678 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7679 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7680 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007681 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007682)
7683
7684target_link_libraries(json_rewrite_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007685 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007686 grpc_test_util
7687 grpc
7688 gpr_test_util
7689 gpr
7690)
7691
7692endif (gRPC_BUILD_TESTS)
7693if (gRPC_BUILD_TESTS)
7694
7695add_executable(json_stream_error_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007696 test/core/json/json_stream_error_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007697)
7698
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007699
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007700target_include_directories(json_stream_error_test
7701 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7702 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007703 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007704 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7705 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7706 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7707 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7708 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007709 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007710)
7711
7712target_link_libraries(json_stream_error_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007713 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007714 grpc_test_util
7715 grpc
7716 gpr_test_util
7717 gpr
7718)
7719
7720endif (gRPC_BUILD_TESTS)
7721if (gRPC_BUILD_TESTS)
7722
7723add_executable(json_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007724 test/core/json/json_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007725)
7726
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007727
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007728target_include_directories(json_test
7729 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7730 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007731 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007732 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7733 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7734 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7735 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7736 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007737 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007738)
7739
7740target_link_libraries(json_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007741 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007742 grpc_test_util
7743 grpc
7744 gpr_test_util
7745 gpr
7746)
7747
7748endif (gRPC_BUILD_TESTS)
7749if (gRPC_BUILD_TESTS)
7750
7751add_executable(lame_client_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007752 test/core/surface/lame_client_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007753)
7754
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007755
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007756target_include_directories(lame_client_test
7757 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7758 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007759 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007760 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7761 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7762 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7763 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7764 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007765 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007766)
7767
7768target_link_libraries(lame_client_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007769 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007770 grpc_test_util
7771 grpc
7772 gpr_test_util
7773 gpr
7774)
7775
7776endif (gRPC_BUILD_TESTS)
7777if (gRPC_BUILD_TESTS)
7778
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007779add_executable(load_file_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007780 test/core/iomgr/load_file_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007781)
7782
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007783
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007784target_include_directories(load_file_test
7785 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7786 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007787 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007788 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7789 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7790 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7791 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7792 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007793 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007794)
7795
7796target_link_libraries(load_file_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007797 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007798 grpc_test_util
7799 grpc
7800 gpr_test_util
7801 gpr
7802)
7803
7804endif (gRPC_BUILD_TESTS)
7805if (gRPC_BUILD_TESTS)
7806
7807add_executable(memory_profile_client
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007808 test/core/memory_usage/client.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007809)
7810
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007811
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007812target_include_directories(memory_profile_client
7813 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7814 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007815 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007816 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7817 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7818 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7819 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7820 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007821 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007822)
7823
7824target_link_libraries(memory_profile_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007825 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007826 grpc_test_util
7827 grpc
7828 gpr_test_util
7829 gpr
7830)
7831
7832endif (gRPC_BUILD_TESTS)
7833if (gRPC_BUILD_TESTS)
7834
7835add_executable(memory_profile_server
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007836 test/core/memory_usage/server.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007837)
7838
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007839
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007840target_include_directories(memory_profile_server
7841 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7842 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007843 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007844 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7845 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7846 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7847 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7848 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007849 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007850)
7851
7852target_link_libraries(memory_profile_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007853 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007854 grpc_test_util
7855 grpc
7856 gpr_test_util
7857 gpr
7858)
7859
7860endif (gRPC_BUILD_TESTS)
7861if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007862if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007863
7864add_executable(memory_profile_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007865 test/core/memory_usage/memory_usage_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007866)
7867
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007868
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007869target_include_directories(memory_profile_test
7870 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7871 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007872 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007873 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7874 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7875 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7876 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7877 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007878 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007879)
7880
7881target_link_libraries(memory_profile_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007882 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007883 grpc_test_util
7884 grpc
7885 gpr_test_util
7886 gpr
7887)
7888
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007889endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007890endif (gRPC_BUILD_TESTS)
7891if (gRPC_BUILD_TESTS)
7892
7893add_executable(message_compress_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007894 test/core/compression/message_compress_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007895)
7896
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007897
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007898target_include_directories(message_compress_test
7899 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7900 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007901 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007902 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7903 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7904 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7905 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7906 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007907 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007908)
7909
7910target_link_libraries(message_compress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007911 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007912 grpc_test_util
7913 grpc
7914 gpr_test_util
7915 gpr
7916)
7917
7918endif (gRPC_BUILD_TESTS)
7919if (gRPC_BUILD_TESTS)
7920
Craig Tiller494e72d2017-04-03 08:43:22 -07007921add_executable(minimal_stack_is_minimal_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007922 test/core/channel/minimal_stack_is_minimal_test.cc
Craig Tiller494e72d2017-04-03 08:43:22 -07007923)
7924
7925
7926target_include_directories(minimal_stack_is_minimal_test
7927 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7928 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007929 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007930 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7931 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7932 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7933 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7934 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007935 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Craig Tiller494e72d2017-04-03 08:43:22 -07007936)
7937
7938target_link_libraries(minimal_stack_is_minimal_test
7939 ${_gRPC_ALLTARGETS_LIBRARIES}
7940 grpc_test_util
7941 grpc
7942 gpr_test_util
7943 gpr
7944)
7945
7946endif (gRPC_BUILD_TESTS)
7947if (gRPC_BUILD_TESTS)
7948
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007949add_executable(multiple_server_queues_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07007950 test/core/end2end/multiple_server_queues_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007951)
7952
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007953
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007954target_include_directories(multiple_server_queues_test
7955 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7956 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007957 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007958 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7959 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7960 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7961 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7962 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007963 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007964)
7965
7966target_link_libraries(multiple_server_queues_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007967 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007968 grpc_test_util
7969 grpc
7970 gpr_test_util
7971 gpr
7972)
7973
7974endif (gRPC_BUILD_TESTS)
7975if (gRPC_BUILD_TESTS)
7976
7977add_executable(murmur_hash_test
Mark D. Rothdbdf4952018-01-18 11:21:12 -08007978 test/core/gpr/murmur_hash_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007979)
7980
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007981
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007982target_include_directories(murmur_hash_test
7983 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7984 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01007985 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01007986 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
7987 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
7988 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
7989 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
7990 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08007991 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007992)
7993
7994target_link_libraries(murmur_hash_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007995 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007996 gpr_test_util
7997 gpr
7998)
7999
8000endif (gRPC_BUILD_TESTS)
8001if (gRPC_BUILD_TESTS)
8002
8003add_executable(no_server_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008004 test/core/end2end/no_server_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008005)
8006
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008007
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008008target_include_directories(no_server_test
8009 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8010 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008011 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008012 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8013 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8014 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8015 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8016 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008017 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008018)
8019
8020target_link_libraries(no_server_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008021 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008022 grpc_test_util
8023 grpc
8024 gpr_test_util
8025 gpr
8026)
8027
8028endif (gRPC_BUILD_TESTS)
8029if (gRPC_BUILD_TESTS)
8030
Alexander Polcync3b1f182017-04-18 13:51:36 -07008031add_executable(num_external_connectivity_watchers_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008032 test/core/surface/num_external_connectivity_watchers_test.cc
Alexander Polcync3b1f182017-04-18 13:51:36 -07008033)
8034
8035
8036target_include_directories(num_external_connectivity_watchers_test
8037 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8038 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008039 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008040 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8041 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8042 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8043 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8044 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008045 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Alexander Polcync3b1f182017-04-18 13:51:36 -07008046)
8047
8048target_link_libraries(num_external_connectivity_watchers_test
8049 ${_gRPC_ALLTARGETS_LIBRARIES}
8050 grpc_test_util
8051 grpc
8052 gpr_test_util
8053 gpr
8054)
8055
8056endif (gRPC_BUILD_TESTS)
8057if (gRPC_BUILD_TESTS)
8058
Yuchen Zenga9d8a152017-02-15 15:27:44 -08008059add_executable(parse_address_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008060 test/core/client_channel/parse_address_test.cc
Yuchen Zenga9d8a152017-02-15 15:27:44 -08008061)
8062
David Garcia Quintas8a0ec882017-03-03 16:53:54 -08008063
Yuchen Zenga9d8a152017-02-15 15:27:44 -08008064target_include_directories(parse_address_test
8065 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8066 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008067 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008068 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8069 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8070 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8071 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8072 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008073 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yuchen Zenga9d8a152017-02-15 15:27:44 -08008074)
8075
8076target_link_libraries(parse_address_test
David Garcia Quintas8a0ec882017-03-03 16:53:54 -08008077 ${_gRPC_ALLTARGETS_LIBRARIES}
Yuchen Zenga9d8a152017-02-15 15:27:44 -08008078 grpc_test_util
8079 grpc
8080 gpr_test_util
8081 gpr
8082)
8083
8084endif (gRPC_BUILD_TESTS)
8085if (gRPC_BUILD_TESTS)
8086
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008087add_executable(percent_encoding_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008088 test/core/slice/percent_encoding_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008089)
8090
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008091
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008092target_include_directories(percent_encoding_test
8093 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8094 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008095 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008096 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8097 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8098 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8099 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8100 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008101 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008102)
8103
8104target_link_libraries(percent_encoding_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008105 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008106 grpc_test_util
8107 grpc
8108 gpr_test_util
8109 gpr
8110)
8111
8112endif (gRPC_BUILD_TESTS)
8113if (gRPC_BUILD_TESTS)
Sree Kuchibhotla66131682017-02-02 09:39:07 -08008114if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008115
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08008116add_executable(pollset_set_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008117 test/core/iomgr/pollset_set_test.cc
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08008118)
8119
Sree Kuchibhotla66131682017-02-02 09:39:07 -08008120
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08008121target_include_directories(pollset_set_test
8122 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8123 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008124 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008125 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8126 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8127 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8128 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8129 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008130 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08008131)
8132
8133target_link_libraries(pollset_set_test
Sree Kuchibhotla66131682017-02-02 09:39:07 -08008134 ${_gRPC_ALLTARGETS_LIBRARIES}
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08008135 grpc_test_util
8136 grpc
8137 gpr_test_util
8138 gpr
8139)
8140
Sree Kuchibhotla66131682017-02-02 09:39:07 -08008141endif()
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08008142endif (gRPC_BUILD_TESTS)
8143if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008144if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008145
Stanley Cheung16952182017-01-27 20:09:31 -08008146add_executable(resolve_address_posix_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008147 test/core/iomgr/resolve_address_posix_test.cc
Stanley Cheung16952182017-01-27 20:09:31 -08008148)
8149
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008150
Stanley Cheung16952182017-01-27 20:09:31 -08008151target_include_directories(resolve_address_posix_test
8152 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8153 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008154 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008155 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8156 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8157 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8158 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8159 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008160 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Stanley Cheung16952182017-01-27 20:09:31 -08008161)
8162
8163target_link_libraries(resolve_address_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008164 ${_gRPC_ALLTARGETS_LIBRARIES}
Stanley Cheung16952182017-01-27 20:09:31 -08008165 grpc_test_util
8166 grpc
8167 gpr_test_util
8168 gpr
8169)
8170
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008171endif()
Stanley Cheung16952182017-01-27 20:09:31 -08008172endif (gRPC_BUILD_TESTS)
8173if (gRPC_BUILD_TESTS)
8174
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008175add_executable(resolve_address_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008176 test/core/iomgr/resolve_address_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008177)
8178
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008179
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008180target_include_directories(resolve_address_test
8181 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8182 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008183 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008184 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8185 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8186 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8187 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8188 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008189 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008190)
8191
8192target_link_libraries(resolve_address_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008193 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008194 grpc_test_util
8195 grpc
8196 gpr_test_util
8197 gpr
8198)
8199
8200endif (gRPC_BUILD_TESTS)
8201if (gRPC_BUILD_TESTS)
8202
8203add_executable(resource_quota_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008204 test/core/iomgr/resource_quota_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008205)
8206
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008207
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008208target_include_directories(resource_quota_test
8209 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8210 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008211 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008212 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8213 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8214 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8215 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8216 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008217 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008218)
8219
8220target_link_libraries(resource_quota_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008221 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008222 grpc_test_util
8223 grpc
8224 gpr_test_util
8225 gpr
8226)
8227
8228endif (gRPC_BUILD_TESTS)
8229if (gRPC_BUILD_TESTS)
8230
8231add_executable(secure_channel_create_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008232 test/core/surface/secure_channel_create_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008233)
8234
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008235
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008236target_include_directories(secure_channel_create_test
8237 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8238 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008239 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008240 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8241 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8242 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8243 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8244 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008245 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008246)
8247
8248target_link_libraries(secure_channel_create_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008249 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008250 grpc_test_util
8251 grpc
8252 gpr_test_util
8253 gpr
8254)
8255
8256endif (gRPC_BUILD_TESTS)
8257if (gRPC_BUILD_TESTS)
8258
8259add_executable(secure_endpoint_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008260 test/core/security/secure_endpoint_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008261)
8262
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008263
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008264target_include_directories(secure_endpoint_test
8265 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8266 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008267 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008268 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8269 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8270 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8271 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8272 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008273 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008274)
8275
8276target_link_libraries(secure_endpoint_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008277 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008278 grpc_test_util
8279 grpc
8280 gpr_test_util
8281 gpr
8282)
8283
8284endif (gRPC_BUILD_TESTS)
8285if (gRPC_BUILD_TESTS)
8286
8287add_executable(sequential_connectivity_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008288 test/core/surface/sequential_connectivity_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008289)
8290
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008291
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008292target_include_directories(sequential_connectivity_test
8293 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8294 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008295 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008296 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8297 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8298 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8299 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8300 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008301 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008302)
8303
8304target_link_libraries(sequential_connectivity_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008305 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008306 grpc_test_util
8307 grpc
8308 gpr_test_util
8309 gpr
8310)
8311
8312endif (gRPC_BUILD_TESTS)
8313if (gRPC_BUILD_TESTS)
8314
8315add_executable(server_chttp2_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008316 test/core/surface/server_chttp2_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008317)
8318
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008319
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008320target_include_directories(server_chttp2_test
8321 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8322 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008323 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008324 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8325 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8326 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8327 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8328 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008329 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008330)
8331
8332target_link_libraries(server_chttp2_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008333 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008334 grpc_test_util
8335 grpc
8336 gpr_test_util
8337 gpr
8338)
8339
8340endif (gRPC_BUILD_TESTS)
8341if (gRPC_BUILD_TESTS)
8342
8343add_executable(server_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008344 test/core/surface/server_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008345)
8346
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008347
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008348target_include_directories(server_test
8349 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8350 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008351 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008352 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8353 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8354 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8355 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8356 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008357 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008358)
8359
8360target_link_libraries(server_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008361 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008362 grpc_test_util
8363 grpc
8364 gpr_test_util
8365 gpr
8366)
8367
8368endif (gRPC_BUILD_TESTS)
8369if (gRPC_BUILD_TESTS)
8370
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008371add_executable(slice_buffer_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008372 test/core/slice/slice_buffer_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008373)
8374
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008375
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008376target_include_directories(slice_buffer_test
8377 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8378 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008379 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008380 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8381 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8382 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8383 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8384 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008385 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008386)
8387
8388target_link_libraries(slice_buffer_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008389 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008390 grpc_test_util
8391 grpc
8392 gpr_test_util
8393 gpr
8394)
8395
8396endif (gRPC_BUILD_TESTS)
8397if (gRPC_BUILD_TESTS)
8398
8399add_executable(slice_string_helpers_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008400 test/core/slice/slice_string_helpers_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008401)
8402
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008403
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008404target_include_directories(slice_string_helpers_test
8405 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8406 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008407 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008408 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8409 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8410 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8411 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8412 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008413 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008414)
8415
8416target_link_libraries(slice_string_helpers_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008417 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008418 grpc_test_util
8419 grpc
8420 gpr_test_util
8421 gpr
8422)
8423
8424endif (gRPC_BUILD_TESTS)
8425if (gRPC_BUILD_TESTS)
8426
8427add_executable(slice_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008428 test/core/slice/slice_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008429)
8430
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008431
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008432target_include_directories(slice_test
8433 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8434 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008435 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008436 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8437 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8438 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8439 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8440 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008441 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008442)
8443
8444target_link_libraries(slice_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008445 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008446 grpc_test_util
8447 grpc
8448 gpr_test_util
8449 gpr
8450)
8451
8452endif (gRPC_BUILD_TESTS)
8453if (gRPC_BUILD_TESTS)
8454
8455add_executable(sockaddr_resolver_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008456 test/core/client_channel/resolvers/sockaddr_resolver_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008457)
8458
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008459
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008460target_include_directories(sockaddr_resolver_test
8461 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8462 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008463 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008464 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8465 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8466 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8467 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8468 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008469 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008470)
8471
8472target_link_libraries(sockaddr_resolver_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008473 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008474 grpc_test_util
8475 grpc
8476 gpr_test_util
8477 gpr
8478)
8479
8480endif (gRPC_BUILD_TESTS)
8481if (gRPC_BUILD_TESTS)
8482
8483add_executable(sockaddr_utils_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008484 test/core/iomgr/sockaddr_utils_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008485)
8486
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008487
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008488target_include_directories(sockaddr_utils_test
8489 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8490 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008491 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008492 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8493 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8494 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8495 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8496 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008497 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008498)
8499
8500target_link_libraries(sockaddr_utils_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008501 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008502 grpc_test_util
8503 grpc
8504 gpr_test_util
8505 gpr
8506)
8507
8508endif (gRPC_BUILD_TESTS)
8509if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008510if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008511
8512add_executable(socket_utils_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008513 test/core/iomgr/socket_utils_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008514)
8515
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008516
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008517target_include_directories(socket_utils_test
8518 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8519 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008520 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008521 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8522 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8523 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8524 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8525 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008526 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008527)
8528
8529target_link_libraries(socket_utils_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008530 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008531 grpc_test_util
8532 grpc
8533 gpr_test_util
8534 gpr
8535)
8536
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008537endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008538endif (gRPC_BUILD_TESTS)
8539if (gRPC_BUILD_TESTS)
Yihua Zhang7fab9bf2017-08-22 12:32:43 -07008540if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
8541
8542add_executable(ssl_transport_security_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008543 test/core/tsi/ssl_transport_security_test.cc
8544 test/core/tsi/transport_security_test_lib.cc
Yihua Zhang7fab9bf2017-08-22 12:32:43 -07008545)
8546
8547
8548target_include_directories(ssl_transport_security_test
8549 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8550 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008551 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008552 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8553 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8554 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8555 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8556 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008557 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhang7fab9bf2017-08-22 12:32:43 -07008558)
8559
8560target_link_libraries(ssl_transport_security_test
8561 ${_gRPC_ALLTARGETS_LIBRARIES}
8562 gpr_test_util
8563 gpr
8564 grpc
8565)
8566
8567endif()
8568endif (gRPC_BUILD_TESTS)
8569if (gRPC_BUILD_TESTS)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008570
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008571add_executable(status_conversion_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008572 test/core/transport/status_conversion_test.cc
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008573)
8574
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008575
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008576target_include_directories(status_conversion_test
8577 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8578 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008579 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008580 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8581 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8582 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8583 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8584 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008585 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008586)
8587
8588target_link_libraries(status_conversion_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008589 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008590 grpc_test_util
8591 grpc
8592 gpr_test_util
8593 gpr
8594)
8595
8596endif (gRPC_BUILD_TESTS)
8597if (gRPC_BUILD_TESTS)
Craig Tiller295df6d2017-03-01 11:28:24 -08008598
Muxi Yanc1f837c2017-05-04 18:17:13 -07008599add_executable(stream_compression_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008600 test/core/compression/stream_compression_test.cc
Muxi Yanc1f837c2017-05-04 18:17:13 -07008601)
8602
8603
8604target_include_directories(stream_compression_test
8605 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8606 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008607 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008608 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8609 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8610 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8611 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8612 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008613 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Muxi Yanc1f837c2017-05-04 18:17:13 -07008614)
8615
8616target_link_libraries(stream_compression_test
8617 ${_gRPC_ALLTARGETS_LIBRARIES}
8618 grpc_test_util
8619 grpc
8620 gpr_test_util
8621 gpr
8622)
8623
8624endif (gRPC_BUILD_TESTS)
8625if (gRPC_BUILD_TESTS)
8626
Craig Tiller295df6d2017-03-01 11:28:24 -08008627add_executable(stream_owned_slice_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008628 test/core/transport/stream_owned_slice_test.cc
Craig Tiller295df6d2017-03-01 11:28:24 -08008629)
8630
8631
8632target_include_directories(stream_owned_slice_test
8633 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8634 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008635 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008636 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8637 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8638 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8639 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8640 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008641 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Craig Tiller295df6d2017-03-01 11:28:24 -08008642)
8643
8644target_link_libraries(stream_owned_slice_test
8645 ${_gRPC_ALLTARGETS_LIBRARIES}
8646 grpc_test_util
8647 grpc
8648 gpr_test_util
8649 gpr
8650)
8651
8652endif (gRPC_BUILD_TESTS)
8653if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008654if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008655
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008656add_executable(tcp_client_posix_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008657 test/core/iomgr/tcp_client_posix_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008658)
8659
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008660
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008661target_include_directories(tcp_client_posix_test
8662 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8663 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008664 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008665 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8666 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8667 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8668 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8669 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008670 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008671)
8672
8673target_link_libraries(tcp_client_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008674 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008675 grpc_test_util
8676 grpc
8677 gpr_test_util
8678 gpr
8679)
8680
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008681endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008682endif (gRPC_BUILD_TESTS)
8683if (gRPC_BUILD_TESTS)
8684
murgatroid991191b722017-02-08 11:56:52 -08008685add_executable(tcp_client_uv_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008686 test/core/iomgr/tcp_client_uv_test.cc
murgatroid991191b722017-02-08 11:56:52 -08008687)
8688
murgatroid9998cdf3b2017-02-23 14:59:45 -08008689
murgatroid991191b722017-02-08 11:56:52 -08008690target_include_directories(tcp_client_uv_test
8691 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8692 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008693 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008694 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8695 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8696 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8697 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8698 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008699 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
murgatroid991191b722017-02-08 11:56:52 -08008700)
8701
8702target_link_libraries(tcp_client_uv_test
murgatroid9998cdf3b2017-02-23 14:59:45 -08008703 ${_gRPC_ALLTARGETS_LIBRARIES}
murgatroid991191b722017-02-08 11:56:52 -08008704 grpc_test_util
8705 grpc
8706 gpr_test_util
8707 gpr
8708)
8709
8710endif (gRPC_BUILD_TESTS)
8711if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008712if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008713
8714add_executable(tcp_posix_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008715 test/core/iomgr/tcp_posix_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008716)
8717
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008718
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008719target_include_directories(tcp_posix_test
8720 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8721 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008722 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008723 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8724 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8725 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8726 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8727 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008728 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008729)
8730
8731target_link_libraries(tcp_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008732 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008733 grpc_test_util
8734 grpc
8735 gpr_test_util
8736 gpr
8737)
8738
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008739endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008740endif (gRPC_BUILD_TESTS)
8741if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008742if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008743
8744add_executable(tcp_server_posix_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008745 test/core/iomgr/tcp_server_posix_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008746)
8747
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008748
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008749target_include_directories(tcp_server_posix_test
8750 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8751 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008752 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008753 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8754 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8755 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8756 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8757 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008758 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008759)
8760
8761target_link_libraries(tcp_server_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008762 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008763 grpc_test_util
8764 grpc
8765 gpr_test_util
8766 gpr
8767)
8768
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008769endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008770endif (gRPC_BUILD_TESTS)
8771if (gRPC_BUILD_TESTS)
8772
murgatroid991191b722017-02-08 11:56:52 -08008773add_executable(tcp_server_uv_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008774 test/core/iomgr/tcp_server_uv_test.cc
murgatroid991191b722017-02-08 11:56:52 -08008775)
8776
murgatroid9998cdf3b2017-02-23 14:59:45 -08008777
murgatroid991191b722017-02-08 11:56:52 -08008778target_include_directories(tcp_server_uv_test
8779 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8780 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008781 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008782 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8783 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8784 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8785 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8786 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008787 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
murgatroid991191b722017-02-08 11:56:52 -08008788)
8789
8790target_link_libraries(tcp_server_uv_test
murgatroid9998cdf3b2017-02-23 14:59:45 -08008791 ${_gRPC_ALLTARGETS_LIBRARIES}
murgatroid991191b722017-02-08 11:56:52 -08008792 grpc_test_util
8793 grpc
8794 gpr_test_util
8795 gpr
8796)
8797
8798endif (gRPC_BUILD_TESTS)
8799if (gRPC_BUILD_TESTS)
8800
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008801add_executable(time_averaged_stats_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008802 test/core/iomgr/time_averaged_stats_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008803)
8804
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008805
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008806target_include_directories(time_averaged_stats_test
8807 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8808 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008809 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008810 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8811 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8812 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8813 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8814 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008815 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008816)
8817
8818target_link_libraries(time_averaged_stats_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008819 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008820 grpc_test_util
8821 grpc
8822 gpr_test_util
8823 gpr
8824)
8825
8826endif (gRPC_BUILD_TESTS)
8827if (gRPC_BUILD_TESTS)
8828
8829add_executable(timeout_encoding_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008830 test/core/transport/timeout_encoding_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008831)
8832
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008833
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008834target_include_directories(timeout_encoding_test
8835 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8836 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008837 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008838 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8839 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8840 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8841 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8842 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008843 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008844)
8845
8846target_link_libraries(timeout_encoding_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008847 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008848 grpc_test_util
8849 grpc
8850 gpr_test_util
8851 gpr
8852)
8853
8854endif (gRPC_BUILD_TESTS)
8855if (gRPC_BUILD_TESTS)
8856
8857add_executable(timer_heap_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008858 test/core/iomgr/timer_heap_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008859)
8860
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008861
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008862target_include_directories(timer_heap_test
8863 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8864 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008865 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008866 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8867 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8868 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8869 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8870 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008871 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008872)
8873
8874target_link_libraries(timer_heap_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008875 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008876 grpc_test_util
8877 grpc
8878 gpr_test_util
8879 gpr
8880)
8881
8882endif (gRPC_BUILD_TESTS)
8883if (gRPC_BUILD_TESTS)
8884
8885add_executable(timer_list_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008886 test/core/iomgr/timer_list_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008887)
8888
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008889
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008890target_include_directories(timer_list_test
8891 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8892 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008893 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008894 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8895 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8896 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8897 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8898 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008899 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008900)
8901
8902target_link_libraries(timer_list_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008903 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008904 grpc_test_util
8905 grpc
8906 gpr_test_util
8907 gpr
8908)
8909
8910endif (gRPC_BUILD_TESTS)
8911if (gRPC_BUILD_TESTS)
8912
8913add_executable(transport_connectivity_state_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008914 test/core/transport/connectivity_state_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008915)
8916
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008917
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008918target_include_directories(transport_connectivity_state_test
8919 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8920 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008921 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008922 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8923 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8924 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8925 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8926 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008927 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008928)
8929
8930target_link_libraries(transport_connectivity_state_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008931 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008932 grpc_test_util
8933 grpc
8934 gpr_test_util
8935 gpr
8936)
8937
8938endif (gRPC_BUILD_TESTS)
8939if (gRPC_BUILD_TESTS)
Craig Tiller48bed5e2017-10-16 15:42:41 -07008940
8941add_executable(transport_metadata_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008942 test/core/transport/metadata_test.cc
Craig Tiller48bed5e2017-10-16 15:42:41 -07008943)
8944
8945
8946target_include_directories(transport_metadata_test
8947 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8948 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008949 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008950 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8951 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8952 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8953 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8954 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008955 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Craig Tiller48bed5e2017-10-16 15:42:41 -07008956)
8957
8958target_link_libraries(transport_metadata_test
8959 ${_gRPC_ALLTARGETS_LIBRARIES}
8960 grpc_test_util
8961 grpc
8962 gpr_test_util
8963 gpr
8964)
8965
8966endif (gRPC_BUILD_TESTS)
8967if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008968if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008969
8970add_executable(transport_security_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07008971 test/core/tsi/transport_security_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008972)
8973
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008974
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008975target_include_directories(transport_security_test
8976 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8977 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01008978 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01008979 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
8980 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
8981 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
8982 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
8983 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08008984 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008985)
8986
8987target_link_libraries(transport_security_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008988 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008989 grpc_test_util
8990 grpc
8991 gpr_test_util
8992 gpr
8993)
8994
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008995endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008996endif (gRPC_BUILD_TESTS)
8997if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008998if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008999
9000add_executable(udp_server_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07009001 test/core/iomgr/udp_server_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009002)
9003
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009004
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009005target_include_directories(udp_server_test
9006 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9007 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01009008 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009009 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9010 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9011 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9012 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9013 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009014 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009015)
9016
9017target_link_libraries(udp_server_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009018 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009019 grpc_test_util
9020 grpc
9021 gpr_test_util
9022 gpr
9023)
9024
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009025endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009026endif (gRPC_BUILD_TESTS)
9027if (gRPC_BUILD_TESTS)
9028
9029add_executable(uri_parser_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07009030 test/core/client_channel/uri_parser_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009031)
9032
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009033
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009034target_include_directories(uri_parser_test
9035 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9036 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01009037 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009038 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9039 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9040 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9041 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9042 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009043 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009044)
9045
9046target_link_libraries(uri_parser_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009047 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009048 grpc_test_util
9049 grpc
9050 gpr_test_util
9051 gpr
9052)
9053
9054endif (gRPC_BUILD_TESTS)
9055if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009056if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009057
9058add_executable(wakeup_fd_cv_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -07009059 test/core/iomgr/wakeup_fd_cv_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009060)
9061
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009062
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009063target_include_directories(wakeup_fd_cv_test
9064 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9065 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01009066 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009067 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9068 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9069 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9070 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9071 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009072 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009073)
9074
9075target_link_libraries(wakeup_fd_cv_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009076 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009077 grpc_test_util
9078 grpc
9079 gpr_test_util
9080 gpr
9081)
9082
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009083endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009084endif (gRPC_BUILD_TESTS)
9085if (gRPC_BUILD_TESTS)
9086
Vijay Pai2b226ad2018-01-11 16:11:35 -08009087add_executable(alarm_test
9088 test/cpp/common/alarm_test.cc
Ken Payson975b5102017-03-30 17:38:40 -07009089 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009090 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009091)
9092
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009093
Vijay Pai2b226ad2018-01-11 16:11:35 -08009094target_include_directories(alarm_test
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009095 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9096 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01009097 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009098 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9099 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9100 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9101 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9102 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009103 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07009104 PRIVATE third_party/googletest/googletest/include
9105 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009106 PRIVATE third_party/googletest/googlemock/include
9107 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009108 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009109)
9110
Vijay Pai2b226ad2018-01-11 16:11:35 -08009111target_link_libraries(alarm_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009112 ${_gRPC_PROTOBUF_LIBRARIES}
9113 ${_gRPC_ALLTARGETS_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -07009114 grpc++_test_util_unsecure
9115 grpc_test_util_unsecure
9116 grpc++_unsecure
9117 grpc_unsecure
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009118 gpr_test_util
9119 gpr
9120 ${_gRPC_GFLAGS_LIBRARIES}
9121)
9122
9123endif (gRPC_BUILD_TESTS)
9124if (gRPC_BUILD_TESTS)
9125
Yihua Zhangeaf64862018-03-06 21:40:45 -08009126add_executable(alts_counter_test
9127 test/core/tsi/alts/frame_protector/alts_counter_test.cc
9128 third_party/googletest/googletest/src/gtest-all.cc
9129 third_party/googletest/googlemock/src/gmock-all.cc
9130)
9131
9132
9133target_include_directories(alts_counter_test
9134 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9135 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9136 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
9137 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9138 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9139 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9140 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9141 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009142 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -08009143 PRIVATE third_party/googletest/googletest/include
9144 PRIVATE third_party/googletest/googletest
9145 PRIVATE third_party/googletest/googlemock/include
9146 PRIVATE third_party/googletest/googlemock
9147 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9148)
9149
9150target_link_libraries(alts_counter_test
9151 ${_gRPC_PROTOBUF_LIBRARIES}
9152 ${_gRPC_ALLTARGETS_LIBRARIES}
9153 alts_test_util
9154 gpr
9155 grpc
9156 ${_gRPC_GFLAGS_LIBRARIES}
9157)
9158
9159endif (gRPC_BUILD_TESTS)
9160if (gRPC_BUILD_TESTS)
9161
9162add_executable(alts_crypt_test
9163 test/core/tsi/alts/crypt/aes_gcm_test.cc
9164 third_party/googletest/googletest/src/gtest-all.cc
9165 third_party/googletest/googlemock/src/gmock-all.cc
9166)
9167
9168
9169target_include_directories(alts_crypt_test
9170 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9171 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9172 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
9173 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9174 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9175 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9176 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9177 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009178 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -08009179 PRIVATE third_party/googletest/googletest/include
9180 PRIVATE third_party/googletest/googletest
9181 PRIVATE third_party/googletest/googlemock/include
9182 PRIVATE third_party/googletest/googlemock
9183 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9184)
9185
9186target_link_libraries(alts_crypt_test
9187 ${_gRPC_PROTOBUF_LIBRARIES}
9188 ${_gRPC_ALLTARGETS_LIBRARIES}
9189 alts_test_util
9190 gpr_test_util
9191 gpr
9192 grpc
9193 ${_gRPC_GFLAGS_LIBRARIES}
9194)
9195
9196endif (gRPC_BUILD_TESTS)
9197if (gRPC_BUILD_TESTS)
9198
9199add_executable(alts_crypter_test
9200 test/core/tsi/alts/frame_protector/alts_crypter_test.cc
9201 third_party/googletest/googletest/src/gtest-all.cc
9202 third_party/googletest/googlemock/src/gmock-all.cc
9203)
9204
9205
9206target_include_directories(alts_crypter_test
9207 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9208 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9209 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
9210 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9211 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9212 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9213 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9214 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009215 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -08009216 PRIVATE third_party/googletest/googletest/include
9217 PRIVATE third_party/googletest/googletest
9218 PRIVATE third_party/googletest/googlemock/include
9219 PRIVATE third_party/googletest/googlemock
9220 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9221)
9222
9223target_link_libraries(alts_crypter_test
9224 ${_gRPC_PROTOBUF_LIBRARIES}
9225 ${_gRPC_ALLTARGETS_LIBRARIES}
9226 alts_test_util
9227 gpr
9228 grpc
9229 ${_gRPC_GFLAGS_LIBRARIES}
9230)
9231
9232endif (gRPC_BUILD_TESTS)
9233if (gRPC_BUILD_TESTS)
9234
9235add_executable(alts_frame_handler_test
9236 test/core/tsi/alts/frame_protector/frame_handler_test.cc
9237 third_party/googletest/googletest/src/gtest-all.cc
9238 third_party/googletest/googlemock/src/gmock-all.cc
9239)
9240
9241
9242target_include_directories(alts_frame_handler_test
9243 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9244 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9245 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
9246 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9247 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9248 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9249 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9250 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009251 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -08009252 PRIVATE third_party/googletest/googletest/include
9253 PRIVATE third_party/googletest/googletest
9254 PRIVATE third_party/googletest/googlemock/include
9255 PRIVATE third_party/googletest/googlemock
9256 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9257)
9258
9259target_link_libraries(alts_frame_handler_test
9260 ${_gRPC_PROTOBUF_LIBRARIES}
9261 ${_gRPC_ALLTARGETS_LIBRARIES}
9262 alts_test_util
9263 gpr
9264 grpc
9265 ${_gRPC_GFLAGS_LIBRARIES}
9266)
9267
9268endif (gRPC_BUILD_TESTS)
9269if (gRPC_BUILD_TESTS)
9270
9271add_executable(alts_frame_protector_test
9272 test/core/tsi/alts/frame_protector/alts_frame_protector_test.cc
9273 test/core/tsi/transport_security_test_lib.cc
9274 third_party/googletest/googletest/src/gtest-all.cc
9275 third_party/googletest/googlemock/src/gmock-all.cc
9276)
9277
9278
9279target_include_directories(alts_frame_protector_test
9280 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9281 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9282 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
9283 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9284 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9285 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9286 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9287 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009288 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -08009289 PRIVATE third_party/googletest/googletest/include
9290 PRIVATE third_party/googletest/googletest
9291 PRIVATE third_party/googletest/googlemock/include
9292 PRIVATE third_party/googletest/googlemock
9293 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9294)
9295
9296target_link_libraries(alts_frame_protector_test
9297 ${_gRPC_PROTOBUF_LIBRARIES}
9298 ${_gRPC_ALLTARGETS_LIBRARIES}
9299 alts_test_util
9300 gpr
9301 grpc
9302 ${_gRPC_GFLAGS_LIBRARIES}
9303)
9304
9305endif (gRPC_BUILD_TESTS)
9306if (gRPC_BUILD_TESTS)
9307
9308add_executable(alts_grpc_record_protocol_test
9309 test/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_test.cc
9310 third_party/googletest/googletest/src/gtest-all.cc
9311 third_party/googletest/googlemock/src/gmock-all.cc
9312)
9313
9314
9315target_include_directories(alts_grpc_record_protocol_test
9316 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9317 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9318 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
9319 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9320 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9321 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9322 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9323 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009324 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -08009325 PRIVATE third_party/googletest/googletest/include
9326 PRIVATE third_party/googletest/googletest
9327 PRIVATE third_party/googletest/googlemock/include
9328 PRIVATE third_party/googletest/googlemock
9329 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9330)
9331
9332target_link_libraries(alts_grpc_record_protocol_test
9333 ${_gRPC_PROTOBUF_LIBRARIES}
9334 ${_gRPC_ALLTARGETS_LIBRARIES}
9335 alts_test_util
9336 gpr
9337 grpc
9338 ${_gRPC_GFLAGS_LIBRARIES}
9339)
9340
9341endif (gRPC_BUILD_TESTS)
9342if (gRPC_BUILD_TESTS)
9343
9344add_executable(alts_handshaker_client_test
9345 test/core/tsi/alts/handshaker/alts_handshaker_client_test.cc
9346 third_party/googletest/googletest/src/gtest-all.cc
9347 third_party/googletest/googlemock/src/gmock-all.cc
9348)
9349
9350
9351target_include_directories(alts_handshaker_client_test
9352 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9353 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9354 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
9355 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9356 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9357 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9358 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9359 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009360 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -08009361 PRIVATE third_party/googletest/googletest/include
9362 PRIVATE third_party/googletest/googletest
9363 PRIVATE third_party/googletest/googlemock/include
9364 PRIVATE third_party/googletest/googlemock
9365 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9366)
9367
9368target_link_libraries(alts_handshaker_client_test
9369 ${_gRPC_PROTOBUF_LIBRARIES}
9370 ${_gRPC_ALLTARGETS_LIBRARIES}
9371 alts_test_util
9372 gpr
9373 grpc
9374 ${_gRPC_GFLAGS_LIBRARIES}
9375)
9376
9377endif (gRPC_BUILD_TESTS)
9378if (gRPC_BUILD_TESTS)
9379
9380add_executable(alts_handshaker_service_api_test
9381 test/core/tsi/alts/handshaker/alts_handshaker_service_api_test.cc
9382 third_party/googletest/googletest/src/gtest-all.cc
9383 third_party/googletest/googlemock/src/gmock-all.cc
9384)
9385
9386
9387target_include_directories(alts_handshaker_service_api_test
9388 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9389 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9390 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
9391 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9392 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9393 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9394 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9395 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009396 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -08009397 PRIVATE third_party/googletest/googletest/include
9398 PRIVATE third_party/googletest/googletest
9399 PRIVATE third_party/googletest/googlemock/include
9400 PRIVATE third_party/googletest/googlemock
9401 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9402)
9403
9404target_link_libraries(alts_handshaker_service_api_test
9405 ${_gRPC_PROTOBUF_LIBRARIES}
9406 ${_gRPC_ALLTARGETS_LIBRARIES}
9407 alts_test_util
9408 gpr
9409 grpc
9410 ${_gRPC_GFLAGS_LIBRARIES}
9411)
9412
9413endif (gRPC_BUILD_TESTS)
9414if (gRPC_BUILD_TESTS)
9415
9416add_executable(alts_iovec_record_protocol_test
9417 test/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol_test.cc
9418 third_party/googletest/googletest/src/gtest-all.cc
9419 third_party/googletest/googlemock/src/gmock-all.cc
9420)
9421
9422
9423target_include_directories(alts_iovec_record_protocol_test
9424 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9425 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9426 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
9427 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9428 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9429 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9430 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9431 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009432 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -08009433 PRIVATE third_party/googletest/googletest/include
9434 PRIVATE third_party/googletest/googletest
9435 PRIVATE third_party/googletest/googlemock/include
9436 PRIVATE third_party/googletest/googlemock
9437 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9438)
9439
9440target_link_libraries(alts_iovec_record_protocol_test
9441 ${_gRPC_PROTOBUF_LIBRARIES}
9442 ${_gRPC_ALLTARGETS_LIBRARIES}
9443 alts_test_util
9444 gpr
9445 grpc
9446 ${_gRPC_GFLAGS_LIBRARIES}
9447)
9448
9449endif (gRPC_BUILD_TESTS)
9450if (gRPC_BUILD_TESTS)
9451
9452add_executable(alts_security_connector_test
9453 test/core/security/alts_security_connector_test.cc
9454 third_party/googletest/googletest/src/gtest-all.cc
9455 third_party/googletest/googlemock/src/gmock-all.cc
9456)
9457
9458
9459target_include_directories(alts_security_connector_test
9460 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9461 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9462 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
9463 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9464 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9465 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9466 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9467 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009468 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -08009469 PRIVATE third_party/googletest/googletest/include
9470 PRIVATE third_party/googletest/googletest
9471 PRIVATE third_party/googletest/googlemock/include
9472 PRIVATE third_party/googletest/googlemock
9473 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9474)
9475
9476target_link_libraries(alts_security_connector_test
9477 ${_gRPC_PROTOBUF_LIBRARIES}
9478 ${_gRPC_ALLTARGETS_LIBRARIES}
9479 gpr
9480 grpc
9481 ${_gRPC_GFLAGS_LIBRARIES}
9482)
9483
9484endif (gRPC_BUILD_TESTS)
9485if (gRPC_BUILD_TESTS)
9486
9487add_executable(alts_tsi_handshaker_test
9488 test/core/tsi/alts/handshaker/alts_tsi_handshaker_test.cc
9489 third_party/googletest/googletest/src/gtest-all.cc
9490 third_party/googletest/googlemock/src/gmock-all.cc
9491)
9492
9493
9494target_include_directories(alts_tsi_handshaker_test
9495 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9496 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9497 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
9498 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9499 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9500 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9501 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9502 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009503 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -08009504 PRIVATE third_party/googletest/googletest/include
9505 PRIVATE third_party/googletest/googletest
9506 PRIVATE third_party/googletest/googlemock/include
9507 PRIVATE third_party/googletest/googlemock
9508 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9509)
9510
9511target_link_libraries(alts_tsi_handshaker_test
9512 ${_gRPC_PROTOBUF_LIBRARIES}
9513 ${_gRPC_ALLTARGETS_LIBRARIES}
9514 alts_test_util
9515 gpr
9516 grpc
9517 ${_gRPC_GFLAGS_LIBRARIES}
9518)
9519
9520endif (gRPC_BUILD_TESTS)
9521if (gRPC_BUILD_TESTS)
9522
9523add_executable(alts_tsi_utils_test
9524 test/core/tsi/alts/handshaker/alts_tsi_utils_test.cc
9525 third_party/googletest/googletest/src/gtest-all.cc
9526 third_party/googletest/googlemock/src/gmock-all.cc
9527)
9528
9529
9530target_include_directories(alts_tsi_utils_test
9531 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9532 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9533 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
9534 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9535 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9536 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9537 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9538 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009539 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -08009540 PRIVATE third_party/googletest/googletest/include
9541 PRIVATE third_party/googletest/googletest
9542 PRIVATE third_party/googletest/googlemock/include
9543 PRIVATE third_party/googletest/googlemock
9544 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9545)
9546
9547target_link_libraries(alts_tsi_utils_test
9548 ${_gRPC_PROTOBUF_LIBRARIES}
9549 ${_gRPC_ALLTARGETS_LIBRARIES}
9550 alts_test_util
9551 gpr
9552 grpc
9553 ${_gRPC_GFLAGS_LIBRARIES}
9554)
9555
9556endif (gRPC_BUILD_TESTS)
9557if (gRPC_BUILD_TESTS)
9558
9559add_executable(alts_zero_copy_grpc_protector_test
9560 test/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector_test.cc
9561 third_party/googletest/googletest/src/gtest-all.cc
9562 third_party/googletest/googlemock/src/gmock-all.cc
9563)
9564
9565
9566target_include_directories(alts_zero_copy_grpc_protector_test
9567 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9568 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9569 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
9570 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9571 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9572 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9573 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9574 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009575 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -08009576 PRIVATE third_party/googletest/googletest/include
9577 PRIVATE third_party/googletest/googletest
9578 PRIVATE third_party/googletest/googlemock/include
9579 PRIVATE third_party/googletest/googlemock
9580 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9581)
9582
9583target_link_libraries(alts_zero_copy_grpc_protector_test
9584 ${_gRPC_PROTOBUF_LIBRARIES}
9585 ${_gRPC_ALLTARGETS_LIBRARIES}
9586 alts_test_util
9587 gpr
9588 grpc
9589 ${_gRPC_GFLAGS_LIBRARIES}
9590)
9591
9592endif (gRPC_BUILD_TESTS)
9593if (gRPC_BUILD_TESTS)
9594
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009595add_executable(async_end2end_test
9596 test/cpp/end2end/async_end2end_test.cc
Ken Payson975b5102017-03-30 17:38:40 -07009597 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009598 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009599)
9600
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009601
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009602target_include_directories(async_end2end_test
9603 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9604 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01009605 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009606 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9607 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9608 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9609 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9610 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009611 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07009612 PRIVATE third_party/googletest/googletest/include
9613 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009614 PRIVATE third_party/googletest/googlemock/include
9615 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009616 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009617)
9618
9619target_link_libraries(async_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009620 ${_gRPC_PROTOBUF_LIBRARIES}
9621 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009622 grpc++_test_util
9623 grpc_test_util
9624 grpc++
9625 grpc
9626 gpr_test_util
9627 gpr
9628 ${_gRPC_GFLAGS_LIBRARIES}
9629)
9630
9631endif (gRPC_BUILD_TESTS)
9632if (gRPC_BUILD_TESTS)
9633
9634add_executable(auth_property_iterator_test
9635 test/cpp/common/auth_property_iterator_test.cc
Ken Payson975b5102017-03-30 17:38:40 -07009636 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009637 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009638)
9639
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009640
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009641target_include_directories(auth_property_iterator_test
9642 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9643 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01009644 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009645 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9646 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9647 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9648 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9649 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009650 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07009651 PRIVATE third_party/googletest/googletest/include
9652 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009653 PRIVATE third_party/googletest/googlemock/include
9654 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009655 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009656)
9657
9658target_link_libraries(auth_property_iterator_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009659 ${_gRPC_PROTOBUF_LIBRARIES}
9660 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009661 grpc++_test_util
9662 grpc_test_util
9663 grpc++
9664 grpc
9665 gpr_test_util
9666 gpr
9667 ${_gRPC_GFLAGS_LIBRARIES}
9668)
9669
9670endif (gRPC_BUILD_TESTS)
9671if (gRPC_BUILD_TESTS)
Craig Tiller50ca35e2017-10-09 08:11:48 -07009672
David Garcia Quintas460b5e02017-12-04 16:12:16 -08009673add_executable(backoff_test
9674 test/core/backoff/backoff_test.cc
9675 third_party/googletest/googletest/src/gtest-all.cc
9676 third_party/googletest/googlemock/src/gmock-all.cc
9677)
9678
9679
9680target_include_directories(backoff_test
9681 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9682 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
David Garcia Quintas9c8ea032017-12-15 13:24:55 -08009683 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009684 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9685 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9686 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9687 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9688 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009689 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
David Garcia Quintas460b5e02017-12-04 16:12:16 -08009690 PRIVATE third_party/googletest/googletest/include
9691 PRIVATE third_party/googletest/googletest
9692 PRIVATE third_party/googletest/googlemock/include
9693 PRIVATE third_party/googletest/googlemock
9694 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9695)
9696
9697target_link_libraries(backoff_test
9698 ${_gRPC_PROTOBUF_LIBRARIES}
9699 ${_gRPC_ALLTARGETS_LIBRARIES}
9700 grpc_test_util
9701 grpc
9702 gpr_test_util
9703 gpr
9704 ${_gRPC_GFLAGS_LIBRARIES}
9705)
9706
9707endif (gRPC_BUILD_TESTS)
9708if (gRPC_BUILD_TESTS)
9709
Craig Tiller50ca35e2017-10-09 08:11:48 -07009710add_executable(bdp_estimator_test
9711 test/core/transport/bdp_estimator_test.cc
9712 third_party/googletest/googletest/src/gtest-all.cc
9713 third_party/googletest/googlemock/src/gmock-all.cc
9714)
9715
9716
9717target_include_directories(bdp_estimator_test
9718 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9719 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01009720 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009721 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9722 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9723 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9724 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9725 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009726 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Craig Tiller50ca35e2017-10-09 08:11:48 -07009727 PRIVATE third_party/googletest/googletest/include
9728 PRIVATE third_party/googletest/googletest
9729 PRIVATE third_party/googletest/googlemock/include
9730 PRIVATE third_party/googletest/googlemock
9731 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9732)
9733
9734target_link_libraries(bdp_estimator_test
9735 ${_gRPC_PROTOBUF_LIBRARIES}
9736 ${_gRPC_ALLTARGETS_LIBRARIES}
9737 grpc++_test_util
9738 grpc++
9739 grpc_test_util
9740 grpc
9741 gpr_test_util
9742 gpr
9743 ${_gRPC_GFLAGS_LIBRARIES}
9744)
9745
9746endif (gRPC_BUILD_TESTS)
9747if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009748if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009749
Craig Tiller9202b3f2017-03-12 22:30:38 -07009750add_executable(bm_arena
9751 test/cpp/microbenchmarks/bm_arena.cc
Ken Payson975b5102017-03-30 17:38:40 -07009752 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009753 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller9202b3f2017-03-12 22:30:38 -07009754)
9755
9756
9757target_include_directories(bm_arena
9758 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9759 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01009760 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009761 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9762 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9763 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9764 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9765 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009766 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07009767 PRIVATE third_party/googletest/googletest/include
9768 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009769 PRIVATE third_party/googletest/googlemock/include
9770 PRIVATE third_party/googletest/googlemock
Craig Tiller9202b3f2017-03-12 22:30:38 -07009771 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9772)
9773
9774target_link_libraries(bm_arena
9775 ${_gRPC_PROTOBUF_LIBRARIES}
9776 ${_gRPC_ALLTARGETS_LIBRARIES}
9777 grpc_benchmark
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009778 ${_gRPC_BENCHMARK_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -07009779 grpc++_test_util_unsecure
9780 grpc_test_util_unsecure
9781 grpc++_unsecure
9782 grpc_unsecure
Craig Tiller9202b3f2017-03-12 22:30:38 -07009783 gpr_test_util
9784 gpr
ncteisen40ec89f2018-04-25 12:00:28 -07009785 grpc++_test_config
Craig Tiller9202b3f2017-03-12 22:30:38 -07009786 ${_gRPC_GFLAGS_LIBRARIES}
9787)
9788
9789endif()
9790endif (gRPC_BUILD_TESTS)
9791if (gRPC_BUILD_TESTS)
9792if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9793
Craig Tillerfd044b82017-02-15 16:15:48 -08009794add_executable(bm_call_create
9795 test/cpp/microbenchmarks/bm_call_create.cc
Ken Payson975b5102017-03-30 17:38:40 -07009796 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009797 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tillerfd044b82017-02-15 16:15:48 -08009798)
9799
9800
9801target_include_directories(bm_call_create
9802 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9803 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01009804 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009805 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9806 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9807 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9808 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9809 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009810 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07009811 PRIVATE third_party/googletest/googletest/include
9812 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009813 PRIVATE third_party/googletest/googlemock/include
9814 PRIVATE third_party/googletest/googlemock
Craig Tillerfd044b82017-02-15 16:15:48 -08009815 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9816)
9817
9818target_link_libraries(bm_call_create
9819 ${_gRPC_PROTOBUF_LIBRARIES}
9820 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08009821 grpc_benchmark
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009822 ${_gRPC_BENCHMARK_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -07009823 grpc++_test_util_unsecure
9824 grpc_test_util_unsecure
9825 grpc++_unsecure
9826 grpc_unsecure
Craig Tillerfd044b82017-02-15 16:15:48 -08009827 gpr_test_util
9828 gpr
ncteisen40ec89f2018-04-25 12:00:28 -07009829 grpc++_test_config
Craig Tillerfd044b82017-02-15 16:15:48 -08009830 ${_gRPC_GFLAGS_LIBRARIES}
9831)
9832
9833endif()
9834endif (gRPC_BUILD_TESTS)
9835if (gRPC_BUILD_TESTS)
9836if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9837
Craig Tiller523d54b2017-02-23 08:52:38 -08009838add_executable(bm_chttp2_hpack
9839 test/cpp/microbenchmarks/bm_chttp2_hpack.cc
Ken Payson975b5102017-03-30 17:38:40 -07009840 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009841 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller2f792d92017-02-22 16:26:33 -08009842)
9843
9844
Craig Tiller523d54b2017-02-23 08:52:38 -08009845target_include_directories(bm_chttp2_hpack
Craig Tiller2f792d92017-02-22 16:26:33 -08009846 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9847 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01009848 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009849 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9850 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9851 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9852 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9853 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009854 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07009855 PRIVATE third_party/googletest/googletest/include
9856 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009857 PRIVATE third_party/googletest/googlemock/include
9858 PRIVATE third_party/googletest/googlemock
Craig Tiller2f792d92017-02-22 16:26:33 -08009859 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9860)
9861
Craig Tiller523d54b2017-02-23 08:52:38 -08009862target_link_libraries(bm_chttp2_hpack
Craig Tiller2f792d92017-02-22 16:26:33 -08009863 ${_gRPC_PROTOBUF_LIBRARIES}
9864 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08009865 grpc_benchmark
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009866 ${_gRPC_BENCHMARK_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -07009867 grpc++_test_util_unsecure
9868 grpc_test_util_unsecure
9869 grpc++_unsecure
9870 grpc_unsecure
Craig Tiller2f792d92017-02-22 16:26:33 -08009871 gpr_test_util
9872 gpr
ncteisen40ec89f2018-04-25 12:00:28 -07009873 grpc++_test_config
Craig Tiller2f792d92017-02-22 16:26:33 -08009874 ${_gRPC_GFLAGS_LIBRARIES}
9875)
9876
9877endif()
9878endif (gRPC_BUILD_TESTS)
9879if (gRPC_BUILD_TESTS)
9880if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9881
Craig Tiller18f09a02017-02-23 17:10:04 -08009882add_executable(bm_chttp2_transport
9883 test/cpp/microbenchmarks/bm_chttp2_transport.cc
Ken Payson975b5102017-03-30 17:38:40 -07009884 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009885 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller18f09a02017-02-23 17:10:04 -08009886)
9887
9888
9889target_include_directories(bm_chttp2_transport
9890 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9891 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01009892 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009893 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9894 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9895 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9896 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9897 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009898 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07009899 PRIVATE third_party/googletest/googletest/include
9900 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009901 PRIVATE third_party/googletest/googlemock/include
9902 PRIVATE third_party/googletest/googlemock
Craig Tiller18f09a02017-02-23 17:10:04 -08009903 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9904)
9905
9906target_link_libraries(bm_chttp2_transport
9907 ${_gRPC_PROTOBUF_LIBRARIES}
9908 ${_gRPC_ALLTARGETS_LIBRARIES}
9909 grpc_benchmark
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009910 ${_gRPC_BENCHMARK_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -07009911 grpc++_test_util_unsecure
9912 grpc_test_util_unsecure
9913 grpc++_unsecure
9914 grpc_unsecure
Craig Tiller18f09a02017-02-23 17:10:04 -08009915 gpr_test_util
9916 gpr
ncteisen40ec89f2018-04-25 12:00:28 -07009917 grpc++_test_config
Craig Tiller18f09a02017-02-23 17:10:04 -08009918 ${_gRPC_GFLAGS_LIBRARIES}
9919)
9920
9921endif()
9922endif (gRPC_BUILD_TESTS)
9923if (gRPC_BUILD_TESTS)
9924if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9925
Craig Tillerb3f34b62017-02-13 10:29:33 -08009926add_executable(bm_closure
9927 test/cpp/microbenchmarks/bm_closure.cc
Ken Payson975b5102017-03-30 17:38:40 -07009928 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009929 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tillerb3f34b62017-02-13 10:29:33 -08009930)
9931
9932
9933target_include_directories(bm_closure
9934 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9935 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01009936 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009937 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9938 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9939 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9940 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9941 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009942 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07009943 PRIVATE third_party/googletest/googletest/include
9944 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009945 PRIVATE third_party/googletest/googlemock/include
9946 PRIVATE third_party/googletest/googlemock
Craig Tillerb3f34b62017-02-13 10:29:33 -08009947 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9948)
9949
9950target_link_libraries(bm_closure
9951 ${_gRPC_PROTOBUF_LIBRARIES}
9952 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08009953 grpc_benchmark
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009954 ${_gRPC_BENCHMARK_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -07009955 grpc++_test_util_unsecure
9956 grpc_test_util_unsecure
9957 grpc++_unsecure
9958 grpc_unsecure
Craig Tillerb3f34b62017-02-13 10:29:33 -08009959 gpr_test_util
9960 gpr
ncteisen40ec89f2018-04-25 12:00:28 -07009961 grpc++_test_config
Craig Tillerb3f34b62017-02-13 10:29:33 -08009962 ${_gRPC_GFLAGS_LIBRARIES}
9963)
9964
9965endif()
9966endif (gRPC_BUILD_TESTS)
9967if (gRPC_BUILD_TESTS)
9968if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9969
Craig Tiller14ae5382017-02-14 12:43:50 -08009970add_executable(bm_cq
9971 test/cpp/microbenchmarks/bm_cq.cc
Ken Payson975b5102017-03-30 17:38:40 -07009972 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009973 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller14ae5382017-02-14 12:43:50 -08009974)
9975
9976
9977target_include_directories(bm_cq
9978 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9979 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +01009980 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009981 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
9982 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
9983 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
9984 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
9985 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -08009986 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -07009987 PRIVATE third_party/googletest/googletest/include
9988 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009989 PRIVATE third_party/googletest/googlemock/include
9990 PRIVATE third_party/googletest/googlemock
Craig Tiller14ae5382017-02-14 12:43:50 -08009991 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9992)
9993
9994target_link_libraries(bm_cq
9995 ${_gRPC_PROTOBUF_LIBRARIES}
9996 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08009997 grpc_benchmark
Jan Tattermusch41e58b42018-01-16 17:58:05 +01009998 ${_gRPC_BENCHMARK_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -07009999 grpc++_test_util_unsecure
10000 grpc_test_util_unsecure
10001 grpc++_unsecure
10002 grpc_unsecure
Craig Tiller14ae5382017-02-14 12:43:50 -080010003 gpr_test_util
10004 gpr
ncteisen40ec89f2018-04-25 12:00:28 -070010005 grpc++_test_config
Craig Tiller14ae5382017-02-14 12:43:50 -080010006 ${_gRPC_GFLAGS_LIBRARIES}
10007)
10008
10009endif()
10010endif (gRPC_BUILD_TESTS)
10011if (gRPC_BUILD_TESTS)
10012if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
10013
Sree Kuchibhotla3c754e42017-04-04 13:49:08 -070010014add_executable(bm_cq_multiple_threads
10015 test/cpp/microbenchmarks/bm_cq_multiple_threads.cc
Craig Tiller2d111bd2017-04-11 09:18:14 -070010016 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010017 third_party/googletest/googlemock/src/gmock-all.cc
Sree Kuchibhotla3c754e42017-04-04 13:49:08 -070010018)
10019
10020
10021target_include_directories(bm_cq_multiple_threads
10022 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10023 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010010024 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010025 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10026 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10027 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10028 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10029 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010030 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Craig Tiller2d111bd2017-04-11 09:18:14 -070010031 PRIVATE third_party/googletest/googletest/include
10032 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010033 PRIVATE third_party/googletest/googlemock/include
10034 PRIVATE third_party/googletest/googlemock
Sree Kuchibhotla3c754e42017-04-04 13:49:08 -070010035 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10036)
10037
10038target_link_libraries(bm_cq_multiple_threads
10039 ${_gRPC_PROTOBUF_LIBRARIES}
10040 ${_gRPC_ALLTARGETS_LIBRARIES}
10041 grpc_benchmark
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010042 ${_gRPC_BENCHMARK_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -070010043 grpc++_test_util_unsecure
10044 grpc_test_util_unsecure
10045 grpc++_unsecure
10046 grpc_unsecure
Sree Kuchibhotla3c754e42017-04-04 13:49:08 -070010047 gpr_test_util
10048 gpr
ncteisen40ec89f2018-04-25 12:00:28 -070010049 grpc++_test_config
Sree Kuchibhotla3c754e42017-04-04 13:49:08 -070010050 ${_gRPC_GFLAGS_LIBRARIES}
10051)
10052
10053endif()
10054endif (gRPC_BUILD_TESTS)
10055if (gRPC_BUILD_TESTS)
10056if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
10057
Craig Tiller264307f2017-02-16 09:07:45 -080010058add_executable(bm_error
10059 test/cpp/microbenchmarks/bm_error.cc
Ken Payson975b5102017-03-30 17:38:40 -070010060 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010061 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller264307f2017-02-16 09:07:45 -080010062)
10063
10064
10065target_include_directories(bm_error
10066 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10067 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010010068 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010069 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10070 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10071 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10072 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10073 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010074 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070010075 PRIVATE third_party/googletest/googletest/include
10076 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010077 PRIVATE third_party/googletest/googlemock/include
10078 PRIVATE third_party/googletest/googlemock
Craig Tiller264307f2017-02-16 09:07:45 -080010079 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10080)
10081
10082target_link_libraries(bm_error
10083 ${_gRPC_PROTOBUF_LIBRARIES}
10084 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -080010085 grpc_benchmark
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010086 ${_gRPC_BENCHMARK_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -070010087 grpc++_test_util_unsecure
10088 grpc_test_util_unsecure
10089 grpc++_unsecure
10090 grpc_unsecure
Craig Tiller264307f2017-02-16 09:07:45 -080010091 gpr_test_util
10092 gpr
ncteisen40ec89f2018-04-25 12:00:28 -070010093 grpc++_test_config
Craig Tiller264307f2017-02-16 09:07:45 -080010094 ${_gRPC_GFLAGS_LIBRARIES}
10095)
10096
10097endif()
10098endif (gRPC_BUILD_TESTS)
10099if (gRPC_BUILD_TESTS)
10100if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
10101
Craig Tiller12d22e42017-03-03 10:14:20 -080010102add_executable(bm_fullstack_streaming_ping_pong
10103 test/cpp/microbenchmarks/bm_fullstack_streaming_ping_pong.cc
Ken Payson975b5102017-03-30 17:38:40 -070010104 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010105 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010106)
10107
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010108
Craig Tiller12d22e42017-03-03 10:14:20 -080010109target_include_directories(bm_fullstack_streaming_ping_pong
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010110 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10111 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010010112 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010113 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10114 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10115 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10116 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10117 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010118 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070010119 PRIVATE third_party/googletest/googletest/include
10120 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010121 PRIVATE third_party/googletest/googlemock/include
10122 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010123 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010124)
10125
Craig Tiller12d22e42017-03-03 10:14:20 -080010126target_link_libraries(bm_fullstack_streaming_ping_pong
10127 ${_gRPC_PROTOBUF_LIBRARIES}
10128 ${_gRPC_ALLTARGETS_LIBRARIES}
10129 grpc_benchmark
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010130 ${_gRPC_BENCHMARK_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -070010131 grpc++_test_util_unsecure
10132 grpc_test_util_unsecure
10133 grpc++_unsecure
10134 grpc_unsecure
Craig Tiller12d22e42017-03-03 10:14:20 -080010135 gpr_test_util
10136 gpr
ncteisen40ec89f2018-04-25 12:00:28 -070010137 grpc++_test_config
Craig Tiller12d22e42017-03-03 10:14:20 -080010138 ${_gRPC_GFLAGS_LIBRARIES}
10139)
10140
10141endif()
10142endif (gRPC_BUILD_TESTS)
10143if (gRPC_BUILD_TESTS)
10144if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
10145
10146add_executable(bm_fullstack_streaming_pump
10147 test/cpp/microbenchmarks/bm_fullstack_streaming_pump.cc
Ken Payson975b5102017-03-30 17:38:40 -070010148 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010149 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller12d22e42017-03-03 10:14:20 -080010150)
10151
10152
10153target_include_directories(bm_fullstack_streaming_pump
10154 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10155 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010010156 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010157 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10158 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10159 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10160 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10161 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010162 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070010163 PRIVATE third_party/googletest/googletest/include
10164 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010165 PRIVATE third_party/googletest/googlemock/include
10166 PRIVATE third_party/googletest/googlemock
Craig Tiller12d22e42017-03-03 10:14:20 -080010167 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10168)
10169
10170target_link_libraries(bm_fullstack_streaming_pump
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010171 ${_gRPC_PROTOBUF_LIBRARIES}
10172 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -080010173 grpc_benchmark
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010174 ${_gRPC_BENCHMARK_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -070010175 grpc++_test_util_unsecure
10176 grpc_test_util_unsecure
10177 grpc++_unsecure
10178 grpc_unsecure
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010179 gpr_test_util
10180 gpr
ncteisen40ec89f2018-04-25 12:00:28 -070010181 grpc++_test_config
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010182 ${_gRPC_GFLAGS_LIBRARIES}
10183)
10184
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010185endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010186endif (gRPC_BUILD_TESTS)
10187if (gRPC_BUILD_TESTS)
Craig Tillerb8e2bca2017-02-16 16:26:51 -080010188if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
10189
Craig Tiller52bd4412017-03-03 10:52:22 -080010190add_executable(bm_fullstack_trickle
10191 test/cpp/microbenchmarks/bm_fullstack_trickle.cc
Ken Payson975b5102017-03-30 17:38:40 -070010192 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010193 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller52bd4412017-03-03 10:52:22 -080010194)
10195
10196
10197target_include_directories(bm_fullstack_trickle
10198 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10199 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010010200 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010201 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10202 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10203 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10204 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10205 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010206 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070010207 PRIVATE third_party/googletest/googletest/include
10208 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010209 PRIVATE third_party/googletest/googlemock/include
10210 PRIVATE third_party/googletest/googlemock
Craig Tiller52bd4412017-03-03 10:52:22 -080010211 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10212)
10213
10214target_link_libraries(bm_fullstack_trickle
10215 ${_gRPC_PROTOBUF_LIBRARIES}
10216 ${_gRPC_ALLTARGETS_LIBRARIES}
10217 grpc_benchmark
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010218 ${_gRPC_BENCHMARK_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -070010219 grpc++_test_util_unsecure
10220 grpc_test_util_unsecure
10221 grpc++_unsecure
10222 grpc_unsecure
Craig Tiller52bd4412017-03-03 10:52:22 -080010223 gpr_test_util
10224 gpr
ncteisenc302eb92017-08-18 12:27:34 -070010225 grpc++_test_config
Craig Tiller52bd4412017-03-03 10:52:22 -080010226 ${_gRPC_GFLAGS_LIBRARIES}
10227)
10228
10229endif()
10230endif (gRPC_BUILD_TESTS)
10231if (gRPC_BUILD_TESTS)
10232if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
10233
Craig Tiller62ac65b2017-03-03 09:57:43 -080010234add_executable(bm_fullstack_unary_ping_pong
10235 test/cpp/microbenchmarks/bm_fullstack_unary_ping_pong.cc
Ken Payson975b5102017-03-30 17:38:40 -070010236 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010237 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller62ac65b2017-03-03 09:57:43 -080010238)
10239
10240
10241target_include_directories(bm_fullstack_unary_ping_pong
10242 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10243 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010010244 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010245 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10246 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10247 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10248 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10249 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010250 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070010251 PRIVATE third_party/googletest/googletest/include
10252 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010253 PRIVATE third_party/googletest/googlemock/include
10254 PRIVATE third_party/googletest/googlemock
Craig Tiller62ac65b2017-03-03 09:57:43 -080010255 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10256)
10257
10258target_link_libraries(bm_fullstack_unary_ping_pong
10259 ${_gRPC_PROTOBUF_LIBRARIES}
10260 ${_gRPC_ALLTARGETS_LIBRARIES}
10261 grpc_benchmark
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010262 ${_gRPC_BENCHMARK_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -070010263 grpc++_test_util_unsecure
10264 grpc_test_util_unsecure
10265 grpc++_unsecure
10266 grpc_unsecure
Craig Tiller62ac65b2017-03-03 09:57:43 -080010267 gpr_test_util
10268 gpr
ncteisen40ec89f2018-04-25 12:00:28 -070010269 grpc++_test_config
Craig Tiller62ac65b2017-03-03 09:57:43 -080010270 ${_gRPC_GFLAGS_LIBRARIES}
10271)
10272
10273endif()
10274endif (gRPC_BUILD_TESTS)
10275if (gRPC_BUILD_TESTS)
10276if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
10277
Craig Tillerb8e2bca2017-02-16 16:26:51 -080010278add_executable(bm_metadata
10279 test/cpp/microbenchmarks/bm_metadata.cc
Ken Payson975b5102017-03-30 17:38:40 -070010280 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010281 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tillerb8e2bca2017-02-16 16:26:51 -080010282)
10283
10284
10285target_include_directories(bm_metadata
10286 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10287 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010010288 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010289 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10290 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10291 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10292 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10293 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010294 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070010295 PRIVATE third_party/googletest/googletest/include
10296 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010297 PRIVATE third_party/googletest/googlemock/include
10298 PRIVATE third_party/googletest/googlemock
Craig Tillerb8e2bca2017-02-16 16:26:51 -080010299 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10300)
10301
10302target_link_libraries(bm_metadata
10303 ${_gRPC_PROTOBUF_LIBRARIES}
10304 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -080010305 grpc_benchmark
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010306 ${_gRPC_BENCHMARK_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -070010307 grpc++_test_util_unsecure
10308 grpc_test_util_unsecure
10309 grpc++_unsecure
10310 grpc_unsecure
Craig Tillerb8e2bca2017-02-16 16:26:51 -080010311 gpr_test_util
10312 gpr
ncteisen40ec89f2018-04-25 12:00:28 -070010313 grpc++_test_config
Craig Tillerb8e2bca2017-02-16 16:26:51 -080010314 ${_gRPC_GFLAGS_LIBRARIES}
10315)
10316
10317endif()
10318endif (gRPC_BUILD_TESTS)
10319if (gRPC_BUILD_TESTS)
Craig Tiller1128d462017-03-03 16:46:54 -080010320if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
10321
10322add_executable(bm_pollset
10323 test/cpp/microbenchmarks/bm_pollset.cc
Ken Payson975b5102017-03-30 17:38:40 -070010324 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010325 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller1128d462017-03-03 16:46:54 -080010326)
10327
10328
10329target_include_directories(bm_pollset
10330 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10331 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010010332 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010333 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10334 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10335 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10336 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10337 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010338 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070010339 PRIVATE third_party/googletest/googletest/include
10340 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010341 PRIVATE third_party/googletest/googlemock/include
10342 PRIVATE third_party/googletest/googlemock
Craig Tiller1128d462017-03-03 16:46:54 -080010343 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10344)
10345
10346target_link_libraries(bm_pollset
10347 ${_gRPC_PROTOBUF_LIBRARIES}
10348 ${_gRPC_ALLTARGETS_LIBRARIES}
10349 grpc_benchmark
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010350 ${_gRPC_BENCHMARK_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -070010351 grpc++_test_util_unsecure
10352 grpc_test_util_unsecure
10353 grpc++_unsecure
10354 grpc_unsecure
Craig Tiller1128d462017-03-03 16:46:54 -080010355 gpr_test_util
10356 gpr
ncteisen40ec89f2018-04-25 12:00:28 -070010357 grpc++_test_config
Craig Tiller1128d462017-03-03 16:46:54 -080010358 ${_gRPC_GFLAGS_LIBRARIES}
10359)
10360
10361endif()
10362endif (gRPC_BUILD_TESTS)
10363if (gRPC_BUILD_TESTS)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010364
Mark D. Roth3d8b32d2018-03-09 13:25:40 -080010365add_executable(byte_stream_test
10366 test/core/transport/byte_stream_test.cc
10367 third_party/googletest/googletest/src/gtest-all.cc
10368 third_party/googletest/googlemock/src/gmock-all.cc
10369)
10370
10371
10372target_include_directories(byte_stream_test
10373 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10374 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10375 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
10376 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10377 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10378 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10379 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10380 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010381 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Mark D. Roth3d8b32d2018-03-09 13:25:40 -080010382 PRIVATE third_party/googletest/googletest/include
10383 PRIVATE third_party/googletest/googletest
10384 PRIVATE third_party/googletest/googlemock/include
10385 PRIVATE third_party/googletest/googlemock
10386 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10387)
10388
10389target_link_libraries(byte_stream_test
10390 ${_gRPC_PROTOBUF_LIBRARIES}
10391 ${_gRPC_ALLTARGETS_LIBRARIES}
10392 grpc_test_util
10393 grpc
10394 gpr_test_util
10395 gpr
10396 ${_gRPC_GFLAGS_LIBRARIES}
10397)
10398
10399endif (gRPC_BUILD_TESTS)
10400if (gRPC_BUILD_TESTS)
10401
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010402add_executable(channel_arguments_test
10403 test/cpp/common/channel_arguments_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070010404 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010405 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010406)
10407
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010408
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010409target_include_directories(channel_arguments_test
10410 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10411 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010010412 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010413 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10414 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10415 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10416 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10417 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010418 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070010419 PRIVATE third_party/googletest/googletest/include
10420 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010421 PRIVATE third_party/googletest/googlemock/include
10422 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010423 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010424)
10425
10426target_link_libraries(channel_arguments_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010427 ${_gRPC_PROTOBUF_LIBRARIES}
10428 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010429 grpc++
10430 grpc
10431 gpr
10432 ${_gRPC_GFLAGS_LIBRARIES}
10433)
10434
10435endif (gRPC_BUILD_TESTS)
10436if (gRPC_BUILD_TESTS)
10437
10438add_executable(channel_filter_test
10439 test/cpp/common/channel_filter_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070010440 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010441 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010442)
10443
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010444
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010445target_include_directories(channel_filter_test
10446 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10447 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010010448 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010449 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10450 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10451 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10452 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10453 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010454 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070010455 PRIVATE third_party/googletest/googletest/include
10456 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010457 PRIVATE third_party/googletest/googlemock/include
10458 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010459 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010460)
10461
10462target_link_libraries(channel_filter_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010463 ${_gRPC_PROTOBUF_LIBRARIES}
10464 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010465 grpc++
10466 grpc
10467 gpr
10468 ${_gRPC_GFLAGS_LIBRARIES}
10469)
10470
10471endif (gRPC_BUILD_TESTS)
10472if (gRPC_BUILD_TESTS)
10473
ncteisen3b42f832018-03-19 13:22:35 -070010474add_executable(channel_trace_test
10475 test/core/channel/channel_trace_test.cc
10476 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/channelz/channelz.pb.cc
10477 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/channelz/channelz.grpc.pb.cc
10478 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/channelz/channelz.pb.h
10479 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/channelz/channelz.grpc.pb.h
10480 third_party/googletest/googletest/src/gtest-all.cc
10481 third_party/googletest/googlemock/src/gmock-all.cc
10482)
10483
10484protobuf_generate_grpc_cpp(
10485 src/proto/grpc/channelz/channelz.proto
10486)
10487
10488target_include_directories(channel_trace_test
10489 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10490 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10491 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
10492 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10493 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10494 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10495 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10496 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
ncteisene71c1b82018-03-26 16:28:21 -070010497 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
ncteisen3b42f832018-03-19 13:22:35 -070010498 PRIVATE third_party/googletest/googletest/include
10499 PRIVATE third_party/googletest/googletest
10500 PRIVATE third_party/googletest/googlemock/include
10501 PRIVATE third_party/googletest/googlemock
10502 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10503)
10504
10505target_link_libraries(channel_trace_test
10506 ${_gRPC_PROTOBUF_LIBRARIES}
10507 ${_gRPC_ALLTARGETS_LIBRARIES}
10508 grpc_test_util
10509 grpc++_test_util
10510 grpc++
10511 grpc
10512 gpr_test_util
10513 gpr
10514 ${_gRPC_GFLAGS_LIBRARIES}
10515)
10516
10517endif (gRPC_BUILD_TESTS)
10518if (gRPC_BUILD_TESTS)
10519
ncteisen16b42ca2018-05-11 11:59:38 -040010520add_executable(channelz_registry_test
10521 test/core/channel/channelz_registry_test.cc
10522 third_party/googletest/googletest/src/gtest-all.cc
10523 third_party/googletest/googlemock/src/gmock-all.cc
10524)
10525
10526
10527target_include_directories(channelz_registry_test
10528 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10529 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10530 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
10531 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10532 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10533 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10534 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10535 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
10536 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
10537 PRIVATE third_party/googletest/googletest/include
10538 PRIVATE third_party/googletest/googletest
10539 PRIVATE third_party/googletest/googlemock/include
10540 PRIVATE third_party/googletest/googlemock
10541 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10542)
10543
10544target_link_libraries(channelz_registry_test
10545 ${_gRPC_PROTOBUF_LIBRARIES}
10546 ${_gRPC_ALLTARGETS_LIBRARIES}
10547 grpc_test_util
10548 grpc++_test_util
10549 grpc++
10550 grpc
10551 gpr_test_util
10552 gpr
10553 ${_gRPC_GFLAGS_LIBRARIES}
10554)
10555
10556endif (gRPC_BUILD_TESTS)
10557if (gRPC_BUILD_TESTS)
10558
Yihua Zhangeaf64862018-03-06 21:40:45 -080010559add_executable(check_gcp_environment_linux_test
10560 test/core/security/check_gcp_environment_linux_test.cc
10561 third_party/googletest/googletest/src/gtest-all.cc
10562 third_party/googletest/googlemock/src/gmock-all.cc
10563)
10564
10565
10566target_include_directories(check_gcp_environment_linux_test
10567 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10568 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10569 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
10570 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10571 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10572 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10573 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10574 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010575 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -080010576 PRIVATE third_party/googletest/googletest/include
10577 PRIVATE third_party/googletest/googletest
10578 PRIVATE third_party/googletest/googlemock/include
10579 PRIVATE third_party/googletest/googlemock
10580 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10581)
10582
10583target_link_libraries(check_gcp_environment_linux_test
10584 ${_gRPC_PROTOBUF_LIBRARIES}
10585 ${_gRPC_ALLTARGETS_LIBRARIES}
10586 grpc
10587 gpr
10588 ${_gRPC_GFLAGS_LIBRARIES}
10589)
10590
10591endif (gRPC_BUILD_TESTS)
10592if (gRPC_BUILD_TESTS)
10593
10594add_executable(check_gcp_environment_windows_test
10595 test/core/security/check_gcp_environment_windows_test.cc
10596 third_party/googletest/googletest/src/gtest-all.cc
10597 third_party/googletest/googlemock/src/gmock-all.cc
10598)
10599
10600
10601target_include_directories(check_gcp_environment_windows_test
10602 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10603 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10604 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
10605 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10606 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10607 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10608 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10609 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010610 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -080010611 PRIVATE third_party/googletest/googletest/include
10612 PRIVATE third_party/googletest/googletest
10613 PRIVATE third_party/googletest/googlemock/include
10614 PRIVATE third_party/googletest/googlemock
10615 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10616)
10617
10618target_link_libraries(check_gcp_environment_windows_test
10619 ${_gRPC_PROTOBUF_LIBRARIES}
10620 ${_gRPC_ALLTARGETS_LIBRARIES}
10621 grpc
10622 gpr
10623 ${_gRPC_GFLAGS_LIBRARIES}
10624)
10625
10626endif (gRPC_BUILD_TESTS)
10627if (gRPC_BUILD_TESTS)
10628
Mark D. Rothb9f34ac2017-11-21 15:47:12 -080010629add_executable(chttp2_settings_timeout_test
10630 test/core/transport/chttp2/settings_timeout_test.cc
10631 third_party/googletest/googletest/src/gtest-all.cc
10632 third_party/googletest/googlemock/src/gmock-all.cc
10633)
10634
10635
10636target_include_directories(chttp2_settings_timeout_test
10637 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10638 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010010639 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010640 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10641 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10642 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10643 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10644 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010645 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Mark D. Rothb9f34ac2017-11-21 15:47:12 -080010646 PRIVATE third_party/googletest/googletest/include
10647 PRIVATE third_party/googletest/googletest
10648 PRIVATE third_party/googletest/googlemock/include
10649 PRIVATE third_party/googletest/googlemock
10650 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10651)
10652
10653target_link_libraries(chttp2_settings_timeout_test
10654 ${_gRPC_PROTOBUF_LIBRARIES}
10655 ${_gRPC_ALLTARGETS_LIBRARIES}
10656 grpc_test_util
10657 grpc
10658 gpr_test_util
10659 gpr
10660 ${_gRPC_GFLAGS_LIBRARIES}
10661)
10662
10663endif (gRPC_BUILD_TESTS)
10664if (gRPC_BUILD_TESTS)
10665
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010666add_executable(cli_call_test
10667 test/cpp/util/cli_call_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070010668 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010669 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010670)
10671
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010672
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010673target_include_directories(cli_call_test
10674 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10675 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010010676 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010677 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10678 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10679 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10680 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10681 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010682 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070010683 PRIVATE third_party/googletest/googletest/include
10684 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010685 PRIVATE third_party/googletest/googlemock/include
10686 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010687 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010688)
10689
10690target_link_libraries(cli_call_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010691 ${_gRPC_PROTOBUF_LIBRARIES}
10692 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010693 grpc_cli_libs
10694 grpc++_test_util
10695 grpc_test_util
10696 grpc++
10697 grpc
10698 gpr_test_util
10699 gpr
10700 ${_gRPC_GFLAGS_LIBRARIES}
10701)
10702
10703endif (gRPC_BUILD_TESTS)
10704if (gRPC_BUILD_TESTS)
Juanli Shene5d21392017-11-14 16:07:23 -080010705
10706add_executable(client_channel_stress_test
10707 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.cc
10708 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.cc
10709 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.h
10710 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.h
10711 test/cpp/client/client_channel_stress_test.cc
10712 third_party/googletest/googletest/src/gtest-all.cc
10713 third_party/googletest/googlemock/src/gmock-all.cc
10714)
10715
10716protobuf_generate_grpc_cpp(
10717 src/proto/grpc/lb/v1/load_balancer.proto
10718)
10719
10720target_include_directories(client_channel_stress_test
10721 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10722 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010010723 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010724 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10725 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10726 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10727 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10728 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010729 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Juanli Shene5d21392017-11-14 16:07:23 -080010730 PRIVATE third_party/googletest/googletest/include
10731 PRIVATE third_party/googletest/googletest
10732 PRIVATE third_party/googletest/googlemock/include
10733 PRIVATE third_party/googletest/googlemock
10734 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10735)
10736
10737target_link_libraries(client_channel_stress_test
10738 ${_gRPC_PROTOBUF_LIBRARIES}
10739 ${_gRPC_ALLTARGETS_LIBRARIES}
10740 grpc++_test_util
10741 grpc_test_util
10742 grpc++
10743 grpc
10744 gpr_test_util
10745 gpr
10746 ${_gRPC_GFLAGS_LIBRARIES}
10747)
10748
10749endif (gRPC_BUILD_TESTS)
10750if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010751if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010752
10753add_executable(client_crash_test
10754 test/cpp/end2end/client_crash_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070010755 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010756 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010757)
10758
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010759
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010760target_include_directories(client_crash_test
10761 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10762 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010010763 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010764 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10765 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10766 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10767 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10768 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010769 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070010770 PRIVATE third_party/googletest/googletest/include
10771 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010772 PRIVATE third_party/googletest/googlemock/include
10773 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010774 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010775)
10776
10777target_link_libraries(client_crash_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010778 ${_gRPC_PROTOBUF_LIBRARIES}
10779 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010780 grpc++_test_util
10781 grpc_test_util
10782 grpc++
10783 grpc
10784 gpr_test_util
10785 gpr
10786 ${_gRPC_GFLAGS_LIBRARIES}
10787)
10788
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010789endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010790endif (gRPC_BUILD_TESTS)
10791if (gRPC_BUILD_TESTS)
10792
10793add_executable(client_crash_test_server
10794 test/cpp/end2end/client_crash_test_server.cc
Ken Payson975b5102017-03-30 17:38:40 -070010795 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010796 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010797)
10798
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010799
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010800target_include_directories(client_crash_test_server
10801 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10802 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010010803 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010804 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10805 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10806 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10807 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10808 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010809 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070010810 PRIVATE third_party/googletest/googletest/include
10811 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010812 PRIVATE third_party/googletest/googlemock/include
10813 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010814 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010815)
10816
10817target_link_libraries(client_crash_test_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010818 ${_gRPC_PROTOBUF_LIBRARIES}
10819 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010820 grpc++_test_util
10821 grpc_test_util
10822 grpc++
10823 grpc
10824 gpr_test_util
10825 gpr
10826 ${_gRPC_GFLAGS_LIBRARIES}
10827)
10828
10829endif (gRPC_BUILD_TESTS)
10830if (gRPC_BUILD_TESTS)
10831
David Garcia Quintas87d5a312017-06-06 19:45:58 -070010832add_executable(client_lb_end2end_test
10833 test/cpp/end2end/client_lb_end2end_test.cc
10834 third_party/googletest/googletest/src/gtest-all.cc
10835 third_party/googletest/googlemock/src/gmock-all.cc
10836)
10837
10838
10839target_include_directories(client_lb_end2end_test
10840 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10841 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010010842 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010843 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10844 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10845 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10846 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10847 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010848 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
David Garcia Quintas87d5a312017-06-06 19:45:58 -070010849 PRIVATE third_party/googletest/googletest/include
10850 PRIVATE third_party/googletest/googletest
10851 PRIVATE third_party/googletest/googlemock/include
10852 PRIVATE third_party/googletest/googlemock
10853 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10854)
10855
10856target_link_libraries(client_lb_end2end_test
10857 ${_gRPC_PROTOBUF_LIBRARIES}
10858 ${_gRPC_ALLTARGETS_LIBRARIES}
10859 grpc++_test_util
10860 grpc_test_util
10861 grpc++
10862 grpc
10863 gpr_test_util
10864 gpr
10865 ${_gRPC_GFLAGS_LIBRARIES}
10866)
10867
10868endif (gRPC_BUILD_TESTS)
10869if (gRPC_BUILD_TESTS)
10870
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010871add_executable(codegen_test_full
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010872 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.cc
10873 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.cc
10874 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.h
10875 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.h
10876 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
10877 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
10878 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
10879 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
10880 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.cc
10881 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.cc
10882 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.h
10883 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.h
kpayson647a20c962018-04-18 15:19:55 -070010884 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/benchmark_service.pb.cc
10885 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/benchmark_service.grpc.pb.cc
10886 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/benchmark_service.pb.h
10887 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/benchmark_service.grpc.pb.h
10888 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/report_qps_scenario_service.pb.cc
10889 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/report_qps_scenario_service.grpc.pb.cc
10890 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/report_qps_scenario_service.pb.h
10891 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/report_qps_scenario_service.grpc.pb.h
10892 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/worker_service.pb.cc
10893 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/worker_service.grpc.pb.cc
10894 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/worker_service.pb.h
10895 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/worker_service.grpc.pb.h
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010896 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.cc
10897 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.cc
10898 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.h
10899 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010900 test/cpp/codegen/codegen_test_full.cc
Ken Payson975b5102017-03-30 17:38:40 -070010901 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010902 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010903)
10904
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010905protobuf_generate_grpc_cpp(
10906 src/proto/grpc/testing/control.proto
10907)
10908protobuf_generate_grpc_cpp(
10909 src/proto/grpc/testing/messages.proto
10910)
10911protobuf_generate_grpc_cpp(
10912 src/proto/grpc/testing/payloads.proto
10913)
10914protobuf_generate_grpc_cpp(
kpayson647a20c962018-04-18 15:19:55 -070010915 src/proto/grpc/testing/benchmark_service.proto
10916)
10917protobuf_generate_grpc_cpp(
10918 src/proto/grpc/testing/report_qps_scenario_service.proto
10919)
10920protobuf_generate_grpc_cpp(
10921 src/proto/grpc/testing/worker_service.proto
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010922)
10923protobuf_generate_grpc_cpp(
10924 src/proto/grpc/testing/stats.proto
10925)
10926
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010927target_include_directories(codegen_test_full
10928 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10929 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010010930 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010010931 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
10932 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
10933 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
10934 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
10935 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080010936 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070010937 PRIVATE third_party/googletest/googletest/include
10938 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010939 PRIVATE third_party/googletest/googlemock/include
10940 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010941 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010942)
10943
10944target_link_libraries(codegen_test_full
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010945 ${_gRPC_PROTOBUF_LIBRARIES}
10946 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller28972352017-08-31 15:52:57 -070010947 grpc++_core_stats
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010948 grpc++
10949 grpc
10950 gpr
10951 ${_gRPC_GFLAGS_LIBRARIES}
10952)
10953
10954endif (gRPC_BUILD_TESTS)
10955if (gRPC_BUILD_TESTS)
10956
10957add_executable(codegen_test_minimal
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010958 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.cc
10959 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.cc
10960 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.h
10961 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.h
10962 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
10963 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
10964 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
10965 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
10966 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.cc
10967 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.cc
10968 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.h
10969 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.h
kpayson647a20c962018-04-18 15:19:55 -070010970 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/benchmark_service.pb.cc
10971 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/benchmark_service.grpc.pb.cc
10972 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/benchmark_service.pb.h
10973 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/benchmark_service.grpc.pb.h
10974 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/report_qps_scenario_service.pb.cc
10975 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/report_qps_scenario_service.grpc.pb.cc
10976 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/report_qps_scenario_service.pb.h
10977 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/report_qps_scenario_service.grpc.pb.h
10978 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/worker_service.pb.cc
10979 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/worker_service.grpc.pb.cc
10980 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/worker_service.pb.h
10981 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/worker_service.grpc.pb.h
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010982 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.cc
10983 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.cc
10984 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.h
10985 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010986 test/cpp/codegen/codegen_test_minimal.cc
10987 src/cpp/codegen/codegen_init.cc
Ken Payson975b5102017-03-30 17:38:40 -070010988 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010989 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010990)
10991
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010992protobuf_generate_grpc_cpp(
10993 src/proto/grpc/testing/control.proto
10994)
10995protobuf_generate_grpc_cpp(
10996 src/proto/grpc/testing/messages.proto
10997)
10998protobuf_generate_grpc_cpp(
10999 src/proto/grpc/testing/payloads.proto
11000)
11001protobuf_generate_grpc_cpp(
kpayson647a20c962018-04-18 15:19:55 -070011002 src/proto/grpc/testing/benchmark_service.proto
11003)
11004protobuf_generate_grpc_cpp(
11005 src/proto/grpc/testing/report_qps_scenario_service.proto
11006)
11007protobuf_generate_grpc_cpp(
11008 src/proto/grpc/testing/worker_service.proto
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011009)
11010protobuf_generate_grpc_cpp(
11011 src/proto/grpc/testing/stats.proto
11012)
11013
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011014target_include_directories(codegen_test_minimal
11015 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11016 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011017 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011018 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11019 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11020 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11021 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11022 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011023 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070011024 PRIVATE third_party/googletest/googletest/include
11025 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011026 PRIVATE third_party/googletest/googlemock/include
11027 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011028 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011029)
11030
11031target_link_libraries(codegen_test_minimal
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011032 ${_gRPC_PROTOBUF_LIBRARIES}
11033 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller28972352017-08-31 15:52:57 -070011034 grpc++_core_stats
Vijay Paic0e67012017-03-17 20:00:55 -070011035 grpc
11036 gpr
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011037 ${_gRPC_GFLAGS_LIBRARIES}
11038)
11039
11040endif (gRPC_BUILD_TESTS)
11041if (gRPC_BUILD_TESTS)
11042
11043add_executable(credentials_test
11044 test/cpp/client/credentials_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011045 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011046 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011047)
11048
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011049
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011050target_include_directories(credentials_test
11051 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11052 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011053 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011054 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11055 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11056 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11057 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11058 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011059 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070011060 PRIVATE third_party/googletest/googletest/include
11061 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011062 PRIVATE third_party/googletest/googlemock/include
11063 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011064 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011065)
11066
11067target_link_libraries(credentials_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011068 ${_gRPC_PROTOBUF_LIBRARIES}
11069 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011070 grpc++
11071 grpc
11072 gpr
11073 ${_gRPC_GFLAGS_LIBRARIES}
11074)
11075
11076endif (gRPC_BUILD_TESTS)
11077if (gRPC_BUILD_TESTS)
11078
11079add_executable(cxx_byte_buffer_test
11080 test/cpp/util/byte_buffer_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011081 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011082 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011083)
11084
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011085
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011086target_include_directories(cxx_byte_buffer_test
11087 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11088 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011089 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011090 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11091 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11092 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11093 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11094 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011095 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070011096 PRIVATE third_party/googletest/googletest/include
11097 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011098 PRIVATE third_party/googletest/googlemock/include
11099 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011100 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011101)
11102
11103target_link_libraries(cxx_byte_buffer_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011104 ${_gRPC_PROTOBUF_LIBRARIES}
11105 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011106 grpc_test_util
11107 grpc++
11108 grpc
11109 gpr_test_util
11110 gpr
11111 ${_gRPC_GFLAGS_LIBRARIES}
11112)
11113
11114endif (gRPC_BUILD_TESTS)
11115if (gRPC_BUILD_TESTS)
11116
11117add_executable(cxx_slice_test
11118 test/cpp/util/slice_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011119 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011120 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011121)
11122
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011123
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011124target_include_directories(cxx_slice_test
11125 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11126 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011127 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011128 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11129 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11130 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11131 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11132 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011133 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070011134 PRIVATE third_party/googletest/googletest/include
11135 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011136 PRIVATE third_party/googletest/googlemock/include
11137 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011138 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011139)
11140
11141target_link_libraries(cxx_slice_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011142 ${_gRPC_PROTOBUF_LIBRARIES}
11143 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011144 grpc_test_util
11145 grpc++
11146 grpc
11147 gpr_test_util
11148 gpr
11149 ${_gRPC_GFLAGS_LIBRARIES}
11150)
11151
11152endif (gRPC_BUILD_TESTS)
11153if (gRPC_BUILD_TESTS)
11154
11155add_executable(cxx_string_ref_test
11156 test/cpp/util/string_ref_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011157 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011158 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011159)
11160
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011161
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011162target_include_directories(cxx_string_ref_test
11163 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11164 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011165 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011166 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11167 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11168 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11169 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11170 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011171 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070011172 PRIVATE third_party/googletest/googletest/include
11173 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011174 PRIVATE third_party/googletest/googlemock/include
11175 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011176 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011177)
11178
11179target_link_libraries(cxx_string_ref_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011180 ${_gRPC_PROTOBUF_LIBRARIES}
11181 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011182 grpc++
Jan Tattermuschb77a20b2017-05-18 16:45:07 +020011183 grpc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011184 ${_gRPC_GFLAGS_LIBRARIES}
11185)
11186
11187endif (gRPC_BUILD_TESTS)
11188if (gRPC_BUILD_TESTS)
11189
11190add_executable(cxx_time_test
11191 test/cpp/util/time_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011192 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011193 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011194)
11195
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011196
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011197target_include_directories(cxx_time_test
11198 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11199 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011200 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011201 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11202 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11203 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11204 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11205 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011206 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070011207 PRIVATE third_party/googletest/googletest/include
11208 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011209 PRIVATE third_party/googletest/googlemock/include
11210 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011211 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011212)
11213
11214target_link_libraries(cxx_time_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011215 ${_gRPC_PROTOBUF_LIBRARIES}
11216 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011217 grpc_test_util
11218 grpc++
11219 grpc
11220 gpr_test_util
11221 gpr
11222 ${_gRPC_GFLAGS_LIBRARIES}
11223)
11224
11225endif (gRPC_BUILD_TESTS)
11226if (gRPC_BUILD_TESTS)
11227
11228add_executable(end2end_test
11229 test/cpp/end2end/end2end_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011230 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011231 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011232)
11233
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011234
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011235target_include_directories(end2end_test
11236 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11237 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011238 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011239 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11240 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11241 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11242 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11243 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011244 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070011245 PRIVATE third_party/googletest/googletest/include
11246 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011247 PRIVATE third_party/googletest/googlemock/include
11248 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011249 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011250)
11251
11252target_link_libraries(end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011253 ${_gRPC_PROTOBUF_LIBRARIES}
11254 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011255 grpc++_test_util
11256 grpc_test_util
11257 grpc++
11258 grpc
11259 gpr_test_util
11260 gpr
11261 ${_gRPC_GFLAGS_LIBRARIES}
11262)
11263
11264endif (gRPC_BUILD_TESTS)
11265if (gRPC_BUILD_TESTS)
11266
yang-geceec8e2017-04-10 11:58:44 -070011267add_executable(error_details_test
11268 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc
11269 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc
11270 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h
11271 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h
11272 test/cpp/util/error_details_test.cc
11273 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011274 third_party/googletest/googlemock/src/gmock-all.cc
yang-geceec8e2017-04-10 11:58:44 -070011275)
11276
11277protobuf_generate_grpc_cpp(
11278 src/proto/grpc/testing/echo_messages.proto
11279)
11280
11281target_include_directories(error_details_test
11282 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11283 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011284 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011285 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11286 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11287 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11288 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11289 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011290 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
yang-geceec8e2017-04-10 11:58:44 -070011291 PRIVATE third_party/googletest/googletest/include
11292 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011293 PRIVATE third_party/googletest/googlemock/include
11294 PRIVATE third_party/googletest/googlemock
yang-geceec8e2017-04-10 11:58:44 -070011295 PRIVATE ${_gRPC_PROTO_GENS_DIR}
11296)
11297
11298target_link_libraries(error_details_test
11299 ${_gRPC_PROTOBUF_LIBRARIES}
11300 ${_gRPC_ALLTARGETS_LIBRARIES}
11301 grpc++_error_details
11302 grpc++
11303 ${_gRPC_GFLAGS_LIBRARIES}
11304)
11305
11306endif (gRPC_BUILD_TESTS)
11307if (gRPC_BUILD_TESTS)
11308
Vijay Pai8fc37152017-12-18 14:33:51 -080011309add_executable(exception_test
11310 test/cpp/end2end/exception_test.cc
11311 third_party/googletest/googletest/src/gtest-all.cc
11312 third_party/googletest/googlemock/src/gmock-all.cc
11313)
11314
11315
11316target_include_directories(exception_test
11317 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11318 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11319 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011320 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11321 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11322 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11323 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11324 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011325 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Vijay Pai8fc37152017-12-18 14:33:51 -080011326 PRIVATE third_party/googletest/googletest/include
11327 PRIVATE third_party/googletest/googletest
11328 PRIVATE third_party/googletest/googlemock/include
11329 PRIVATE third_party/googletest/googlemock
11330 PRIVATE ${_gRPC_PROTO_GENS_DIR}
11331)
11332
11333target_link_libraries(exception_test
11334 ${_gRPC_PROTOBUF_LIBRARIES}
11335 ${_gRPC_ALLTARGETS_LIBRARIES}
11336 grpc++_test_util
11337 grpc_test_util
11338 grpc++
11339 grpc
11340 gpr_test_util
11341 gpr
11342 ${_gRPC_GFLAGS_LIBRARIES}
11343)
11344
11345endif (gRPC_BUILD_TESTS)
11346if (gRPC_BUILD_TESTS)
11347
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011348add_executable(filter_end2end_test
11349 test/cpp/end2end/filter_end2end_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011350 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011351 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011352)
11353
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011354
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011355target_include_directories(filter_end2end_test
11356 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11357 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011358 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011359 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11360 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11361 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11362 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11363 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011364 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070011365 PRIVATE third_party/googletest/googletest/include
11366 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011367 PRIVATE third_party/googletest/googlemock/include
11368 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011369 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011370)
11371
11372target_link_libraries(filter_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011373 ${_gRPC_PROTOBUF_LIBRARIES}
11374 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011375 grpc++_test_util
11376 grpc_test_util
11377 grpc++
11378 grpc
11379 gpr_test_util
11380 gpr
11381 ${_gRPC_GFLAGS_LIBRARIES}
11382)
11383
11384endif (gRPC_BUILD_TESTS)
11385if (gRPC_BUILD_TESTS)
11386
11387add_executable(generic_end2end_test
11388 test/cpp/end2end/generic_end2end_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011389 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011390 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011391)
11392
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011393
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011394target_include_directories(generic_end2end_test
11395 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11396 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011397 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011398 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11399 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11400 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11401 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11402 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011403 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070011404 PRIVATE third_party/googletest/googletest/include
11405 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011406 PRIVATE third_party/googletest/googlemock/include
11407 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011408 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011409)
11410
11411target_link_libraries(generic_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011412 ${_gRPC_PROTOBUF_LIBRARIES}
11413 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011414 grpc++_test_util
11415 grpc_test_util
11416 grpc++
11417 grpc
11418 gpr_test_util
11419 gpr
11420 ${_gRPC_GFLAGS_LIBRARIES}
11421)
11422
11423endif (gRPC_BUILD_TESTS)
11424if (gRPC_BUILD_TESTS)
11425
11426add_executable(golden_file_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011427 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.pb.cc
11428 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.grpc.pb.cc
11429 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.pb.h
11430 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011431 test/cpp/codegen/golden_file_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011432 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011433 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011434)
11435
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011436protobuf_generate_grpc_cpp(
11437 src/proto/grpc/testing/compiler_test.proto
11438)
11439
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011440target_include_directories(golden_file_test
11441 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11442 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011443 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011444 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11445 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11446 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11447 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11448 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011449 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070011450 PRIVATE third_party/googletest/googletest/include
11451 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011452 PRIVATE third_party/googletest/googlemock/include
11453 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011454 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011455)
11456
11457target_link_libraries(golden_file_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011458 ${_gRPC_PROTOBUF_LIBRARIES}
11459 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011460 grpc++
11461 grpc
11462 gpr
11463 ${_gRPC_GFLAGS_LIBRARIES}
11464)
11465
11466endif (gRPC_BUILD_TESTS)
11467if (gRPC_BUILD_TESTS)
11468
Yihua Zhangeaf64862018-03-06 21:40:45 -080011469add_executable(grpc_alts_credentials_options_test
11470 test/core/security/grpc_alts_credentials_options_test.cc
11471 third_party/googletest/googletest/src/gtest-all.cc
11472 third_party/googletest/googlemock/src/gmock-all.cc
11473)
11474
11475
11476target_include_directories(grpc_alts_credentials_options_test
11477 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11478 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11479 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
11480 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11481 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11482 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11483 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11484 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011485 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -080011486 PRIVATE third_party/googletest/googletest/include
11487 PRIVATE third_party/googletest/googletest
11488 PRIVATE third_party/googletest/googlemock/include
11489 PRIVATE third_party/googletest/googlemock
11490 PRIVATE ${_gRPC_PROTO_GENS_DIR}
11491)
11492
11493target_link_libraries(grpc_alts_credentials_options_test
11494 ${_gRPC_PROTOBUF_LIBRARIES}
11495 ${_gRPC_ALLTARGETS_LIBRARIES}
11496 grpc
11497 gpr
11498 ${_gRPC_GFLAGS_LIBRARIES}
11499)
11500
11501endif (gRPC_BUILD_TESTS)
11502if (gRPC_BUILD_TESTS)
11503
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011504add_executable(grpc_cli
11505 test/cpp/util/grpc_cli.cc
Ken Payson975b5102017-03-30 17:38:40 -070011506 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011507 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011508)
11509
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011510
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011511target_include_directories(grpc_cli
11512 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11513 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011514 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011515 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11516 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11517 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11518 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11519 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011520 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070011521 PRIVATE third_party/googletest/googletest/include
11522 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011523 PRIVATE third_party/googletest/googlemock/include
11524 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011525 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011526)
11527
11528target_link_libraries(grpc_cli
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011529 ${_gRPC_PROTOBUF_LIBRARIES}
11530 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011531 grpc_cli_libs
11532 grpc++_proto_reflection_desc_db
11533 grpc++
11534 grpc
11535 gpr
11536 grpc++_test_config
11537 ${_gRPC_GFLAGS_LIBRARIES}
11538)
11539
11540endif (gRPC_BUILD_TESTS)
Eric Gribkoffa32a4c52018-01-25 13:16:41 -080011541if (gRPC_BUILD_CODEGEN)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030011542
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011543add_executable(grpc_cpp_plugin
11544 src/compiler/cpp_plugin.cc
11545)
11546
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011547
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011548target_include_directories(grpc_cpp_plugin
11549 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11550 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011551 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011552 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11553 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11554 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11555 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11556 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011557 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011558 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011559)
11560
11561target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030011562 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011563 ${_gRPC_PROTOBUF_LIBRARIES}
11564 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011565 grpc_plugin_support
11566)
11567
11568
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030011569if (gRPC_INSTALL)
11570 install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +020011571 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
11572 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
11573 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030011574 )
11575endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030011576
Eric Gribkoffa32a4c52018-01-25 13:16:41 -080011577endif (gRPC_BUILD_CODEGEN)
11578if (gRPC_BUILD_CODEGEN)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030011579
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011580add_executable(grpc_csharp_plugin
11581 src/compiler/csharp_plugin.cc
11582)
11583
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011584
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011585target_include_directories(grpc_csharp_plugin
11586 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11587 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011588 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011589 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11590 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11591 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11592 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11593 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011594 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011595 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011596)
11597
11598target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030011599 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011600 ${_gRPC_PROTOBUF_LIBRARIES}
11601 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011602 grpc_plugin_support
11603)
11604
11605
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030011606if (gRPC_INSTALL)
11607 install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +020011608 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
11609 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
11610 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030011611 )
11612endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030011613
Eric Gribkoffa32a4c52018-01-25 13:16:41 -080011614endif (gRPC_BUILD_CODEGEN)
11615if (gRPC_BUILD_CODEGEN)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030011616
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011617add_executable(grpc_node_plugin
11618 src/compiler/node_plugin.cc
11619)
11620
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011621
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011622target_include_directories(grpc_node_plugin
11623 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11624 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011625 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011626 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11627 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11628 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11629 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11630 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011631 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011632 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011633)
11634
11635target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030011636 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011637 ${_gRPC_PROTOBUF_LIBRARIES}
11638 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011639 grpc_plugin_support
11640)
11641
11642
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030011643if (gRPC_INSTALL)
11644 install(TARGETS grpc_node_plugin EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +020011645 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
11646 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
11647 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030011648 )
11649endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030011650
Eric Gribkoffa32a4c52018-01-25 13:16:41 -080011651endif (gRPC_BUILD_CODEGEN)
11652if (gRPC_BUILD_CODEGEN)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030011653
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011654add_executable(grpc_objective_c_plugin
11655 src/compiler/objective_c_plugin.cc
11656)
11657
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011658
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011659target_include_directories(grpc_objective_c_plugin
11660 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11661 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011662 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011663 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11664 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11665 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11666 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11667 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011668 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011669 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011670)
11671
11672target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030011673 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011674 ${_gRPC_PROTOBUF_LIBRARIES}
11675 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011676 grpc_plugin_support
11677)
11678
11679
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030011680if (gRPC_INSTALL)
11681 install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +020011682 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
11683 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
11684 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030011685 )
11686endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030011687
Eric Gribkoffa32a4c52018-01-25 13:16:41 -080011688endif (gRPC_BUILD_CODEGEN)
11689if (gRPC_BUILD_CODEGEN)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030011690
Stanley Cheung857a1302016-09-29 17:26:29 -070011691add_executable(grpc_php_plugin
11692 src/compiler/php_plugin.cc
11693)
11694
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011695
Stanley Cheung857a1302016-09-29 17:26:29 -070011696target_include_directories(grpc_php_plugin
11697 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11698 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011699 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011700 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11701 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11702 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11703 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11704 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011705 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011706 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Stanley Cheung857a1302016-09-29 17:26:29 -070011707)
11708
11709target_link_libraries(grpc_php_plugin
11710 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011711 ${_gRPC_PROTOBUF_LIBRARIES}
11712 ${_gRPC_ALLTARGETS_LIBRARIES}
Stanley Cheung857a1302016-09-29 17:26:29 -070011713 grpc_plugin_support
11714)
11715
11716
11717if (gRPC_INSTALL)
11718 install(TARGETS grpc_php_plugin EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +020011719 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
11720 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
11721 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Stanley Cheung857a1302016-09-29 17:26:29 -070011722 )
11723endif()
11724
Eric Gribkoffa32a4c52018-01-25 13:16:41 -080011725endif (gRPC_BUILD_CODEGEN)
11726if (gRPC_BUILD_CODEGEN)
Stanley Cheung857a1302016-09-29 17:26:29 -070011727
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011728add_executable(grpc_python_plugin
11729 src/compiler/python_plugin.cc
11730)
11731
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011732
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011733target_include_directories(grpc_python_plugin
11734 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11735 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011736 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011737 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11738 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11739 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11740 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11741 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011742 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011743 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011744)
11745
11746target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030011747 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011748 ${_gRPC_PROTOBUF_LIBRARIES}
11749 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011750 grpc_plugin_support
11751)
11752
11753
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030011754if (gRPC_INSTALL)
11755 install(TARGETS grpc_python_plugin EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +020011756 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
11757 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
11758 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030011759 )
11760endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030011761
Eric Gribkoffa32a4c52018-01-25 13:16:41 -080011762endif (gRPC_BUILD_CODEGEN)
11763if (gRPC_BUILD_CODEGEN)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030011764
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011765add_executable(grpc_ruby_plugin
11766 src/compiler/ruby_plugin.cc
11767)
11768
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011769
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011770target_include_directories(grpc_ruby_plugin
11771 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11772 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011773 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011774 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11775 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11776 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11777 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11778 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011779 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011780 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011781)
11782
11783target_link_libraries(grpc_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030011784 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011785 ${_gRPC_PROTOBUF_LIBRARIES}
11786 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011787 grpc_plugin_support
11788)
11789
11790
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030011791if (gRPC_INSTALL)
11792 install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +020011793 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
11794 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
11795 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030011796 )
11797endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011798
Eric Gribkoffa32a4c52018-01-25 13:16:41 -080011799endif (gRPC_BUILD_CODEGEN)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011800if (gRPC_BUILD_TESTS)
11801
11802add_executable(grpc_tool_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011803 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc
11804 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc
11805 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h
11806 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h
11807 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc
11808 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc
11809 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h
11810 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011811 test/cpp/util/grpc_tool_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011812 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011813 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011814)
11815
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011816protobuf_generate_grpc_cpp(
11817 src/proto/grpc/testing/echo.proto
11818)
11819protobuf_generate_grpc_cpp(
11820 src/proto/grpc/testing/echo_messages.proto
11821)
11822
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011823target_include_directories(grpc_tool_test
11824 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11825 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011826 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011827 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11828 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11829 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11830 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11831 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011832 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070011833 PRIVATE third_party/googletest/googletest/include
11834 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011835 PRIVATE third_party/googletest/googlemock/include
11836 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011837 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011838)
11839
11840target_link_libraries(grpc_tool_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011841 ${_gRPC_PROTOBUF_LIBRARIES}
11842 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011843 grpc_cli_libs
11844 grpc++_proto_reflection_desc_db
11845 grpc++_reflection
11846 grpc++_test_util
11847 grpc_test_util
11848 grpc++
11849 grpc
11850 gpr_test_util
11851 gpr
11852 ${_gRPC_GFLAGS_LIBRARIES}
11853)
11854
11855endif (gRPC_BUILD_TESTS)
11856if (gRPC_BUILD_TESTS)
11857
11858add_executable(grpclb_api_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011859 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.cc
11860 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.cc
11861 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.h
11862 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011863 test/cpp/grpclb/grpclb_api_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011864 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011865 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011866)
11867
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011868protobuf_generate_grpc_cpp(
11869 src/proto/grpc/lb/v1/load_balancer.proto
11870)
11871
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011872target_include_directories(grpclb_api_test
11873 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11874 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011875 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011876 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11877 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11878 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11879 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11880 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011881 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070011882 PRIVATE third_party/googletest/googletest/include
11883 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011884 PRIVATE third_party/googletest/googlemock/include
11885 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011886 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011887)
11888
11889target_link_libraries(grpclb_api_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011890 ${_gRPC_PROTOBUF_LIBRARIES}
11891 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011892 grpc++_test_util
11893 grpc_test_util
11894 grpc++
11895 grpc
11896 ${_gRPC_GFLAGS_LIBRARIES}
11897)
11898
11899endif (gRPC_BUILD_TESTS)
11900if (gRPC_BUILD_TESTS)
11901
David Garcia Quintas04911ca2017-04-27 16:31:14 -070011902add_executable(grpclb_end2end_test
11903 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.cc
11904 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.cc
11905 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.h
11906 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.h
11907 test/cpp/end2end/grpclb_end2end_test.cc
11908 third_party/googletest/googletest/src/gtest-all.cc
11909 third_party/googletest/googlemock/src/gmock-all.cc
11910)
11911
11912protobuf_generate_grpc_cpp(
11913 src/proto/grpc/lb/v1/load_balancer.proto
11914)
11915
11916target_include_directories(grpclb_end2end_test
11917 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11918 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011919 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011920 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11921 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11922 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11923 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11924 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011925 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
David Garcia Quintas04911ca2017-04-27 16:31:14 -070011926 PRIVATE third_party/googletest/googletest/include
11927 PRIVATE third_party/googletest/googletest
11928 PRIVATE third_party/googletest/googlemock/include
11929 PRIVATE third_party/googletest/googlemock
11930 PRIVATE ${_gRPC_PROTO_GENS_DIR}
11931)
11932
11933target_link_libraries(grpclb_end2end_test
11934 ${_gRPC_PROTOBUF_LIBRARIES}
11935 ${_gRPC_ALLTARGETS_LIBRARIES}
11936 grpc++_test_util
11937 grpc_test_util
11938 grpc++
11939 grpc
11940 gpr_test_util
11941 gpr
11942 ${_gRPC_GFLAGS_LIBRARIES}
11943)
11944
11945endif (gRPC_BUILD_TESTS)
11946if (gRPC_BUILD_TESTS)
11947
Vijay Paifed13912017-10-11 00:07:00 -070011948add_executable(h2_ssl_cert_test
11949 test/core/end2end/h2_ssl_cert_test.cc
11950 third_party/googletest/googletest/src/gtest-all.cc
11951 third_party/googletest/googlemock/src/gmock-all.cc
11952)
11953
11954
11955target_include_directories(h2_ssl_cert_test
11956 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11957 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010011958 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010011959 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11960 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11961 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
11962 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
11963 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080011964 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Vijay Paifed13912017-10-11 00:07:00 -070011965 PRIVATE third_party/googletest/googletest/include
11966 PRIVATE third_party/googletest/googletest
11967 PRIVATE third_party/googletest/googlemock/include
11968 PRIVATE third_party/googletest/googlemock
11969 PRIVATE ${_gRPC_PROTO_GENS_DIR}
11970)
11971
11972target_link_libraries(h2_ssl_cert_test
11973 ${_gRPC_PROTOBUF_LIBRARIES}
11974 ${_gRPC_ALLTARGETS_LIBRARIES}
11975 grpc_test_util
11976 grpc++
11977 grpc
11978 gpr_test_util
11979 gpr
11980 ${_gRPC_GFLAGS_LIBRARIES}
11981)
11982
11983endif (gRPC_BUILD_TESTS)
11984if (gRPC_BUILD_TESTS)
11985
Ruslan Nigmatullin99d0cee2018-03-20 09:18:29 -070011986add_executable(h2_ssl_session_reuse_test
11987 test/core/end2end/h2_ssl_session_reuse_test.cc
11988 third_party/googletest/googletest/src/gtest-all.cc
11989 third_party/googletest/googlemock/src/gmock-all.cc
11990)
11991
11992
11993target_include_directories(h2_ssl_session_reuse_test
11994 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11995 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11996 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
11997 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
11998 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
11999 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12000 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12001 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcynee2ad092018-03-20 23:54:52 -070012002 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ruslan Nigmatullin99d0cee2018-03-20 09:18:29 -070012003 PRIVATE third_party/googletest/googletest/include
12004 PRIVATE third_party/googletest/googletest
12005 PRIVATE third_party/googletest/googlemock/include
12006 PRIVATE third_party/googletest/googlemock
12007 PRIVATE ${_gRPC_PROTO_GENS_DIR}
12008)
12009
12010target_link_libraries(h2_ssl_session_reuse_test
12011 ${_gRPC_PROTOBUF_LIBRARIES}
12012 ${_gRPC_ALLTARGETS_LIBRARIES}
12013 grpc_test_util
12014 grpc++
12015 grpc
12016 gpr_test_util
12017 gpr
12018 ${_gRPC_GFLAGS_LIBRARIES}
12019)
12020
12021endif (gRPC_BUILD_TESTS)
12022if (gRPC_BUILD_TESTS)
12023
yang-ga7198022017-01-26 13:23:52 -080012024add_executable(health_service_end2end_test
12025 test/cpp/end2end/health_service_end2end_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070012026 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012027 third_party/googletest/googlemock/src/gmock-all.cc
yang-ga7198022017-01-26 13:23:52 -080012028)
12029
yang-g13a537b2017-02-07 13:13:20 -080012030
yang-ga7198022017-01-26 13:23:52 -080012031target_include_directories(health_service_end2end_test
12032 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12033 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012034 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012035 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12036 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12037 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12038 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12039 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012040 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070012041 PRIVATE third_party/googletest/googletest/include
12042 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012043 PRIVATE third_party/googletest/googlemock/include
12044 PRIVATE third_party/googletest/googlemock
yang-g13a537b2017-02-07 13:13:20 -080012045 PRIVATE ${_gRPC_PROTO_GENS_DIR}
yang-ga7198022017-01-26 13:23:52 -080012046)
12047
12048target_link_libraries(health_service_end2end_test
yang-g13a537b2017-02-07 13:13:20 -080012049 ${_gRPC_PROTOBUF_LIBRARIES}
12050 ${_gRPC_ALLTARGETS_LIBRARIES}
yang-ga7198022017-01-26 13:23:52 -080012051 grpc++_test_util
12052 grpc_test_util
12053 grpc++
12054 grpc
12055 gpr_test_util
12056 gpr
12057 ${_gRPC_GFLAGS_LIBRARIES}
12058)
12059
12060endif (gRPC_BUILD_TESTS)
12061if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012062if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012063
12064add_executable(http2_client
Ken Payson975b5102017-03-30 17:38:40 -070012065 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012066 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012067)
12068
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012069
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012070target_include_directories(http2_client
12071 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12072 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012073 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012074 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12075 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12076 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12077 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12078 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012079 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070012080 PRIVATE third_party/googletest/googletest/include
12081 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012082 PRIVATE third_party/googletest/googlemock/include
12083 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012084 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012085)
12086
12087target_link_libraries(http2_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012088 ${_gRPC_PROTOBUF_LIBRARIES}
12089 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012090 http2_client_main
12091 grpc++_test_util
12092 grpc_test_util
12093 grpc++
12094 grpc
12095 grpc++_test_config
12096 ${_gRPC_GFLAGS_LIBRARIES}
12097)
12098
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012099endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012100endif (gRPC_BUILD_TESTS)
12101if (gRPC_BUILD_TESTS)
12102
12103add_executable(hybrid_end2end_test
12104 test/cpp/end2end/hybrid_end2end_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070012105 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012106 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012107)
12108
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012109
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012110target_include_directories(hybrid_end2end_test
12111 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12112 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012113 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012114 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12115 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12116 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12117 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12118 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012119 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070012120 PRIVATE third_party/googletest/googletest/include
12121 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012122 PRIVATE third_party/googletest/googlemock/include
12123 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012124 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012125)
12126
12127target_link_libraries(hybrid_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012128 ${_gRPC_PROTOBUF_LIBRARIES}
12129 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012130 grpc++_test_util
12131 grpc_test_util
12132 grpc++
12133 grpc
12134 gpr_test_util
12135 gpr
12136 ${_gRPC_GFLAGS_LIBRARIES}
12137)
12138
12139endif (gRPC_BUILD_TESTS)
12140if (gRPC_BUILD_TESTS)
Mark D. Rothdbdf4952018-01-18 11:21:12 -080012141
12142add_executable(inlined_vector_test
Mark D. Roth4f2b0fd2018-01-19 12:12:23 -080012143 test/core/gprpp/inlined_vector_test.cc
Mark D. Rothdbdf4952018-01-18 11:21:12 -080012144 third_party/googletest/googletest/src/gtest-all.cc
12145 third_party/googletest/googlemock/src/gmock-all.cc
12146)
12147
12148
12149target_include_directories(inlined_vector_test
12150 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12151 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12152 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
12153 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12154 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12155 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12156 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12157 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012158 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Mark D. Rothdbdf4952018-01-18 11:21:12 -080012159 PRIVATE third_party/googletest/googletest/include
12160 PRIVATE third_party/googletest/googletest
12161 PRIVATE third_party/googletest/googlemock/include
12162 PRIVATE third_party/googletest/googlemock
12163 PRIVATE ${_gRPC_PROTO_GENS_DIR}
12164)
12165
12166target_link_libraries(inlined_vector_test
12167 ${_gRPC_PROTOBUF_LIBRARIES}
12168 ${_gRPC_ALLTARGETS_LIBRARIES}
12169 grpc_test_util
12170 grpc++
12171 grpc
12172 gpr_test_util
12173 gpr
12174 ${_gRPC_GFLAGS_LIBRARIES}
12175)
12176
12177endif (gRPC_BUILD_TESTS)
12178if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012179if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012180
Vijay Pai088112f2017-08-24 10:42:27 -070012181add_executable(inproc_sync_unary_ping_pong_test
12182 test/cpp/qps/inproc_sync_unary_ping_pong_test.cc
12183 third_party/googletest/googletest/src/gtest-all.cc
12184 third_party/googletest/googlemock/src/gmock-all.cc
12185)
12186
12187
12188target_include_directories(inproc_sync_unary_ping_pong_test
12189 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12190 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012191 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012192 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12193 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12194 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12195 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12196 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012197 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Vijay Pai088112f2017-08-24 10:42:27 -070012198 PRIVATE third_party/googletest/googletest/include
12199 PRIVATE third_party/googletest/googletest
12200 PRIVATE third_party/googletest/googlemock/include
12201 PRIVATE third_party/googletest/googlemock
12202 PRIVATE ${_gRPC_PROTO_GENS_DIR}
12203)
12204
12205target_link_libraries(inproc_sync_unary_ping_pong_test
12206 ${_gRPC_PROTOBUF_LIBRARIES}
12207 ${_gRPC_ALLTARGETS_LIBRARIES}
12208 qps
12209 grpc++_core_stats
12210 grpc++_test_util
12211 grpc_test_util
12212 grpc++
12213 grpc
12214 gpr_test_util
12215 gpr
12216 grpc++_test_config
12217 ${_gRPC_GFLAGS_LIBRARIES}
12218)
12219
12220endif()
12221endif (gRPC_BUILD_TESTS)
12222if (gRPC_BUILD_TESTS)
12223if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
12224
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012225add_executable(interop_client
Ken Payson975b5102017-03-30 17:38:40 -070012226 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012227 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012228)
12229
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012230
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012231target_include_directories(interop_client
12232 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12233 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012234 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012235 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12236 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12237 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12238 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12239 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012240 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070012241 PRIVATE third_party/googletest/googletest/include
12242 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012243 PRIVATE third_party/googletest/googlemock/include
12244 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012245 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012246)
12247
12248target_link_libraries(interop_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012249 ${_gRPC_PROTOBUF_LIBRARIES}
12250 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012251 interop_client_main
12252 interop_client_helper
12253 grpc++_test_util
12254 grpc_test_util
12255 grpc++
12256 grpc
12257 gpr_test_util
12258 gpr
12259 grpc++_test_config
12260 ${_gRPC_GFLAGS_LIBRARIES}
12261)
12262
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012263endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012264endif (gRPC_BUILD_TESTS)
12265if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012266if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012267
12268add_executable(interop_server
Ken Payson975b5102017-03-30 17:38:40 -070012269 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012270 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012271)
12272
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012273
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012274target_include_directories(interop_server
12275 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12276 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012277 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012278 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12279 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12280 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12281 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12282 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012283 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070012284 PRIVATE third_party/googletest/googletest/include
12285 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012286 PRIVATE third_party/googletest/googlemock/include
12287 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012288 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012289)
12290
12291target_link_libraries(interop_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012292 ${_gRPC_PROTOBUF_LIBRARIES}
12293 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012294 interop_server_main
12295 interop_server_helper
12296 interop_server_lib
12297 grpc++_test_util
12298 grpc_test_util
12299 grpc++
12300 grpc
12301 gpr_test_util
12302 gpr
12303 grpc++_test_config
12304 ${_gRPC_GFLAGS_LIBRARIES}
12305)
12306
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012307endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012308endif (gRPC_BUILD_TESTS)
12309if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012310if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012311
12312add_executable(interop_test
12313 test/cpp/interop/interop_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070012314 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012315 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012316)
12317
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012318
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012319target_include_directories(interop_test
12320 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12321 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012322 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012323 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12324 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12325 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12326 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12327 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012328 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070012329 PRIVATE third_party/googletest/googletest/include
12330 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012331 PRIVATE third_party/googletest/googlemock/include
12332 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012333 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012334)
12335
12336target_link_libraries(interop_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012337 ${_gRPC_PROTOBUF_LIBRARIES}
12338 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012339 grpc_test_util
12340 grpc
12341 gpr_test_util
12342 gpr
12343 grpc++_test_config
12344 ${_gRPC_GFLAGS_LIBRARIES}
12345)
12346
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012347endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012348endif (gRPC_BUILD_TESTS)
12349if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012350if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012351
12352add_executable(json_run_localhost
12353 test/cpp/qps/json_run_localhost.cc
Ken Payson975b5102017-03-30 17:38:40 -070012354 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012355 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012356)
12357
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012358
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012359target_include_directories(json_run_localhost
12360 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12361 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012362 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012363 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12364 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12365 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12366 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12367 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012368 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070012369 PRIVATE third_party/googletest/googletest/include
12370 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012371 PRIVATE third_party/googletest/googlemock/include
12372 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012373 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012374)
12375
12376target_link_libraries(json_run_localhost
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012377 ${_gRPC_PROTOBUF_LIBRARIES}
12378 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012379 grpc++_test_util
12380 grpc_test_util
12381 grpc++
12382 grpc
12383 gpr_test_util
12384 gpr
12385 grpc++_test_config
12386 ${_gRPC_GFLAGS_LIBRARIES}
12387)
12388
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012389endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012390endif (gRPC_BUILD_TESTS)
12391if (gRPC_BUILD_TESTS)
12392
Juanli Shena0aab7e2018-05-01 10:30:54 -070012393add_executable(lb_load_data_store_test
12394 test/cpp/server/load_reporter/load_data_store_test.cc
12395 third_party/googletest/googletest/src/gtest-all.cc
12396 third_party/googletest/googlemock/src/gmock-all.cc
12397)
12398
12399
12400target_include_directories(lb_load_data_store_test
12401 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12402 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12403 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
12404 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12405 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12406 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12407 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12408 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
12409 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
12410 PRIVATE third_party/googletest/googletest/include
12411 PRIVATE third_party/googletest/googletest
12412 PRIVATE third_party/googletest/googlemock/include
12413 PRIVATE third_party/googletest/googlemock
12414 PRIVATE ${_gRPC_PROTO_GENS_DIR}
12415)
12416
12417target_link_libraries(lb_load_data_store_test
12418 ${_gRPC_PROTOBUF_LIBRARIES}
12419 ${_gRPC_ALLTARGETS_LIBRARIES}
12420 lb_load_data_store
12421 grpc++_test_util
12422 grpc_test_util
12423 grpc++
12424 grpc
12425 gpr_test_util
12426 gpr
12427 ${_gRPC_GFLAGS_LIBRARIES}
12428)
12429
12430endif (gRPC_BUILD_TESTS)
12431if (gRPC_BUILD_TESTS)
12432
Craig Tillerb3d70102017-03-31 14:17:09 -070012433add_executable(memory_test
Mark D. Roth4f2b0fd2018-01-19 12:12:23 -080012434 test/core/gprpp/memory_test.cc
Craig Tiller2d111bd2017-04-11 09:18:14 -070012435 third_party/googletest/googletest/src/gtest-all.cc
Vizerai0359e122017-04-28 20:06:58 -070012436 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tillerb3d70102017-03-31 14:17:09 -070012437)
12438
12439
12440target_include_directories(memory_test
12441 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12442 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012443 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012444 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12445 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12446 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12447 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12448 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012449 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Craig Tiller2d111bd2017-04-11 09:18:14 -070012450 PRIVATE third_party/googletest/googletest/include
12451 PRIVATE third_party/googletest/googletest
Vizerai0359e122017-04-28 20:06:58 -070012452 PRIVATE third_party/googletest/googlemock/include
12453 PRIVATE third_party/googletest/googlemock
Craig Tillerb3d70102017-03-31 14:17:09 -070012454 PRIVATE ${_gRPC_PROTO_GENS_DIR}
12455)
12456
12457target_link_libraries(memory_test
12458 ${_gRPC_PROTOBUF_LIBRARIES}
12459 ${_gRPC_ALLTARGETS_LIBRARIES}
12460 grpc_test_util
12461 grpc++
12462 grpc
12463 gpr_test_util
12464 gpr
12465 ${_gRPC_GFLAGS_LIBRARIES}
12466)
12467
12468endif (gRPC_BUILD_TESTS)
12469if (gRPC_BUILD_TESTS)
12470
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012471add_executable(metrics_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012472 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.cc
12473 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.cc
12474 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.h
12475 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012476 test/cpp/interop/metrics_client.cc
Ken Payson975b5102017-03-30 17:38:40 -070012477 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012478 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012479)
12480
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012481protobuf_generate_grpc_cpp(
12482 src/proto/grpc/testing/metrics.proto
12483)
12484
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012485target_include_directories(metrics_client
12486 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12487 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012488 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012489 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12490 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12491 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12492 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12493 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012494 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070012495 PRIVATE third_party/googletest/googletest/include
12496 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012497 PRIVATE third_party/googletest/googlemock/include
12498 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012499 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012500)
12501
12502target_link_libraries(metrics_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012503 ${_gRPC_PROTOBUF_LIBRARIES}
12504 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012505 grpc++
12506 grpc
12507 gpr
12508 grpc++_test_config
12509 ${_gRPC_GFLAGS_LIBRARIES}
12510)
12511
12512endif (gRPC_BUILD_TESTS)
12513if (gRPC_BUILD_TESTS)
12514
12515add_executable(mock_test
12516 test/cpp/end2end/mock_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070012517 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012518 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012519)
12520
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012521
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012522target_include_directories(mock_test
12523 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12524 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012525 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012526 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12527 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12528 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12529 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12530 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012531 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070012532 PRIVATE third_party/googletest/googletest/include
12533 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012534 PRIVATE third_party/googletest/googlemock/include
12535 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012536 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012537)
12538
12539target_link_libraries(mock_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012540 ${_gRPC_PROTOBUF_LIBRARIES}
12541 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012542 grpc++_test_util
12543 grpc_test_util
12544 grpc++
12545 grpc
12546 gpr_test_util
12547 gpr
12548 ${_gRPC_GFLAGS_LIBRARIES}
12549)
12550
12551endif (gRPC_BUILD_TESTS)
12552if (gRPC_BUILD_TESTS)
12553
Vijay Pai132efa02018-02-09 15:28:14 -080012554add_executable(nonblocking_test
12555 test/cpp/end2end/nonblocking_test.cc
12556 third_party/googletest/googletest/src/gtest-all.cc
12557 third_party/googletest/googlemock/src/gmock-all.cc
12558)
12559
12560
12561target_include_directories(nonblocking_test
12562 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12563 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12564 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
12565 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12566 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12567 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12568 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12569 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012570 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Vijay Pai132efa02018-02-09 15:28:14 -080012571 PRIVATE third_party/googletest/googletest/include
12572 PRIVATE third_party/googletest/googletest
12573 PRIVATE third_party/googletest/googlemock/include
12574 PRIVATE third_party/googletest/googlemock
12575 PRIVATE ${_gRPC_PROTO_GENS_DIR}
12576)
12577
12578target_link_libraries(nonblocking_test
12579 ${_gRPC_PROTOBUF_LIBRARIES}
12580 ${_gRPC_ALLTARGETS_LIBRARIES}
12581 grpc++_test_util
12582 grpc_test_util
12583 grpc++
12584 grpc
12585 gpr_test_util
12586 gpr
12587 ${_gRPC_GFLAGS_LIBRARIES}
12588)
12589
12590endif (gRPC_BUILD_TESTS)
12591if (gRPC_BUILD_TESTS)
12592
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012593add_executable(noop-benchmark
12594 test/cpp/microbenchmarks/noop-benchmark.cc
Ken Payson975b5102017-03-30 17:38:40 -070012595 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012596 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012597)
12598
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012599
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012600target_include_directories(noop-benchmark
12601 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12602 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012603 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012604 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12605 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12606 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12607 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12608 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012609 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070012610 PRIVATE third_party/googletest/googletest/include
12611 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012612 PRIVATE third_party/googletest/googlemock/include
12613 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012614 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012615)
12616
12617target_link_libraries(noop-benchmark
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012618 ${_gRPC_PROTOBUF_LIBRARIES}
12619 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012620 ${_gRPC_BENCHMARK_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012621 ${_gRPC_GFLAGS_LIBRARIES}
12622)
12623
12624endif (gRPC_BUILD_TESTS)
12625if (gRPC_BUILD_TESTS)
12626
Mark D. Roth324703d2018-01-11 07:41:31 -080012627add_executable(orphanable_test
Mark D. Roth4f2b0fd2018-01-19 12:12:23 -080012628 test/core/gprpp/orphanable_test.cc
Mark D. Roth324703d2018-01-11 07:41:31 -080012629 third_party/googletest/googletest/src/gtest-all.cc
12630 third_party/googletest/googlemock/src/gmock-all.cc
12631)
12632
12633
12634target_include_directories(orphanable_test
12635 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12636 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12637 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Mark D. Rothd9c288b2018-01-17 09:10:06 -080012638 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12639 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12640 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12641 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12642 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012643 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Mark D. Roth324703d2018-01-11 07:41:31 -080012644 PRIVATE third_party/googletest/googletest/include
12645 PRIVATE third_party/googletest/googletest
12646 PRIVATE third_party/googletest/googlemock/include
12647 PRIVATE third_party/googletest/googlemock
12648 PRIVATE ${_gRPC_PROTO_GENS_DIR}
12649)
12650
12651target_link_libraries(orphanable_test
12652 ${_gRPC_PROTOBUF_LIBRARIES}
12653 ${_gRPC_ALLTARGETS_LIBRARIES}
12654 grpc_test_util
12655 grpc++
12656 grpc
12657 gpr_test_util
12658 gpr
12659 ${_gRPC_GFLAGS_LIBRARIES}
12660)
12661
12662endif (gRPC_BUILD_TESTS)
12663if (gRPC_BUILD_TESTS)
12664
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012665add_executable(proto_server_reflection_test
12666 test/cpp/end2end/proto_server_reflection_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070012667 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012668 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012669)
12670
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012671
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012672target_include_directories(proto_server_reflection_test
12673 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12674 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012675 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012676 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12677 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12678 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12679 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12680 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012681 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070012682 PRIVATE third_party/googletest/googletest/include
12683 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012684 PRIVATE third_party/googletest/googlemock/include
12685 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012686 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012687)
12688
12689target_link_libraries(proto_server_reflection_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012690 ${_gRPC_PROTOBUF_LIBRARIES}
12691 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012692 grpc++_proto_reflection_desc_db
12693 grpc++_reflection
12694 grpc++_test_util
12695 grpc_test_util
12696 grpc++
12697 grpc
12698 gpr_test_util
12699 gpr
12700 ${_gRPC_GFLAGS_LIBRARIES}
12701)
12702
12703endif (gRPC_BUILD_TESTS)
12704if (gRPC_BUILD_TESTS)
Harvey Tuch5f3cfe92017-01-20 11:02:11 -050012705
12706add_executable(proto_utils_test
12707 test/cpp/codegen/proto_utils_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070012708 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012709 third_party/googletest/googlemock/src/gmock-all.cc
Harvey Tuch5f3cfe92017-01-20 11:02:11 -050012710)
12711
12712
12713target_include_directories(proto_utils_test
12714 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12715 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012716 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012717 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12718 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12719 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12720 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12721 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012722 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070012723 PRIVATE third_party/googletest/googletest/include
12724 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012725 PRIVATE third_party/googletest/googlemock/include
12726 PRIVATE third_party/googletest/googlemock
Harvey Tuch5f3cfe92017-01-20 11:02:11 -050012727 PRIVATE ${_gRPC_PROTO_GENS_DIR}
12728)
12729
12730target_link_libraries(proto_utils_test
12731 ${_gRPC_PROTOBUF_LIBRARIES}
12732 ${_gRPC_ALLTARGETS_LIBRARIES}
12733 grpc++
12734 grpc
12735 ${_gRPC_GFLAGS_LIBRARIES}
12736)
12737
12738endif (gRPC_BUILD_TESTS)
12739if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012740if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012741
12742add_executable(qps_interarrival_test
12743 test/cpp/qps/qps_interarrival_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070012744 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012745 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012746)
12747
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012748
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012749target_include_directories(qps_interarrival_test
12750 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12751 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012752 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012753 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12754 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12755 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12756 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12757 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012758 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070012759 PRIVATE third_party/googletest/googletest/include
12760 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012761 PRIVATE third_party/googletest/googlemock/include
12762 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012763 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012764)
12765
12766target_link_libraries(qps_interarrival_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012767 ${_gRPC_PROTOBUF_LIBRARIES}
12768 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012769 qps
12770 grpc++_test_util
12771 grpc_test_util
12772 grpc++
12773 grpc
12774 gpr_test_util
12775 gpr
yang-gfdcb7742017-07-13 10:25:42 -070012776 grpc++_test_config
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012777 ${_gRPC_GFLAGS_LIBRARIES}
12778)
12779
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012780endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012781endif (gRPC_BUILD_TESTS)
12782if (gRPC_BUILD_TESTS)
12783
12784add_executable(qps_json_driver
12785 test/cpp/qps/qps_json_driver.cc
Ken Payson975b5102017-03-30 17:38:40 -070012786 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012787 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012788)
12789
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012790
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012791target_include_directories(qps_json_driver
12792 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12793 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012794 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012795 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12796 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12797 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12798 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12799 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012800 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070012801 PRIVATE third_party/googletest/googletest/include
12802 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012803 PRIVATE third_party/googletest/googlemock/include
12804 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012805 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012806)
12807
12808target_link_libraries(qps_json_driver
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012809 ${_gRPC_PROTOBUF_LIBRARIES}
12810 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012811 qps
Craig Tiller28972352017-08-31 15:52:57 -070012812 grpc++_core_stats
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012813 grpc++_test_util
12814 grpc_test_util
12815 grpc++
12816 grpc
12817 gpr_test_util
12818 gpr
12819 grpc++_test_config
12820 ${_gRPC_GFLAGS_LIBRARIES}
12821)
12822
12823endif (gRPC_BUILD_TESTS)
12824if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012825if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012826
12827add_executable(qps_openloop_test
12828 test/cpp/qps/qps_openloop_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070012829 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012830 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012831)
12832
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012833
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012834target_include_directories(qps_openloop_test
12835 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12836 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012837 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012838 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12839 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12840 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12841 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12842 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012843 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070012844 PRIVATE third_party/googletest/googletest/include
12845 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012846 PRIVATE third_party/googletest/googlemock/include
12847 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012848 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012849)
12850
12851target_link_libraries(qps_openloop_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012852 ${_gRPC_PROTOBUF_LIBRARIES}
12853 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012854 qps
Craig Tillerc75f9862017-09-05 11:34:57 -070012855 grpc++_core_stats
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012856 grpc++_test_util
12857 grpc_test_util
12858 grpc++
12859 grpc
12860 gpr_test_util
12861 gpr
12862 grpc++_test_config
12863 ${_gRPC_GFLAGS_LIBRARIES}
12864)
12865
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012866endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012867endif (gRPC_BUILD_TESTS)
12868if (gRPC_BUILD_TESTS)
12869
12870add_executable(qps_worker
12871 test/cpp/qps/worker.cc
Ken Payson975b5102017-03-30 17:38:40 -070012872 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012873 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012874)
12875
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012876
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012877target_include_directories(qps_worker
12878 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12879 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012880 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012881 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12882 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12883 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12884 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12885 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012886 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070012887 PRIVATE third_party/googletest/googletest/include
12888 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012889 PRIVATE third_party/googletest/googlemock/include
12890 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012891 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012892)
12893
12894target_link_libraries(qps_worker
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012895 ${_gRPC_PROTOBUF_LIBRARIES}
12896 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012897 qps
Craig Tillerc75f9862017-09-05 11:34:57 -070012898 grpc++_core_stats
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012899 grpc++_test_util
12900 grpc_test_util
12901 grpc++
12902 grpc
12903 gpr_test_util
12904 gpr
12905 grpc++_test_config
12906 ${_gRPC_GFLAGS_LIBRARIES}
12907)
12908
12909endif (gRPC_BUILD_TESTS)
12910if (gRPC_BUILD_TESTS)
12911
12912add_executable(reconnect_interop_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012913 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
12914 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
12915 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
12916 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
12917 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
12918 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
12919 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
12920 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
12921 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
12922 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
12923 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
12924 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012925 test/cpp/interop/reconnect_interop_client.cc
Ken Payson975b5102017-03-30 17:38:40 -070012926 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012927 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012928)
12929
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012930protobuf_generate_grpc_cpp(
12931 src/proto/grpc/testing/empty.proto
12932)
12933protobuf_generate_grpc_cpp(
12934 src/proto/grpc/testing/messages.proto
12935)
12936protobuf_generate_grpc_cpp(
12937 src/proto/grpc/testing/test.proto
12938)
12939
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012940target_include_directories(reconnect_interop_client
12941 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12942 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010012943 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010012944 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
12945 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
12946 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
12947 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
12948 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080012949 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070012950 PRIVATE third_party/googletest/googletest/include
12951 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012952 PRIVATE third_party/googletest/googlemock/include
12953 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012954 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012955)
12956
12957target_link_libraries(reconnect_interop_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012958 ${_gRPC_PROTOBUF_LIBRARIES}
12959 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012960 grpc++_test_util
12961 grpc_test_util
12962 grpc++
12963 grpc
12964 gpr_test_util
12965 gpr
12966 grpc++_test_config
12967 ${_gRPC_GFLAGS_LIBRARIES}
12968)
12969
12970endif (gRPC_BUILD_TESTS)
12971if (gRPC_BUILD_TESTS)
12972
12973add_executable(reconnect_interop_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012974 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
12975 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
12976 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
12977 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
12978 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
12979 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
12980 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
12981 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
12982 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
12983 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
12984 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
12985 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012986 test/cpp/interop/reconnect_interop_server.cc
Ken Payson975b5102017-03-30 17:38:40 -070012987 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012988 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012989)
12990
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012991protobuf_generate_grpc_cpp(
12992 src/proto/grpc/testing/empty.proto
12993)
12994protobuf_generate_grpc_cpp(
12995 src/proto/grpc/testing/messages.proto
12996)
12997protobuf_generate_grpc_cpp(
12998 src/proto/grpc/testing/test.proto
12999)
13000
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013001target_include_directories(reconnect_interop_server
13002 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13003 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010013004 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010013005 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13006 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13007 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13008 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13009 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013010 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070013011 PRIVATE third_party/googletest/googletest/include
13012 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013013 PRIVATE third_party/googletest/googlemock/include
13014 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013015 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013016)
13017
13018target_link_libraries(reconnect_interop_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013019 ${_gRPC_PROTOBUF_LIBRARIES}
13020 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013021 reconnect_server
13022 test_tcp_server
13023 grpc++_test_util
13024 grpc_test_util
13025 grpc++
13026 grpc
13027 gpr_test_util
13028 gpr
13029 grpc++_test_config
13030 ${_gRPC_GFLAGS_LIBRARIES}
13031)
13032
13033endif (gRPC_BUILD_TESTS)
13034if (gRPC_BUILD_TESTS)
13035
Mark D. Rothbf816d32017-11-29 11:25:34 -080013036add_executable(ref_counted_ptr_test
Mark D. Roth4f2b0fd2018-01-19 12:12:23 -080013037 test/core/gprpp/ref_counted_ptr_test.cc
Mark D. Rothcf9ca842017-11-28 08:24:35 -080013038 third_party/googletest/googletest/src/gtest-all.cc
13039 third_party/googletest/googlemock/src/gmock-all.cc
13040)
13041
13042
Mark D. Rothbf816d32017-11-29 11:25:34 -080013043target_include_directories(ref_counted_ptr_test
Mark D. Rothcf9ca842017-11-28 08:24:35 -080013044 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13045 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010013046 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010013047 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13048 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13049 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13050 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13051 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013052 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Mark D. Rothcf9ca842017-11-28 08:24:35 -080013053 PRIVATE third_party/googletest/googletest/include
13054 PRIVATE third_party/googletest/googletest
13055 PRIVATE third_party/googletest/googlemock/include
13056 PRIVATE third_party/googletest/googlemock
13057 PRIVATE ${_gRPC_PROTO_GENS_DIR}
13058)
13059
Mark D. Rothbf816d32017-11-29 11:25:34 -080013060target_link_libraries(ref_counted_ptr_test
Mark D. Rothcf9ca842017-11-28 08:24:35 -080013061 ${_gRPC_PROTOBUF_LIBRARIES}
13062 ${_gRPC_ALLTARGETS_LIBRARIES}
13063 grpc_test_util
13064 grpc++
13065 grpc
13066 gpr_test_util
13067 gpr
13068 ${_gRPC_GFLAGS_LIBRARIES}
13069)
13070
13071endif (gRPC_BUILD_TESTS)
13072if (gRPC_BUILD_TESTS)
13073
Mark D. Rothbf816d32017-11-29 11:25:34 -080013074add_executable(ref_counted_test
Mark D. Roth4f2b0fd2018-01-19 12:12:23 -080013075 test/core/gprpp/ref_counted_test.cc
Mark D. Roth70db6632017-11-27 14:53:26 -080013076 third_party/googletest/googletest/src/gtest-all.cc
13077 third_party/googletest/googlemock/src/gmock-all.cc
13078)
13079
13080
Mark D. Rothbf816d32017-11-29 11:25:34 -080013081target_include_directories(ref_counted_test
Mark D. Roth70db6632017-11-27 14:53:26 -080013082 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13083 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010013084 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010013085 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13086 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13087 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13088 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13089 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013090 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Mark D. Roth70db6632017-11-27 14:53:26 -080013091 PRIVATE third_party/googletest/googletest/include
13092 PRIVATE third_party/googletest/googletest
13093 PRIVATE third_party/googletest/googlemock/include
13094 PRIVATE third_party/googletest/googlemock
13095 PRIVATE ${_gRPC_PROTO_GENS_DIR}
13096)
13097
Mark D. Rothbf816d32017-11-29 11:25:34 -080013098target_link_libraries(ref_counted_test
Mark D. Roth70db6632017-11-27 14:53:26 -080013099 ${_gRPC_PROTOBUF_LIBRARIES}
13100 ${_gRPC_ALLTARGETS_LIBRARIES}
13101 grpc_test_util
13102 grpc++
13103 grpc
13104 gpr_test_util
13105 gpr
13106 ${_gRPC_GFLAGS_LIBRARIES}
13107)
13108
13109endif (gRPC_BUILD_TESTS)
13110if (gRPC_BUILD_TESTS)
13111
Mark D. Roth9db86fc2018-03-28 07:42:20 -070013112add_executable(retry_throttle_test
13113 test/core/client_channel/retry_throttle_test.cc
13114 third_party/googletest/googletest/src/gtest-all.cc
13115 third_party/googletest/googlemock/src/gmock-all.cc
13116)
13117
13118
13119target_include_directories(retry_throttle_test
13120 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13121 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13122 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
13123 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13124 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13125 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13126 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13127 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
13128 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
13129 PRIVATE third_party/googletest/googletest/include
13130 PRIVATE third_party/googletest/googletest
13131 PRIVATE third_party/googletest/googlemock/include
13132 PRIVATE third_party/googletest/googlemock
13133 PRIVATE ${_gRPC_PROTO_GENS_DIR}
13134)
13135
13136target_link_libraries(retry_throttle_test
13137 ${_gRPC_PROTOBUF_LIBRARIES}
13138 ${_gRPC_ALLTARGETS_LIBRARIES}
13139 grpc_test_util
13140 grpc
13141 gpr_test_util
13142 gpr
13143 ${_gRPC_GFLAGS_LIBRARIES}
13144)
13145
13146endif (gRPC_BUILD_TESTS)
13147if (gRPC_BUILD_TESTS)
13148
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013149add_executable(secure_auth_context_test
13150 test/cpp/common/secure_auth_context_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070013151 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013152 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013153)
13154
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013155
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013156target_include_directories(secure_auth_context_test
13157 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13158 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010013159 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010013160 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13161 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13162 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13163 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13164 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013165 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070013166 PRIVATE third_party/googletest/googletest/include
13167 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013168 PRIVATE third_party/googletest/googlemock/include
13169 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013170 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013171)
13172
13173target_link_libraries(secure_auth_context_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013174 ${_gRPC_PROTOBUF_LIBRARIES}
13175 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013176 grpc++_test_util
13177 grpc_test_util
13178 grpc++
13179 grpc
13180 gpr_test_util
13181 gpr
13182 ${_gRPC_GFLAGS_LIBRARIES}
13183)
13184
13185endif (gRPC_BUILD_TESTS)
13186if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013187if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013188
13189add_executable(secure_sync_unary_ping_pong_test
13190 test/cpp/qps/secure_sync_unary_ping_pong_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070013191 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013192 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013193)
13194
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013195
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013196target_include_directories(secure_sync_unary_ping_pong_test
13197 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13198 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010013199 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010013200 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13201 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13202 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13203 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13204 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013205 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070013206 PRIVATE third_party/googletest/googletest/include
13207 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013208 PRIVATE third_party/googletest/googlemock/include
13209 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013210 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013211)
13212
13213target_link_libraries(secure_sync_unary_ping_pong_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013214 ${_gRPC_PROTOBUF_LIBRARIES}
13215 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013216 qps
Craig Tillerc75f9862017-09-05 11:34:57 -070013217 grpc++_core_stats
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013218 grpc++_test_util
13219 grpc_test_util
13220 grpc++
13221 grpc
13222 gpr_test_util
13223 gpr
yang-gfdcb7742017-07-13 10:25:42 -070013224 grpc++_test_config
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013225 ${_gRPC_GFLAGS_LIBRARIES}
13226)
13227
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013228endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013229endif (gRPC_BUILD_TESTS)
13230if (gRPC_BUILD_TESTS)
13231
13232add_executable(server_builder_plugin_test
13233 test/cpp/end2end/server_builder_plugin_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070013234 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013235 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013236)
13237
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013238
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013239target_include_directories(server_builder_plugin_test
13240 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13241 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010013242 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010013243 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13244 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13245 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13246 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13247 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013248 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070013249 PRIVATE third_party/googletest/googletest/include
13250 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013251 PRIVATE third_party/googletest/googlemock/include
13252 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013253 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013254)
13255
13256target_link_libraries(server_builder_plugin_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013257 ${_gRPC_PROTOBUF_LIBRARIES}
13258 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013259 grpc++_test_util
13260 grpc_test_util
13261 grpc++
13262 grpc
13263 gpr_test_util
13264 gpr
13265 ${_gRPC_GFLAGS_LIBRARIES}
13266)
13267
13268endif (gRPC_BUILD_TESTS)
13269if (gRPC_BUILD_TESTS)
13270
Craig Tiller332bcc32017-03-08 12:47:46 -080013271add_executable(server_builder_test
13272 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc
13273 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc
13274 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h
13275 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h
13276 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc
13277 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc
13278 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h
13279 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h
13280 test/cpp/server/server_builder_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070013281 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013282 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller332bcc32017-03-08 12:47:46 -080013283)
13284
13285protobuf_generate_grpc_cpp(
13286 src/proto/grpc/testing/echo_messages.proto
13287)
13288protobuf_generate_grpc_cpp(
13289 src/proto/grpc/testing/echo.proto
13290)
13291
13292target_include_directories(server_builder_test
13293 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13294 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010013295 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010013296 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13297 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13298 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13299 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13300 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013301 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070013302 PRIVATE third_party/googletest/googletest/include
13303 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013304 PRIVATE third_party/googletest/googlemock/include
13305 PRIVATE third_party/googletest/googlemock
Craig Tiller332bcc32017-03-08 12:47:46 -080013306 PRIVATE ${_gRPC_PROTO_GENS_DIR}
13307)
13308
13309target_link_libraries(server_builder_test
13310 ${_gRPC_PROTOBUF_LIBRARIES}
13311 ${_gRPC_ALLTARGETS_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -070013312 grpc++_test_util_unsecure
13313 grpc_test_util_unsecure
Craig Tiller332bcc32017-03-08 12:47:46 -080013314 gpr_test_util
Vijay Pai168034b2017-07-31 00:53:10 -070013315 grpc++_unsecure
13316 grpc_unsecure
Craig Tiller332bcc32017-03-08 12:47:46 -080013317 gpr
13318 ${_gRPC_GFLAGS_LIBRARIES}
13319)
13320
13321endif (gRPC_BUILD_TESTS)
13322if (gRPC_BUILD_TESTS)
Alexander Polcynac8b72f2018-05-04 17:18:27 -070013323if(_gRPC_PLATFORM_POSIX)
13324
13325add_executable(server_builder_with_socket_mutator_test
13326 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc
13327 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc
13328 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h
13329 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h
13330 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc
13331 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc
13332 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h
13333 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h
13334 test/cpp/server/server_builder_with_socket_mutator_test.cc
13335 third_party/googletest/googletest/src/gtest-all.cc
13336 third_party/googletest/googlemock/src/gmock-all.cc
13337)
13338
13339protobuf_generate_grpc_cpp(
13340 src/proto/grpc/testing/echo_messages.proto
13341)
13342protobuf_generate_grpc_cpp(
13343 src/proto/grpc/testing/echo.proto
13344)
13345
13346target_include_directories(server_builder_with_socket_mutator_test
13347 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13348 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13349 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
13350 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13351 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13352 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13353 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13354 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
13355 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
13356 PRIVATE third_party/googletest/googletest/include
13357 PRIVATE third_party/googletest/googletest
13358 PRIVATE third_party/googletest/googlemock/include
13359 PRIVATE third_party/googletest/googlemock
13360 PRIVATE ${_gRPC_PROTO_GENS_DIR}
13361)
13362
13363target_link_libraries(server_builder_with_socket_mutator_test
13364 ${_gRPC_PROTOBUF_LIBRARIES}
13365 ${_gRPC_ALLTARGETS_LIBRARIES}
13366 grpc++_test_util_unsecure
13367 grpc_test_util_unsecure
13368 gpr_test_util
13369 grpc++_unsecure
13370 grpc_unsecure
13371 gpr
13372 ${_gRPC_GFLAGS_LIBRARIES}
13373)
13374
13375endif()
13376endif (gRPC_BUILD_TESTS)
13377if (gRPC_BUILD_TESTS)
Craig Tiller332bcc32017-03-08 12:47:46 -080013378
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013379add_executable(server_context_test_spouse_test
13380 test/cpp/test/server_context_test_spouse_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070013381 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013382 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013383)
13384
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013385
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013386target_include_directories(server_context_test_spouse_test
13387 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13388 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010013389 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010013390 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13391 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13392 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13393 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13394 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013395 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070013396 PRIVATE third_party/googletest/googletest/include
13397 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013398 PRIVATE third_party/googletest/googlemock/include
13399 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013400 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013401)
13402
13403target_link_libraries(server_context_test_spouse_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013404 ${_gRPC_PROTOBUF_LIBRARIES}
13405 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013406 grpc_test_util
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013407 grpc++
13408 grpc
13409 gpr_test_util
13410 gpr
13411 ${_gRPC_GFLAGS_LIBRARIES}
13412)
13413
13414endif (gRPC_BUILD_TESTS)
13415if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013416if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013417
13418add_executable(server_crash_test
13419 test/cpp/end2end/server_crash_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070013420 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013421 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013422)
13423
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013424
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013425target_include_directories(server_crash_test
13426 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13427 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010013428 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010013429 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13430 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13431 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13432 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13433 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013434 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070013435 PRIVATE third_party/googletest/googletest/include
13436 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013437 PRIVATE third_party/googletest/googlemock/include
13438 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013439 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013440)
13441
13442target_link_libraries(server_crash_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013443 ${_gRPC_PROTOBUF_LIBRARIES}
13444 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013445 grpc++_test_util
13446 grpc_test_util
13447 grpc++
13448 grpc
13449 gpr_test_util
13450 gpr
13451 ${_gRPC_GFLAGS_LIBRARIES}
13452)
13453
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013454endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013455endif (gRPC_BUILD_TESTS)
13456if (gRPC_BUILD_TESTS)
13457
13458add_executable(server_crash_test_client
13459 test/cpp/end2end/server_crash_test_client.cc
Ken Payson975b5102017-03-30 17:38:40 -070013460 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013461 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013462)
13463
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013464
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013465target_include_directories(server_crash_test_client
13466 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13467 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010013468 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010013469 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13470 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13471 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13472 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13473 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013474 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070013475 PRIVATE third_party/googletest/googletest/include
13476 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013477 PRIVATE third_party/googletest/googlemock/include
13478 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013479 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013480)
13481
13482target_link_libraries(server_crash_test_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013483 ${_gRPC_PROTOBUF_LIBRARIES}
13484 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013485 grpc++_test_util
13486 grpc_test_util
13487 grpc++
13488 grpc
13489 gpr_test_util
13490 gpr
13491 ${_gRPC_GFLAGS_LIBRARIES}
13492)
13493
13494endif (gRPC_BUILD_TESTS)
13495if (gRPC_BUILD_TESTS)
13496
yang-g98cd36e2018-01-18 15:34:01 -080013497add_executable(server_early_return_test
13498 test/cpp/end2end/server_early_return_test.cc
13499 third_party/googletest/googletest/src/gtest-all.cc
13500 third_party/googletest/googlemock/src/gmock-all.cc
13501)
13502
13503
13504target_include_directories(server_early_return_test
13505 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13506 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13507 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
13508 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13509 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13510 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13511 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13512 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013513 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
yang-g98cd36e2018-01-18 15:34:01 -080013514 PRIVATE third_party/googletest/googletest/include
13515 PRIVATE third_party/googletest/googletest
13516 PRIVATE third_party/googletest/googlemock/include
13517 PRIVATE third_party/googletest/googlemock
13518 PRIVATE ${_gRPC_PROTO_GENS_DIR}
13519)
13520
13521target_link_libraries(server_early_return_test
13522 ${_gRPC_PROTOBUF_LIBRARIES}
13523 ${_gRPC_ALLTARGETS_LIBRARIES}
13524 grpc++_test_util
13525 grpc_test_util
13526 grpc++
13527 grpc
13528 gpr_test_util
13529 gpr
13530 ${_gRPC_GFLAGS_LIBRARIES}
13531)
13532
13533endif (gRPC_BUILD_TESTS)
13534if (gRPC_BUILD_TESTS)
13535
Mark D. Roth06966112017-07-14 07:18:39 -070013536add_executable(server_request_call_test
13537 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc
13538 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc
13539 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h
13540 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h
13541 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc
13542 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc
13543 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h
13544 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h
13545 test/cpp/server/server_request_call_test.cc
13546 third_party/googletest/googletest/src/gtest-all.cc
13547 third_party/googletest/googlemock/src/gmock-all.cc
13548)
13549
13550protobuf_generate_grpc_cpp(
13551 src/proto/grpc/testing/echo_messages.proto
13552)
13553protobuf_generate_grpc_cpp(
13554 src/proto/grpc/testing/echo.proto
13555)
13556
13557target_include_directories(server_request_call_test
13558 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13559 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010013560 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010013561 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13562 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13563 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13564 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13565 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013566 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Mark D. Roth06966112017-07-14 07:18:39 -070013567 PRIVATE third_party/googletest/googletest/include
13568 PRIVATE third_party/googletest/googletest
13569 PRIVATE third_party/googletest/googlemock/include
13570 PRIVATE third_party/googletest/googlemock
13571 PRIVATE ${_gRPC_PROTO_GENS_DIR}
13572)
13573
13574target_link_libraries(server_request_call_test
13575 ${_gRPC_PROTOBUF_LIBRARIES}
13576 ${_gRPC_ALLTARGETS_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -070013577 grpc++_test_util_unsecure
13578 grpc_test_util_unsecure
Mark D. Roth06966112017-07-14 07:18:39 -070013579 gpr_test_util
Vijay Pai168034b2017-07-31 00:53:10 -070013580 grpc++_unsecure
13581 grpc_unsecure
Mark D. Roth06966112017-07-14 07:18:39 -070013582 gpr
13583 ${_gRPC_GFLAGS_LIBRARIES}
13584)
13585
13586endif (gRPC_BUILD_TESTS)
13587if (gRPC_BUILD_TESTS)
13588
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013589add_executable(shutdown_test
13590 test/cpp/end2end/shutdown_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070013591 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013592 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013593)
13594
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013595
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013596target_include_directories(shutdown_test
13597 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13598 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010013599 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010013600 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13601 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13602 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13603 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13604 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013605 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070013606 PRIVATE third_party/googletest/googletest/include
13607 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013608 PRIVATE third_party/googletest/googlemock/include
13609 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013610 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013611)
13612
13613target_link_libraries(shutdown_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013614 ${_gRPC_PROTOBUF_LIBRARIES}
13615 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013616 grpc++_test_util
13617 grpc_test_util
13618 grpc++
13619 grpc
13620 gpr_test_util
13621 gpr
13622 ${_gRPC_GFLAGS_LIBRARIES}
13623)
13624
13625endif (gRPC_BUILD_TESTS)
13626if (gRPC_BUILD_TESTS)
13627
Mark D. Roth3e7f2df2018-02-26 13:17:06 -080013628add_executable(slice_hash_table_test
13629 test/core/slice/slice_hash_table_test.cc
13630 third_party/googletest/googletest/src/gtest-all.cc
13631 third_party/googletest/googlemock/src/gmock-all.cc
13632)
13633
13634
13635target_include_directories(slice_hash_table_test
13636 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13637 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13638 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
13639 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13640 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13641 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13642 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13643 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013644 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Mark D. Roth3e7f2df2018-02-26 13:17:06 -080013645 PRIVATE third_party/googletest/googletest/include
13646 PRIVATE third_party/googletest/googletest
13647 PRIVATE third_party/googletest/googlemock/include
13648 PRIVATE third_party/googletest/googlemock
13649 PRIVATE ${_gRPC_PROTO_GENS_DIR}
13650)
13651
13652target_link_libraries(slice_hash_table_test
13653 ${_gRPC_PROTOBUF_LIBRARIES}
13654 ${_gRPC_ALLTARGETS_LIBRARIES}
13655 grpc_test_util
13656 grpc
13657 gpr_test_util
13658 gpr
13659 ${_gRPC_GFLAGS_LIBRARIES}
13660)
13661
13662endif (gRPC_BUILD_TESTS)
13663if (gRPC_BUILD_TESTS)
13664
David Garcia Quintas396d49d2018-02-28 16:06:30 -080013665add_executable(slice_weak_hash_table_test
13666 test/core/slice/slice_weak_hash_table_test.cc
13667 third_party/googletest/googletest/src/gtest-all.cc
13668 third_party/googletest/googlemock/src/gmock-all.cc
13669)
13670
13671
13672target_include_directories(slice_weak_hash_table_test
13673 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13674 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13675 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
13676 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13677 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13678 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13679 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13680 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013681 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
David Garcia Quintas396d49d2018-02-28 16:06:30 -080013682 PRIVATE third_party/googletest/googletest/include
13683 PRIVATE third_party/googletest/googletest
13684 PRIVATE third_party/googletest/googlemock/include
13685 PRIVATE third_party/googletest/googlemock
13686 PRIVATE ${_gRPC_PROTO_GENS_DIR}
13687)
13688
13689target_link_libraries(slice_weak_hash_table_test
13690 ${_gRPC_PROTOBUF_LIBRARIES}
13691 ${_gRPC_ALLTARGETS_LIBRARIES}
13692 grpc_test_util
13693 grpc
13694 gpr_test_util
13695 gpr
13696 ${_gRPC_GFLAGS_LIBRARIES}
13697)
13698
13699endif (gRPC_BUILD_TESTS)
13700if (gRPC_BUILD_TESTS)
13701
Craig Tiller97ec5eb2017-09-01 12:57:36 -070013702add_executable(stats_test
13703 test/core/debug/stats_test.cc
13704 third_party/googletest/googletest/src/gtest-all.cc
13705 third_party/googletest/googlemock/src/gmock-all.cc
13706)
13707
13708
13709target_include_directories(stats_test
13710 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13711 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010013712 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010013713 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13714 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13715 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13716 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13717 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013718 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Craig Tiller97ec5eb2017-09-01 12:57:36 -070013719 PRIVATE third_party/googletest/googletest/include
13720 PRIVATE third_party/googletest/googletest
13721 PRIVATE third_party/googletest/googlemock/include
13722 PRIVATE third_party/googletest/googlemock
13723 PRIVATE ${_gRPC_PROTO_GENS_DIR}
13724)
13725
13726target_link_libraries(stats_test
13727 ${_gRPC_PROTOBUF_LIBRARIES}
13728 ${_gRPC_ALLTARGETS_LIBRARIES}
13729 grpc++_test_util
13730 grpc_test_util
13731 grpc
13732 gpr_test_util
13733 gpr
13734 ${_gRPC_GFLAGS_LIBRARIES}
13735)
13736
13737endif (gRPC_BUILD_TESTS)
13738if (gRPC_BUILD_TESTS)
13739
Mark D. Roth718c8342018-02-28 13:00:04 -080013740add_executable(status_metadata_test
13741 test/core/transport/status_metadata_test.cc
13742 third_party/googletest/googletest/src/gtest-all.cc
13743 third_party/googletest/googlemock/src/gmock-all.cc
13744)
13745
13746
13747target_include_directories(status_metadata_test
13748 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13749 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13750 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
13751 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13752 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13753 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13754 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13755 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013756 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Mark D. Roth718c8342018-02-28 13:00:04 -080013757 PRIVATE third_party/googletest/googletest/include
13758 PRIVATE third_party/googletest/googletest
13759 PRIVATE third_party/googletest/googlemock/include
13760 PRIVATE third_party/googletest/googlemock
13761 PRIVATE ${_gRPC_PROTO_GENS_DIR}
13762)
13763
13764target_link_libraries(status_metadata_test
13765 ${_gRPC_PROTOBUF_LIBRARIES}
13766 ${_gRPC_ALLTARGETS_LIBRARIES}
13767 grpc
13768 ${_gRPC_GFLAGS_LIBRARIES}
13769)
13770
13771endif (gRPC_BUILD_TESTS)
13772if (gRPC_BUILD_TESTS)
13773
Mark D. Roth718c8342018-02-28 13:00:04 -080013774add_executable(status_util_test
ncteisen3b42f832018-03-19 13:22:35 -070013775 test/core/channel/status_util_test.cc
Mark D. Roth718c8342018-02-28 13:00:04 -080013776 third_party/googletest/googletest/src/gtest-all.cc
13777 third_party/googletest/googlemock/src/gmock-all.cc
13778)
13779
13780
13781target_include_directories(status_util_test
13782 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13783 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13784 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
13785 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13786 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13787 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13788 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13789 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013790 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Mark D. Roth718c8342018-02-28 13:00:04 -080013791 PRIVATE third_party/googletest/googletest/include
13792 PRIVATE third_party/googletest/googletest
13793 PRIVATE third_party/googletest/googlemock/include
13794 PRIVATE third_party/googletest/googlemock
13795 PRIVATE ${_gRPC_PROTO_GENS_DIR}
13796)
13797
13798target_link_libraries(status_util_test
13799 ${_gRPC_PROTOBUF_LIBRARIES}
13800 ${_gRPC_ALLTARGETS_LIBRARIES}
13801 grpc
13802 ${_gRPC_GFLAGS_LIBRARIES}
13803)
13804
13805endif (gRPC_BUILD_TESTS)
13806if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013807if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013808
13809add_executable(streaming_throughput_test
13810 test/cpp/end2end/streaming_throughput_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070013811 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013812 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013813)
13814
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013815
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013816target_include_directories(streaming_throughput_test
13817 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13818 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010013819 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010013820 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13821 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13822 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13823 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13824 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013825 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070013826 PRIVATE third_party/googletest/googletest/include
13827 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013828 PRIVATE third_party/googletest/googlemock/include
13829 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013830 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013831)
13832
13833target_link_libraries(streaming_throughput_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013834 ${_gRPC_PROTOBUF_LIBRARIES}
13835 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013836 grpc++_test_util
13837 grpc_test_util
13838 grpc++
13839 grpc
13840 gpr_test_util
13841 gpr
13842 ${_gRPC_GFLAGS_LIBRARIES}
13843)
13844
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013845endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013846endif (gRPC_BUILD_TESTS)
13847if (gRPC_BUILD_TESTS)
13848
13849add_executable(stress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013850 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
13851 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
13852 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
13853 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
13854 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
13855 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
13856 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
13857 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
13858 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.cc
13859 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.cc
13860 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.h
13861 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.h
13862 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
13863 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
13864 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
13865 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013866 test/cpp/interop/interop_client.cc
13867 test/cpp/interop/stress_interop_client.cc
13868 test/cpp/interop/stress_test.cc
13869 test/cpp/util/metrics_server.cc
Ken Payson975b5102017-03-30 17:38:40 -070013870 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013871 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013872)
13873
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013874protobuf_generate_grpc_cpp(
13875 src/proto/grpc/testing/empty.proto
13876)
13877protobuf_generate_grpc_cpp(
13878 src/proto/grpc/testing/messages.proto
13879)
13880protobuf_generate_grpc_cpp(
13881 src/proto/grpc/testing/metrics.proto
13882)
13883protobuf_generate_grpc_cpp(
13884 src/proto/grpc/testing/test.proto
13885)
13886
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013887target_include_directories(stress_test
13888 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13889 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010013890 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010013891 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13892 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13893 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13894 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13895 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013896 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070013897 PRIVATE third_party/googletest/googletest/include
13898 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013899 PRIVATE third_party/googletest/googlemock/include
13900 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013901 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013902)
13903
13904target_link_libraries(stress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013905 ${_gRPC_PROTOBUF_LIBRARIES}
13906 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013907 grpc++_test_util
13908 grpc_test_util
13909 grpc++
13910 grpc
13911 gpr_test_util
13912 gpr
13913 grpc++_test_config
13914 ${_gRPC_GFLAGS_LIBRARIES}
13915)
13916
13917endif (gRPC_BUILD_TESTS)
13918if (gRPC_BUILD_TESTS)
13919
13920add_executable(thread_manager_test
13921 test/cpp/thread_manager/thread_manager_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070013922 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013923 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013924)
13925
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013926
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013927target_include_directories(thread_manager_test
13928 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13929 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010013930 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010013931 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13932 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13933 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13934 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13935 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013936 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070013937 PRIVATE third_party/googletest/googletest/include
13938 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013939 PRIVATE third_party/googletest/googlemock/include
13940 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013941 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013942)
13943
13944target_link_libraries(thread_manager_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013945 ${_gRPC_PROTOBUF_LIBRARIES}
13946 ${_gRPC_ALLTARGETS_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -070013947 grpc++_unsecure
13948 grpc_unsecure
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013949 gpr
13950 grpc++_test_config
13951 ${_gRPC_GFLAGS_LIBRARIES}
13952)
13953
13954endif (gRPC_BUILD_TESTS)
13955if (gRPC_BUILD_TESTS)
13956
13957add_executable(thread_stress_test
13958 test/cpp/end2end/thread_stress_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070013959 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013960 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013961)
13962
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013963
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013964target_include_directories(thread_stress_test
13965 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13966 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010013967 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010013968 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
13969 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
13970 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
13971 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
13972 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080013973 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070013974 PRIVATE third_party/googletest/googletest/include
13975 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070013976 PRIVATE third_party/googletest/googlemock/include
13977 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013978 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013979)
13980
13981target_link_libraries(thread_stress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013982 ${_gRPC_PROTOBUF_LIBRARIES}
13983 ${_gRPC_ALLTARGETS_LIBRARIES}
Vijay Pai168034b2017-07-31 00:53:10 -070013984 grpc++_test_util_unsecure
13985 grpc_test_util_unsecure
13986 grpc++_unsecure
13987 grpc_unsecure
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013988 gpr_test_util
13989 gpr
13990 ${_gRPC_GFLAGS_LIBRARIES}
13991)
13992
13993endif (gRPC_BUILD_TESTS)
13994if (gRPC_BUILD_TESTS)
Craig Tiller247b2312017-10-09 09:16:19 -070013995
Craig Tiller247b2312017-10-09 09:16:19 -070013996add_executable(transport_pid_controller_test
13997 test/core/transport/pid_controller_test.cc
13998 third_party/googletest/googletest/src/gtest-all.cc
13999 third_party/googletest/googlemock/src/gmock-all.cc
14000)
14001
14002
14003target_include_directories(transport_pid_controller_test
14004 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14005 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014006 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014007 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14008 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14009 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14010 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14011 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014012 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Craig Tiller247b2312017-10-09 09:16:19 -070014013 PRIVATE third_party/googletest/googletest/include
14014 PRIVATE third_party/googletest/googletest
14015 PRIVATE third_party/googletest/googlemock/include
14016 PRIVATE third_party/googletest/googlemock
14017 PRIVATE ${_gRPC_PROTO_GENS_DIR}
14018)
14019
14020target_link_libraries(transport_pid_controller_test
14021 ${_gRPC_PROTOBUF_LIBRARIES}
14022 ${_gRPC_ALLTARGETS_LIBRARIES}
14023 grpc++_test_util
14024 grpc++
14025 grpc_test_util
14026 grpc
14027 gpr_test_util
14028 gpr
14029 ${_gRPC_GFLAGS_LIBRARIES}
14030)
14031
14032endif (gRPC_BUILD_TESTS)
14033if (gRPC_BUILD_TESTS)
Yihua Zhangeaf64862018-03-06 21:40:45 -080014034
14035add_executable(transport_security_common_api_test
14036 test/core/tsi/alts/handshaker/transport_security_common_api_test.cc
14037 third_party/googletest/googletest/src/gtest-all.cc
14038 third_party/googletest/googlemock/src/gmock-all.cc
14039)
14040
14041
14042target_include_directories(transport_security_common_api_test
14043 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14044 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
14045 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
14046 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14047 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14048 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14049 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14050 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014051 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yihua Zhangeaf64862018-03-06 21:40:45 -080014052 PRIVATE third_party/googletest/googletest/include
14053 PRIVATE third_party/googletest/googletest
14054 PRIVATE third_party/googletest/googlemock/include
14055 PRIVATE third_party/googletest/googlemock
14056 PRIVATE ${_gRPC_PROTO_GENS_DIR}
14057)
14058
14059target_link_libraries(transport_security_common_api_test
14060 ${_gRPC_PROTOBUF_LIBRARIES}
14061 ${_gRPC_ALLTARGETS_LIBRARIES}
14062 alts_test_util
14063 gpr
14064 grpc
14065 ${_gRPC_GFLAGS_LIBRARIES}
14066)
14067
14068endif (gRPC_BUILD_TESTS)
14069if (gRPC_BUILD_TESTS)
Craig Tiller1bb53712017-02-04 15:39:27 -080014070if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014071
Craig Tiller9a3997c2017-01-30 13:22:33 -080014072add_executable(writes_per_rpc_test
14073 test/cpp/performance/writes_per_rpc_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070014074 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070014075 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller9a3997c2017-01-30 13:22:33 -080014076)
14077
Craig Tillerc40b3472017-02-03 11:54:26 -080014078
Craig Tiller9a3997c2017-01-30 13:22:33 -080014079target_include_directories(writes_per_rpc_test
14080 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14081 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014082 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014083 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14084 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14085 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14086 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14087 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014088 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson975b5102017-03-30 17:38:40 -070014089 PRIVATE third_party/googletest/googletest/include
14090 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070014091 PRIVATE third_party/googletest/googlemock/include
14092 PRIVATE third_party/googletest/googlemock
Craig Tillerc40b3472017-02-03 11:54:26 -080014093 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Craig Tiller9a3997c2017-01-30 13:22:33 -080014094)
14095
14096target_link_libraries(writes_per_rpc_test
Craig Tillerc40b3472017-02-03 11:54:26 -080014097 ${_gRPC_PROTOBUF_LIBRARIES}
14098 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller9a3997c2017-01-30 13:22:33 -080014099 grpc++_test_util
14100 grpc_test_util
14101 grpc++
14102 grpc
14103 gpr_test_util
14104 gpr
14105 ${_gRPC_GFLAGS_LIBRARIES}
14106)
14107
Craig Tiller1bb53712017-02-04 15:39:27 -080014108endif()
Craig Tiller9a3997c2017-01-30 13:22:33 -080014109endif (gRPC_BUILD_TESTS)
14110if (gRPC_BUILD_TESTS)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014111
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014112add_executable(public_headers_must_be_c89
14113 test/core/surface/public_headers_must_be_c89.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014114)
14115
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014116
14117target_include_directories(public_headers_must_be_c89
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014118 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14119 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014120 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014121 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14122 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14123 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14124 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14125 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014126 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014127)
14128
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014129target_link_libraries(public_headers_must_be_c89
14130 ${_gRPC_ALLTARGETS_LIBRARIES}
14131 grpc
14132 gpr
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014133)
14134
14135endif (gRPC_BUILD_TESTS)
ncteisencf1d28b2017-12-04 12:44:28 -080014136
14137add_executable(gen_hpack_tables
14138 tools/codegen/core/gen_hpack_tables.cc
14139)
14140
14141
14142target_include_directories(gen_hpack_tables
14143 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14144 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014145 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014146 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14147 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14148 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14149 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14150 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014151 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
ncteisencf1d28b2017-12-04 12:44:28 -080014152)
14153
14154target_link_libraries(gen_hpack_tables
14155 ${_gRPC_ALLTARGETS_LIBRARIES}
14156 gpr
14157 grpc
14158)
14159
14160
ncteisencf1d28b2017-12-04 12:44:28 -080014161add_executable(gen_legal_metadata_characters
14162 tools/codegen/core/gen_legal_metadata_characters.cc
14163)
14164
14165
14166target_include_directories(gen_legal_metadata_characters
14167 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14168 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014169 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014170 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14171 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14172 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14173 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14174 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014175 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
ncteisencf1d28b2017-12-04 12:44:28 -080014176)
14177
14178target_link_libraries(gen_legal_metadata_characters
14179 ${_gRPC_ALLTARGETS_LIBRARIES}
14180)
14181
14182
ncteisencf1d28b2017-12-04 12:44:28 -080014183add_executable(gen_percent_encoding_tables
14184 tools/codegen/core/gen_percent_encoding_tables.cc
14185)
14186
14187
14188target_include_directories(gen_percent_encoding_tables
14189 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14190 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014191 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014192 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14193 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14194 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14195 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14196 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014197 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
ncteisencf1d28b2017-12-04 12:44:28 -080014198)
14199
14200target_link_libraries(gen_percent_encoding_tables
14201 ${_gRPC_ALLTARGETS_LIBRARIES}
14202)
14203
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014204if (gRPC_BUILD_TESTS)
14205
14206add_executable(badreq_bad_client_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014207 test/core/bad_client/tests/badreq.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014208)
14209
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014210
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014211target_include_directories(badreq_bad_client_test
14212 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14213 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014214 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014215 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14216 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14217 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14218 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14219 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014220 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014221)
14222
14223target_link_libraries(badreq_bad_client_test
14224 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014225 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014226 bad_client_test
14227 grpc_test_util_unsecure
14228 grpc_unsecure
14229 gpr_test_util
14230 gpr
14231)
14232
14233endif (gRPC_BUILD_TESTS)
14234if (gRPC_BUILD_TESTS)
14235
14236add_executable(connection_prefix_bad_client_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014237 test/core/bad_client/tests/connection_prefix.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014238)
14239
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014240
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014241target_include_directories(connection_prefix_bad_client_test
14242 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14243 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014244 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014245 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14246 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14247 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14248 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14249 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014250 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014251)
14252
14253target_link_libraries(connection_prefix_bad_client_test
14254 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014255 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014256 bad_client_test
14257 grpc_test_util_unsecure
14258 grpc_unsecure
14259 gpr_test_util
14260 gpr
14261)
14262
14263endif (gRPC_BUILD_TESTS)
14264if (gRPC_BUILD_TESTS)
14265
Ken Payson1dc08332018-01-25 16:52:51 -080014266add_executable(duplicate_header_bad_client_test
14267 test/core/bad_client/tests/duplicate_header.cc
14268)
14269
14270
14271target_include_directories(duplicate_header_bad_client_test
14272 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14273 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
14274 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
14275 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14276 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14277 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14278 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14279 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014280 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Ken Payson1dc08332018-01-25 16:52:51 -080014281)
14282
14283target_link_libraries(duplicate_header_bad_client_test
14284 ${_gRPC_SSL_LIBRARIES}
14285 ${_gRPC_ALLTARGETS_LIBRARIES}
14286 bad_client_test
14287 grpc_test_util_unsecure
14288 grpc_unsecure
14289 gpr_test_util
14290 gpr
14291)
14292
14293endif (gRPC_BUILD_TESTS)
14294if (gRPC_BUILD_TESTS)
14295
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014296add_executable(head_of_line_blocking_bad_client_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014297 test/core/bad_client/tests/head_of_line_blocking.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014298)
14299
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014300
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014301target_include_directories(head_of_line_blocking_bad_client_test
14302 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14303 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014304 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014305 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14306 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14307 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14308 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14309 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014310 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014311)
14312
14313target_link_libraries(head_of_line_blocking_bad_client_test
14314 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014315 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014316 bad_client_test
14317 grpc_test_util_unsecure
14318 grpc_unsecure
14319 gpr_test_util
14320 gpr
14321)
14322
14323endif (gRPC_BUILD_TESTS)
14324if (gRPC_BUILD_TESTS)
14325
14326add_executable(headers_bad_client_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014327 test/core/bad_client/tests/headers.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014328)
14329
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014330
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014331target_include_directories(headers_bad_client_test
14332 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14333 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014334 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014335 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14336 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14337 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14338 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14339 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014340 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014341)
14342
14343target_link_libraries(headers_bad_client_test
14344 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014345 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014346 bad_client_test
14347 grpc_test_util_unsecure
14348 grpc_unsecure
14349 gpr_test_util
14350 gpr
14351)
14352
14353endif (gRPC_BUILD_TESTS)
14354if (gRPC_BUILD_TESTS)
14355
14356add_executable(initial_settings_frame_bad_client_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014357 test/core/bad_client/tests/initial_settings_frame.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014358)
14359
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014360
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014361target_include_directories(initial_settings_frame_bad_client_test
14362 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14363 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014364 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014365 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14366 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14367 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14368 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14369 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014370 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014371)
14372
14373target_link_libraries(initial_settings_frame_bad_client_test
14374 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014375 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014376 bad_client_test
14377 grpc_test_util_unsecure
14378 grpc_unsecure
14379 gpr_test_util
14380 gpr
14381)
14382
14383endif (gRPC_BUILD_TESTS)
14384if (gRPC_BUILD_TESTS)
14385
Yash Tibrewal1791df02018-01-19 18:23:20 -080014386add_executable(large_metadata_bad_client_test
14387 test/core/bad_client/tests/large_metadata.cc
14388)
14389
14390
14391target_include_directories(large_metadata_bad_client_test
14392 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14393 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
14394 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Yash Tibrewalea318b62018-01-24 10:59:26 -080014395 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14396 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14397 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14398 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14399 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014400 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Yash Tibrewal1791df02018-01-19 18:23:20 -080014401)
14402
14403target_link_libraries(large_metadata_bad_client_test
14404 ${_gRPC_SSL_LIBRARIES}
14405 ${_gRPC_ALLTARGETS_LIBRARIES}
14406 bad_client_test
14407 grpc_test_util_unsecure
14408 grpc_unsecure
14409 gpr_test_util
14410 gpr
14411)
14412
14413endif (gRPC_BUILD_TESTS)
14414if (gRPC_BUILD_TESTS)
14415
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014416add_executable(server_registered_method_bad_client_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014417 test/core/bad_client/tests/server_registered_method.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014418)
14419
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014420
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014421target_include_directories(server_registered_method_bad_client_test
14422 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14423 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014424 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014425 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14426 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14427 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14428 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14429 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014430 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014431)
14432
14433target_link_libraries(server_registered_method_bad_client_test
14434 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014435 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014436 bad_client_test
14437 grpc_test_util_unsecure
14438 grpc_unsecure
14439 gpr_test_util
14440 gpr
14441)
14442
14443endif (gRPC_BUILD_TESTS)
14444if (gRPC_BUILD_TESTS)
14445
14446add_executable(simple_request_bad_client_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014447 test/core/bad_client/tests/simple_request.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014448)
14449
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014450
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014451target_include_directories(simple_request_bad_client_test
14452 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14453 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014454 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014455 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14456 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14457 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14458 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14459 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014460 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014461)
14462
14463target_link_libraries(simple_request_bad_client_test
14464 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014465 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014466 bad_client_test
14467 grpc_test_util_unsecure
14468 grpc_unsecure
14469 gpr_test_util
14470 gpr
14471)
14472
14473endif (gRPC_BUILD_TESTS)
14474if (gRPC_BUILD_TESTS)
14475
14476add_executable(unknown_frame_bad_client_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014477 test/core/bad_client/tests/unknown_frame.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014478)
14479
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014480
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014481target_include_directories(unknown_frame_bad_client_test
14482 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14483 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014484 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014485 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14486 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14487 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14488 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14489 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014490 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014491)
14492
14493target_link_libraries(unknown_frame_bad_client_test
14494 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014495 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014496 bad_client_test
14497 grpc_test_util_unsecure
14498 grpc_unsecure
14499 gpr_test_util
14500 gpr
14501)
14502
14503endif (gRPC_BUILD_TESTS)
14504if (gRPC_BUILD_TESTS)
14505
14506add_executable(window_overflow_bad_client_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014507 test/core/bad_client/tests/window_overflow.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014508)
14509
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014510
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014511target_include_directories(window_overflow_bad_client_test
14512 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14513 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014514 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014515 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14516 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14517 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14518 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14519 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014520 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014521)
14522
14523target_link_libraries(window_overflow_bad_client_test
14524 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014525 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014526 bad_client_test
14527 grpc_test_util_unsecure
14528 grpc_unsecure
14529 gpr_test_util
14530 gpr
14531)
14532
14533endif (gRPC_BUILD_TESTS)
14534if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014535if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014536
14537add_executable(bad_ssl_cert_server
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014538 test/core/bad_ssl/servers/cert.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014539)
14540
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014541
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014542target_include_directories(bad_ssl_cert_server
14543 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14544 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014545 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014546 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14547 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14548 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14549 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14550 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014551 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014552)
14553
14554target_link_libraries(bad_ssl_cert_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014555 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014556 bad_ssl_test_server
14557 grpc_test_util
14558 grpc
14559 gpr_test_util
14560 gpr
14561)
14562
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014563endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014564endif (gRPC_BUILD_TESTS)
14565if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014566if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014567
14568add_executable(bad_ssl_cert_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014569 test/core/bad_ssl/bad_ssl_test.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014570)
14571
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014572
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014573target_include_directories(bad_ssl_cert_test
14574 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14575 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014576 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014577 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14578 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14579 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14580 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14581 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014582 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014583)
14584
14585target_link_libraries(bad_ssl_cert_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014586 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014587 grpc_test_util
14588 grpc
14589 gpr_test_util
14590 gpr
14591)
14592
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014593endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014594endif (gRPC_BUILD_TESTS)
14595if (gRPC_BUILD_TESTS)
14596
14597add_executable(h2_census_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014598 test/core/end2end/fixtures/h2_census.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014599)
14600
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014601
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014602target_include_directories(h2_census_test
14603 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14604 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014605 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014606 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14607 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14608 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14609 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14610 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014611 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014612)
14613
14614target_link_libraries(h2_census_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014615 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014616 end2end_tests
14617 grpc_test_util
14618 grpc
14619 gpr_test_util
14620 gpr
14621)
14622
14623endif (gRPC_BUILD_TESTS)
14624if (gRPC_BUILD_TESTS)
14625
14626add_executable(h2_compress_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014627 test/core/end2end/fixtures/h2_compress.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014628)
14629
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014630
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014631target_include_directories(h2_compress_test
14632 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14633 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014634 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014635 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14636 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14637 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14638 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14639 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014640 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014641)
14642
14643target_link_libraries(h2_compress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014644 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014645 end2end_tests
14646 grpc_test_util
14647 grpc
14648 gpr_test_util
14649 gpr
14650)
14651
14652endif (gRPC_BUILD_TESTS)
14653if (gRPC_BUILD_TESTS)
14654
14655add_executable(h2_fakesec_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014656 test/core/end2end/fixtures/h2_fakesec.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014657)
14658
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014659
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014660target_include_directories(h2_fakesec_test
14661 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14662 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014663 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014664 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14665 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14666 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14667 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14668 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014669 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014670)
14671
14672target_link_libraries(h2_fakesec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014673 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014674 end2end_tests
14675 grpc_test_util
14676 grpc
14677 gpr_test_util
14678 gpr
14679)
14680
14681endif (gRPC_BUILD_TESTS)
14682if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014683if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014684
14685add_executable(h2_fd_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014686 test/core/end2end/fixtures/h2_fd.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014687)
14688
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014689
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014690target_include_directories(h2_fd_test
14691 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14692 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014693 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014694 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14695 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14696 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14697 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14698 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014699 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014700)
14701
14702target_link_libraries(h2_fd_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014703 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014704 end2end_tests
14705 grpc_test_util
14706 grpc
14707 gpr_test_util
14708 gpr
14709)
14710
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014711endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014712endif (gRPC_BUILD_TESTS)
14713if (gRPC_BUILD_TESTS)
14714
14715add_executable(h2_full_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014716 test/core/end2end/fixtures/h2_full.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014717)
14718
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014719
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014720target_include_directories(h2_full_test
14721 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14722 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014723 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014724 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14725 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14726 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14727 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14728 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014729 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014730)
14731
14732target_link_libraries(h2_full_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014733 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014734 end2end_tests
14735 grpc_test_util
14736 grpc
14737 gpr_test_util
14738 gpr
14739)
14740
14741endif (gRPC_BUILD_TESTS)
14742if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014743if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014744
14745add_executable(h2_full+pipe_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014746 test/core/end2end/fixtures/h2_full+pipe.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014747)
14748
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014749
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014750target_include_directories(h2_full+pipe_test
14751 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14752 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014753 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014754 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14755 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14756 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14757 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14758 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014759 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014760)
14761
14762target_link_libraries(h2_full+pipe_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014763 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014764 end2end_tests
14765 grpc_test_util
14766 grpc
14767 gpr_test_util
14768 gpr
14769)
14770
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014771endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014772endif (gRPC_BUILD_TESTS)
14773if (gRPC_BUILD_TESTS)
14774
14775add_executable(h2_full+trace_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014776 test/core/end2end/fixtures/h2_full+trace.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014777)
14778
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014779
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014780target_include_directories(h2_full+trace_test
14781 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14782 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014783 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014784 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14785 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14786 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14787 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14788 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014789 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014790)
14791
14792target_link_libraries(h2_full+trace_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014793 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014794 end2end_tests
14795 grpc_test_util
14796 grpc
14797 gpr_test_util
14798 gpr
14799)
14800
14801endif (gRPC_BUILD_TESTS)
14802if (gRPC_BUILD_TESTS)
14803
Muxi Yan29ff4662017-05-15 10:27:55 -070014804add_executable(h2_full+workarounds_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014805 test/core/end2end/fixtures/h2_full+workarounds.cc
Muxi Yan29ff4662017-05-15 10:27:55 -070014806)
14807
14808
14809target_include_directories(h2_full+workarounds_test
14810 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14811 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014812 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014813 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14814 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14815 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14816 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14817 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014818 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Muxi Yan29ff4662017-05-15 10:27:55 -070014819)
14820
14821target_link_libraries(h2_full+workarounds_test
14822 ${_gRPC_ALLTARGETS_LIBRARIES}
14823 end2end_tests
14824 grpc_test_util
14825 grpc
14826 gpr_test_util
14827 gpr
14828)
14829
14830endif (gRPC_BUILD_TESTS)
14831if (gRPC_BUILD_TESTS)
14832
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014833add_executable(h2_http_proxy_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014834 test/core/end2end/fixtures/h2_http_proxy.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014835)
14836
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014837
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014838target_include_directories(h2_http_proxy_test
14839 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14840 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014841 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014842 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14843 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14844 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14845 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14846 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014847 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014848)
14849
14850target_link_libraries(h2_http_proxy_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014851 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014852 end2end_tests
14853 grpc_test_util
14854 grpc
14855 gpr_test_util
14856 gpr
14857)
14858
14859endif (gRPC_BUILD_TESTS)
14860if (gRPC_BUILD_TESTS)
14861
14862add_executable(h2_load_reporting_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014863 test/core/end2end/fixtures/h2_load_reporting.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014864)
14865
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014866
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014867target_include_directories(h2_load_reporting_test
14868 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14869 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014870 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014871 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14872 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14873 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14874 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14875 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014876 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014877)
14878
14879target_link_libraries(h2_load_reporting_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014880 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014881 end2end_tests
14882 grpc_test_util
14883 grpc
14884 gpr_test_util
14885 gpr
14886)
14887
14888endif (gRPC_BUILD_TESTS)
14889if (gRPC_BUILD_TESTS)
14890
14891add_executable(h2_oauth2_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014892 test/core/end2end/fixtures/h2_oauth2.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014893)
14894
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014895
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014896target_include_directories(h2_oauth2_test
14897 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14898 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014899 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014900 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14901 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14902 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14903 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14904 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014905 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014906)
14907
14908target_link_libraries(h2_oauth2_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014909 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014910 end2end_tests
14911 grpc_test_util
14912 grpc
14913 gpr_test_util
14914 gpr
14915)
14916
14917endif (gRPC_BUILD_TESTS)
14918if (gRPC_BUILD_TESTS)
14919
14920add_executable(h2_proxy_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014921 test/core/end2end/fixtures/h2_proxy.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014922)
14923
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014924
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014925target_include_directories(h2_proxy_test
14926 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14927 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014928 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014929 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14930 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14931 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14932 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14933 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014934 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014935)
14936
14937target_link_libraries(h2_proxy_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014938 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014939 end2end_tests
14940 grpc_test_util
14941 grpc
14942 gpr_test_util
14943 gpr
14944)
14945
14946endif (gRPC_BUILD_TESTS)
14947if (gRPC_BUILD_TESTS)
14948
14949add_executable(h2_sockpair_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014950 test/core/end2end/fixtures/h2_sockpair.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014951)
14952
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014953
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014954target_include_directories(h2_sockpair_test
14955 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14956 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014957 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014958 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14959 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14960 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14961 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14962 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014963 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014964)
14965
14966target_link_libraries(h2_sockpair_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014967 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014968 end2end_tests
14969 grpc_test_util
14970 grpc
14971 gpr_test_util
14972 gpr
14973)
14974
14975endif (gRPC_BUILD_TESTS)
14976if (gRPC_BUILD_TESTS)
14977
14978add_executable(h2_sockpair+trace_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070014979 test/core/end2end/fixtures/h2_sockpair+trace.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014980)
14981
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014982
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014983target_include_directories(h2_sockpair+trace_test
14984 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14985 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010014986 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010014987 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
14988 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
14989 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
14990 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
14991 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080014992 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014993)
14994
14995target_link_libraries(h2_sockpair+trace_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014996 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014997 end2end_tests
14998 grpc_test_util
14999 grpc
15000 gpr_test_util
15001 gpr
15002)
15003
15004endif (gRPC_BUILD_TESTS)
15005if (gRPC_BUILD_TESTS)
15006
15007add_executable(h2_sockpair_1byte_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015008 test/core/end2end/fixtures/h2_sockpair_1byte.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015009)
15010
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015011
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015012target_include_directories(h2_sockpair_1byte_test
15013 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15014 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015015 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015016 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15017 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15018 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15019 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15020 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015021 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015022)
15023
15024target_link_libraries(h2_sockpair_1byte_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015025 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015026 end2end_tests
15027 grpc_test_util
15028 grpc
15029 gpr_test_util
15030 gpr
15031)
15032
15033endif (gRPC_BUILD_TESTS)
15034if (gRPC_BUILD_TESTS)
15035
15036add_executable(h2_ssl_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015037 test/core/end2end/fixtures/h2_ssl.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015038)
15039
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015040
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015041target_include_directories(h2_ssl_test
15042 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15043 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015044 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015045 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15046 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15047 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15048 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15049 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015050 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015051)
15052
15053target_link_libraries(h2_ssl_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015054 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015055 end2end_tests
15056 grpc_test_util
15057 grpc
15058 gpr_test_util
15059 gpr
15060)
15061
15062endif (gRPC_BUILD_TESTS)
15063if (gRPC_BUILD_TESTS)
15064
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015065add_executable(h2_ssl_proxy_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015066 test/core/end2end/fixtures/h2_ssl_proxy.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015067)
15068
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015069
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015070target_include_directories(h2_ssl_proxy_test
15071 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15072 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015073 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015074 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15075 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15076 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15077 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15078 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015079 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015080)
15081
15082target_link_libraries(h2_ssl_proxy_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015083 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015084 end2end_tests
15085 grpc_test_util
15086 grpc
15087 gpr_test_util
15088 gpr
15089)
15090
15091endif (gRPC_BUILD_TESTS)
15092if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015093if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015094
15095add_executable(h2_uds_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015096 test/core/end2end/fixtures/h2_uds.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015097)
15098
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015099
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015100target_include_directories(h2_uds_test
15101 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15102 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015103 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015104 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15105 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15106 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15107 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15108 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015109 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015110)
15111
15112target_link_libraries(h2_uds_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015113 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015114 end2end_tests
15115 grpc_test_util
15116 grpc
15117 gpr_test_util
15118 gpr
15119)
15120
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015121endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015122endif (gRPC_BUILD_TESTS)
15123if (gRPC_BUILD_TESTS)
15124
Vijay Pai3d7d5f42017-05-04 10:02:24 -070015125add_executable(inproc_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015126 test/core/end2end/fixtures/inproc.cc
Vijay Pai3d7d5f42017-05-04 10:02:24 -070015127)
15128
15129
15130target_include_directories(inproc_test
15131 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15132 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015133 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015134 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15135 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15136 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15137 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15138 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015139 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Vijay Pai3d7d5f42017-05-04 10:02:24 -070015140)
15141
15142target_link_libraries(inproc_test
15143 ${_gRPC_ALLTARGETS_LIBRARIES}
15144 end2end_tests
15145 grpc_test_util
15146 grpc
15147 gpr_test_util
15148 gpr
15149)
15150
15151endif (gRPC_BUILD_TESTS)
15152if (gRPC_BUILD_TESTS)
15153
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015154add_executable(h2_census_nosec_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015155 test/core/end2end/fixtures/h2_census.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015156)
15157
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015158
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015159target_include_directories(h2_census_nosec_test
15160 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15161 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015162 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015163 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15164 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15165 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15166 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15167 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015168 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015169)
15170
15171target_link_libraries(h2_census_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015172 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015173 end2end_nosec_tests
15174 grpc_test_util_unsecure
15175 grpc_unsecure
15176 gpr_test_util
15177 gpr
15178)
15179
15180endif (gRPC_BUILD_TESTS)
15181if (gRPC_BUILD_TESTS)
15182
15183add_executable(h2_compress_nosec_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015184 test/core/end2end/fixtures/h2_compress.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015185)
15186
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015187
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015188target_include_directories(h2_compress_nosec_test
15189 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15190 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015191 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015192 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15193 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15194 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15195 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15196 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015197 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015198)
15199
15200target_link_libraries(h2_compress_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015201 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015202 end2end_nosec_tests
15203 grpc_test_util_unsecure
15204 grpc_unsecure
15205 gpr_test_util
15206 gpr
15207)
15208
15209endif (gRPC_BUILD_TESTS)
15210if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015211if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015212
15213add_executable(h2_fd_nosec_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015214 test/core/end2end/fixtures/h2_fd.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015215)
15216
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015217
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015218target_include_directories(h2_fd_nosec_test
15219 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15220 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015221 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015222 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15223 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15224 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15225 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15226 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015227 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015228)
15229
15230target_link_libraries(h2_fd_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015231 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015232 end2end_nosec_tests
15233 grpc_test_util_unsecure
15234 grpc_unsecure
15235 gpr_test_util
15236 gpr
15237)
15238
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015239endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015240endif (gRPC_BUILD_TESTS)
15241if (gRPC_BUILD_TESTS)
15242
15243add_executable(h2_full_nosec_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015244 test/core/end2end/fixtures/h2_full.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015245)
15246
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015247
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015248target_include_directories(h2_full_nosec_test
15249 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15250 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015251 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015252 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15253 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15254 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15255 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15256 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015257 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015258)
15259
15260target_link_libraries(h2_full_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015261 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015262 end2end_nosec_tests
15263 grpc_test_util_unsecure
15264 grpc_unsecure
15265 gpr_test_util
15266 gpr
15267)
15268
15269endif (gRPC_BUILD_TESTS)
15270if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015271if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015272
15273add_executable(h2_full+pipe_nosec_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015274 test/core/end2end/fixtures/h2_full+pipe.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015275)
15276
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015277
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015278target_include_directories(h2_full+pipe_nosec_test
15279 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15280 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015281 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015282 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15283 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15284 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15285 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15286 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015287 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015288)
15289
15290target_link_libraries(h2_full+pipe_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015291 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015292 end2end_nosec_tests
15293 grpc_test_util_unsecure
15294 grpc_unsecure
15295 gpr_test_util
15296 gpr
15297)
15298
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015299endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015300endif (gRPC_BUILD_TESTS)
15301if (gRPC_BUILD_TESTS)
15302
15303add_executable(h2_full+trace_nosec_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015304 test/core/end2end/fixtures/h2_full+trace.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015305)
15306
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015307
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015308target_include_directories(h2_full+trace_nosec_test
15309 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15310 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015311 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015312 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15313 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15314 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15315 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15316 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015317 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015318)
15319
15320target_link_libraries(h2_full+trace_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015321 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015322 end2end_nosec_tests
15323 grpc_test_util_unsecure
15324 grpc_unsecure
15325 gpr_test_util
15326 gpr
15327)
15328
15329endif (gRPC_BUILD_TESTS)
15330if (gRPC_BUILD_TESTS)
15331
Muxi Yan29ff4662017-05-15 10:27:55 -070015332add_executable(h2_full+workarounds_nosec_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015333 test/core/end2end/fixtures/h2_full+workarounds.cc
Muxi Yan29ff4662017-05-15 10:27:55 -070015334)
15335
15336
15337target_include_directories(h2_full+workarounds_nosec_test
15338 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15339 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015340 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015341 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15342 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15343 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15344 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15345 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015346 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Muxi Yan29ff4662017-05-15 10:27:55 -070015347)
15348
15349target_link_libraries(h2_full+workarounds_nosec_test
15350 ${_gRPC_ALLTARGETS_LIBRARIES}
15351 end2end_nosec_tests
15352 grpc_test_util_unsecure
15353 grpc_unsecure
15354 gpr_test_util
15355 gpr
15356)
15357
15358endif (gRPC_BUILD_TESTS)
15359if (gRPC_BUILD_TESTS)
15360
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015361add_executable(h2_http_proxy_nosec_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015362 test/core/end2end/fixtures/h2_http_proxy.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015363)
15364
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015365
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015366target_include_directories(h2_http_proxy_nosec_test
15367 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15368 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015369 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015370 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15371 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15372 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15373 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15374 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015375 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015376)
15377
15378target_link_libraries(h2_http_proxy_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015379 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015380 end2end_nosec_tests
15381 grpc_test_util_unsecure
15382 grpc_unsecure
15383 gpr_test_util
15384 gpr
15385)
15386
15387endif (gRPC_BUILD_TESTS)
15388if (gRPC_BUILD_TESTS)
15389
15390add_executable(h2_load_reporting_nosec_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015391 test/core/end2end/fixtures/h2_load_reporting.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015392)
15393
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015394
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015395target_include_directories(h2_load_reporting_nosec_test
15396 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15397 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015398 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015399 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15400 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15401 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15402 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15403 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015404 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015405)
15406
15407target_link_libraries(h2_load_reporting_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015408 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015409 end2end_nosec_tests
15410 grpc_test_util_unsecure
15411 grpc_unsecure
15412 gpr_test_util
15413 gpr
15414)
15415
15416endif (gRPC_BUILD_TESTS)
15417if (gRPC_BUILD_TESTS)
15418
15419add_executable(h2_proxy_nosec_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015420 test/core/end2end/fixtures/h2_proxy.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015421)
15422
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015423
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015424target_include_directories(h2_proxy_nosec_test
15425 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15426 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015427 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015428 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15429 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15430 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15431 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15432 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015433 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015434)
15435
15436target_link_libraries(h2_proxy_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015437 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015438 end2end_nosec_tests
15439 grpc_test_util_unsecure
15440 grpc_unsecure
15441 gpr_test_util
15442 gpr
15443)
15444
15445endif (gRPC_BUILD_TESTS)
15446if (gRPC_BUILD_TESTS)
15447
15448add_executable(h2_sockpair_nosec_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015449 test/core/end2end/fixtures/h2_sockpair.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015450)
15451
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015452
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015453target_include_directories(h2_sockpair_nosec_test
15454 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15455 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015456 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015457 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15458 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15459 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15460 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15461 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015462 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015463)
15464
15465target_link_libraries(h2_sockpair_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015466 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015467 end2end_nosec_tests
15468 grpc_test_util_unsecure
15469 grpc_unsecure
15470 gpr_test_util
15471 gpr
15472)
15473
15474endif (gRPC_BUILD_TESTS)
15475if (gRPC_BUILD_TESTS)
15476
15477add_executable(h2_sockpair+trace_nosec_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015478 test/core/end2end/fixtures/h2_sockpair+trace.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015479)
15480
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015481
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015482target_include_directories(h2_sockpair+trace_nosec_test
15483 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15484 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015485 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015486 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15487 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15488 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15489 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15490 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015491 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015492)
15493
15494target_link_libraries(h2_sockpair+trace_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015495 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015496 end2end_nosec_tests
15497 grpc_test_util_unsecure
15498 grpc_unsecure
15499 gpr_test_util
15500 gpr
15501)
15502
15503endif (gRPC_BUILD_TESTS)
15504if (gRPC_BUILD_TESTS)
15505
15506add_executable(h2_sockpair_1byte_nosec_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015507 test/core/end2end/fixtures/h2_sockpair_1byte.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015508)
15509
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015510
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015511target_include_directories(h2_sockpair_1byte_nosec_test
15512 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15513 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015514 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015515 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15516 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15517 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15518 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15519 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015520 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015521)
15522
15523target_link_libraries(h2_sockpair_1byte_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015524 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015525 end2end_nosec_tests
15526 grpc_test_util_unsecure
15527 grpc_unsecure
15528 gpr_test_util
15529 gpr
15530)
15531
15532endif (gRPC_BUILD_TESTS)
15533if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015534if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015535
15536add_executable(h2_uds_nosec_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015537 test/core/end2end/fixtures/h2_uds.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015538)
15539
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015540
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015541target_include_directories(h2_uds_nosec_test
15542 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15543 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015544 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015545 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15546 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15547 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15548 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15549 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015550 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015551)
15552
15553target_link_libraries(h2_uds_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015554 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015555 end2end_nosec_tests
15556 grpc_test_util_unsecure
15557 grpc_unsecure
15558 gpr_test_util
15559 gpr
15560)
15561
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015562endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015563endif (gRPC_BUILD_TESTS)
15564if (gRPC_BUILD_TESTS)
15565
Vijay Pai3d7d5f42017-05-04 10:02:24 -070015566add_executable(inproc_nosec_test
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015567 test/core/end2end/fixtures/inproc.cc
Vijay Pai3d7d5f42017-05-04 10:02:24 -070015568)
15569
15570
15571target_include_directories(inproc_nosec_test
15572 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15573 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015574 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015575 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15576 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15577 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15578 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15579 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015580 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Vijay Pai3d7d5f42017-05-04 10:02:24 -070015581)
15582
15583target_link_libraries(inproc_nosec_test
15584 ${_gRPC_ALLTARGETS_LIBRARIES}
15585 end2end_nosec_tests
15586 grpc_test_util_unsecure
15587 grpc_unsecure
15588 gpr_test_util
15589 gpr
15590)
15591
15592endif (gRPC_BUILD_TESTS)
15593if (gRPC_BUILD_TESTS)
Alexander Polcyn27bf05d2017-08-07 18:09:11 -070015594if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
15595
15596add_executable(resolver_component_test_unsecure
15597 test/cpp/naming/resolver_component_test.cc
15598 third_party/googletest/googletest/src/gtest-all.cc
15599 third_party/googletest/googlemock/src/gmock-all.cc
15600)
15601
15602
15603target_include_directories(resolver_component_test_unsecure
15604 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15605 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015606 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015607 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15608 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15609 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15610 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15611 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015612 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Alexander Polcyn27bf05d2017-08-07 18:09:11 -070015613 PRIVATE third_party/googletest/googletest/include
15614 PRIVATE third_party/googletest/googletest
15615 PRIVATE third_party/googletest/googlemock/include
15616 PRIVATE third_party/googletest/googlemock
15617 PRIVATE ${_gRPC_PROTO_GENS_DIR}
15618)
15619
15620target_link_libraries(resolver_component_test_unsecure
15621 ${_gRPC_PROTOBUF_LIBRARIES}
15622 ${_gRPC_ALLTARGETS_LIBRARIES}
15623 grpc++_test_util_unsecure
15624 grpc_test_util_unsecure
15625 gpr_test_util
15626 grpc++_unsecure
15627 grpc_unsecure
15628 gpr
15629 grpc++_test_config
15630 ${_gRPC_GFLAGS_LIBRARIES}
15631)
15632
15633endif()
15634endif (gRPC_BUILD_TESTS)
15635if (gRPC_BUILD_TESTS)
15636if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
15637
15638add_executable(resolver_component_test
15639 test/cpp/naming/resolver_component_test.cc
15640 third_party/googletest/googletest/src/gtest-all.cc
15641 third_party/googletest/googlemock/src/gmock-all.cc
15642)
15643
15644
15645target_include_directories(resolver_component_test
15646 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15647 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015648 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015649 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15650 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15651 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15652 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15653 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015654 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Alexander Polcyn27bf05d2017-08-07 18:09:11 -070015655 PRIVATE third_party/googletest/googletest/include
15656 PRIVATE third_party/googletest/googletest
15657 PRIVATE third_party/googletest/googlemock/include
15658 PRIVATE third_party/googletest/googlemock
15659 PRIVATE ${_gRPC_PROTO_GENS_DIR}
15660)
15661
15662target_link_libraries(resolver_component_test
15663 ${_gRPC_PROTOBUF_LIBRARIES}
15664 ${_gRPC_ALLTARGETS_LIBRARIES}
15665 grpc++_test_util
15666 grpc_test_util
15667 gpr_test_util
15668 grpc++
15669 grpc
15670 gpr
15671 grpc++_test_config
15672 ${_gRPC_GFLAGS_LIBRARIES}
15673)
15674
15675endif()
15676endif (gRPC_BUILD_TESTS)
15677if (gRPC_BUILD_TESTS)
15678if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
15679
15680add_executable(resolver_component_tests_runner_invoker_unsecure
15681 test/cpp/naming/resolver_component_tests_runner_invoker.cc
15682 third_party/googletest/googletest/src/gtest-all.cc
15683 third_party/googletest/googlemock/src/gmock-all.cc
15684)
15685
15686
15687target_include_directories(resolver_component_tests_runner_invoker_unsecure
15688 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15689 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015690 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015691 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15692 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15693 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15694 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15695 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015696 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Alexander Polcyn27bf05d2017-08-07 18:09:11 -070015697 PRIVATE third_party/googletest/googletest/include
15698 PRIVATE third_party/googletest/googletest
15699 PRIVATE third_party/googletest/googlemock/include
15700 PRIVATE third_party/googletest/googlemock
15701 PRIVATE ${_gRPC_PROTO_GENS_DIR}
15702)
15703
15704target_link_libraries(resolver_component_tests_runner_invoker_unsecure
15705 ${_gRPC_PROTOBUF_LIBRARIES}
15706 ${_gRPC_ALLTARGETS_LIBRARIES}
15707 grpc++_test_util
15708 grpc_test_util
15709 gpr_test_util
15710 grpc++
15711 grpc
15712 gpr
15713 grpc++_test_config
15714 ${_gRPC_GFLAGS_LIBRARIES}
15715)
15716
15717endif()
15718endif (gRPC_BUILD_TESTS)
15719if (gRPC_BUILD_TESTS)
15720if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
15721
15722add_executable(resolver_component_tests_runner_invoker
15723 test/cpp/naming/resolver_component_tests_runner_invoker.cc
15724 third_party/googletest/googletest/src/gtest-all.cc
15725 third_party/googletest/googlemock/src/gmock-all.cc
15726)
15727
15728
15729target_include_directories(resolver_component_tests_runner_invoker
15730 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15731 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015732 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015733 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15734 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15735 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15736 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15737 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015738 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Alexander Polcyn27bf05d2017-08-07 18:09:11 -070015739 PRIVATE third_party/googletest/googletest/include
15740 PRIVATE third_party/googletest/googletest
15741 PRIVATE third_party/googletest/googlemock/include
15742 PRIVATE third_party/googletest/googlemock
15743 PRIVATE ${_gRPC_PROTO_GENS_DIR}
15744)
15745
15746target_link_libraries(resolver_component_tests_runner_invoker
15747 ${_gRPC_PROTOBUF_LIBRARIES}
15748 ${_gRPC_ALLTARGETS_LIBRARIES}
15749 grpc++_test_util
15750 grpc_test_util
15751 gpr_test_util
15752 grpc++
15753 grpc
15754 gpr
15755 grpc++_test_config
15756 ${_gRPC_GFLAGS_LIBRARIES}
15757)
15758
15759endif()
15760endif (gRPC_BUILD_TESTS)
15761if (gRPC_BUILD_TESTS)
Alexander Polcyn690dde62017-10-18 00:20:33 -070015762if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
15763
15764add_executable(address_sorting_test_unsecure
15765 test/cpp/naming/address_sorting_test.cc
15766 third_party/googletest/googletest/src/gtest-all.cc
15767 third_party/googletest/googlemock/src/gmock-all.cc
15768)
15769
15770
15771target_include_directories(address_sorting_test_unsecure
15772 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15773 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
15774 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
15775 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15776 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15777 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15778 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15779 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015780 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Alexander Polcyn690dde62017-10-18 00:20:33 -070015781 PRIVATE third_party/googletest/googletest/include
15782 PRIVATE third_party/googletest/googletest
15783 PRIVATE third_party/googletest/googlemock/include
15784 PRIVATE third_party/googletest/googlemock
15785 PRIVATE ${_gRPC_PROTO_GENS_DIR}
15786)
15787
15788target_link_libraries(address_sorting_test_unsecure
15789 ${_gRPC_PROTOBUF_LIBRARIES}
15790 ${_gRPC_ALLTARGETS_LIBRARIES}
15791 grpc++_test_util_unsecure
15792 grpc_test_util_unsecure
15793 gpr_test_util
15794 grpc++_unsecure
15795 grpc_unsecure
15796 gpr
15797 grpc++_test_config
15798 ${_gRPC_GFLAGS_LIBRARIES}
15799)
15800
15801endif()
15802endif (gRPC_BUILD_TESTS)
15803if (gRPC_BUILD_TESTS)
15804if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
15805
15806add_executable(address_sorting_test
15807 test/cpp/naming/address_sorting_test.cc
15808 third_party/googletest/googletest/src/gtest-all.cc
15809 third_party/googletest/googlemock/src/gmock-all.cc
15810)
15811
15812
15813target_include_directories(address_sorting_test
15814 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15815 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
15816 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
15817 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15818 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15819 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15820 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15821 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015822 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Alexander Polcyn690dde62017-10-18 00:20:33 -070015823 PRIVATE third_party/googletest/googletest/include
15824 PRIVATE third_party/googletest/googletest
15825 PRIVATE third_party/googletest/googlemock/include
15826 PRIVATE third_party/googletest/googlemock
15827 PRIVATE ${_gRPC_PROTO_GENS_DIR}
15828)
15829
15830target_link_libraries(address_sorting_test
15831 ${_gRPC_PROTOBUF_LIBRARIES}
15832 ${_gRPC_ALLTARGETS_LIBRARIES}
15833 grpc++_test_util
15834 grpc_test_util
15835 gpr_test_util
15836 grpc++
15837 grpc
15838 gpr
15839 grpc++_test_config
15840 ${_gRPC_GFLAGS_LIBRARIES}
15841)
15842
15843endif()
15844endif (gRPC_BUILD_TESTS)
15845if (gRPC_BUILD_TESTS)
Vijay Pai3d7d5f42017-05-04 10:02:24 -070015846
Yihua Zhangcc936632018-05-08 10:15:03 -070015847add_executable(alts_credentials_fuzzer_one_entry
15848 test/core/security/alts_credentials_fuzzer.cc
15849 test/core/util/one_corpus_entry_fuzzer.cc
15850)
15851
15852
15853target_include_directories(alts_credentials_fuzzer_one_entry
15854 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15855 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
15856 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
15857 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15858 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15859 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15860 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15861 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
15862 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
15863)
15864
15865target_link_libraries(alts_credentials_fuzzer_one_entry
15866 ${_gRPC_ALLTARGETS_LIBRARIES}
15867 grpc_test_util
15868 grpc
15869 gpr_test_util
15870 gpr
15871)
15872
15873endif (gRPC_BUILD_TESTS)
15874if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015875
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015876add_executable(api_fuzzer_one_entry
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015877 test/core/end2end/fuzzers/api_fuzzer.cc
Yash Tibrewal1cf99922017-10-26 11:19:27 -070015878 test/core/util/one_corpus_entry_fuzzer.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015879)
15880
15881
15882target_include_directories(api_fuzzer_one_entry
15883 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15884 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015885 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015886 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15887 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15888 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15889 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15890 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015891 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015892)
15893
15894target_link_libraries(api_fuzzer_one_entry
15895 ${_gRPC_ALLTARGETS_LIBRARIES}
15896 grpc_test_util
15897 grpc
15898 gpr_test_util
15899 gpr
15900)
15901
15902endif (gRPC_BUILD_TESTS)
15903if (gRPC_BUILD_TESTS)
15904
15905add_executable(client_fuzzer_one_entry
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015906 test/core/end2end/fuzzers/client_fuzzer.cc
Yash Tibrewal1cf99922017-10-26 11:19:27 -070015907 test/core/util/one_corpus_entry_fuzzer.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015908)
15909
15910
15911target_include_directories(client_fuzzer_one_entry
15912 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15913 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015914 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015915 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15916 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15917 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15918 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15919 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015920 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015921)
15922
15923target_link_libraries(client_fuzzer_one_entry
15924 ${_gRPC_ALLTARGETS_LIBRARIES}
15925 grpc_test_util
15926 grpc
15927 gpr_test_util
15928 gpr
15929)
15930
15931endif (gRPC_BUILD_TESTS)
15932if (gRPC_BUILD_TESTS)
15933
15934add_executable(hpack_parser_fuzzer_test_one_entry
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015935 test/core/transport/chttp2/hpack_parser_fuzzer_test.cc
Yash Tibrewal1cf99922017-10-26 11:19:27 -070015936 test/core/util/one_corpus_entry_fuzzer.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015937)
15938
15939
15940target_include_directories(hpack_parser_fuzzer_test_one_entry
15941 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15942 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015943 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015944 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15945 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15946 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15947 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15948 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015949 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015950)
15951
15952target_link_libraries(hpack_parser_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015953 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015954 grpc_test_util
15955 grpc
15956 gpr_test_util
15957 gpr
15958)
15959
15960endif (gRPC_BUILD_TESTS)
15961if (gRPC_BUILD_TESTS)
15962
15963add_executable(http_request_fuzzer_test_one_entry
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015964 test/core/http/request_fuzzer.cc
Yash Tibrewal1cf99922017-10-26 11:19:27 -070015965 test/core/util/one_corpus_entry_fuzzer.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015966)
15967
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015968
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015969target_include_directories(http_request_fuzzer_test_one_entry
15970 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
15971 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010015972 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010015973 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
15974 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
15975 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
15976 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
15977 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080015978 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015979)
15980
15981target_link_libraries(http_request_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015982 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015983 grpc_test_util
15984 grpc
15985 gpr_test_util
15986 gpr
15987)
15988
15989endif (gRPC_BUILD_TESTS)
15990if (gRPC_BUILD_TESTS)
15991
15992add_executable(http_response_fuzzer_test_one_entry
Yash Tibrewal34a57d02017-10-23 15:33:21 -070015993 test/core/http/response_fuzzer.cc
Yash Tibrewal1cf99922017-10-26 11:19:27 -070015994 test/core/util/one_corpus_entry_fuzzer.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015995)
15996
Jan Tattermusch438c0b52017-01-23 11:24:53 +010015997
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010015998target_include_directories(http_response_fuzzer_test_one_entry
15999 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
16000 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010016001 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010016002 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
16003 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
16004 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
16005 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
16006 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080016007 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016008)
16009
16010target_link_libraries(http_response_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010016011 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016012 grpc_test_util
16013 grpc
16014 gpr_test_util
16015 gpr
16016)
16017
16018endif (gRPC_BUILD_TESTS)
16019if (gRPC_BUILD_TESTS)
16020
16021add_executable(json_fuzzer_test_one_entry
Yash Tibrewal34a57d02017-10-23 15:33:21 -070016022 test/core/json/fuzzer.cc
Yash Tibrewal1cf99922017-10-26 11:19:27 -070016023 test/core/util/one_corpus_entry_fuzzer.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016024)
16025
Jan Tattermusch438c0b52017-01-23 11:24:53 +010016026
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016027target_include_directories(json_fuzzer_test_one_entry
16028 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
16029 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010016030 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010016031 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
16032 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
16033 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
16034 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
16035 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080016036 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016037)
16038
16039target_link_libraries(json_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010016040 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016041 grpc_test_util
16042 grpc
16043 gpr_test_util
16044 gpr
16045)
16046
16047endif (gRPC_BUILD_TESTS)
16048if (gRPC_BUILD_TESTS)
16049
16050add_executable(nanopb_fuzzer_response_test_one_entry
Yash Tibrewal34a57d02017-10-23 15:33:21 -070016051 test/core/nanopb/fuzzer_response.cc
Yash Tibrewal1cf99922017-10-26 11:19:27 -070016052 test/core/util/one_corpus_entry_fuzzer.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016053)
16054
Jan Tattermusch438c0b52017-01-23 11:24:53 +010016055
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016056target_include_directories(nanopb_fuzzer_response_test_one_entry
16057 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
16058 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010016059 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010016060 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
16061 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
16062 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
16063 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
16064 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080016065 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016066)
16067
16068target_link_libraries(nanopb_fuzzer_response_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010016069 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016070 grpc_test_util
16071 grpc
16072 gpr_test_util
16073 gpr
16074)
16075
16076endif (gRPC_BUILD_TESTS)
16077if (gRPC_BUILD_TESTS)
16078
16079add_executable(nanopb_fuzzer_serverlist_test_one_entry
Yash Tibrewal34a57d02017-10-23 15:33:21 -070016080 test/core/nanopb/fuzzer_serverlist.cc
Yash Tibrewal1cf99922017-10-26 11:19:27 -070016081 test/core/util/one_corpus_entry_fuzzer.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016082)
16083
Jan Tattermusch438c0b52017-01-23 11:24:53 +010016084
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016085target_include_directories(nanopb_fuzzer_serverlist_test_one_entry
16086 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
16087 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010016088 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010016089 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
16090 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
16091 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
16092 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
16093 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080016094 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016095)
16096
16097target_link_libraries(nanopb_fuzzer_serverlist_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010016098 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016099 grpc_test_util
16100 grpc
16101 gpr_test_util
16102 gpr
16103)
16104
16105endif (gRPC_BUILD_TESTS)
16106if (gRPC_BUILD_TESTS)
16107
16108add_executable(percent_decode_fuzzer_one_entry
Yash Tibrewal34a57d02017-10-23 15:33:21 -070016109 test/core/slice/percent_decode_fuzzer.cc
Yash Tibrewal1cf99922017-10-26 11:19:27 -070016110 test/core/util/one_corpus_entry_fuzzer.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016111)
16112
Jan Tattermusch438c0b52017-01-23 11:24:53 +010016113
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016114target_include_directories(percent_decode_fuzzer_one_entry
16115 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
16116 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010016117 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010016118 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
16119 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
16120 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
16121 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
16122 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080016123 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016124)
16125
16126target_link_libraries(percent_decode_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010016127 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016128 grpc_test_util
16129 grpc
16130 gpr_test_util
16131 gpr
16132)
16133
16134endif (gRPC_BUILD_TESTS)
16135if (gRPC_BUILD_TESTS)
16136
16137add_executable(percent_encode_fuzzer_one_entry
Yash Tibrewal34a57d02017-10-23 15:33:21 -070016138 test/core/slice/percent_encode_fuzzer.cc
Yash Tibrewal1cf99922017-10-26 11:19:27 -070016139 test/core/util/one_corpus_entry_fuzzer.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016140)
16141
Jan Tattermusch438c0b52017-01-23 11:24:53 +010016142
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016143target_include_directories(percent_encode_fuzzer_one_entry
16144 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
16145 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010016146 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010016147 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
16148 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
16149 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
16150 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
16151 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080016152 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016153)
16154
16155target_link_libraries(percent_encode_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010016156 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016157 grpc_test_util
16158 grpc
16159 gpr_test_util
16160 gpr
16161)
16162
16163endif (gRPC_BUILD_TESTS)
16164if (gRPC_BUILD_TESTS)
16165
16166add_executable(server_fuzzer_one_entry
Yash Tibrewal34a57d02017-10-23 15:33:21 -070016167 test/core/end2end/fuzzers/server_fuzzer.cc
Yash Tibrewal1cf99922017-10-26 11:19:27 -070016168 test/core/util/one_corpus_entry_fuzzer.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016169)
16170
Jan Tattermusch438c0b52017-01-23 11:24:53 +010016171
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016172target_include_directories(server_fuzzer_one_entry
16173 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
16174 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010016175 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010016176 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
16177 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
16178 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
16179 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
16180 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080016181 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016182)
16183
16184target_link_libraries(server_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010016185 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016186 grpc_test_util
16187 grpc
16188 gpr_test_util
16189 gpr
16190)
16191
16192endif (gRPC_BUILD_TESTS)
16193if (gRPC_BUILD_TESTS)
16194
16195add_executable(ssl_server_fuzzer_one_entry
Yash Tibrewal34a57d02017-10-23 15:33:21 -070016196 test/core/security/ssl_server_fuzzer.cc
Yash Tibrewal1cf99922017-10-26 11:19:27 -070016197 test/core/util/one_corpus_entry_fuzzer.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016198)
16199
Jan Tattermusch438c0b52017-01-23 11:24:53 +010016200
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016201target_include_directories(ssl_server_fuzzer_one_entry
16202 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
16203 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010016204 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010016205 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
16206 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
16207 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
16208 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
16209 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080016210 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016211)
16212
16213target_link_libraries(ssl_server_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010016214 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016215 grpc_test_util
16216 grpc
16217 gpr_test_util
16218 gpr
16219)
16220
16221endif (gRPC_BUILD_TESTS)
16222if (gRPC_BUILD_TESTS)
16223
16224add_executable(uri_fuzzer_test_one_entry
Yash Tibrewal34a57d02017-10-23 15:33:21 -070016225 test/core/client_channel/uri_fuzzer_test.cc
Yash Tibrewal1cf99922017-10-26 11:19:27 -070016226 test/core/util/one_corpus_entry_fuzzer.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016227)
16228
Jan Tattermusch438c0b52017-01-23 11:24:53 +010016229
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016230target_include_directories(uri_fuzzer_test_one_entry
16231 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
16232 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
Jan Tattermusch86ef9252017-12-14 02:42:34 +010016233 PRIVATE ${_gRPC_SSL_INCLUDE_DIR}
Jan Tattermusch41e58b42018-01-16 17:58:05 +010016234 PRIVATE ${_gRPC_PROTOBUF_INCLUDE_DIR}
16235 PRIVATE ${_gRPC_ZLIB_INCLUDE_DIR}
16236 PRIVATE ${_gRPC_BENCHMARK_INCLUDE_DIR}
16237 PRIVATE ${_gRPC_CARES_INCLUDE_DIR}
16238 PRIVATE ${_gRPC_GFLAGS_INCLUDE_DIR}
Alexander Polcyn5de34782018-01-19 14:48:19 -080016239 PRIVATE ${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016240)
16241
16242target_link_libraries(uri_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010016243 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010016244 grpc_test_util
16245 grpc
16246 gpr_test_util
16247 gpr
16248)
16249
16250endif (gRPC_BUILD_TESTS)
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010016251
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010016252
16253
16254
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +020016255
16256
16257
Alex Merryb5984fa2017-05-15 21:04:16 +010016258if (gRPC_INSTALL)
16259 install(EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +020016260 DESTINATION ${gRPC_INSTALL_CMAKEDIR}
Alex Merryb5984fa2017-05-15 21:04:16 +010016261 NAMESPACE gRPC::
16262 )
16263endif()
16264
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030016265foreach(_config gRPCConfig gRPCConfigVersion)
Jan Tattermusch9d1d0522017-08-25 14:26:47 +020016266 configure_file(cmake/${_config}.cmake.in
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030016267 ${_config}.cmake @ONLY)
16268 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
Jan Tattermuschdca8d632017-06-23 15:52:40 +020016269 DESTINATION ${gRPC_INSTALL_CMAKEDIR}
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030016270 )
16271endforeach()
Jan Tattermuscha3992d22018-05-09 17:37:27 +020016272
16273install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/etc/roots.pem
16274 DESTINATION ${gRPC_INSTALL_SHAREDIR})