blob: 4a69b9ea1c77169677065dca35e4ef37b3af4e3e [file] [log] [blame]
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001# GRPC global cmake file
2# This currently builds C and C++ code.
3# This file has been automatically generated from a template file.
4# Please look at the templates directory instead.
5# This file can be regenerated from the template by running
6# tools/buildgen/generate_projects.sh
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02007#
8# Additionally, this is currently very experimental, and unsupported.
9# Further work will happen on that file.
10#
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010011# Copyright 2015, Google Inc.
12# All rights reserved.
13#
14# Redistribution and use in source and binary forms, with or without
15# modification, are permitted provided that the following conditions are
16# met:
17#
18# * Redistributions of source code must retain the above copyright
19# notice, this list of conditions and the following disclaimer.
20# * Redistributions in binary form must reproduce the above
21# copyright notice, this list of conditions and the following disclaimer
22# in the documentation and/or other materials provided with the
23# distribution.
24# * Neither the name of Google Inc. nor the names of its
25# contributors may be used to endorse or promote products derived from
26# this software without specific prior written permission.
27#
28# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
40
41
42cmake_minimum_required(VERSION 2.8)
43
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010044set(PACKAGE_NAME "grpc")
David Garcia Quintas74cec102017-03-09 15:00:26 -080045set(PACKAGE_VERSION "1.3.0-dev")
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010046set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
47set(PACKAGE_TARNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}")
48set(PACKAGE_BUGREPORT "https://github.com/grpc/grpc/issues/")
49project(${PACKAGE_NAME} C CXX)
50
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010051# Options
52option(gRPC_BUILD_TESTS "Build tests" OFF)
53
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030054if (NOT MSVC)
55 set(gRPC_INSTALL ON CACHE BOOL "Generate installation target")
56else()
57 set(gRPC_INSTALL OFF CACHE BOOL "Generate installation target")
58endif()
59
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030060set(gRPC_ZLIB_PROVIDER "module" CACHE STRING "Provider of zlib library")
61set_property(CACHE gRPC_ZLIB_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010062
Yuchen Zeng8076d2b2016-08-25 13:23:13 -070063set(gRPC_CARES_PROVIDER "module" CACHE STRING "Provider of c-ares library")
64set_property(CACHE gRPC_CARES_PROVIDER PROPERTY STRINGS "module" "package")
65
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030066set(gRPC_SSL_PROVIDER "module" CACHE STRING "Provider of ssl library")
67set_property(CACHE gRPC_SSL_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammera72712e2016-07-06 10:30:25 +010068
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030069set(gRPC_PROTOBUF_PROVIDER "module" CACHE STRING "Provider of protobuf library")
70set_property(CACHE gRPC_PROTOBUF_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010071
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010072set(gRPC_GFLAGS_PROVIDER "module" CACHE STRING "Provider of gflags library")
73set_property(CACHE gRPC_GFLAGS_PROVIDER PROPERTY STRINGS "module" "package")
74
Jan Tattermusch438c0b52017-01-23 11:24:53 +010075set(gRPC_BENCHMARK_PROVIDER "module" CACHE STRING "Provider of benchmark library")
76set_property(CACHE gRPC_BENCHMARK_PROVIDER PROPERTY STRINGS "module" "package")
77
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030078set(gRPC_USE_PROTO_LITE OFF CACHE BOOL "Use the protobuf-lite library")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010079
Jan Tattermusch438c0b52017-01-23 11:24:53 +010080if(UNIX)
81 if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
82 set(_gRPC_PLATFORM_LINUX ON)
83 elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
84 set(_gRPC_PLATFORM_MAC ON)
85 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
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030095if (MSVC)
Jan Tattermusch51407912017-02-02 20:44:22 +010096 include(cmake/msvc_static_runtime.cmake)
Jan Tattermusch3aab96f2017-01-11 16:12:46 +010097 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 +010098 # needed to compile protobuf
99 add_definitions(/wd4065 /wd4506)
100 # TODO(jtattermusch): revisit C4267 occurrences throughout the code
101 add_definitions(/wd4267)
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300102endif()
103
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300104if (gRPC_USE_PROTO_LITE)
105 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf-lite")
Tamas Berghammer23911562016-07-27 15:24:05 +0100106 add_definitions("-DGRPC_USE_PROTO_LITE")
107else()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300108 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100109endif()
110
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300111if("${gRPC_ZLIB_PROVIDER}" STREQUAL "module")
112 if(NOT ZLIB_ROOT_DIR)
113 set(ZLIB_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zlib)
114 endif()
115 set(ZLIB_INCLUDE_DIR "${ZLIB_ROOT_DIR}")
116 if(EXISTS "${ZLIB_ROOT_DIR}/CMakeLists.txt")
117 add_subdirectory(${ZLIB_ROOT_DIR} third_party/zlib)
118 if(TARGET zlibstatic)
119 set(_gRPC_ZLIB_LIBRARIES zlibstatic)
120 endif()
121 else()
122 message(WARNING "gRPC_ZLIB_PROVIDER is \"module\" but ZLIB_ROOT_DIR is wrong")
123 endif()
124elseif("${gRPC_ZLIB_PROVIDER}" STREQUAL "package")
125 find_package(ZLIB)
126 if(TARGET ZLIB::ZLIB)
127 set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB)
128 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300129 set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND)\n find_package(ZLIB)\nendif()")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100130endif()
131
Yuchen Zeng8076d2b2016-08-25 13:23:13 -0700132if("${gRPC_CARES_PROVIDER}" STREQUAL "module")
133 if(NOT CARES_ROOT_DIR)
Yuchen Zeng74962182017-03-20 15:39:47 -0700134 set(CARES_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/c-ares)
Yuchen Zeng8076d2b2016-08-25 13:23:13 -0700135 endif()
Yuchen Zengc75bbf22017-03-20 12:35:20 -0700136 string(TOLOWER ${CMAKE_SYSTEM_NAME} CARES_SYSTEM_NAME)
Yuchen Zeng74962182017-03-20 15:39:47 -0700137 set(CARES_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/third_party/cares/cares")
138 set(CARES_BUILD_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/third_party/cares")
Yuchen Zengc75bbf22017-03-20 12:35:20 -0700139 set(CARES_PLATFORM_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/third_party/cares/config_${CARES_SYSTEM_NAME}")
Yuchen Zeng74962182017-03-20 15:39:47 -0700140 if(EXISTS "${CARES_ROOT_DIR}/CMakeLists.txt")
141 if("${CARES_SYSTEM_NAME}" MATCHES "windows")
142 add_definitions(-DCARES_STATICLIB=1)
143 add_definitions(-DWIN32_LEAN_AND_MEAN=1)
144 else()
145 add_definitions(-DHAVE_CONFIG_H=1)
146 add_definitions(-D_GNU_SOURCE=1)
147 endif()
148 add_subdirectory(src/c-ares third_party/cares)
149 if(TARGET cares)
150 set(_gRPC_CARES_LIBRARIES cares)
151 endif()
Yuchen Zeng8076d2b2016-08-25 13:23:13 -0700152 else()
Yuchen Zeng74962182017-03-20 15:39:47 -0700153 message(WARNING "gRPC_CARES_PROVIDER is \"module\" but CARES_ROOT_DIR is wrong")
Yuchen Zeng8076d2b2016-08-25 13:23:13 -0700154 endif()
155elseif("${gRPC_CARES_PROVIDER}" STREQUAL "package")
156 find_package(CARES)
157 if(TARGET CARES::CARES)
158 set(_gRPC_CARES_LIBRARIES CARES::CARES)
159 endif()
160 set(_gRPC_FIND_CARES "if(NOT CARES_FOUND)\n find_package(CARES)\nendif()")
161endif()
162
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300163if("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "module")
164 # Building the protobuf tests require gmock what is not part of a standard protobuf checkout.
165 # Disable them unless they are explicitly requested from the cmake command line (when we assume
166 # gmock is downloaded to the right location inside protobuf).
167 if(NOT protobuf_BUILD_TESTS)
168 set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests")
169 endif()
170 if(NOT PROTOBUF_ROOT_DIR)
171 set(PROTOBUF_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/protobuf)
172 endif()
173 if(EXISTS "${PROTOBUF_ROOT_DIR}/cmake/CMakeLists.txt")
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300174 set(protobuf_MSVC_STATIC_RUNTIME OFF CACHE BOOL "Link static runtime libraries")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300175 add_subdirectory(${PROTOBUF_ROOT_DIR}/cmake third_party/protobuf)
176 if(TARGET ${_gRPC_PROTOBUF_LIBRARY_NAME})
177 set(_gRPC_PROTOBUF_LIBRARIES ${_gRPC_PROTOBUF_LIBRARY_NAME})
178 endif()
179 if(TARGET libprotoc)
180 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES libprotoc)
181 endif()
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100182 if(TARGET protoc)
183 set(_gRPC_PROTOBUF_PROTOC protoc)
184 endif()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300185 else()
186 message(WARNING "gRPC_PROTOBUF_PROVIDER is \"module\" but PROTOBUF_ROOT_DIR is wrong")
187 endif()
188elseif("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "package")
189 find_package(protobuf CONFIG)
190 if(protobuf_FOUND)
191 if(TARGET protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
192 set(_gRPC_PROTOBUF_LIBRARIES protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
193 endif()
194 if(TARGET protobuf::libprotoc)
195 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES protobuf::libprotoc)
196 endif()
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100197 if(TARGET protobuf::protoc)
198 set(_gRPC_PROTOBUF_PROTOC protobuf::protoc)
199 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300200 set(_gRPC_FIND_PROTOBUF "if(NOT protobuf_FOUND)\n find_package(protobuf CONFIG)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300201 else()
202 find_package(Protobuf MODULE)
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300203 set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND)\n find_package(Protobuf)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300204 endif()
205endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100206
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300207if("${gRPC_SSL_PROVIDER}" STREQUAL "module")
208 if(NOT BORINGSSL_ROOT_DIR)
209 set(BORINGSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/boringssl)
210 endif()
211 if(EXISTS "${BORINGSSL_ROOT_DIR}/CMakeLists.txt")
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100212 set(OPENSSL_NO_ASM ON) # make boringssl buildable with Visual Studio
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300213 add_subdirectory(${BORINGSSL_ROOT_DIR} third_party/boringssl)
214 if(TARGET ssl)
215 set(_gRPC_SSL_LIBRARIES ssl)
216 endif()
217 else()
218 message(WARNING "gRPC_SSL_PROVIDER is \"module\" but BORINGSSL_ROOT_DIR is wrong")
219 endif()
220elseif("${gRPC_SSL_PROVIDER}" STREQUAL "package")
221 find_package(OpenSSL)
222 if(TARGET OpenSSL::SSL)
223 set(_gRPC_SSL_LIBRARIES OpenSSL::SSL)
224 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300225 set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND)\n find_package(OpenSSL)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300226endif()
227
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100228if("${gRPC_GFLAGS_PROVIDER}" STREQUAL "module")
229 if(NOT GFLAGS_ROOT_DIR)
230 set(GFLAGS_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/gflags)
231 endif()
232 if(EXISTS "${GFLAGS_ROOT_DIR}/CMakeLists.txt")
233 add_subdirectory(${GFLAGS_ROOT_DIR} third_party/gflags)
234 if(TARGET gflags_static)
235 set(_gRPC_GFLAGS_LIBRARIES gflags_static)
236 endif()
237 else()
238 message(WARNING "gRPC_GFLAGS_PROVIDER is \"module\" but GFLAGS_ROOT_DIR is wrong")
239 endif()
240elseif("${gRPC_GFLAGS_PROVIDER}" STREQUAL "package")
241 find_package(gflags)
242 if(TARGET gflags::gflags)
243 set(_gRPC_GFLAGS_LIBRARIES gflags::gflags)
244 endif()
245 set(_gRPC_FIND_GFLAGS "if(NOT gflags_FOUND)\n find_package(gflags)\nendif()")
246endif()
247
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100248if("${gRPC_BENCHMARK_PROVIDER}" STREQUAL "module")
249 if(NOT BENCHMARK_ROOT_DIR)
250 set(BENCHMARK_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/benchmark)
251 endif()
252 if(EXISTS "${BENCHMARK_ROOT_DIR}/CMakeLists.txt")
253 add_subdirectory(${BENCHMARK_ROOT_DIR} third_party/benchmark)
254 if(TARGET benchmark)
255 set(_gRPC_BENCHMARK_LIBRARIES benchmark)
256 endif()
257 else()
258 message(WARNING "gRPC_BENCHMARK_PROVIDER is \"module\" but BENCHMARK_ROOT_DIR is wrong")
259 endif()
260elseif("${gRPC_BENCHMARK_PROVIDER}" STREQUAL "package")
261 find_package(benchmark)
262 if(TARGET benchmark::benchmark)
263 set(_gRPC_BENCHMARK_LIBRARIES benchmark::benchmark)
264 endif()
265 set(_gRPC_FIND_BENCHMARK "if(NOT benchmark_FOUND)\n find_package(benchmark)\nendif()")
266endif()
267
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300268if(NOT MSVC)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100269 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300270 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
271endif()
272
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100273if(UNIX)
274 set(_gRPC_ALLTARGETS_LIBRARIES dl rt m pthread)
275endif()
276
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300277if(WIN32 AND MSVC)
278 set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32)
Tamas Berghammer23911562016-07-27 15:24:05 +0100279endif()
280
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300281include(GNUInstallDirs)
282if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR)
283 set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/gRPC")
284endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100285
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100286# Create directory for generated .proto files
287set(_gRPC_PROTO_GENS_DIR ${CMAKE_BINARY_DIR}/gens)
288file(MAKE_DIRECTORY ${_gRPC_PROTO_GENS_DIR})
289
290# protobuf_generate_grpc_cpp
291# --------------------------
292#
293# Add custom commands to process ``.proto`` files to C++ using protoc and
294# GRPC plugin::
295#
296# protobuf_generate_grpc_cpp [<ARGN>...]
297#
298# ``ARGN``
299# ``.proto`` files
300#
301function(protobuf_generate_grpc_cpp)
302 if(NOT ARGN)
303 message(SEND_ERROR "Error: PROTOBUF_GENERATE_GRPC_CPP() called without any proto files")
304 return()
305 endif()
306
307 set(_protobuf_include_path -I .)
308 foreach(FIL ${ARGN})
309 get_filename_component(ABS_FIL ${FIL} ABSOLUTE)
310 get_filename_component(FIL_WE ${FIL} NAME_WE)
311 file(RELATIVE_PATH REL_FIL ${CMAKE_SOURCE_DIR} ${ABS_FIL})
312 get_filename_component(REL_DIR ${REL_FIL} DIRECTORY)
313 set(RELFIL_WE "${REL_DIR}/${FIL_WE}")
Yuchen Zenge02cbeb2017-01-19 16:33:30 -0800314
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100315 add_custom_command(
316 OUTPUT "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.cc"
317 "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.h"
318 "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.cc"
319 "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.h"
320 COMMAND ${_gRPC_PROTOBUF_PROTOC}
321 ARGS --grpc_out=${_gRPC_PROTO_GENS_DIR}
322 --cpp_out=${_gRPC_PROTO_GENS_DIR}
323 --plugin=protoc-gen-grpc=$<TARGET_FILE:grpc_cpp_plugin>
324 ${_protobuf_include_path}
325 ${REL_FIL}
326 DEPENDS ${ABS_FIL} ${_gRPC_PROTOBUF_PROTOC} grpc_cpp_plugin
327 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
328 COMMENT "Running gRPC C++ protocol buffer compiler on ${FIL}"
329 VERBATIM)
Yuchen Zenge02cbeb2017-01-19 16:33:30 -0800330
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100331 set_source_files_properties("${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.cc" "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.h" "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.cc" "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.h" PROPERTIES GENERATED TRUE)
332 endforeach()
333endfunction()
334
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100335add_custom_target(plugins
336 DEPENDS
337 grpc_cpp_plugin
338 grpc_csharp_plugin
339 grpc_node_plugin
340 grpc_objective_c_plugin
341 grpc_php_plugin
342 grpc_python_plugin
343 grpc_ruby_plugin
344)
345
346add_custom_target(tools_c
347 DEPENDS
348 gen_hpack_tables
349 gen_legal_metadata_characters
350 gen_percent_encoding_tables
351 grpc_create_jwt
352 grpc_print_google_default_creds_token
353 grpc_verify_jwt
354)
355
356add_custom_target(tools_cxx
357 DEPENDS
358)
359
360add_custom_target(tools
361 DEPENDS tools_c tools_cxx)
362
363if (gRPC_BUILD_TESTS)
364add_custom_target(buildtests_c)
365add_dependencies(buildtests_c alarm_test)
366add_dependencies(buildtests_c algorithm_test)
367add_dependencies(buildtests_c alloc_test)
368add_dependencies(buildtests_c alpn_test)
Craig Tiller9202b3f2017-03-12 22:30:38 -0700369add_dependencies(buildtests_c arena_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100370add_dependencies(buildtests_c bad_server_response_test)
Craig Tiller5395aba2017-02-02 10:29:04 -0800371add_dependencies(buildtests_c bdp_estimator_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100372add_dependencies(buildtests_c bin_decoder_test)
373add_dependencies(buildtests_c bin_encoder_test)
374add_dependencies(buildtests_c census_context_test)
375add_dependencies(buildtests_c census_resource_test)
376add_dependencies(buildtests_c census_trace_context_test)
377add_dependencies(buildtests_c channel_create_test)
378add_dependencies(buildtests_c chttp2_hpack_encoder_test)
379add_dependencies(buildtests_c chttp2_stream_map_test)
380add_dependencies(buildtests_c chttp2_varint_test)
381add_dependencies(buildtests_c combiner_test)
382add_dependencies(buildtests_c compression_test)
383add_dependencies(buildtests_c concurrent_connectivity_test)
384add_dependencies(buildtests_c connection_refused_test)
385add_dependencies(buildtests_c dns_resolver_connectivity_test)
386add_dependencies(buildtests_c dns_resolver_test)
387if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
388add_dependencies(buildtests_c dualstack_socket_test)
389endif()
390add_dependencies(buildtests_c endpoint_pair_test)
ncteisen3da3ce32017-02-17 09:51:25 -0800391add_dependencies(buildtests_c error_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100392if(_gRPC_PLATFORM_LINUX)
393add_dependencies(buildtests_c ev_epoll_linux_test)
394endif()
395if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
396add_dependencies(buildtests_c fd_conservation_posix_test)
397endif()
398if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
399add_dependencies(buildtests_c fd_posix_test)
400endif()
401add_dependencies(buildtests_c fling_client)
402add_dependencies(buildtests_c fling_server)
403if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
404add_dependencies(buildtests_c fling_stream_test)
405endif()
406if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
407add_dependencies(buildtests_c fling_test)
408endif()
409if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
410add_dependencies(buildtests_c goaway_server_test)
411endif()
412add_dependencies(buildtests_c gpr_avl_test)
413add_dependencies(buildtests_c gpr_backoff_test)
414add_dependencies(buildtests_c gpr_cmdline_test)
415add_dependencies(buildtests_c gpr_cpu_test)
416add_dependencies(buildtests_c gpr_env_test)
417add_dependencies(buildtests_c gpr_histogram_test)
418add_dependencies(buildtests_c gpr_host_port_test)
419add_dependencies(buildtests_c gpr_log_test)
420add_dependencies(buildtests_c gpr_mpscq_test)
Craig Tilleredbf2b92017-02-27 07:24:00 -0800421add_dependencies(buildtests_c gpr_spinlock_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100422add_dependencies(buildtests_c gpr_stack_lockfree_test)
423add_dependencies(buildtests_c gpr_string_test)
424add_dependencies(buildtests_c gpr_sync_test)
425add_dependencies(buildtests_c gpr_thd_test)
426add_dependencies(buildtests_c gpr_time_test)
427add_dependencies(buildtests_c gpr_tls_test)
428add_dependencies(buildtests_c gpr_useful_test)
429add_dependencies(buildtests_c grpc_auth_context_test)
430add_dependencies(buildtests_c grpc_b64_test)
431add_dependencies(buildtests_c grpc_byte_buffer_reader_test)
432add_dependencies(buildtests_c grpc_channel_args_test)
433add_dependencies(buildtests_c grpc_channel_stack_test)
434add_dependencies(buildtests_c grpc_completion_queue_test)
murgatroid9998cdf3b2017-02-23 14:59:45 -0800435add_dependencies(buildtests_c grpc_completion_queue_threading_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100436add_dependencies(buildtests_c grpc_credentials_test)
437add_dependencies(buildtests_c grpc_fetch_oauth2)
438add_dependencies(buildtests_c grpc_invalid_channel_args_test)
439if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
440add_dependencies(buildtests_c grpc_json_token_test)
441endif()
442add_dependencies(buildtests_c grpc_jwt_verifier_test)
443add_dependencies(buildtests_c grpc_security_connector_test)
444if(_gRPC_PLATFORM_LINUX)
445add_dependencies(buildtests_c handshake_client)
446endif()
447if(_gRPC_PLATFORM_LINUX)
448add_dependencies(buildtests_c handshake_server)
449endif()
450add_dependencies(buildtests_c hpack_parser_test)
451add_dependencies(buildtests_c hpack_table_test)
452add_dependencies(buildtests_c http_parser_test)
453add_dependencies(buildtests_c httpcli_format_request_test)
454if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
455add_dependencies(buildtests_c httpcli_test)
456endif()
457if(_gRPC_PLATFORM_LINUX)
458add_dependencies(buildtests_c httpscli_test)
459endif()
460add_dependencies(buildtests_c init_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100461add_dependencies(buildtests_c invalid_call_argument_test)
462add_dependencies(buildtests_c json_rewrite)
463add_dependencies(buildtests_c json_rewrite_test)
464add_dependencies(buildtests_c json_stream_error_test)
465add_dependencies(buildtests_c json_test)
466add_dependencies(buildtests_c lame_client_test)
467add_dependencies(buildtests_c lb_policies_test)
468add_dependencies(buildtests_c load_file_test)
469add_dependencies(buildtests_c memory_profile_client)
470add_dependencies(buildtests_c memory_profile_server)
471if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
472add_dependencies(buildtests_c memory_profile_test)
473endif()
474add_dependencies(buildtests_c message_compress_test)
475add_dependencies(buildtests_c mlog_test)
476add_dependencies(buildtests_c multiple_server_queues_test)
477add_dependencies(buildtests_c murmur_hash_test)
478add_dependencies(buildtests_c no_server_test)
David Garcia Quintas8a0ec882017-03-03 16:53:54 -0800479add_dependencies(buildtests_c parse_address_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100480add_dependencies(buildtests_c percent_encoding_test)
Sree Kuchibhotla66131682017-02-02 09:39:07 -0800481if(_gRPC_PLATFORM_LINUX)
482add_dependencies(buildtests_c pollset_set_test)
483endif()
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100484if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
485add_dependencies(buildtests_c resolve_address_posix_test)
486endif()
487add_dependencies(buildtests_c resolve_address_test)
488add_dependencies(buildtests_c resource_quota_test)
489add_dependencies(buildtests_c secure_channel_create_test)
490add_dependencies(buildtests_c secure_endpoint_test)
491add_dependencies(buildtests_c sequential_connectivity_test)
492add_dependencies(buildtests_c server_chttp2_test)
493add_dependencies(buildtests_c server_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100494add_dependencies(buildtests_c slice_buffer_test)
495add_dependencies(buildtests_c slice_string_helpers_test)
496add_dependencies(buildtests_c slice_test)
497add_dependencies(buildtests_c sockaddr_resolver_test)
498add_dependencies(buildtests_c sockaddr_utils_test)
499if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
500add_dependencies(buildtests_c socket_utils_test)
501endif()
502add_dependencies(buildtests_c status_conversion_test)
Craig Tiller295df6d2017-03-01 11:28:24 -0800503add_dependencies(buildtests_c stream_owned_slice_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100504if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
505add_dependencies(buildtests_c tcp_client_posix_test)
506endif()
murgatroid9998cdf3b2017-02-23 14:59:45 -0800507add_dependencies(buildtests_c tcp_client_uv_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100508if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
509add_dependencies(buildtests_c tcp_posix_test)
510endif()
511if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
512add_dependencies(buildtests_c tcp_server_posix_test)
513endif()
murgatroid9998cdf3b2017-02-23 14:59:45 -0800514add_dependencies(buildtests_c tcp_server_uv_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100515add_dependencies(buildtests_c time_averaged_stats_test)
516add_dependencies(buildtests_c timeout_encoding_test)
517add_dependencies(buildtests_c timer_heap_test)
518add_dependencies(buildtests_c timer_list_test)
519add_dependencies(buildtests_c transport_connectivity_state_test)
520add_dependencies(buildtests_c transport_metadata_test)
521add_dependencies(buildtests_c transport_pid_controller_test)
522if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
523add_dependencies(buildtests_c transport_security_test)
524endif()
525if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
526add_dependencies(buildtests_c udp_server_test)
527endif()
528add_dependencies(buildtests_c uri_parser_test)
529if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
530add_dependencies(buildtests_c wakeup_fd_cv_test)
531endif()
532add_dependencies(buildtests_c public_headers_must_be_c89)
533add_dependencies(buildtests_c badreq_bad_client_test)
534add_dependencies(buildtests_c connection_prefix_bad_client_test)
535add_dependencies(buildtests_c head_of_line_blocking_bad_client_test)
536add_dependencies(buildtests_c headers_bad_client_test)
537add_dependencies(buildtests_c initial_settings_frame_bad_client_test)
538add_dependencies(buildtests_c large_metadata_bad_client_test)
539add_dependencies(buildtests_c server_registered_method_bad_client_test)
540add_dependencies(buildtests_c simple_request_bad_client_test)
541add_dependencies(buildtests_c unknown_frame_bad_client_test)
542add_dependencies(buildtests_c window_overflow_bad_client_test)
543if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
544add_dependencies(buildtests_c bad_ssl_cert_server)
545endif()
546if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
547add_dependencies(buildtests_c bad_ssl_cert_test)
548endif()
549add_dependencies(buildtests_c h2_census_test)
550add_dependencies(buildtests_c h2_compress_test)
551add_dependencies(buildtests_c h2_fakesec_test)
552if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
553add_dependencies(buildtests_c h2_fd_test)
554endif()
555add_dependencies(buildtests_c h2_full_test)
556if(_gRPC_PLATFORM_LINUX)
557add_dependencies(buildtests_c h2_full+pipe_test)
558endif()
559add_dependencies(buildtests_c h2_full+trace_test)
560add_dependencies(buildtests_c h2_http_proxy_test)
561add_dependencies(buildtests_c h2_load_reporting_test)
562add_dependencies(buildtests_c h2_oauth2_test)
563add_dependencies(buildtests_c h2_proxy_test)
564add_dependencies(buildtests_c h2_sockpair_test)
565add_dependencies(buildtests_c h2_sockpair+trace_test)
566add_dependencies(buildtests_c h2_sockpair_1byte_test)
567add_dependencies(buildtests_c h2_ssl_test)
568add_dependencies(buildtests_c h2_ssl_cert_test)
569add_dependencies(buildtests_c h2_ssl_proxy_test)
570if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
571add_dependencies(buildtests_c h2_uds_test)
572endif()
573add_dependencies(buildtests_c h2_census_nosec_test)
574add_dependencies(buildtests_c h2_compress_nosec_test)
575if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
576add_dependencies(buildtests_c h2_fd_nosec_test)
577endif()
578add_dependencies(buildtests_c h2_full_nosec_test)
579if(_gRPC_PLATFORM_LINUX)
580add_dependencies(buildtests_c h2_full+pipe_nosec_test)
581endif()
582add_dependencies(buildtests_c h2_full+trace_nosec_test)
583add_dependencies(buildtests_c h2_http_proxy_nosec_test)
584add_dependencies(buildtests_c h2_load_reporting_nosec_test)
585add_dependencies(buildtests_c h2_proxy_nosec_test)
586add_dependencies(buildtests_c h2_sockpair_nosec_test)
587add_dependencies(buildtests_c h2_sockpair+trace_nosec_test)
588add_dependencies(buildtests_c h2_sockpair_1byte_nosec_test)
589if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
590add_dependencies(buildtests_c h2_uds_nosec_test)
591endif()
592add_dependencies(buildtests_c api_fuzzer_one_entry)
593add_dependencies(buildtests_c client_fuzzer_one_entry)
594add_dependencies(buildtests_c hpack_parser_fuzzer_test_one_entry)
595add_dependencies(buildtests_c http_request_fuzzer_test_one_entry)
596add_dependencies(buildtests_c http_response_fuzzer_test_one_entry)
597add_dependencies(buildtests_c json_fuzzer_test_one_entry)
598add_dependencies(buildtests_c nanopb_fuzzer_response_test_one_entry)
599add_dependencies(buildtests_c nanopb_fuzzer_serverlist_test_one_entry)
600add_dependencies(buildtests_c percent_decode_fuzzer_one_entry)
601add_dependencies(buildtests_c percent_encode_fuzzer_one_entry)
602add_dependencies(buildtests_c server_fuzzer_one_entry)
603add_dependencies(buildtests_c ssl_server_fuzzer_one_entry)
604add_dependencies(buildtests_c uri_fuzzer_test_one_entry)
605
606add_custom_target(buildtests_cxx)
607add_dependencies(buildtests_cxx alarm_cpp_test)
608add_dependencies(buildtests_cxx async_end2end_test)
609add_dependencies(buildtests_cxx auth_property_iterator_test)
610if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller9202b3f2017-03-12 22:30:38 -0700611add_dependencies(buildtests_cxx bm_arena)
612endif()
613if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tillerfd044b82017-02-15 16:15:48 -0800614add_dependencies(buildtests_cxx bm_call_create)
615endif()
616if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller523d54b2017-02-23 08:52:38 -0800617add_dependencies(buildtests_cxx bm_chttp2_hpack)
Craig Tiller2f792d92017-02-22 16:26:33 -0800618endif()
619if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller18f09a02017-02-23 17:10:04 -0800620add_dependencies(buildtests_cxx bm_chttp2_transport)
621endif()
622if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tillerb3f34b62017-02-13 10:29:33 -0800623add_dependencies(buildtests_cxx bm_closure)
624endif()
625if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller14ae5382017-02-14 12:43:50 -0800626add_dependencies(buildtests_cxx bm_cq)
627endif()
628if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller264307f2017-02-16 09:07:45 -0800629add_dependencies(buildtests_cxx bm_error)
630endif()
631if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller12d22e42017-03-03 10:14:20 -0800632add_dependencies(buildtests_cxx bm_fullstack_streaming_ping_pong)
633endif()
634if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
635add_dependencies(buildtests_cxx bm_fullstack_streaming_pump)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100636endif()
Craig Tillerb8e2bca2017-02-16 16:26:51 -0800637if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller52bd4412017-03-03 10:52:22 -0800638add_dependencies(buildtests_cxx bm_fullstack_trickle)
639endif()
640if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller62ac65b2017-03-03 09:57:43 -0800641add_dependencies(buildtests_cxx bm_fullstack_unary_ping_pong)
642endif()
643if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tillerb8e2bca2017-02-16 16:26:51 -0800644add_dependencies(buildtests_cxx bm_metadata)
645endif()
Craig Tiller1128d462017-03-03 16:46:54 -0800646if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
647add_dependencies(buildtests_cxx bm_pollset)
648endif()
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100649add_dependencies(buildtests_cxx channel_arguments_test)
650add_dependencies(buildtests_cxx channel_filter_test)
651add_dependencies(buildtests_cxx cli_call_test)
652if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
653add_dependencies(buildtests_cxx client_crash_test)
654endif()
655add_dependencies(buildtests_cxx client_crash_test_server)
656add_dependencies(buildtests_cxx codegen_test_full)
657add_dependencies(buildtests_cxx codegen_test_minimal)
658add_dependencies(buildtests_cxx credentials_test)
659add_dependencies(buildtests_cxx cxx_byte_buffer_test)
660add_dependencies(buildtests_cxx cxx_slice_test)
661add_dependencies(buildtests_cxx cxx_string_ref_test)
662add_dependencies(buildtests_cxx cxx_time_test)
663add_dependencies(buildtests_cxx end2end_test)
664add_dependencies(buildtests_cxx filter_end2end_test)
665add_dependencies(buildtests_cxx generic_end2end_test)
666add_dependencies(buildtests_cxx golden_file_test)
667add_dependencies(buildtests_cxx grpc_cli)
668add_dependencies(buildtests_cxx grpc_tool_test)
669add_dependencies(buildtests_cxx grpclb_api_test)
670add_dependencies(buildtests_cxx grpclb_test)
yang-g13a537b2017-02-07 13:13:20 -0800671add_dependencies(buildtests_cxx health_service_end2end_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100672if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
673add_dependencies(buildtests_cxx http2_client)
674endif()
675add_dependencies(buildtests_cxx hybrid_end2end_test)
676if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
677add_dependencies(buildtests_cxx interop_client)
678endif()
679if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
680add_dependencies(buildtests_cxx interop_server)
681endif()
682if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
683add_dependencies(buildtests_cxx interop_test)
684endif()
685if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
686add_dependencies(buildtests_cxx json_run_localhost)
687endif()
688add_dependencies(buildtests_cxx metrics_client)
689add_dependencies(buildtests_cxx mock_test)
690add_dependencies(buildtests_cxx noop-benchmark)
691add_dependencies(buildtests_cxx proto_server_reflection_test)
Harvey Tuch5f3cfe92017-01-20 11:02:11 -0500692add_dependencies(buildtests_cxx proto_utils_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100693if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
694add_dependencies(buildtests_cxx qps_interarrival_test)
695endif()
696add_dependencies(buildtests_cxx qps_json_driver)
697if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
698add_dependencies(buildtests_cxx qps_openloop_test)
699endif()
700add_dependencies(buildtests_cxx qps_worker)
701add_dependencies(buildtests_cxx reconnect_interop_client)
702add_dependencies(buildtests_cxx reconnect_interop_server)
703add_dependencies(buildtests_cxx round_robin_end2end_test)
704add_dependencies(buildtests_cxx secure_auth_context_test)
705if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
706add_dependencies(buildtests_cxx secure_sync_unary_ping_pong_test)
707endif()
708add_dependencies(buildtests_cxx server_builder_plugin_test)
Craig Tiller332bcc32017-03-08 12:47:46 -0800709add_dependencies(buildtests_cxx server_builder_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100710add_dependencies(buildtests_cxx server_context_test_spouse_test)
711if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
712add_dependencies(buildtests_cxx server_crash_test)
713endif()
714add_dependencies(buildtests_cxx server_crash_test_client)
715add_dependencies(buildtests_cxx shutdown_test)
716add_dependencies(buildtests_cxx status_test)
717if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
718add_dependencies(buildtests_cxx streaming_throughput_test)
719endif()
720add_dependencies(buildtests_cxx stress_test)
721add_dependencies(buildtests_cxx thread_manager_test)
722add_dependencies(buildtests_cxx thread_stress_test)
Craig Tiller1bb53712017-02-04 15:39:27 -0800723if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tillerc40b3472017-02-03 11:54:26 -0800724add_dependencies(buildtests_cxx writes_per_rpc_test)
Craig Tiller1bb53712017-02-04 15:39:27 -0800725endif()
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100726
727add_custom_target(buildtests
728 DEPENDS buildtests_c buildtests_cxx)
729endif (gRPC_BUILD_TESTS)
730
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100731
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100732add_library(gpr
733 src/core/lib/profiling/basic_timers.c
734 src/core/lib/profiling/stap_timers.c
735 src/core/lib/support/alloc.c
Craig Tiller9202b3f2017-03-12 22:30:38 -0700736 src/core/lib/support/arena.c
Mark D. Rothfecba532017-03-17 09:50:48 -0700737 src/core/lib/support/atm.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100738 src/core/lib/support/avl.c
739 src/core/lib/support/backoff.c
740 src/core/lib/support/cmdline.c
741 src/core/lib/support/cpu_iphone.c
742 src/core/lib/support/cpu_linux.c
743 src/core/lib/support/cpu_posix.c
744 src/core/lib/support/cpu_windows.c
745 src/core/lib/support/env_linux.c
746 src/core/lib/support/env_posix.c
747 src/core/lib/support/env_windows.c
748 src/core/lib/support/histogram.c
749 src/core/lib/support/host_port.c
750 src/core/lib/support/log.c
751 src/core/lib/support/log_android.c
752 src/core/lib/support/log_linux.c
753 src/core/lib/support/log_posix.c
754 src/core/lib/support/log_windows.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700755 src/core/lib/support/mpscq.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100756 src/core/lib/support/murmur_hash.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100757 src/core/lib/support/stack_lockfree.c
758 src/core/lib/support/string.c
759 src/core/lib/support/string_posix.c
760 src/core/lib/support/string_util_windows.c
761 src/core/lib/support/string_windows.c
762 src/core/lib/support/subprocess_posix.c
763 src/core/lib/support/subprocess_windows.c
764 src/core/lib/support/sync.c
765 src/core/lib/support/sync_posix.c
766 src/core/lib/support/sync_windows.c
767 src/core/lib/support/thd.c
768 src/core/lib/support/thd_posix.c
769 src/core/lib/support/thd_windows.c
770 src/core/lib/support/time.c
771 src/core/lib/support/time_posix.c
772 src/core/lib/support/time_precise.c
773 src/core/lib/support/time_windows.c
774 src/core/lib/support/tls_pthread.c
775 src/core/lib/support/tmpfile_msys.c
776 src/core/lib/support/tmpfile_posix.c
777 src/core/lib/support/tmpfile_windows.c
778 src/core/lib/support/wrap_memcpy.c
779)
780
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +0100781if(WIN32 AND MSVC)
782 set_target_properties(gpr PROPERTIES COMPILE_PDB_NAME "gpr"
783 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
784 )
785 if (gRPC_INSTALL)
786 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/gpr.pdb
787 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
788 )
789 endif()
790endif()
791
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100792
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100793target_include_directories(gpr
794 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
795 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
796 PRIVATE ${BORINGSSL_ROOT_DIR}/include
797 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300798 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100799 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100800 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -0700801 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zeng8076d2b2016-08-25 13:23:13 -0700802 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -0700803 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -0700804 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100805 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100806)
807
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100808target_link_libraries(gpr
809 ${_gRPC_ALLTARGETS_LIBRARIES}
810)
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100811
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300812foreach(_hdr
813 include/grpc/support/alloc.h
814 include/grpc/support/atm.h
815 include/grpc/support/atm_gcc_atomic.h
816 include/grpc/support/atm_gcc_sync.h
817 include/grpc/support/atm_windows.h
818 include/grpc/support/avl.h
819 include/grpc/support/cmdline.h
820 include/grpc/support/cpu.h
821 include/grpc/support/histogram.h
822 include/grpc/support/host_port.h
823 include/grpc/support/log.h
824 include/grpc/support/log_windows.h
825 include/grpc/support/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300826 include/grpc/support/string_util.h
827 include/grpc/support/subprocess.h
828 include/grpc/support/sync.h
829 include/grpc/support/sync_generic.h
830 include/grpc/support/sync_posix.h
831 include/grpc/support/sync_windows.h
832 include/grpc/support/thd.h
833 include/grpc/support/time.h
834 include/grpc/support/tls.h
835 include/grpc/support/tls_gcc.h
836 include/grpc/support/tls_msvc.h
837 include/grpc/support/tls_pthread.h
838 include/grpc/support/useful.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300839 include/grpc/impl/codegen/atm.h
840 include/grpc/impl/codegen/atm_gcc_atomic.h
841 include/grpc/impl/codegen/atm_gcc_sync.h
842 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -0800843 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700844 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300845 include/grpc/impl/codegen/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300846 include/grpc/impl/codegen/sync.h
847 include/grpc/impl/codegen/sync_generic.h
848 include/grpc/impl/codegen/sync_posix.h
849 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300850)
851 string(REPLACE "include/" "" _path ${_hdr})
852 get_filename_component(_path ${_path} PATH)
853 install(FILES ${_hdr}
854 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
855 )
856endforeach()
857
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100858
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300859if (gRPC_INSTALL)
860 install(TARGETS gpr EXPORT gRPCTargets
861 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
862 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
863 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
864 )
865endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300866
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100867if (gRPC_BUILD_TESTS)
868
869add_library(gpr_test_util
870 test/core/util/test_config.c
871)
872
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +0100873if(WIN32 AND MSVC)
874 set_target_properties(gpr_test_util PROPERTIES COMPILE_PDB_NAME "gpr_test_util"
875 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
876 )
877 if (gRPC_INSTALL)
878 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/gpr_test_util.pdb
879 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
880 )
881 endif()
882endif()
883
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100884
885target_include_directories(gpr_test_util
886 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
887 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
888 PRIVATE ${BORINGSSL_ROOT_DIR}/include
889 PRIVATE ${PROTOBUF_ROOT_DIR}/src
890 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100891 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100892 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -0700893 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -0800894 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -0700895 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -0700896 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100897 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
898)
899
900target_link_libraries(gpr_test_util
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100901 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100902 gpr
903)
904
905
906endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100907
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100908add_library(grpc
909 src/core/lib/surface/init.c
910 src/core/lib/channel/channel_args.c
911 src/core/lib/channel/channel_stack.c
912 src/core/lib/channel/channel_stack_builder.c
913 src/core/lib/channel/compress_filter.c
914 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -0700915 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700916 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -0800917 src/core/lib/channel/handshaker_factory.c
918 src/core/lib/channel/handshaker_registry.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100919 src/core/lib/channel/http_client_filter.c
920 src/core/lib/channel/http_server_filter.c
Yuchen Zenga809ea52017-03-28 02:02:45 -0700921 src/core/lib/channel/max_age_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700922 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100923 src/core/lib/compression/compression.c
924 src/core/lib/compression/message_compress.c
925 src/core/lib/debug/trace.c
926 src/core/lib/http/format_request.c
927 src/core/lib/http/httpcli.c
928 src/core/lib/http/parser.c
929 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700930 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100931 src/core/lib/iomgr/endpoint.c
932 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700933 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100934 src/core/lib/iomgr/endpoint_pair_windows.c
935 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200936 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100937 src/core/lib/iomgr/ev_poll_posix.c
938 src/core/lib/iomgr/ev_posix.c
939 src/core/lib/iomgr/exec_ctx.c
940 src/core/lib/iomgr/executor.c
941 src/core/lib/iomgr/iocp_windows.c
942 src/core/lib/iomgr/iomgr.c
943 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700944 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100945 src/core/lib/iomgr/iomgr_windows.c
946 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200947 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100948 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700949 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100950 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700951 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100952 src/core/lib/iomgr/pollset_windows.c
953 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700954 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100955 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700956 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100957 src/core/lib/iomgr/sockaddr_utils.c
Michael Warresc46b3eb2017-02-22 22:57:04 -0500958 src/core/lib/iomgr/socket_factory_posix.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700959 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100960 src/core/lib/iomgr/socket_utils_common_posix.c
961 src/core/lib/iomgr/socket_utils_linux.c
962 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700963 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -0700964 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100965 src/core/lib/iomgr/socket_windows.c
966 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700967 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100968 src/core/lib/iomgr/tcp_client_windows.c
969 src/core/lib/iomgr/tcp_posix.c
970 src/core/lib/iomgr/tcp_server_posix.c
Yuchen Zeng68745bb2017-03-14 17:51:07 -0700971 src/core/lib/iomgr/tcp_server_utils_posix_common.c
Yuchen Zeng47155ed2017-03-13 17:18:07 -0700972 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c
973 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c
murgatroid999030c812016-09-16 13:25:08 -0700974 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100975 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700976 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100977 src/core/lib/iomgr/tcp_windows.c
978 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -0700979 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100980 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -0700981 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100982 src/core/lib/iomgr/udp_server.c
983 src/core/lib/iomgr/unix_sockets_posix.c
984 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -0700985 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100986 src/core/lib/iomgr/wakeup_fd_eventfd.c
987 src/core/lib/iomgr/wakeup_fd_nospecial.c
988 src/core/lib/iomgr/wakeup_fd_pipe.c
989 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700990 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100991 src/core/lib/iomgr/workqueue_windows.c
992 src/core/lib/json/json.c
993 src/core/lib/json/json_reader.c
994 src/core/lib/json/json_string.c
995 src/core/lib/json/json_writer.c
Craig Tiller29b527f2017-03-30 10:27:20 -0700996 src/core/lib/slice/b64.c
Craig Tillerc3350542016-10-26 16:19:01 -0700997 src/core/lib/slice/percent_encoding.c
998 src/core/lib/slice/slice.c
999 src/core/lib/slice/slice_buffer.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001000 src/core/lib/slice/slice_hash_table.c
1001 src/core/lib/slice/slice_intern.c
Craig Tillerc3350542016-10-26 16:19:01 -07001002 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001003 src/core/lib/surface/alarm.c
1004 src/core/lib/surface/api_trace.c
1005 src/core/lib/surface/byte_buffer.c
1006 src/core/lib/surface/byte_buffer_reader.c
1007 src/core/lib/surface/call.c
1008 src/core/lib/surface/call_details.c
1009 src/core/lib/surface/call_log_batch.c
1010 src/core/lib/surface/channel.c
1011 src/core/lib/surface/channel_init.c
1012 src/core/lib/surface/channel_ping.c
1013 src/core/lib/surface/channel_stack_type.c
1014 src/core/lib/surface/completion_queue.c
Sree Kuchibhotlabf184282017-03-21 15:18:58 -07001015 src/core/lib/surface/completion_queue_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001016 src/core/lib/surface/event_string.c
1017 src/core/lib/surface/lame_client.c
1018 src/core/lib/surface/metadata_array.c
1019 src/core/lib/surface/server.c
1020 src/core/lib/surface/validate_metadata.c
1021 src/core/lib/surface/version.c
Craig Tiller9e0066b2016-10-20 14:04:18 -07001022 src/core/lib/transport/bdp_estimator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001023 src/core/lib/transport/byte_stream.c
1024 src/core/lib/transport/connectivity_state.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001025 src/core/lib/transport/error_utils.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001026 src/core/lib/transport/metadata.c
1027 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -07001028 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -07001029 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001030 src/core/lib/transport/static_metadata.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001031 src/core/lib/transport/status_conversion.c
Robbie Shade710d2422016-07-13 15:15:38 -04001032 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001033 src/core/lib/transport/transport.c
1034 src/core/lib/transport/transport_op_string.c
1035 src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c
1036 src/core/ext/transport/chttp2/transport/bin_decoder.c
1037 src/core/ext/transport/chttp2/transport/bin_encoder.c
1038 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
1039 src/core/ext/transport/chttp2/transport/chttp2_transport.c
1040 src/core/ext/transport/chttp2/transport/frame_data.c
1041 src/core/ext/transport/chttp2/transport/frame_goaway.c
1042 src/core/ext/transport/chttp2/transport/frame_ping.c
1043 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
1044 src/core/ext/transport/chttp2/transport/frame_settings.c
1045 src/core/ext/transport/chttp2/transport/frame_window_update.c
1046 src/core/ext/transport/chttp2/transport/hpack_encoder.c
1047 src/core/ext/transport/chttp2/transport/hpack_parser.c
1048 src/core/ext/transport/chttp2/transport/hpack_table.c
1049 src/core/ext/transport/chttp2/transport/huffsyms.c
1050 src/core/ext/transport/chttp2/transport/incoming_metadata.c
1051 src/core/ext/transport/chttp2/transport/parsing.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001052 src/core/ext/transport/chttp2/transport/stream_lists.c
1053 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001054 src/core/ext/transport/chttp2/transport/varint.c
1055 src/core/ext/transport/chttp2/transport/writing.c
1056 src/core/ext/transport/chttp2/alpn/alpn.c
1057 src/core/lib/http/httpcli_security_connector.c
1058 src/core/lib/security/context/security_context.c
1059 src/core/lib/security/credentials/composite/composite_credentials.c
1060 src/core/lib/security/credentials/credentials.c
1061 src/core/lib/security/credentials/credentials_metadata.c
1062 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -07001063 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001064 src/core/lib/security/credentials/google_default/google_default_credentials.c
1065 src/core/lib/security/credentials/iam/iam_credentials.c
1066 src/core/lib/security/credentials/jwt/json_token.c
1067 src/core/lib/security/credentials/jwt/jwt_credentials.c
1068 src/core/lib/security/credentials/jwt/jwt_verifier.c
1069 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
1070 src/core/lib/security/credentials/plugin/plugin_credentials.c
1071 src/core/lib/security/credentials/ssl/ssl_credentials.c
1072 src/core/lib/security/transport/client_auth_filter.c
David Garcia Quintas01291502017-02-07 13:26:41 -08001073 src/core/lib/security/transport/lb_targets_info.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001074 src/core/lib/security/transport/secure_endpoint.c
1075 src/core/lib/security/transport/security_connector.c
Mark D. Roth071cacf2016-11-17 13:17:56 -08001076 src/core/lib/security/transport/security_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001077 src/core/lib/security/transport/server_auth_filter.c
1078 src/core/lib/security/transport/tsi_error.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001079 src/core/lib/security/util/json_util.c
1080 src/core/lib/surface/init_secure.c
Craig Tiller134fed32017-03-28 14:27:18 -07001081 src/core/tsi/fake_transport_security.c
1082 src/core/tsi/ssl_transport_security.c
1083 src/core/tsi/transport_security.c
Mark D. Roth71403822016-12-02 10:51:39 -08001084 src/core/ext/transport/chttp2/server/chttp2_server.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001085 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001086 src/core/ext/client_channel/channel_connectivity.c
1087 src/core/ext/client_channel/client_channel.c
1088 src/core/ext/client_channel/client_channel_factory.c
1089 src/core/ext/client_channel/client_channel_plugin.c
1090 src/core/ext/client_channel/connector.c
Mark D. Roth15195742016-10-07 09:02:28 -07001091 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Rothd58a9852017-01-18 08:28:57 -08001092 src/core/ext/client_channel/http_proxy.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001093 src/core/ext/client_channel/lb_policy.c
1094 src/core/ext/client_channel/lb_policy_factory.c
1095 src/core/ext/client_channel/lb_policy_registry.c
1096 src/core/ext/client_channel/parse_address.c
Mark D. Roth79f2a242017-01-17 14:13:33 -08001097 src/core/ext/client_channel/proxy_mapper.c
1098 src/core/ext/client_channel/proxy_mapper_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001099 src/core/ext/client_channel/resolver.c
1100 src/core/ext/client_channel/resolver_factory.c
1101 src/core/ext/client_channel/resolver_registry.c
Mark D. Rothd6d192d2017-02-23 08:58:42 -08001102 src/core/ext/client_channel/retry_throttle.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001103 src/core/ext/client_channel/subchannel.c
1104 src/core/ext/client_channel/subchannel_index.c
1105 src/core/ext/client_channel/uri_parser.c
Mark D. Roth8686cab2016-11-17 13:12:17 -08001106 src/core/ext/transport/chttp2/client/chttp2_connector.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001107 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
1108 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
1109 src/core/ext/transport/chttp2/client/insecure/channel_create.c
1110 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -07001111 src/core/ext/lb_policy/grpclb/grpclb.c
David Garcia Quintas01291502017-02-07 13:26:41 -08001112 src/core/ext/lb_policy/grpclb/grpclb_channel_secure.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001113 src/core/ext/lb_policy/grpclb/load_balancer_api.c
1114 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
1115 third_party/nanopb/pb_common.c
1116 third_party/nanopb/pb_decode.c
1117 third_party/nanopb/pb_encode.c
1118 src/core/ext/lb_policy/pick_first/pick_first.c
1119 src/core/ext/lb_policy/round_robin/round_robin.c
Yuchen Zengea88fc12016-08-19 00:20:59 -07001120 src/core/ext/resolver/dns/c_ares/dns_resolver_ares.c
Yuchen Zeng85750b02016-08-08 14:16:34 -07001121 src/core/ext/resolver/dns/c_ares/grpc_ares_ev_driver_posix.c
Yuchen Zengd4bbfc72016-08-05 10:33:16 -07001122 src/core/ext/resolver/dns/c_ares/grpc_ares_wrapper.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001123 src/core/ext/resolver/dns/native/dns_resolver.c
1124 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
1125 src/core/ext/load_reporting/load_reporting.c
1126 src/core/ext/load_reporting/load_reporting_filter.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07001127 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001128 src/core/ext/census/context.c
1129 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -07001130 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001131 src/core/ext/census/grpc_context.c
1132 src/core/ext/census/grpc_filter.c
1133 src/core/ext/census/grpc_plugin.c
1134 src/core/ext/census/initialize.c
1135 src/core/ext/census/mlog.c
1136 src/core/ext/census/operation.c
1137 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07001138 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -07001139 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001140 src/core/ext/census/tracing.c
1141 src/core/plugin_registry/grpc_plugin_registry.c
1142)
1143
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001144if(WIN32 AND MSVC)
1145 set_target_properties(grpc PROPERTIES COMPILE_PDB_NAME "grpc"
1146 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
1147 )
1148 if (gRPC_INSTALL)
1149 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc.pdb
1150 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
1151 )
1152 endif()
1153endif()
1154
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001155
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001156target_include_directories(grpc
1157 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1158 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1159 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1160 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001161 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001162 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001163 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07001164 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zeng8076d2b2016-08-25 13:23:13 -07001165 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07001166 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07001167 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001168 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001169)
1170
1171target_link_libraries(grpc
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001172 ${_gRPC_BASELIB_LIBRARIES}
1173 ${_gRPC_SSL_LIBRARIES}
1174 ${_gRPC_ZLIB_LIBRARIES}
Yuchen Zeng8076d2b2016-08-25 13:23:13 -07001175 ${_gRPC_CARES_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001176 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001177 gpr
1178)
1179
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001180foreach(_hdr
1181 include/grpc/byte_buffer.h
1182 include/grpc/byte_buffer_reader.h
1183 include/grpc/compression.h
1184 include/grpc/grpc.h
1185 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001186 include/grpc/grpc_security_constants.h
David Garcia Quintasf31f0962017-02-10 14:53:58 -08001187 include/grpc/load_reporting.h
Craig Tillerc3350542016-10-26 16:19:01 -07001188 include/grpc/slice.h
1189 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001190 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001191 include/grpc/impl/codegen/byte_buffer_reader.h
1192 include/grpc/impl/codegen/compression_types.h
1193 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08001194 include/grpc/impl/codegen/exec_ctx_fwd.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001195 include/grpc/impl/codegen/grpc_types.h
1196 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07001197 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001198 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001199 include/grpc/impl/codegen/atm.h
1200 include/grpc/impl/codegen/atm_gcc_atomic.h
1201 include/grpc/impl/codegen/atm_gcc_sync.h
1202 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08001203 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001204 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001205 include/grpc/impl/codegen/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001206 include/grpc/impl/codegen/sync.h
1207 include/grpc/impl/codegen/sync_generic.h
1208 include/grpc/impl/codegen/sync_posix.h
1209 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001210 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001211 include/grpc/census.h
1212)
1213 string(REPLACE "include/" "" _path ${_hdr})
1214 get_filename_component(_path ${_path} PATH)
1215 install(FILES ${_hdr}
1216 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1217 )
1218endforeach()
1219
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001220
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001221if (gRPC_INSTALL)
1222 install(TARGETS grpc EXPORT gRPCTargets
1223 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1224 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1225 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1226 )
1227endif()
1228
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001229
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001230add_library(grpc_cronet
1231 src/core/lib/surface/init.c
1232 src/core/lib/channel/channel_args.c
1233 src/core/lib/channel/channel_stack.c
1234 src/core/lib/channel/channel_stack_builder.c
1235 src/core/lib/channel/compress_filter.c
1236 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -07001237 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -07001238 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -08001239 src/core/lib/channel/handshaker_factory.c
1240 src/core/lib/channel/handshaker_registry.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001241 src/core/lib/channel/http_client_filter.c
1242 src/core/lib/channel/http_server_filter.c
Yuchen Zenga809ea52017-03-28 02:02:45 -07001243 src/core/lib/channel/max_age_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -07001244 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001245 src/core/lib/compression/compression.c
1246 src/core/lib/compression/message_compress.c
1247 src/core/lib/debug/trace.c
1248 src/core/lib/http/format_request.c
1249 src/core/lib/http/httpcli.c
1250 src/core/lib/http/parser.c
1251 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -07001252 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001253 src/core/lib/iomgr/endpoint.c
1254 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -07001255 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001256 src/core/lib/iomgr/endpoint_pair_windows.c
1257 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02001258 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001259 src/core/lib/iomgr/ev_poll_posix.c
1260 src/core/lib/iomgr/ev_posix.c
1261 src/core/lib/iomgr/exec_ctx.c
1262 src/core/lib/iomgr/executor.c
1263 src/core/lib/iomgr/iocp_windows.c
1264 src/core/lib/iomgr/iomgr.c
1265 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001266 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001267 src/core/lib/iomgr/iomgr_windows.c
1268 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02001269 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001270 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -07001271 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001272 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -07001273 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001274 src/core/lib/iomgr/pollset_windows.c
1275 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001276 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001277 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -07001278 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001279 src/core/lib/iomgr/sockaddr_utils.c
Michael Warresc46b3eb2017-02-22 22:57:04 -05001280 src/core/lib/iomgr/socket_factory_posix.c
Yuchen Zengde3daf52016-10-13 17:26:26 -07001281 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001282 src/core/lib/iomgr/socket_utils_common_posix.c
1283 src/core/lib/iomgr/socket_utils_linux.c
1284 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001285 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -07001286 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001287 src/core/lib/iomgr/socket_windows.c
1288 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001289 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001290 src/core/lib/iomgr/tcp_client_windows.c
1291 src/core/lib/iomgr/tcp_posix.c
1292 src/core/lib/iomgr/tcp_server_posix.c
Yuchen Zeng68745bb2017-03-14 17:51:07 -07001293 src/core/lib/iomgr/tcp_server_utils_posix_common.c
Yuchen Zeng47155ed2017-03-13 17:18:07 -07001294 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c
1295 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c
murgatroid999030c812016-09-16 13:25:08 -07001296 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001297 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -07001298 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001299 src/core/lib/iomgr/tcp_windows.c
1300 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -07001301 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001302 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -07001303 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001304 src/core/lib/iomgr/udp_server.c
1305 src/core/lib/iomgr/unix_sockets_posix.c
1306 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -07001307 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001308 src/core/lib/iomgr/wakeup_fd_eventfd.c
1309 src/core/lib/iomgr/wakeup_fd_nospecial.c
1310 src/core/lib/iomgr/wakeup_fd_pipe.c
1311 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001312 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001313 src/core/lib/iomgr/workqueue_windows.c
1314 src/core/lib/json/json.c
1315 src/core/lib/json/json_reader.c
1316 src/core/lib/json/json_string.c
1317 src/core/lib/json/json_writer.c
Craig Tiller29b527f2017-03-30 10:27:20 -07001318 src/core/lib/slice/b64.c
Craig Tillerc3350542016-10-26 16:19:01 -07001319 src/core/lib/slice/percent_encoding.c
1320 src/core/lib/slice/slice.c
1321 src/core/lib/slice/slice_buffer.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001322 src/core/lib/slice/slice_hash_table.c
1323 src/core/lib/slice/slice_intern.c
Craig Tillerc3350542016-10-26 16:19:01 -07001324 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001325 src/core/lib/surface/alarm.c
1326 src/core/lib/surface/api_trace.c
1327 src/core/lib/surface/byte_buffer.c
1328 src/core/lib/surface/byte_buffer_reader.c
1329 src/core/lib/surface/call.c
1330 src/core/lib/surface/call_details.c
1331 src/core/lib/surface/call_log_batch.c
1332 src/core/lib/surface/channel.c
1333 src/core/lib/surface/channel_init.c
1334 src/core/lib/surface/channel_ping.c
1335 src/core/lib/surface/channel_stack_type.c
1336 src/core/lib/surface/completion_queue.c
Sree Kuchibhotlabf184282017-03-21 15:18:58 -07001337 src/core/lib/surface/completion_queue_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001338 src/core/lib/surface/event_string.c
1339 src/core/lib/surface/lame_client.c
1340 src/core/lib/surface/metadata_array.c
1341 src/core/lib/surface/server.c
1342 src/core/lib/surface/validate_metadata.c
1343 src/core/lib/surface/version.c
Craig Tiller9e0066b2016-10-20 14:04:18 -07001344 src/core/lib/transport/bdp_estimator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001345 src/core/lib/transport/byte_stream.c
1346 src/core/lib/transport/connectivity_state.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001347 src/core/lib/transport/error_utils.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001348 src/core/lib/transport/metadata.c
1349 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -07001350 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -07001351 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001352 src/core/lib/transport/static_metadata.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001353 src/core/lib/transport/status_conversion.c
Robbie Shade710d2422016-07-13 15:15:38 -04001354 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001355 src/core/lib/transport/transport.c
1356 src/core/lib/transport/transport_op_string.c
1357 src/core/ext/transport/cronet/client/secure/cronet_channel_create.c
1358 src/core/ext/transport/cronet/transport/cronet_api_dummy.c
1359 src/core/ext/transport/cronet/transport/cronet_transport.c
1360 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
1361 src/core/ext/transport/chttp2/transport/bin_decoder.c
1362 src/core/ext/transport/chttp2/transport/bin_encoder.c
1363 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
1364 src/core/ext/transport/chttp2/transport/chttp2_transport.c
1365 src/core/ext/transport/chttp2/transport/frame_data.c
1366 src/core/ext/transport/chttp2/transport/frame_goaway.c
1367 src/core/ext/transport/chttp2/transport/frame_ping.c
1368 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
1369 src/core/ext/transport/chttp2/transport/frame_settings.c
1370 src/core/ext/transport/chttp2/transport/frame_window_update.c
1371 src/core/ext/transport/chttp2/transport/hpack_encoder.c
1372 src/core/ext/transport/chttp2/transport/hpack_parser.c
1373 src/core/ext/transport/chttp2/transport/hpack_table.c
1374 src/core/ext/transport/chttp2/transport/huffsyms.c
1375 src/core/ext/transport/chttp2/transport/incoming_metadata.c
1376 src/core/ext/transport/chttp2/transport/parsing.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001377 src/core/ext/transport/chttp2/transport/stream_lists.c
1378 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001379 src/core/ext/transport/chttp2/transport/varint.c
1380 src/core/ext/transport/chttp2/transport/writing.c
1381 src/core/ext/transport/chttp2/alpn/alpn.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001382 src/core/ext/client_channel/channel_connectivity.c
1383 src/core/ext/client_channel/client_channel.c
1384 src/core/ext/client_channel/client_channel_factory.c
1385 src/core/ext/client_channel/client_channel_plugin.c
1386 src/core/ext/client_channel/connector.c
Mark D. Roth15195742016-10-07 09:02:28 -07001387 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Rothd58a9852017-01-18 08:28:57 -08001388 src/core/ext/client_channel/http_proxy.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001389 src/core/ext/client_channel/lb_policy.c
1390 src/core/ext/client_channel/lb_policy_factory.c
1391 src/core/ext/client_channel/lb_policy_registry.c
1392 src/core/ext/client_channel/parse_address.c
Mark D. Roth79f2a242017-01-17 14:13:33 -08001393 src/core/ext/client_channel/proxy_mapper.c
1394 src/core/ext/client_channel/proxy_mapper_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001395 src/core/ext/client_channel/resolver.c
1396 src/core/ext/client_channel/resolver_factory.c
1397 src/core/ext/client_channel/resolver_registry.c
Mark D. Rothd6d192d2017-02-23 08:58:42 -08001398 src/core/ext/client_channel/retry_throttle.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001399 src/core/ext/client_channel/subchannel.c
1400 src/core/ext/client_channel/subchannel_index.c
1401 src/core/ext/client_channel/uri_parser.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001402 src/core/lib/http/httpcli_security_connector.c
1403 src/core/lib/security/context/security_context.c
1404 src/core/lib/security/credentials/composite/composite_credentials.c
1405 src/core/lib/security/credentials/credentials.c
1406 src/core/lib/security/credentials/credentials_metadata.c
1407 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -07001408 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001409 src/core/lib/security/credentials/google_default/google_default_credentials.c
1410 src/core/lib/security/credentials/iam/iam_credentials.c
1411 src/core/lib/security/credentials/jwt/json_token.c
1412 src/core/lib/security/credentials/jwt/jwt_credentials.c
1413 src/core/lib/security/credentials/jwt/jwt_verifier.c
1414 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
1415 src/core/lib/security/credentials/plugin/plugin_credentials.c
1416 src/core/lib/security/credentials/ssl/ssl_credentials.c
1417 src/core/lib/security/transport/client_auth_filter.c
David Garcia Quintas01291502017-02-07 13:26:41 -08001418 src/core/lib/security/transport/lb_targets_info.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001419 src/core/lib/security/transport/secure_endpoint.c
1420 src/core/lib/security/transport/security_connector.c
Mark D. Roth071cacf2016-11-17 13:17:56 -08001421 src/core/lib/security/transport/security_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001422 src/core/lib/security/transport/server_auth_filter.c
1423 src/core/lib/security/transport/tsi_error.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001424 src/core/lib/security/util/json_util.c
1425 src/core/lib/surface/init_secure.c
Craig Tiller134fed32017-03-28 14:27:18 -07001426 src/core/tsi/fake_transport_security.c
1427 src/core/tsi/ssl_transport_security.c
1428 src/core/tsi/transport_security.c
Mark D. Roth8686cab2016-11-17 13:12:17 -08001429 src/core/ext/transport/chttp2/client/chttp2_connector.c
ncteisen40e1e992017-02-24 11:45:51 -08001430 src/core/ext/load_reporting/load_reporting.c
1431 src/core/ext/load_reporting/load_reporting_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001432 src/core/plugin_registry/grpc_cronet_plugin_registry.c
1433)
1434
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001435if(WIN32 AND MSVC)
1436 set_target_properties(grpc_cronet PROPERTIES COMPILE_PDB_NAME "grpc_cronet"
1437 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
1438 )
1439 if (gRPC_INSTALL)
1440 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_cronet.pdb
1441 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
1442 )
1443 endif()
1444endif()
1445
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001446
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001447target_include_directories(grpc_cronet
1448 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1449 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1450 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1451 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001452 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001453 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001454 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07001455 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zeng8076d2b2016-08-25 13:23:13 -07001456 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07001457 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07001458 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001459 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001460)
1461
1462target_link_libraries(grpc_cronet
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001463 ${_gRPC_BASELIB_LIBRARIES}
1464 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001465 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001466 gpr
1467)
1468
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001469foreach(_hdr
1470 include/grpc/byte_buffer.h
1471 include/grpc/byte_buffer_reader.h
1472 include/grpc/compression.h
1473 include/grpc/grpc.h
1474 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001475 include/grpc/grpc_security_constants.h
David Garcia Quintasf31f0962017-02-10 14:53:58 -08001476 include/grpc/load_reporting.h
Craig Tillerc3350542016-10-26 16:19:01 -07001477 include/grpc/slice.h
1478 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001479 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001480 include/grpc/impl/codegen/byte_buffer_reader.h
1481 include/grpc/impl/codegen/compression_types.h
1482 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08001483 include/grpc/impl/codegen/exec_ctx_fwd.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001484 include/grpc/impl/codegen/grpc_types.h
1485 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07001486 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001487 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001488 include/grpc/impl/codegen/atm.h
1489 include/grpc/impl/codegen/atm_gcc_atomic.h
1490 include/grpc/impl/codegen/atm_gcc_sync.h
1491 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08001492 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001493 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001494 include/grpc/impl/codegen/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001495 include/grpc/impl/codegen/sync.h
1496 include/grpc/impl/codegen/sync_generic.h
1497 include/grpc/impl/codegen/sync_posix.h
1498 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001499 include/grpc/grpc_cronet.h
1500 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001501)
1502 string(REPLACE "include/" "" _path ${_hdr})
1503 get_filename_component(_path ${_path} PATH)
1504 install(FILES ${_hdr}
1505 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1506 )
1507endforeach()
1508
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001509
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001510if (gRPC_INSTALL)
1511 install(TARGETS grpc_cronet EXPORT gRPCTargets
1512 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
1513 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
1514 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
1515 )
1516endif()
1517
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001518if (gRPC_BUILD_TESTS)
1519
1520add_library(grpc_test_util
1521 test/core/end2end/data/client_certs.c
1522 test/core/end2end/data/server1_cert.c
1523 test/core/end2end/data/server1_key.c
1524 test/core/end2end/data/test_root_cert.c
1525 test/core/security/oauth2_utils.c
1526 test/core/end2end/cq_verifier.c
1527 test/core/end2end/fake_resolver.c
Craig Tillere067b6e2017-03-06 14:46:37 -08001528 test/core/end2end/fixtures/http_proxy_fixture.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001529 test/core/end2end/fixtures/proxy.c
1530 test/core/iomgr/endpoint_tests.c
Craig Tiller61eb40c2017-02-03 13:46:33 -08001531 test/core/util/debugger_macros.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001532 test/core/util/grpc_profiler.c
1533 test/core/util/memory_counters.c
1534 test/core/util/mock_endpoint.c
1535 test/core/util/parse_hexstring.c
1536 test/core/util/passthru_endpoint.c
Craig Tillercba864b2017-02-17 10:27:56 -08001537 test/core/util/port.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001538 test/core/util/port_server_client.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001539 test/core/util/slice_splitter.c
Craig Tillerfe5f4972017-02-13 16:26:27 -08001540 test/core/util/trickle_endpoint.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001541 src/core/lib/channel/channel_args.c
1542 src/core/lib/channel/channel_stack.c
1543 src/core/lib/channel/channel_stack_builder.c
1544 src/core/lib/channel/compress_filter.c
1545 src/core/lib/channel/connected_channel.c
1546 src/core/lib/channel/deadline_filter.c
1547 src/core/lib/channel/handshaker.c
1548 src/core/lib/channel/handshaker_factory.c
1549 src/core/lib/channel/handshaker_registry.c
1550 src/core/lib/channel/http_client_filter.c
1551 src/core/lib/channel/http_server_filter.c
Yuchen Zenga809ea52017-03-28 02:02:45 -07001552 src/core/lib/channel/max_age_filter.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001553 src/core/lib/channel/message_size_filter.c
1554 src/core/lib/compression/compression.c
1555 src/core/lib/compression/message_compress.c
1556 src/core/lib/debug/trace.c
1557 src/core/lib/http/format_request.c
1558 src/core/lib/http/httpcli.c
1559 src/core/lib/http/parser.c
1560 src/core/lib/iomgr/closure.c
1561 src/core/lib/iomgr/combiner.c
1562 src/core/lib/iomgr/endpoint.c
1563 src/core/lib/iomgr/endpoint_pair_posix.c
1564 src/core/lib/iomgr/endpoint_pair_uv.c
1565 src/core/lib/iomgr/endpoint_pair_windows.c
1566 src/core/lib/iomgr/error.c
1567 src/core/lib/iomgr/ev_epoll_linux.c
1568 src/core/lib/iomgr/ev_poll_posix.c
1569 src/core/lib/iomgr/ev_posix.c
1570 src/core/lib/iomgr/exec_ctx.c
1571 src/core/lib/iomgr/executor.c
1572 src/core/lib/iomgr/iocp_windows.c
1573 src/core/lib/iomgr/iomgr.c
1574 src/core/lib/iomgr/iomgr_posix.c
1575 src/core/lib/iomgr/iomgr_uv.c
1576 src/core/lib/iomgr/iomgr_windows.c
1577 src/core/lib/iomgr/load_file.c
1578 src/core/lib/iomgr/network_status_tracker.c
1579 src/core/lib/iomgr/polling_entity.c
1580 src/core/lib/iomgr/pollset_set_uv.c
1581 src/core/lib/iomgr/pollset_set_windows.c
1582 src/core/lib/iomgr/pollset_uv.c
1583 src/core/lib/iomgr/pollset_windows.c
1584 src/core/lib/iomgr/resolve_address_posix.c
1585 src/core/lib/iomgr/resolve_address_uv.c
1586 src/core/lib/iomgr/resolve_address_windows.c
1587 src/core/lib/iomgr/resource_quota.c
1588 src/core/lib/iomgr/sockaddr_utils.c
Michael Warresc46b3eb2017-02-22 22:57:04 -05001589 src/core/lib/iomgr/socket_factory_posix.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001590 src/core/lib/iomgr/socket_mutator.c
1591 src/core/lib/iomgr/socket_utils_common_posix.c
1592 src/core/lib/iomgr/socket_utils_linux.c
1593 src/core/lib/iomgr/socket_utils_posix.c
1594 src/core/lib/iomgr/socket_utils_uv.c
1595 src/core/lib/iomgr/socket_utils_windows.c
1596 src/core/lib/iomgr/socket_windows.c
1597 src/core/lib/iomgr/tcp_client_posix.c
1598 src/core/lib/iomgr/tcp_client_uv.c
1599 src/core/lib/iomgr/tcp_client_windows.c
1600 src/core/lib/iomgr/tcp_posix.c
1601 src/core/lib/iomgr/tcp_server_posix.c
Yuchen Zeng68745bb2017-03-14 17:51:07 -07001602 src/core/lib/iomgr/tcp_server_utils_posix_common.c
Yuchen Zeng47155ed2017-03-13 17:18:07 -07001603 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c
1604 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001605 src/core/lib/iomgr/tcp_server_uv.c
1606 src/core/lib/iomgr/tcp_server_windows.c
1607 src/core/lib/iomgr/tcp_uv.c
1608 src/core/lib/iomgr/tcp_windows.c
1609 src/core/lib/iomgr/time_averaged_stats.c
1610 src/core/lib/iomgr/timer_generic.c
1611 src/core/lib/iomgr/timer_heap.c
1612 src/core/lib/iomgr/timer_uv.c
1613 src/core/lib/iomgr/udp_server.c
1614 src/core/lib/iomgr/unix_sockets_posix.c
1615 src/core/lib/iomgr/unix_sockets_posix_noop.c
1616 src/core/lib/iomgr/wakeup_fd_cv.c
1617 src/core/lib/iomgr/wakeup_fd_eventfd.c
1618 src/core/lib/iomgr/wakeup_fd_nospecial.c
1619 src/core/lib/iomgr/wakeup_fd_pipe.c
1620 src/core/lib/iomgr/wakeup_fd_posix.c
1621 src/core/lib/iomgr/workqueue_uv.c
1622 src/core/lib/iomgr/workqueue_windows.c
1623 src/core/lib/json/json.c
1624 src/core/lib/json/json_reader.c
1625 src/core/lib/json/json_string.c
1626 src/core/lib/json/json_writer.c
Craig Tiller29b527f2017-03-30 10:27:20 -07001627 src/core/lib/slice/b64.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001628 src/core/lib/slice/percent_encoding.c
1629 src/core/lib/slice/slice.c
1630 src/core/lib/slice/slice_buffer.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001631 src/core/lib/slice/slice_hash_table.c
1632 src/core/lib/slice/slice_intern.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001633 src/core/lib/slice/slice_string_helpers.c
1634 src/core/lib/surface/alarm.c
1635 src/core/lib/surface/api_trace.c
1636 src/core/lib/surface/byte_buffer.c
1637 src/core/lib/surface/byte_buffer_reader.c
1638 src/core/lib/surface/call.c
1639 src/core/lib/surface/call_details.c
1640 src/core/lib/surface/call_log_batch.c
1641 src/core/lib/surface/channel.c
1642 src/core/lib/surface/channel_init.c
1643 src/core/lib/surface/channel_ping.c
1644 src/core/lib/surface/channel_stack_type.c
1645 src/core/lib/surface/completion_queue.c
Sree Kuchibhotlabf184282017-03-21 15:18:58 -07001646 src/core/lib/surface/completion_queue_factory.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001647 src/core/lib/surface/event_string.c
1648 src/core/lib/surface/lame_client.c
1649 src/core/lib/surface/metadata_array.c
1650 src/core/lib/surface/server.c
1651 src/core/lib/surface/validate_metadata.c
1652 src/core/lib/surface/version.c
Craig Tillerff1f1602017-01-20 13:55:35 -08001653 src/core/lib/transport/bdp_estimator.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001654 src/core/lib/transport/byte_stream.c
1655 src/core/lib/transport/connectivity_state.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001656 src/core/lib/transport/error_utils.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001657 src/core/lib/transport/metadata.c
1658 src/core/lib/transport/metadata_batch.c
1659 src/core/lib/transport/pid_controller.c
1660 src/core/lib/transport/service_config.c
1661 src/core/lib/transport/static_metadata.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001662 src/core/lib/transport/status_conversion.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001663 src/core/lib/transport/timeout_encoding.c
1664 src/core/lib/transport/transport.c
1665 src/core/lib/transport/transport_op_string.c
1666)
1667
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001668if(WIN32 AND MSVC)
1669 set_target_properties(grpc_test_util PROPERTIES COMPILE_PDB_NAME "grpc_test_util"
1670 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
1671 )
1672 if (gRPC_INSTALL)
1673 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_test_util.pdb
1674 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
1675 )
1676 endif()
1677endif()
1678
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001679
1680target_include_directories(grpc_test_util
1681 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1682 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1683 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1684 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1685 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001686 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001687 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07001688 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08001689 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07001690 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07001691 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001692 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
1693)
1694
1695target_link_libraries(grpc_test_util
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001696 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001697 gpr_test_util
1698 gpr
1699 grpc
1700)
1701
1702foreach(_hdr
1703 include/grpc/byte_buffer.h
1704 include/grpc/byte_buffer_reader.h
1705 include/grpc/compression.h
1706 include/grpc/grpc.h
1707 include/grpc/grpc_posix.h
1708 include/grpc/grpc_security_constants.h
David Garcia Quintasf31f0962017-02-10 14:53:58 -08001709 include/grpc/load_reporting.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001710 include/grpc/slice.h
1711 include/grpc/slice_buffer.h
1712 include/grpc/status.h
1713 include/grpc/impl/codegen/byte_buffer_reader.h
1714 include/grpc/impl/codegen/compression_types.h
1715 include/grpc/impl/codegen/connectivity_state.h
1716 include/grpc/impl/codegen/exec_ctx_fwd.h
1717 include/grpc/impl/codegen/grpc_types.h
1718 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07001719 include/grpc/impl/codegen/slice.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001720 include/grpc/impl/codegen/status.h
1721 include/grpc/impl/codegen/atm.h
1722 include/grpc/impl/codegen/atm_gcc_atomic.h
1723 include/grpc/impl/codegen/atm_gcc_sync.h
1724 include/grpc/impl/codegen/atm_windows.h
1725 include/grpc/impl/codegen/gpr_slice.h
1726 include/grpc/impl/codegen/gpr_types.h
1727 include/grpc/impl/codegen/port_platform.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001728 include/grpc/impl/codegen/sync.h
1729 include/grpc/impl/codegen/sync_generic.h
1730 include/grpc/impl/codegen/sync_posix.h
1731 include/grpc/impl/codegen/sync_windows.h
1732)
1733 string(REPLACE "include/" "" _path ${_hdr})
1734 get_filename_component(_path ${_path} PATH)
1735 install(FILES ${_hdr}
1736 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
1737 )
1738endforeach()
1739
1740endif (gRPC_BUILD_TESTS)
1741if (gRPC_BUILD_TESTS)
1742
1743add_library(grpc_test_util_unsecure
1744 test/core/end2end/cq_verifier.c
1745 test/core/end2end/fake_resolver.c
Craig Tillere067b6e2017-03-06 14:46:37 -08001746 test/core/end2end/fixtures/http_proxy_fixture.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001747 test/core/end2end/fixtures/proxy.c
1748 test/core/iomgr/endpoint_tests.c
Craig Tiller61eb40c2017-02-03 13:46:33 -08001749 test/core/util/debugger_macros.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001750 test/core/util/grpc_profiler.c
1751 test/core/util/memory_counters.c
1752 test/core/util/mock_endpoint.c
1753 test/core/util/parse_hexstring.c
1754 test/core/util/passthru_endpoint.c
Craig Tillercba864b2017-02-17 10:27:56 -08001755 test/core/util/port.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001756 test/core/util/port_server_client.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001757 test/core/util/slice_splitter.c
Craig Tillerfe5f4972017-02-13 16:26:27 -08001758 test/core/util/trickle_endpoint.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001759)
1760
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001761if(WIN32 AND MSVC)
1762 set_target_properties(grpc_test_util_unsecure PROPERTIES COMPILE_PDB_NAME "grpc_test_util_unsecure"
1763 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
1764 )
1765 if (gRPC_INSTALL)
1766 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_test_util_unsecure.pdb
1767 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
1768 )
1769 endif()
1770endif()
1771
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001772
1773target_include_directories(grpc_test_util_unsecure
1774 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
1775 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
1776 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1777 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1778 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001779 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001780 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07001781 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08001782 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07001783 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07001784 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001785 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
1786)
1787
1788target_link_libraries(grpc_test_util_unsecure
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001789 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001790 gpr
1791 gpr_test_util
1792 grpc_unsecure
1793 grpc
1794)
1795
1796
1797endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001798
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001799add_library(grpc_unsecure
1800 src/core/lib/surface/init.c
1801 src/core/lib/surface/init_unsecure.c
1802 src/core/lib/channel/channel_args.c
1803 src/core/lib/channel/channel_stack.c
1804 src/core/lib/channel/channel_stack_builder.c
1805 src/core/lib/channel/compress_filter.c
1806 src/core/lib/channel/connected_channel.c
Mark D. Roth14c072c2016-08-26 08:31:34 -07001807 src/core/lib/channel/deadline_filter.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -07001808 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -08001809 src/core/lib/channel/handshaker_factory.c
1810 src/core/lib/channel/handshaker_registry.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001811 src/core/lib/channel/http_client_filter.c
1812 src/core/lib/channel/http_server_filter.c
Yuchen Zenga809ea52017-03-28 02:02:45 -07001813 src/core/lib/channel/max_age_filter.c
Mark D. Rothaf00d8b2016-08-23 12:48:16 -07001814 src/core/lib/channel/message_size_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001815 src/core/lib/compression/compression.c
1816 src/core/lib/compression/message_compress.c
1817 src/core/lib/debug/trace.c
1818 src/core/lib/http/format_request.c
1819 src/core/lib/http/httpcli.c
1820 src/core/lib/http/parser.c
1821 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -07001822 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001823 src/core/lib/iomgr/endpoint.c
1824 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -07001825 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001826 src/core/lib/iomgr/endpoint_pair_windows.c
1827 src/core/lib/iomgr/error.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02001828 src/core/lib/iomgr/ev_epoll_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001829 src/core/lib/iomgr/ev_poll_posix.c
1830 src/core/lib/iomgr/ev_posix.c
1831 src/core/lib/iomgr/exec_ctx.c
1832 src/core/lib/iomgr/executor.c
1833 src/core/lib/iomgr/iocp_windows.c
1834 src/core/lib/iomgr/iomgr.c
1835 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001836 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001837 src/core/lib/iomgr/iomgr_windows.c
1838 src/core/lib/iomgr/load_file.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02001839 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001840 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -07001841 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001842 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -07001843 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001844 src/core/lib/iomgr/pollset_windows.c
1845 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001846 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001847 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -07001848 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001849 src/core/lib/iomgr/sockaddr_utils.c
Michael Warresc46b3eb2017-02-22 22:57:04 -05001850 src/core/lib/iomgr/socket_factory_posix.c
Yuchen Zengde3daf52016-10-13 17:26:26 -07001851 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001852 src/core/lib/iomgr/socket_utils_common_posix.c
1853 src/core/lib/iomgr/socket_utils_linux.c
1854 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001855 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -07001856 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001857 src/core/lib/iomgr/socket_windows.c
1858 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001859 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001860 src/core/lib/iomgr/tcp_client_windows.c
1861 src/core/lib/iomgr/tcp_posix.c
1862 src/core/lib/iomgr/tcp_server_posix.c
Yuchen Zeng68745bb2017-03-14 17:51:07 -07001863 src/core/lib/iomgr/tcp_server_utils_posix_common.c
Yuchen Zeng47155ed2017-03-13 17:18:07 -07001864 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c
1865 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c
murgatroid999030c812016-09-16 13:25:08 -07001866 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001867 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -07001868 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001869 src/core/lib/iomgr/tcp_windows.c
1870 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -07001871 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001872 src/core/lib/iomgr/timer_heap.c
murgatroid999030c812016-09-16 13:25:08 -07001873 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001874 src/core/lib/iomgr/udp_server.c
1875 src/core/lib/iomgr/unix_sockets_posix.c
1876 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -07001877 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001878 src/core/lib/iomgr/wakeup_fd_eventfd.c
1879 src/core/lib/iomgr/wakeup_fd_nospecial.c
1880 src/core/lib/iomgr/wakeup_fd_pipe.c
1881 src/core/lib/iomgr/wakeup_fd_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001882 src/core/lib/iomgr/workqueue_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001883 src/core/lib/iomgr/workqueue_windows.c
1884 src/core/lib/json/json.c
1885 src/core/lib/json/json_reader.c
1886 src/core/lib/json/json_string.c
1887 src/core/lib/json/json_writer.c
Craig Tiller29b527f2017-03-30 10:27:20 -07001888 src/core/lib/slice/b64.c
Craig Tillerc3350542016-10-26 16:19:01 -07001889 src/core/lib/slice/percent_encoding.c
1890 src/core/lib/slice/slice.c
1891 src/core/lib/slice/slice_buffer.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001892 src/core/lib/slice/slice_hash_table.c
1893 src/core/lib/slice/slice_intern.c
Craig Tillerc3350542016-10-26 16:19:01 -07001894 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001895 src/core/lib/surface/alarm.c
1896 src/core/lib/surface/api_trace.c
1897 src/core/lib/surface/byte_buffer.c
1898 src/core/lib/surface/byte_buffer_reader.c
1899 src/core/lib/surface/call.c
1900 src/core/lib/surface/call_details.c
1901 src/core/lib/surface/call_log_batch.c
1902 src/core/lib/surface/channel.c
1903 src/core/lib/surface/channel_init.c
1904 src/core/lib/surface/channel_ping.c
1905 src/core/lib/surface/channel_stack_type.c
1906 src/core/lib/surface/completion_queue.c
Sree Kuchibhotlabf184282017-03-21 15:18:58 -07001907 src/core/lib/surface/completion_queue_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001908 src/core/lib/surface/event_string.c
1909 src/core/lib/surface/lame_client.c
1910 src/core/lib/surface/metadata_array.c
1911 src/core/lib/surface/server.c
1912 src/core/lib/surface/validate_metadata.c
1913 src/core/lib/surface/version.c
Craig Tiller9e0066b2016-10-20 14:04:18 -07001914 src/core/lib/transport/bdp_estimator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001915 src/core/lib/transport/byte_stream.c
1916 src/core/lib/transport/connectivity_state.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001917 src/core/lib/transport/error_utils.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001918 src/core/lib/transport/metadata.c
1919 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -07001920 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -07001921 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001922 src/core/lib/transport/static_metadata.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001923 src/core/lib/transport/status_conversion.c
Robbie Shade710d2422016-07-13 15:15:38 -04001924 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001925 src/core/lib/transport/transport.c
1926 src/core/lib/transport/transport_op_string.c
1927 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
1928 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
1929 src/core/ext/transport/chttp2/transport/bin_decoder.c
1930 src/core/ext/transport/chttp2/transport/bin_encoder.c
1931 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
1932 src/core/ext/transport/chttp2/transport/chttp2_transport.c
1933 src/core/ext/transport/chttp2/transport/frame_data.c
1934 src/core/ext/transport/chttp2/transport/frame_goaway.c
1935 src/core/ext/transport/chttp2/transport/frame_ping.c
1936 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
1937 src/core/ext/transport/chttp2/transport/frame_settings.c
1938 src/core/ext/transport/chttp2/transport/frame_window_update.c
1939 src/core/ext/transport/chttp2/transport/hpack_encoder.c
1940 src/core/ext/transport/chttp2/transport/hpack_parser.c
1941 src/core/ext/transport/chttp2/transport/hpack_table.c
1942 src/core/ext/transport/chttp2/transport/huffsyms.c
1943 src/core/ext/transport/chttp2/transport/incoming_metadata.c
1944 src/core/ext/transport/chttp2/transport/parsing.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001945 src/core/ext/transport/chttp2/transport/stream_lists.c
1946 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001947 src/core/ext/transport/chttp2/transport/varint.c
1948 src/core/ext/transport/chttp2/transport/writing.c
1949 src/core/ext/transport/chttp2/alpn/alpn.c
Mark D. Roth71403822016-12-02 10:51:39 -08001950 src/core/ext/transport/chttp2/server/chttp2_server.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001951 src/core/ext/transport/chttp2/client/insecure/channel_create.c
1952 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
Mark D. Roth2502afb2016-11-29 15:17:31 -08001953 src/core/ext/transport/chttp2/client/chttp2_connector.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001954 src/core/ext/client_channel/channel_connectivity.c
1955 src/core/ext/client_channel/client_channel.c
1956 src/core/ext/client_channel/client_channel_factory.c
1957 src/core/ext/client_channel/client_channel_plugin.c
1958 src/core/ext/client_channel/connector.c
Mark D. Roth15195742016-10-07 09:02:28 -07001959 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Rothd58a9852017-01-18 08:28:57 -08001960 src/core/ext/client_channel/http_proxy.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001961 src/core/ext/client_channel/lb_policy.c
1962 src/core/ext/client_channel/lb_policy_factory.c
1963 src/core/ext/client_channel/lb_policy_registry.c
1964 src/core/ext/client_channel/parse_address.c
Mark D. Roth79f2a242017-01-17 14:13:33 -08001965 src/core/ext/client_channel/proxy_mapper.c
1966 src/core/ext/client_channel/proxy_mapper_registry.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001967 src/core/ext/client_channel/resolver.c
1968 src/core/ext/client_channel/resolver_factory.c
1969 src/core/ext/client_channel/resolver_registry.c
Mark D. Rothd6d192d2017-02-23 08:58:42 -08001970 src/core/ext/client_channel/retry_throttle.c
Mark D. Roth2137cd82016-09-14 09:04:00 -07001971 src/core/ext/client_channel/subchannel.c
1972 src/core/ext/client_channel/subchannel_index.c
1973 src/core/ext/client_channel/uri_parser.c
Yuchen Zengea88fc12016-08-19 00:20:59 -07001974 src/core/ext/resolver/dns/c_ares/dns_resolver_ares.c
Yuchen Zeng85750b02016-08-08 14:16:34 -07001975 src/core/ext/resolver/dns/c_ares/grpc_ares_ev_driver_posix.c
Yuchen Zengd4bbfc72016-08-05 10:33:16 -07001976 src/core/ext/resolver/dns/c_ares/grpc_ares_wrapper.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001977 src/core/ext/resolver/dns/native/dns_resolver.c
1978 src/core/ext/resolver/sockaddr/sockaddr_resolver.c
1979 src/core/ext/load_reporting/load_reporting.c
1980 src/core/ext/load_reporting/load_reporting_filter.c
David Garcia Quintas7c3ba122016-07-14 11:38:38 -07001981 src/core/ext/lb_policy/grpclb/grpclb.c
David Garcia Quintas01291502017-02-07 13:26:41 -08001982 src/core/ext/lb_policy/grpclb/grpclb_channel.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001983 src/core/ext/lb_policy/grpclb/load_balancer_api.c
1984 src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
1985 third_party/nanopb/pb_common.c
1986 third_party/nanopb/pb_decode.c
1987 third_party/nanopb/pb_encode.c
1988 src/core/ext/lb_policy/pick_first/pick_first.c
1989 src/core/ext/lb_policy/round_robin/round_robin.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07001990 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001991 src/core/ext/census/context.c
1992 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -07001993 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001994 src/core/ext/census/grpc_context.c
1995 src/core/ext/census/grpc_filter.c
1996 src/core/ext/census/grpc_plugin.c
1997 src/core/ext/census/initialize.c
1998 src/core/ext/census/mlog.c
1999 src/core/ext/census/operation.c
2000 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07002001 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -07002002 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002003 src/core/ext/census/tracing.c
2004 src/core/plugin_registry/grpc_unsecure_plugin_registry.c
2005)
2006
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002007if(WIN32 AND MSVC)
2008 set_target_properties(grpc_unsecure PROPERTIES COMPILE_PDB_NAME "grpc_unsecure"
2009 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2010 )
2011 if (gRPC_INSTALL)
2012 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_unsecure.pdb
2013 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
2014 )
2015 endif()
2016endif()
2017
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002018
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002019target_include_directories(grpc_unsecure
2020 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2021 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2022 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2023 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002024 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002025 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002026 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07002027 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zeng8076d2b2016-08-25 13:23:13 -07002028 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07002029 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07002030 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002031 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002032)
2033
2034target_link_libraries(grpc_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002035 ${_gRPC_BASELIB_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002036 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002037 gpr
2038)
2039
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002040foreach(_hdr
2041 include/grpc/byte_buffer.h
2042 include/grpc/byte_buffer_reader.h
2043 include/grpc/compression.h
2044 include/grpc/grpc.h
2045 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02002046 include/grpc/grpc_security_constants.h
David Garcia Quintasf31f0962017-02-10 14:53:58 -08002047 include/grpc/load_reporting.h
Craig Tillerc3350542016-10-26 16:19:01 -07002048 include/grpc/slice.h
2049 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002050 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002051 include/grpc/impl/codegen/byte_buffer_reader.h
2052 include/grpc/impl/codegen/compression_types.h
2053 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08002054 include/grpc/impl/codegen/exec_ctx_fwd.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002055 include/grpc/impl/codegen/grpc_types.h
2056 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07002057 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002058 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002059 include/grpc/impl/codegen/atm.h
2060 include/grpc/impl/codegen/atm_gcc_atomic.h
2061 include/grpc/impl/codegen/atm_gcc_sync.h
2062 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08002063 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07002064 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002065 include/grpc/impl/codegen/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002066 include/grpc/impl/codegen/sync.h
2067 include/grpc/impl/codegen/sync_generic.h
2068 include/grpc/impl/codegen/sync_posix.h
2069 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002070 include/grpc/census.h
2071)
2072 string(REPLACE "include/" "" _path ${_hdr})
2073 get_filename_component(_path ${_path} PATH)
2074 install(FILES ${_hdr}
2075 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
2076 )
2077endforeach()
2078
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002079
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002080if (gRPC_INSTALL)
2081 install(TARGETS grpc_unsecure EXPORT gRPCTargets
2082 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2083 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2084 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2085 )
2086endif()
2087
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002088if (gRPC_BUILD_TESTS)
2089
2090add_library(reconnect_server
2091 test/core/util/reconnect_server.c
2092)
2093
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002094if(WIN32 AND MSVC)
2095 set_target_properties(reconnect_server PROPERTIES COMPILE_PDB_NAME "reconnect_server"
2096 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2097 )
2098 if (gRPC_INSTALL)
2099 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/reconnect_server.pdb
2100 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
2101 )
2102 endif()
2103endif()
2104
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002105
2106target_include_directories(reconnect_server
2107 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2108 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2109 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2110 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2111 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002112 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002113 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07002114 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08002115 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07002116 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07002117 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002118 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
2119)
2120
2121target_link_libraries(reconnect_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002122 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002123 test_tcp_server
2124 grpc_test_util
2125 grpc
2126 gpr_test_util
2127 gpr
2128)
2129
2130
2131endif (gRPC_BUILD_TESTS)
2132if (gRPC_BUILD_TESTS)
2133
2134add_library(test_tcp_server
2135 test/core/util/test_tcp_server.c
2136)
2137
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002138if(WIN32 AND MSVC)
2139 set_target_properties(test_tcp_server PROPERTIES COMPILE_PDB_NAME "test_tcp_server"
2140 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2141 )
2142 if (gRPC_INSTALL)
2143 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/test_tcp_server.pdb
2144 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
2145 )
2146 endif()
2147endif()
2148
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002149
2150target_include_directories(test_tcp_server
2151 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2152 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2153 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2154 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2155 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002156 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002157 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07002158 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08002159 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07002160 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07002161 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002162 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
2163)
2164
2165target_link_libraries(test_tcp_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002166 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002167 grpc_test_util
2168 grpc
2169 gpr_test_util
2170 gpr
2171)
2172
2173
2174endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002175
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002176add_library(grpc++
murgatroid991ca0f3e2016-08-26 14:58:49 -07002177 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002178 src/cpp/client/secure_credentials.cc
2179 src/cpp/common/auth_property_iterator.cc
2180 src/cpp/common/secure_auth_context.cc
2181 src/cpp/common/secure_channel_arguments.cc
2182 src/cpp/common/secure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07002183 src/cpp/server/insecure_server_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002184 src/cpp/server/secure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002185 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002186 src/cpp/client/client_context.cc
2187 src/cpp/client/create_channel.cc
2188 src/cpp/client/create_channel_internal.cc
2189 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002190 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002191 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002192 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07002193 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002194 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002195 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07002196 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002197 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07002198 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002199 src/cpp/server/async_generic_service.cc
Craig Tiller4751c282017-01-10 14:29:00 -08002200 src/cpp/server/channel_argument_option.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002201 src/cpp/server/create_default_thread_pool.cc
2202 src/cpp/server/dynamic_thread_pool.cc
yang-gc3c475f2016-12-27 10:37:26 -08002203 src/cpp/server/health/default_health_check_service.cc
2204 src/cpp/server/health/health.pb.c
2205 src/cpp/server/health/health_check_service.cc
2206 src/cpp/server/health/health_check_service_server_builder_option.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002207 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002208 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002209 src/cpp/server/server_context.cc
2210 src/cpp/server/server_credentials.cc
2211 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07002212 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002213 src/cpp/util/byte_buffer_cc.cc
2214 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002215 src/cpp/util/status.cc
2216 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002217 src/cpp/util/time_cc.cc
ncteisen3770ac92016-11-28 11:02:41 -08002218 src/core/lib/channel/channel_args.c
2219 src/core/lib/channel/channel_stack.c
2220 src/core/lib/channel/channel_stack_builder.c
2221 src/core/lib/channel/compress_filter.c
2222 src/core/lib/channel/connected_channel.c
2223 src/core/lib/channel/deadline_filter.c
2224 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -08002225 src/core/lib/channel/handshaker_factory.c
2226 src/core/lib/channel/handshaker_registry.c
ncteisen3770ac92016-11-28 11:02:41 -08002227 src/core/lib/channel/http_client_filter.c
2228 src/core/lib/channel/http_server_filter.c
2229 src/core/lib/channel/message_size_filter.c
2230 src/core/lib/compression/compression.c
2231 src/core/lib/compression/message_compress.c
2232 src/core/lib/debug/trace.c
2233 src/core/lib/http/format_request.c
2234 src/core/lib/http/httpcli.c
2235 src/core/lib/http/parser.c
2236 src/core/lib/iomgr/closure.c
2237 src/core/lib/iomgr/combiner.c
2238 src/core/lib/iomgr/endpoint.c
2239 src/core/lib/iomgr/endpoint_pair_posix.c
2240 src/core/lib/iomgr/endpoint_pair_uv.c
2241 src/core/lib/iomgr/endpoint_pair_windows.c
2242 src/core/lib/iomgr/error.c
2243 src/core/lib/iomgr/ev_epoll_linux.c
2244 src/core/lib/iomgr/ev_poll_posix.c
2245 src/core/lib/iomgr/ev_posix.c
2246 src/core/lib/iomgr/exec_ctx.c
2247 src/core/lib/iomgr/executor.c
2248 src/core/lib/iomgr/iocp_windows.c
2249 src/core/lib/iomgr/iomgr.c
2250 src/core/lib/iomgr/iomgr_posix.c
2251 src/core/lib/iomgr/iomgr_uv.c
2252 src/core/lib/iomgr/iomgr_windows.c
2253 src/core/lib/iomgr/load_file.c
2254 src/core/lib/iomgr/network_status_tracker.c
2255 src/core/lib/iomgr/polling_entity.c
2256 src/core/lib/iomgr/pollset_set_uv.c
2257 src/core/lib/iomgr/pollset_set_windows.c
2258 src/core/lib/iomgr/pollset_uv.c
2259 src/core/lib/iomgr/pollset_windows.c
2260 src/core/lib/iomgr/resolve_address_posix.c
2261 src/core/lib/iomgr/resolve_address_uv.c
2262 src/core/lib/iomgr/resolve_address_windows.c
2263 src/core/lib/iomgr/resource_quota.c
2264 src/core/lib/iomgr/sockaddr_utils.c
Michael Warresc46b3eb2017-02-22 22:57:04 -05002265 src/core/lib/iomgr/socket_factory_posix.c
ncteisen3770ac92016-11-28 11:02:41 -08002266 src/core/lib/iomgr/socket_mutator.c
2267 src/core/lib/iomgr/socket_utils_common_posix.c
2268 src/core/lib/iomgr/socket_utils_linux.c
2269 src/core/lib/iomgr/socket_utils_posix.c
2270 src/core/lib/iomgr/socket_utils_uv.c
2271 src/core/lib/iomgr/socket_utils_windows.c
2272 src/core/lib/iomgr/socket_windows.c
2273 src/core/lib/iomgr/tcp_client_posix.c
2274 src/core/lib/iomgr/tcp_client_uv.c
2275 src/core/lib/iomgr/tcp_client_windows.c
2276 src/core/lib/iomgr/tcp_posix.c
2277 src/core/lib/iomgr/tcp_server_posix.c
Yuchen Zeng68745bb2017-03-14 17:51:07 -07002278 src/core/lib/iomgr/tcp_server_utils_posix_common.c
Yuchen Zeng47155ed2017-03-13 17:18:07 -07002279 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c
2280 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c
ncteisen3770ac92016-11-28 11:02:41 -08002281 src/core/lib/iomgr/tcp_server_uv.c
2282 src/core/lib/iomgr/tcp_server_windows.c
2283 src/core/lib/iomgr/tcp_uv.c
2284 src/core/lib/iomgr/tcp_windows.c
2285 src/core/lib/iomgr/time_averaged_stats.c
2286 src/core/lib/iomgr/timer_generic.c
2287 src/core/lib/iomgr/timer_heap.c
2288 src/core/lib/iomgr/timer_uv.c
2289 src/core/lib/iomgr/udp_server.c
2290 src/core/lib/iomgr/unix_sockets_posix.c
2291 src/core/lib/iomgr/unix_sockets_posix_noop.c
2292 src/core/lib/iomgr/wakeup_fd_cv.c
2293 src/core/lib/iomgr/wakeup_fd_eventfd.c
2294 src/core/lib/iomgr/wakeup_fd_nospecial.c
2295 src/core/lib/iomgr/wakeup_fd_pipe.c
2296 src/core/lib/iomgr/wakeup_fd_posix.c
2297 src/core/lib/iomgr/workqueue_uv.c
2298 src/core/lib/iomgr/workqueue_windows.c
2299 src/core/lib/json/json.c
2300 src/core/lib/json/json_reader.c
2301 src/core/lib/json/json_string.c
2302 src/core/lib/json/json_writer.c
Craig Tiller29b527f2017-03-30 10:27:20 -07002303 src/core/lib/slice/b64.c
ncteisen3770ac92016-11-28 11:02:41 -08002304 src/core/lib/slice/percent_encoding.c
2305 src/core/lib/slice/slice.c
2306 src/core/lib/slice/slice_buffer.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08002307 src/core/lib/slice/slice_hash_table.c
2308 src/core/lib/slice/slice_intern.c
ncteisen3770ac92016-11-28 11:02:41 -08002309 src/core/lib/slice/slice_string_helpers.c
2310 src/core/lib/surface/alarm.c
2311 src/core/lib/surface/api_trace.c
2312 src/core/lib/surface/byte_buffer.c
2313 src/core/lib/surface/byte_buffer_reader.c
2314 src/core/lib/surface/call.c
2315 src/core/lib/surface/call_details.c
2316 src/core/lib/surface/call_log_batch.c
2317 src/core/lib/surface/channel.c
2318 src/core/lib/surface/channel_init.c
2319 src/core/lib/surface/channel_ping.c
2320 src/core/lib/surface/channel_stack_type.c
2321 src/core/lib/surface/completion_queue.c
Sree Kuchibhotlabf184282017-03-21 15:18:58 -07002322 src/core/lib/surface/completion_queue_factory.c
ncteisen3770ac92016-11-28 11:02:41 -08002323 src/core/lib/surface/event_string.c
2324 src/core/lib/surface/lame_client.c
2325 src/core/lib/surface/metadata_array.c
2326 src/core/lib/surface/server.c
2327 src/core/lib/surface/validate_metadata.c
2328 src/core/lib/surface/version.c
Craig Tillerd4257122017-01-13 09:33:57 -08002329 src/core/lib/transport/bdp_estimator.c
ncteisen3770ac92016-11-28 11:02:41 -08002330 src/core/lib/transport/byte_stream.c
2331 src/core/lib/transport/connectivity_state.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08002332 src/core/lib/transport/error_utils.c
ncteisen3770ac92016-11-28 11:02:41 -08002333 src/core/lib/transport/metadata.c
2334 src/core/lib/transport/metadata_batch.c
2335 src/core/lib/transport/pid_controller.c
2336 src/core/lib/transport/service_config.c
2337 src/core/lib/transport/static_metadata.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08002338 src/core/lib/transport/status_conversion.c
ncteisen3770ac92016-11-28 11:02:41 -08002339 src/core/lib/transport/timeout_encoding.c
2340 src/core/lib/transport/transport.c
2341 src/core/lib/transport/transport_op_string.c
Craig Tiller790f6af2017-03-30 12:39:24 -07002342 third_party/nanopb/pb_common.c
2343 third_party/nanopb/pb_decode.c
2344 third_party/nanopb/pb_encode.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002345 src/cpp/codegen/codegen_init.cc
2346)
2347
2348if(WIN32 AND MSVC)
2349 set_target_properties(grpc++ PROPERTIES COMPILE_PDB_NAME "grpc++"
2350 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2351 )
2352 if (gRPC_INSTALL)
2353 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++.pdb
2354 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
2355 )
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002356 endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002357endif()
2358
2359
2360target_include_directories(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002361 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2362 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2363 PRIVATE ${BORINGSSL_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002364 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2365 PRIVATE ${ZLIB_INCLUDE_DIR}
2366 PRIVATE ${BENCHMARK}/include
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002367 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2368 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
2369 PRIVATE ${CARES_INCLUDE_DIR}
2370 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
2371 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
2372 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
2373 PRIVATE ${_gRPC_PROTO_GENS_DIR}
2374)
2375
2376target_link_libraries(grpc++
2377 ${_gRPC_BASELIB_LIBRARIES}
2378 ${_gRPC_SSL_LIBRARIES}
2379 ${_gRPC_PROTOBUF_LIBRARIES}
2380 ${_gRPC_ALLTARGETS_LIBRARIES}
2381 grpc
Craig Tiller790f6af2017-03-30 12:39:24 -07002382 gpr
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002383)
2384
2385foreach(_hdr
2386 include/grpc++/alarm.h
2387 include/grpc++/channel.h
2388 include/grpc++/client_context.h
2389 include/grpc++/completion_queue.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07002390 include/grpc++/create_channel.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002391 include/grpc++/create_channel_posix.h
2392 include/grpc++/ext/health_check_service_server_builder_option.h
2393 include/grpc++/generic/async_generic_service.h
2394 include/grpc++/generic/generic_stub.h
2395 include/grpc++/grpc++.h
2396 include/grpc++/health_check_service_interface.h
2397 include/grpc++/impl/call.h
2398 include/grpc++/impl/channel_argument_option.h
2399 include/grpc++/impl/client_unary_call.h
2400 include/grpc++/impl/codegen/core_codegen.h
2401 include/grpc++/impl/grpc_library.h
2402 include/grpc++/impl/method_handler_impl.h
2403 include/grpc++/impl/rpc_method.h
2404 include/grpc++/impl/rpc_service_method.h
2405 include/grpc++/impl/serialization_traits.h
2406 include/grpc++/impl/server_builder_option.h
2407 include/grpc++/impl/server_builder_plugin.h
2408 include/grpc++/impl/server_initializer.h
2409 include/grpc++/impl/service_type.h
2410 include/grpc++/resource_quota.h
2411 include/grpc++/security/auth_context.h
2412 include/grpc++/security/auth_metadata_processor.h
2413 include/grpc++/security/credentials.h
2414 include/grpc++/security/server_credentials.h
2415 include/grpc++/server.h
2416 include/grpc++/server_builder.h
2417 include/grpc++/server_context.h
2418 include/grpc++/server_posix.h
2419 include/grpc++/support/async_stream.h
2420 include/grpc++/support/async_unary_call.h
2421 include/grpc++/support/byte_buffer.h
2422 include/grpc++/support/channel_arguments.h
2423 include/grpc++/support/config.h
2424 include/grpc++/support/slice.h
2425 include/grpc++/support/status.h
2426 include/grpc++/support/status_code_enum.h
2427 include/grpc++/support/string_ref.h
2428 include/grpc++/support/stub_options.h
2429 include/grpc++/support/sync_stream.h
2430 include/grpc++/support/time.h
2431 include/grpc++/impl/codegen/async_stream.h
2432 include/grpc++/impl/codegen/async_unary_call.h
2433 include/grpc++/impl/codegen/call.h
yang-gd5581492016-09-06 14:05:53 -07002434 include/grpc++/impl/codegen/call_hook.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002435 include/grpc++/impl/codegen/channel_interface.h
2436 include/grpc++/impl/codegen/client_context.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002437 include/grpc++/impl/codegen/client_unary_call.h
2438 include/grpc++/impl/codegen/completion_queue.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02002439 include/grpc++/impl/codegen/completion_queue_tag.h
2440 include/grpc++/impl/codegen/config.h
2441 include/grpc++/impl/codegen/core_codegen_interface.h
2442 include/grpc++/impl/codegen/create_auth_context.h
2443 include/grpc++/impl/codegen/grpc_library.h
2444 include/grpc++/impl/codegen/metadata_map.h
2445 include/grpc++/impl/codegen/method_handler_impl.h
2446 include/grpc++/impl/codegen/rpc_method.h
2447 include/grpc++/impl/codegen/rpc_service_method.h
2448 include/grpc++/impl/codegen/security/auth_context.h
Craig Tiller7cdad962016-11-10 08:37:21 -08002449 include/grpc++/impl/codegen/serialization_traits.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02002450 include/grpc++/impl/codegen/server_context.h
2451 include/grpc++/impl/codegen/server_interface.h
2452 include/grpc++/impl/codegen/service_type.h
2453 include/grpc++/impl/codegen/slice.h
2454 include/grpc++/impl/codegen/status.h
2455 include/grpc++/impl/codegen/status_code_enum.h
2456 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002457 include/grpc++/impl/codegen/string_ref.h
2458 include/grpc++/impl/codegen/stub_options.h
2459 include/grpc++/impl/codegen/sync_stream.h
2460 include/grpc++/impl/codegen/time.h
2461 include/grpc/impl/codegen/byte_buffer_reader.h
2462 include/grpc/impl/codegen/compression_types.h
2463 include/grpc/impl/codegen/connectivity_state.h
2464 include/grpc/impl/codegen/exec_ctx_fwd.h
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02002465 include/grpc/impl/codegen/grpc_types.h
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002466 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07002467 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002468 include/grpc/impl/codegen/status.h
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002469 include/grpc/impl/codegen/atm.h
2470 include/grpc/impl/codegen/atm_gcc_atomic.h
2471 include/grpc/impl/codegen/atm_gcc_sync.h
2472 include/grpc/impl/codegen/atm_windows.h
2473 include/grpc/impl/codegen/gpr_slice.h
2474 include/grpc/impl/codegen/gpr_types.h
2475 include/grpc/impl/codegen/port_platform.h
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02002476 include/grpc/impl/codegen/sync.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002477 include/grpc/impl/codegen/sync_generic.h
2478 include/grpc/impl/codegen/sync_posix.h
2479 include/grpc/impl/codegen/sync_windows.h
Craig Tiller790f6af2017-03-30 12:39:24 -07002480 include/grpc/byte_buffer.h
2481 include/grpc/byte_buffer_reader.h
2482 include/grpc/compression.h
2483 include/grpc/grpc.h
2484 include/grpc/grpc_posix.h
2485 include/grpc/grpc_security_constants.h
2486 include/grpc/load_reporting.h
2487 include/grpc/slice.h
2488 include/grpc/slice_buffer.h
2489 include/grpc/status.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002490 include/grpc++/impl/codegen/proto_utils.h
2491 include/grpc++/impl/codegen/config_protobuf.h
2492)
2493 string(REPLACE "include/" "" _path ${_hdr})
2494 get_filename_component(_path ${_path} PATH)
2495 install(FILES ${_hdr}
2496 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
2497 )
2498endforeach()
2499
2500
2501if (gRPC_INSTALL)
2502 install(TARGETS grpc++ EXPORT gRPCTargets
Craig Tiller3d357d92016-10-26 20:52:03 -07002503 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
Garrett Casto931a26b2016-10-04 09:18:29 -07002504 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
Craig Tillered913242016-11-04 16:31:30 -07002505 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
Garrett Casto931a26b2016-10-04 09:18:29 -07002506 )
2507endif()
2508
2509
2510add_library(grpc++_cronet
2511 src/cpp/client/cronet_credentials.cc
2512 src/cpp/client/insecure_credentials.cc
2513 src/cpp/common/insecure_create_auth_context.cc
Sree Kuchibhotla33d54942016-10-25 10:03:52 -07002514 src/cpp/server/insecure_server_credentials.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07002515 src/cpp/client/channel_cc.cc
2516 src/cpp/client/client_context.cc
2517 src/cpp/client/create_channel.cc
2518 src/cpp/client/create_channel_internal.cc
2519 src/cpp/client/create_channel_posix.cc
2520 src/cpp/client/credentials_cc.cc
ncteisen3770ac92016-11-28 11:02:41 -08002521 src/cpp/client/generic_stub.cc
2522 src/cpp/common/channel_arguments.cc
2523 src/cpp/common/channel_filter.cc
2524 src/cpp/common/completion_queue_cc.cc
2525 src/cpp/common/core_codegen.cc
2526 src/cpp/common/resource_quota_cc.cc
2527 src/cpp/common/rpc_method.cc
2528 src/cpp/common/version_cc.cc
2529 src/cpp/server/async_generic_service.cc
2530 src/cpp/server/channel_argument_option.cc
2531 src/cpp/server/create_default_thread_pool.cc
2532 src/cpp/server/dynamic_thread_pool.cc
2533 src/cpp/server/health/default_health_check_service.cc
2534 src/cpp/server/health/health.pb.c
2535 src/cpp/server/health/health_check_service.cc
2536 src/cpp/server/health/health_check_service_server_builder_option.cc
2537 src/cpp/server/server_builder.cc
2538 src/cpp/server/server_cc.cc
2539 src/cpp/server/server_context.cc
2540 src/cpp/server/server_credentials.cc
2541 src/cpp/server/server_posix.cc
2542 src/cpp/thread_manager/thread_manager.cc
2543 src/cpp/util/byte_buffer_cc.cc
2544 src/cpp/util/slice_cc.cc
2545 src/cpp/util/status.cc
2546 src/cpp/util/string_ref.cc
2547 src/cpp/util/time_cc.cc
ncteisen3770ac92016-11-28 11:02:41 -08002548 src/core/lib/channel/channel_args.c
2549 src/core/lib/channel/channel_stack.c
2550 src/core/lib/channel/channel_stack_builder.c
2551 src/core/lib/channel/compress_filter.c
2552 src/core/lib/channel/connected_channel.c
2553 src/core/lib/channel/deadline_filter.c
2554 src/core/lib/channel/handshaker.c
2555 src/core/lib/channel/handshaker_factory.c
2556 src/core/lib/channel/handshaker_registry.c
2557 src/core/lib/channel/http_client_filter.c
2558 src/core/lib/channel/http_server_filter.c
Yuchen Zenga809ea52017-03-28 02:02:45 -07002559 src/core/lib/channel/max_age_filter.c
ncteisen3770ac92016-11-28 11:02:41 -08002560 src/core/lib/channel/message_size_filter.c
2561 src/core/lib/compression/compression.c
2562 src/core/lib/compression/message_compress.c
2563 src/core/lib/debug/trace.c
2564 src/core/lib/http/format_request.c
2565 src/core/lib/http/httpcli.c
2566 src/core/lib/http/parser.c
2567 src/core/lib/iomgr/closure.c
2568 src/core/lib/iomgr/combiner.c
2569 src/core/lib/iomgr/endpoint.c
2570 src/core/lib/iomgr/endpoint_pair_posix.c
2571 src/core/lib/iomgr/endpoint_pair_uv.c
2572 src/core/lib/iomgr/endpoint_pair_windows.c
2573 src/core/lib/iomgr/error.c
2574 src/core/lib/iomgr/ev_epoll_linux.c
2575 src/core/lib/iomgr/ev_poll_posix.c
2576 src/core/lib/iomgr/ev_posix.c
2577 src/core/lib/iomgr/exec_ctx.c
2578 src/core/lib/iomgr/executor.c
2579 src/core/lib/iomgr/iocp_windows.c
2580 src/core/lib/iomgr/iomgr.c
2581 src/core/lib/iomgr/iomgr_posix.c
2582 src/core/lib/iomgr/iomgr_uv.c
2583 src/core/lib/iomgr/iomgr_windows.c
2584 src/core/lib/iomgr/load_file.c
2585 src/core/lib/iomgr/network_status_tracker.c
2586 src/core/lib/iomgr/polling_entity.c
2587 src/core/lib/iomgr/pollset_set_uv.c
2588 src/core/lib/iomgr/pollset_set_windows.c
2589 src/core/lib/iomgr/pollset_uv.c
2590 src/core/lib/iomgr/pollset_windows.c
2591 src/core/lib/iomgr/resolve_address_posix.c
2592 src/core/lib/iomgr/resolve_address_uv.c
2593 src/core/lib/iomgr/resolve_address_windows.c
2594 src/core/lib/iomgr/resource_quota.c
2595 src/core/lib/iomgr/sockaddr_utils.c
2596 src/core/lib/iomgr/socket_factory_posix.c
2597 src/core/lib/iomgr/socket_mutator.c
2598 src/core/lib/iomgr/socket_utils_common_posix.c
2599 src/core/lib/iomgr/socket_utils_linux.c
2600 src/core/lib/iomgr/socket_utils_posix.c
2601 src/core/lib/iomgr/socket_utils_uv.c
2602 src/core/lib/iomgr/socket_utils_windows.c
2603 src/core/lib/iomgr/socket_windows.c
2604 src/core/lib/iomgr/tcp_client_posix.c
2605 src/core/lib/iomgr/tcp_client_uv.c
2606 src/core/lib/iomgr/tcp_client_windows.c
2607 src/core/lib/iomgr/tcp_posix.c
2608 src/core/lib/iomgr/tcp_server_posix.c
2609 src/core/lib/iomgr/tcp_server_utils_posix_common.c
2610 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c
2611 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c
2612 src/core/lib/iomgr/tcp_server_uv.c
2613 src/core/lib/iomgr/tcp_server_windows.c
2614 src/core/lib/iomgr/tcp_uv.c
2615 src/core/lib/iomgr/tcp_windows.c
2616 src/core/lib/iomgr/time_averaged_stats.c
2617 src/core/lib/iomgr/timer_generic.c
2618 src/core/lib/iomgr/timer_heap.c
2619 src/core/lib/iomgr/timer_uv.c
2620 src/core/lib/iomgr/udp_server.c
2621 src/core/lib/iomgr/unix_sockets_posix.c
2622 src/core/lib/iomgr/unix_sockets_posix_noop.c
2623 src/core/lib/iomgr/wakeup_fd_cv.c
2624 src/core/lib/iomgr/wakeup_fd_eventfd.c
2625 src/core/lib/iomgr/wakeup_fd_nospecial.c
2626 src/core/lib/iomgr/wakeup_fd_pipe.c
2627 src/core/lib/iomgr/wakeup_fd_posix.c
2628 src/core/lib/iomgr/workqueue_uv.c
2629 src/core/lib/iomgr/workqueue_windows.c
2630 src/core/lib/json/json.c
2631 src/core/lib/json/json_reader.c
2632 src/core/lib/json/json_string.c
2633 src/core/lib/json/json_writer.c
Craig Tiller790f6af2017-03-30 12:39:24 -07002634 src/core/lib/slice/b64.c
ncteisen3770ac92016-11-28 11:02:41 -08002635 src/core/lib/slice/percent_encoding.c
2636 src/core/lib/slice/slice.c
2637 src/core/lib/slice/slice_buffer.c
2638 src/core/lib/slice/slice_hash_table.c
2639 src/core/lib/slice/slice_intern.c
2640 src/core/lib/slice/slice_string_helpers.c
2641 src/core/lib/surface/alarm.c
2642 src/core/lib/surface/api_trace.c
2643 src/core/lib/surface/byte_buffer.c
2644 src/core/lib/surface/byte_buffer_reader.c
2645 src/core/lib/surface/call.c
2646 src/core/lib/surface/call_details.c
2647 src/core/lib/surface/call_log_batch.c
2648 src/core/lib/surface/channel.c
2649 src/core/lib/surface/channel_init.c
2650 src/core/lib/surface/channel_ping.c
2651 src/core/lib/surface/channel_stack_type.c
2652 src/core/lib/surface/completion_queue.c
2653 src/core/lib/surface/completion_queue_factory.c
2654 src/core/lib/surface/event_string.c
2655 src/core/lib/surface/lame_client.c
2656 src/core/lib/surface/metadata_array.c
2657 src/core/lib/surface/server.c
2658 src/core/lib/surface/validate_metadata.c
2659 src/core/lib/surface/version.c
2660 src/core/lib/transport/bdp_estimator.c
2661 src/core/lib/transport/byte_stream.c
2662 src/core/lib/transport/connectivity_state.c
2663 src/core/lib/transport/error_utils.c
2664 src/core/lib/transport/metadata.c
2665 src/core/lib/transport/metadata_batch.c
2666 src/core/lib/transport/pid_controller.c
2667 src/core/lib/transport/service_config.c
2668 src/core/lib/transport/static_metadata.c
2669 src/core/lib/transport/status_conversion.c
2670 src/core/lib/transport/timeout_encoding.c
2671 src/core/lib/transport/transport.c
2672 src/core/lib/transport/transport_op_string.c
Craig Tiller790f6af2017-03-30 12:39:24 -07002673 third_party/nanopb/pb_common.c
2674 third_party/nanopb/pb_decode.c
2675 third_party/nanopb/pb_encode.c
2676 src/cpp/codegen/codegen_init.cc
2677 src/core/ext/transport/chttp2/client/insecure/channel_create.c
2678 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
2679 src/core/ext/transport/chttp2/client/chttp2_connector.c
2680 src/core/ext/transport/chttp2/transport/bin_decoder.c
2681 src/core/ext/transport/chttp2/transport/bin_encoder.c
2682 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
2683 src/core/ext/transport/chttp2/transport/chttp2_transport.c
2684 src/core/ext/transport/chttp2/transport/frame_data.c
2685 src/core/ext/transport/chttp2/transport/frame_goaway.c
2686 src/core/ext/transport/chttp2/transport/frame_ping.c
2687 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
2688 src/core/ext/transport/chttp2/transport/frame_settings.c
2689 src/core/ext/transport/chttp2/transport/frame_window_update.c
2690 src/core/ext/transport/chttp2/transport/hpack_encoder.c
2691 src/core/ext/transport/chttp2/transport/hpack_parser.c
2692 src/core/ext/transport/chttp2/transport/hpack_table.c
2693 src/core/ext/transport/chttp2/transport/huffsyms.c
2694 src/core/ext/transport/chttp2/transport/incoming_metadata.c
2695 src/core/ext/transport/chttp2/transport/parsing.c
2696 src/core/ext/transport/chttp2/transport/stream_lists.c
2697 src/core/ext/transport/chttp2/transport/stream_map.c
2698 src/core/ext/transport/chttp2/transport/varint.c
2699 src/core/ext/transport/chttp2/transport/writing.c
ncteisen3770ac92016-11-28 11:02:41 -08002700 src/core/ext/transport/chttp2/alpn/alpn.c
2701 src/core/ext/client_channel/channel_connectivity.c
2702 src/core/ext/client_channel/client_channel.c
2703 src/core/ext/client_channel/client_channel_factory.c
2704 src/core/ext/client_channel/client_channel_plugin.c
2705 src/core/ext/client_channel/connector.c
ncteisen3770ac92016-11-28 11:02:41 -08002706 src/core/ext/client_channel/http_connect_handshaker.c
Mark D. Rothd58a9852017-01-18 08:28:57 -08002707 src/core/ext/client_channel/http_proxy.c
ncteisen3770ac92016-11-28 11:02:41 -08002708 src/core/ext/client_channel/lb_policy.c
2709 src/core/ext/client_channel/lb_policy_factory.c
2710 src/core/ext/client_channel/lb_policy_registry.c
2711 src/core/ext/client_channel/parse_address.c
Mark D. Roth79f2a242017-01-17 14:13:33 -08002712 src/core/ext/client_channel/proxy_mapper.c
2713 src/core/ext/client_channel/proxy_mapper_registry.c
ncteisen3770ac92016-11-28 11:02:41 -08002714 src/core/ext/client_channel/resolver.c
2715 src/core/ext/client_channel/resolver_factory.c
2716 src/core/ext/client_channel/resolver_registry.c
Mark D. Rothd6d192d2017-02-23 08:58:42 -08002717 src/core/ext/client_channel/retry_throttle.c
ncteisen3770ac92016-11-28 11:02:41 -08002718 src/core/ext/client_channel/subchannel.c
2719 src/core/ext/client_channel/subchannel_index.c
2720 src/core/ext/client_channel/uri_parser.c
2721 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
2722 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
Mark D. Roth71403822016-12-02 10:51:39 -08002723 src/core/ext/transport/chttp2/server/chttp2_server.c
ncteisen3770ac92016-11-28 11:02:41 -08002724 src/core/ext/census/base_resources.c
2725 src/core/ext/census/context.c
2726 src/core/ext/census/gen/census.pb.c
2727 src/core/ext/census/gen/trace_context.pb.c
2728 src/core/ext/census/grpc_context.c
2729 src/core/ext/census/grpc_filter.c
2730 src/core/ext/census/grpc_plugin.c
2731 src/core/ext/census/initialize.c
2732 src/core/ext/census/mlog.c
2733 src/core/ext/census/operation.c
2734 src/core/ext/census/placeholders.c
2735 src/core/ext/census/resource.c
2736 src/core/ext/census/trace_context.c
2737 src/core/ext/census/tracing.c
Garrett Casto931a26b2016-10-04 09:18:29 -07002738)
2739
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002740if(WIN32 AND MSVC)
2741 set_target_properties(grpc++_cronet PROPERTIES COMPILE_PDB_NAME "grpc++_cronet"
2742 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2743 )
2744 if (gRPC_INSTALL)
2745 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_cronet.pdb
2746 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
2747 )
2748 endif()
2749endif()
2750
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002751
Garrett Casto931a26b2016-10-04 09:18:29 -07002752target_include_directories(grpc++_cronet
2753 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2754 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2755 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2756 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2757 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002758 PRIVATE ${BENCHMARK}/include
Garrett Casto931a26b2016-10-04 09:18:29 -07002759 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07002760 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengf1cd4492016-10-25 11:26:17 -07002761 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07002762 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07002763 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002764 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002765 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Garrett Casto931a26b2016-10-04 09:18:29 -07002766)
2767
2768target_link_libraries(grpc++_cronet
2769 ${_gRPC_BASELIB_LIBRARIES}
2770 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002771 ${_gRPC_PROTOBUF_LIBRARIES}
2772 ${_gRPC_ALLTARGETS_LIBRARIES}
Garrett Casto931a26b2016-10-04 09:18:29 -07002773 gpr
2774 grpc_cronet
2775)
2776
2777foreach(_hdr
2778 include/grpc++/alarm.h
2779 include/grpc++/channel.h
2780 include/grpc++/client_context.h
2781 include/grpc++/completion_queue.h
2782 include/grpc++/create_channel.h
2783 include/grpc++/create_channel_posix.h
yang-g04981242016-12-01 11:53:08 -08002784 include/grpc++/ext/health_check_service_server_builder_option.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002785 include/grpc++/generic/async_generic_service.h
2786 include/grpc++/generic/generic_stub.h
2787 include/grpc++/grpc++.h
yang-g1accb122016-12-28 10:38:04 -08002788 include/grpc++/health_check_service_interface.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002789 include/grpc++/impl/call.h
Craig Tiller4751c282017-01-10 14:29:00 -08002790 include/grpc++/impl/channel_argument_option.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002791 include/grpc++/impl/client_unary_call.h
2792 include/grpc++/impl/codegen/core_codegen.h
2793 include/grpc++/impl/grpc_library.h
2794 include/grpc++/impl/method_handler_impl.h
2795 include/grpc++/impl/rpc_method.h
2796 include/grpc++/impl/rpc_service_method.h
2797 include/grpc++/impl/serialization_traits.h
2798 include/grpc++/impl/server_builder_option.h
2799 include/grpc++/impl/server_builder_plugin.h
2800 include/grpc++/impl/server_initializer.h
2801 include/grpc++/impl/service_type.h
Craig Tiller3d357d92016-10-26 20:52:03 -07002802 include/grpc++/resource_quota.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002803 include/grpc++/security/auth_context.h
2804 include/grpc++/security/auth_metadata_processor.h
2805 include/grpc++/security/credentials.h
2806 include/grpc++/security/server_credentials.h
2807 include/grpc++/server.h
2808 include/grpc++/server_builder.h
2809 include/grpc++/server_context.h
2810 include/grpc++/server_posix.h
2811 include/grpc++/support/async_stream.h
2812 include/grpc++/support/async_unary_call.h
2813 include/grpc++/support/byte_buffer.h
2814 include/grpc++/support/channel_arguments.h
2815 include/grpc++/support/config.h
2816 include/grpc++/support/slice.h
2817 include/grpc++/support/status.h
2818 include/grpc++/support/status_code_enum.h
2819 include/grpc++/support/string_ref.h
2820 include/grpc++/support/stub_options.h
2821 include/grpc++/support/sync_stream.h
2822 include/grpc++/support/time.h
2823 include/grpc++/impl/codegen/async_stream.h
2824 include/grpc++/impl/codegen/async_unary_call.h
2825 include/grpc++/impl/codegen/call.h
2826 include/grpc++/impl/codegen/call_hook.h
2827 include/grpc++/impl/codegen/channel_interface.h
2828 include/grpc++/impl/codegen/client_context.h
2829 include/grpc++/impl/codegen/client_unary_call.h
2830 include/grpc++/impl/codegen/completion_queue.h
2831 include/grpc++/impl/codegen/completion_queue_tag.h
2832 include/grpc++/impl/codegen/config.h
2833 include/grpc++/impl/codegen/core_codegen_interface.h
2834 include/grpc++/impl/codegen/create_auth_context.h
2835 include/grpc++/impl/codegen/grpc_library.h
yang-g988b47c2017-01-31 09:51:45 -08002836 include/grpc++/impl/codegen/metadata_map.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002837 include/grpc++/impl/codegen/method_handler_impl.h
2838 include/grpc++/impl/codegen/rpc_method.h
2839 include/grpc++/impl/codegen/rpc_service_method.h
2840 include/grpc++/impl/codegen/security/auth_context.h
2841 include/grpc++/impl/codegen/serialization_traits.h
2842 include/grpc++/impl/codegen/server_context.h
2843 include/grpc++/impl/codegen/server_interface.h
2844 include/grpc++/impl/codegen/service_type.h
Craig Tiller7c70b6c2017-01-23 07:48:42 -08002845 include/grpc++/impl/codegen/slice.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002846 include/grpc++/impl/codegen/status.h
2847 include/grpc++/impl/codegen/status_code_enum.h
2848 include/grpc++/impl/codegen/status_helper.h
2849 include/grpc++/impl/codegen/string_ref.h
2850 include/grpc++/impl/codegen/stub_options.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002851 include/grpc++/impl/codegen/sync_stream.h
2852 include/grpc++/impl/codegen/time.h
2853 include/grpc/impl/codegen/byte_buffer_reader.h
2854 include/grpc/impl/codegen/compression_types.h
2855 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08002856 include/grpc/impl/codegen/exec_ctx_fwd.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002857 include/grpc/impl/codegen/grpc_types.h
2858 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07002859 include/grpc/impl/codegen/slice.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002860 include/grpc/impl/codegen/status.h
2861 include/grpc/impl/codegen/atm.h
2862 include/grpc/impl/codegen/atm_gcc_atomic.h
2863 include/grpc/impl/codegen/atm_gcc_sync.h
2864 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08002865 include/grpc/impl/codegen/gpr_slice.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002866 include/grpc/impl/codegen/gpr_types.h
2867 include/grpc/impl/codegen/port_platform.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002868 include/grpc/impl/codegen/sync.h
2869 include/grpc/impl/codegen/sync_generic.h
2870 include/grpc/impl/codegen/sync_posix.h
2871 include/grpc/impl/codegen/sync_windows.h
ncteisen3770ac92016-11-28 11:02:41 -08002872 include/grpc/byte_buffer.h
2873 include/grpc/byte_buffer_reader.h
2874 include/grpc/compression.h
2875 include/grpc/grpc.h
2876 include/grpc/grpc_posix.h
2877 include/grpc/grpc_security_constants.h
David Garcia Quintasf31f0962017-02-10 14:53:58 -08002878 include/grpc/load_reporting.h
ncteisen3770ac92016-11-28 11:02:41 -08002879 include/grpc/slice.h
2880 include/grpc/slice_buffer.h
2881 include/grpc/status.h
2882 include/grpc/census.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002883)
2884 string(REPLACE "include/" "" _path ${_hdr})
2885 get_filename_component(_path ${_path} PATH)
2886 install(FILES ${_hdr}
2887 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
2888 )
2889endforeach()
2890
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002891
Garrett Casto931a26b2016-10-04 09:18:29 -07002892if (gRPC_INSTALL)
2893 install(TARGETS grpc++_cronet EXPORT gRPCTargets
2894 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2895 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2896 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
2897 )
2898endif()
2899
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002900if (gRPC_BUILD_TESTS)
2901
2902add_library(grpc++_proto_reflection_desc_db
2903 test/cpp/util/proto_reflection_descriptor_database.cc
2904 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.cc
2905 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.cc
2906 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.h
2907 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h
2908)
2909
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002910if(WIN32 AND MSVC)
2911 set_target_properties(grpc++_proto_reflection_desc_db PROPERTIES COMPILE_PDB_NAME "grpc++_proto_reflection_desc_db"
2912 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2913 )
2914 if (gRPC_INSTALL)
2915 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_proto_reflection_desc_db.pdb
2916 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
2917 )
2918 endif()
2919endif()
2920
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002921protobuf_generate_grpc_cpp(
2922 src/proto/grpc/reflection/v1alpha/reflection.proto
2923)
2924
2925target_include_directories(grpc++_proto_reflection_desc_db
2926 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2927 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2928 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2929 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2930 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002931 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002932 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07002933 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08002934 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07002935 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07002936 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002937 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
2938 PRIVATE third_party/googletest/include
2939 PRIVATE third_party/googletest
2940 PRIVATE ${_gRPC_PROTO_GENS_DIR}
2941)
2942
2943target_link_libraries(grpc++_proto_reflection_desc_db
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002944 ${_gRPC_PROTOBUF_LIBRARIES}
2945 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002946 grpc++
2947)
2948
2949foreach(_hdr
2950 include/grpc++/impl/codegen/config_protobuf.h
2951)
2952 string(REPLACE "include/" "" _path ${_hdr})
2953 get_filename_component(_path ${_path} PATH)
2954 install(FILES ${_hdr}
2955 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
2956 )
2957endforeach()
2958
2959endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002960
2961add_library(grpc++_reflection
2962 src/cpp/ext/proto_server_reflection.cc
2963 src/cpp/ext/proto_server_reflection_plugin.cc
2964 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.cc
2965 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.cc
2966 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.h
2967 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h
2968)
2969
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002970if(WIN32 AND MSVC)
2971 set_target_properties(grpc++_reflection PROPERTIES COMPILE_PDB_NAME "grpc++_reflection"
2972 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2973 )
2974 if (gRPC_INSTALL)
2975 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_reflection.pdb
2976 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
2977 )
2978 endif()
2979endif()
2980
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002981protobuf_generate_grpc_cpp(
2982 src/proto/grpc/reflection/v1alpha/reflection.proto
2983)
2984
2985target_include_directories(grpc++_reflection
2986 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
2987 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
2988 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2989 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2990 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002991 PRIVATE ${BENCHMARK}/include
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002992 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07002993 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08002994 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07002995 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07002996 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002997 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002998 PRIVATE ${_gRPC_PROTO_GENS_DIR}
2999)
3000
3001target_link_libraries(grpc++_reflection
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003002 ${_gRPC_PROTOBUF_LIBRARIES}
3003 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003004 grpc++
3005)
3006
3007foreach(_hdr
3008 include/grpc++/ext/proto_server_reflection_plugin.h
3009)
3010 string(REPLACE "include/" "" _path ${_hdr})
3011 get_filename_component(_path ${_path} PATH)
3012 install(FILES ${_hdr}
3013 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
3014 )
3015endforeach()
3016
3017
3018if (gRPC_INSTALL)
3019 install(TARGETS grpc++_reflection EXPORT gRPCTargets
3020 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
3021 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
3022 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
3023 )
3024endif()
3025
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003026if (gRPC_BUILD_TESTS)
3027
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003028add_library(grpc++_test_config
3029 test/cpp/util/test_config_cc.cc
3030)
3031
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003032if(WIN32 AND MSVC)
3033 set_target_properties(grpc++_test_config PROPERTIES COMPILE_PDB_NAME "grpc++_test_config"
3034 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3035 )
3036 if (gRPC_INSTALL)
3037 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_test_config.pdb
3038 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
3039 )
3040 endif()
3041endif()
3042
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003043
3044target_include_directories(grpc++_test_config
3045 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3046 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3047 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3048 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3049 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003050 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003051 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003052 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08003053 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003054 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003055 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003056 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3057 PRIVATE third_party/googletest/include
3058 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003059 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003060)
3061
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003062target_link_libraries(grpc++_test_config
3063 ${_gRPC_PROTOBUF_LIBRARIES}
3064 ${_gRPC_ALLTARGETS_LIBRARIES}
3065)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003066
3067
3068endif (gRPC_BUILD_TESTS)
3069if (gRPC_BUILD_TESTS)
3070
3071add_library(grpc++_test_util
yang-ga7198022017-01-26 13:23:52 -08003072 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.pb.cc
3073 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.grpc.pb.cc
3074 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.pb.h
3075 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003076 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc
3077 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc
3078 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h
3079 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h
3080 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc
3081 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc
3082 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h
3083 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h
3084 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.pb.cc
3085 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.cc
3086 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.pb.h
3087 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.h
3088 test/cpp/end2end/test_service_impl.cc
3089 test/cpp/util/byte_buffer_proto_helper.cc
3090 test/cpp/util/create_test_channel.cc
3091 test/cpp/util/string_ref_helper.cc
3092 test/cpp/util/subprocess.cc
3093 test/cpp/util/test_credentials_provider.cc
3094 src/cpp/codegen/codegen_init.cc
3095)
3096
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003097if(WIN32 AND MSVC)
3098 set_target_properties(grpc++_test_util PROPERTIES COMPILE_PDB_NAME "grpc++_test_util"
3099 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3100 )
3101 if (gRPC_INSTALL)
3102 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_test_util.pdb
3103 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
3104 )
3105 endif()
3106endif()
3107
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003108protobuf_generate_grpc_cpp(
yang-ga7198022017-01-26 13:23:52 -08003109 src/proto/grpc/health/v1/health.proto
3110)
3111protobuf_generate_grpc_cpp(
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003112 src/proto/grpc/testing/echo_messages.proto
3113)
3114protobuf_generate_grpc_cpp(
3115 src/proto/grpc/testing/echo.proto
3116)
3117protobuf_generate_grpc_cpp(
3118 src/proto/grpc/testing/duplicate/echo_duplicate.proto
3119)
3120
3121target_include_directories(grpc++_test_util
3122 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3123 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3124 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3125 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3126 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003127 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003128 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003129 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08003130 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003131 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003132 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003133 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3134 PRIVATE third_party/googletest/include
3135 PRIVATE third_party/googletest
3136 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3137)
3138
3139target_link_libraries(grpc++_test_util
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003140 ${_gRPC_PROTOBUF_LIBRARIES}
3141 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003142 grpc++
3143 grpc_test_util
3144)
3145
3146foreach(_hdr
3147 include/grpc++/impl/codegen/async_stream.h
3148 include/grpc++/impl/codegen/async_unary_call.h
3149 include/grpc++/impl/codegen/call.h
3150 include/grpc++/impl/codegen/call_hook.h
3151 include/grpc++/impl/codegen/channel_interface.h
3152 include/grpc++/impl/codegen/client_context.h
3153 include/grpc++/impl/codegen/client_unary_call.h
3154 include/grpc++/impl/codegen/completion_queue.h
3155 include/grpc++/impl/codegen/completion_queue_tag.h
3156 include/grpc++/impl/codegen/config.h
3157 include/grpc++/impl/codegen/core_codegen_interface.h
3158 include/grpc++/impl/codegen/create_auth_context.h
3159 include/grpc++/impl/codegen/grpc_library.h
yang-g988b47c2017-01-31 09:51:45 -08003160 include/grpc++/impl/codegen/metadata_map.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003161 include/grpc++/impl/codegen/method_handler_impl.h
3162 include/grpc++/impl/codegen/rpc_method.h
3163 include/grpc++/impl/codegen/rpc_service_method.h
3164 include/grpc++/impl/codegen/security/auth_context.h
3165 include/grpc++/impl/codegen/serialization_traits.h
3166 include/grpc++/impl/codegen/server_context.h
3167 include/grpc++/impl/codegen/server_interface.h
3168 include/grpc++/impl/codegen/service_type.h
Craig Tiller7c70b6c2017-01-23 07:48:42 -08003169 include/grpc++/impl/codegen/slice.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003170 include/grpc++/impl/codegen/status.h
3171 include/grpc++/impl/codegen/status_code_enum.h
3172 include/grpc++/impl/codegen/status_helper.h
3173 include/grpc++/impl/codegen/string_ref.h
3174 include/grpc++/impl/codegen/stub_options.h
3175 include/grpc++/impl/codegen/sync_stream.h
3176 include/grpc++/impl/codegen/time.h
3177 include/grpc/impl/codegen/byte_buffer_reader.h
3178 include/grpc/impl/codegen/compression_types.h
3179 include/grpc/impl/codegen/connectivity_state.h
3180 include/grpc/impl/codegen/exec_ctx_fwd.h
3181 include/grpc/impl/codegen/grpc_types.h
3182 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07003183 include/grpc/impl/codegen/slice.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003184 include/grpc/impl/codegen/status.h
3185 include/grpc/impl/codegen/atm.h
3186 include/grpc/impl/codegen/atm_gcc_atomic.h
3187 include/grpc/impl/codegen/atm_gcc_sync.h
3188 include/grpc/impl/codegen/atm_windows.h
3189 include/grpc/impl/codegen/gpr_slice.h
3190 include/grpc/impl/codegen/gpr_types.h
3191 include/grpc/impl/codegen/port_platform.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003192 include/grpc/impl/codegen/sync.h
3193 include/grpc/impl/codegen/sync_generic.h
3194 include/grpc/impl/codegen/sync_posix.h
3195 include/grpc/impl/codegen/sync_windows.h
3196 include/grpc++/impl/codegen/proto_utils.h
3197 include/grpc++/impl/codegen/config_protobuf.h
3198 include/grpc++/impl/codegen/thrift_serializer.h
3199 include/grpc++/impl/codegen/thrift_utils.h
3200)
3201 string(REPLACE "include/" "" _path ${_hdr})
3202 get_filename_component(_path ${_path} PATH)
3203 install(FILES ${_hdr}
3204 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
3205 )
3206endforeach()
3207
3208endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003209
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003210add_library(grpc++_unsecure
murgatroid991ca0f3e2016-08-26 14:58:49 -07003211 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003212 src/cpp/common/insecure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07003213 src/cpp/server/insecure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07003214 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003215 src/cpp/client/client_context.cc
3216 src/cpp/client/create_channel.cc
3217 src/cpp/client/create_channel_internal.cc
3218 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07003219 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003220 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003221 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07003222 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07003223 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003224 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07003225 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003226 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07003227 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003228 src/cpp/server/async_generic_service.cc
Craig Tiller4751c282017-01-10 14:29:00 -08003229 src/cpp/server/channel_argument_option.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003230 src/cpp/server/create_default_thread_pool.cc
3231 src/cpp/server/dynamic_thread_pool.cc
yang-gc3c475f2016-12-27 10:37:26 -08003232 src/cpp/server/health/default_health_check_service.cc
3233 src/cpp/server/health/health.pb.c
3234 src/cpp/server/health/health_check_service.cc
3235 src/cpp/server/health/health_check_service_server_builder_option.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003236 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07003237 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003238 src/cpp/server/server_context.cc
3239 src/cpp/server/server_credentials.cc
3240 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07003241 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07003242 src/cpp/util/byte_buffer_cc.cc
3243 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003244 src/cpp/util/status.cc
3245 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07003246 src/cpp/util/time_cc.cc
Craig Tiller790f6af2017-03-30 12:39:24 -07003247 src/core/lib/channel/channel_args.c
3248 src/core/lib/channel/channel_stack.c
3249 src/core/lib/channel/channel_stack_builder.c
3250 src/core/lib/channel/compress_filter.c
3251 src/core/lib/channel/connected_channel.c
3252 src/core/lib/channel/deadline_filter.c
3253 src/core/lib/channel/handshaker.c
3254 src/core/lib/channel/handshaker_factory.c
3255 src/core/lib/channel/handshaker_registry.c
3256 src/core/lib/channel/http_client_filter.c
3257 src/core/lib/channel/http_server_filter.c
3258 src/core/lib/channel/message_size_filter.c
3259 src/core/lib/compression/compression.c
3260 src/core/lib/compression/message_compress.c
3261 src/core/lib/debug/trace.c
3262 src/core/lib/http/format_request.c
3263 src/core/lib/http/httpcli.c
3264 src/core/lib/http/parser.c
3265 src/core/lib/iomgr/closure.c
3266 src/core/lib/iomgr/combiner.c
3267 src/core/lib/iomgr/endpoint.c
3268 src/core/lib/iomgr/endpoint_pair_posix.c
3269 src/core/lib/iomgr/endpoint_pair_uv.c
3270 src/core/lib/iomgr/endpoint_pair_windows.c
3271 src/core/lib/iomgr/error.c
3272 src/core/lib/iomgr/ev_epoll_linux.c
3273 src/core/lib/iomgr/ev_poll_posix.c
3274 src/core/lib/iomgr/ev_posix.c
3275 src/core/lib/iomgr/exec_ctx.c
3276 src/core/lib/iomgr/executor.c
3277 src/core/lib/iomgr/iocp_windows.c
3278 src/core/lib/iomgr/iomgr.c
3279 src/core/lib/iomgr/iomgr_posix.c
3280 src/core/lib/iomgr/iomgr_uv.c
3281 src/core/lib/iomgr/iomgr_windows.c
3282 src/core/lib/iomgr/load_file.c
3283 src/core/lib/iomgr/network_status_tracker.c
3284 src/core/lib/iomgr/polling_entity.c
3285 src/core/lib/iomgr/pollset_set_uv.c
3286 src/core/lib/iomgr/pollset_set_windows.c
3287 src/core/lib/iomgr/pollset_uv.c
3288 src/core/lib/iomgr/pollset_windows.c
3289 src/core/lib/iomgr/resolve_address_posix.c
3290 src/core/lib/iomgr/resolve_address_uv.c
3291 src/core/lib/iomgr/resolve_address_windows.c
3292 src/core/lib/iomgr/resource_quota.c
3293 src/core/lib/iomgr/sockaddr_utils.c
3294 src/core/lib/iomgr/socket_factory_posix.c
3295 src/core/lib/iomgr/socket_mutator.c
3296 src/core/lib/iomgr/socket_utils_common_posix.c
3297 src/core/lib/iomgr/socket_utils_linux.c
3298 src/core/lib/iomgr/socket_utils_posix.c
3299 src/core/lib/iomgr/socket_utils_uv.c
3300 src/core/lib/iomgr/socket_utils_windows.c
3301 src/core/lib/iomgr/socket_windows.c
3302 src/core/lib/iomgr/tcp_client_posix.c
3303 src/core/lib/iomgr/tcp_client_uv.c
3304 src/core/lib/iomgr/tcp_client_windows.c
3305 src/core/lib/iomgr/tcp_posix.c
3306 src/core/lib/iomgr/tcp_server_posix.c
3307 src/core/lib/iomgr/tcp_server_utils_posix_common.c
3308 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c
3309 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c
3310 src/core/lib/iomgr/tcp_server_uv.c
3311 src/core/lib/iomgr/tcp_server_windows.c
3312 src/core/lib/iomgr/tcp_uv.c
3313 src/core/lib/iomgr/tcp_windows.c
3314 src/core/lib/iomgr/time_averaged_stats.c
3315 src/core/lib/iomgr/timer_generic.c
3316 src/core/lib/iomgr/timer_heap.c
3317 src/core/lib/iomgr/timer_uv.c
3318 src/core/lib/iomgr/udp_server.c
3319 src/core/lib/iomgr/unix_sockets_posix.c
3320 src/core/lib/iomgr/unix_sockets_posix_noop.c
3321 src/core/lib/iomgr/wakeup_fd_cv.c
3322 src/core/lib/iomgr/wakeup_fd_eventfd.c
3323 src/core/lib/iomgr/wakeup_fd_nospecial.c
3324 src/core/lib/iomgr/wakeup_fd_pipe.c
3325 src/core/lib/iomgr/wakeup_fd_posix.c
3326 src/core/lib/iomgr/workqueue_uv.c
3327 src/core/lib/iomgr/workqueue_windows.c
3328 src/core/lib/json/json.c
3329 src/core/lib/json/json_reader.c
3330 src/core/lib/json/json_string.c
3331 src/core/lib/json/json_writer.c
3332 src/core/lib/slice/b64.c
3333 src/core/lib/slice/percent_encoding.c
3334 src/core/lib/slice/slice.c
3335 src/core/lib/slice/slice_buffer.c
3336 src/core/lib/slice/slice_hash_table.c
3337 src/core/lib/slice/slice_intern.c
3338 src/core/lib/slice/slice_string_helpers.c
3339 src/core/lib/surface/alarm.c
3340 src/core/lib/surface/api_trace.c
3341 src/core/lib/surface/byte_buffer.c
3342 src/core/lib/surface/byte_buffer_reader.c
3343 src/core/lib/surface/call.c
3344 src/core/lib/surface/call_details.c
3345 src/core/lib/surface/call_log_batch.c
3346 src/core/lib/surface/channel.c
3347 src/core/lib/surface/channel_init.c
3348 src/core/lib/surface/channel_ping.c
3349 src/core/lib/surface/channel_stack_type.c
3350 src/core/lib/surface/completion_queue.c
3351 src/core/lib/surface/completion_queue_factory.c
3352 src/core/lib/surface/event_string.c
3353 src/core/lib/surface/lame_client.c
3354 src/core/lib/surface/metadata_array.c
3355 src/core/lib/surface/server.c
3356 src/core/lib/surface/validate_metadata.c
3357 src/core/lib/surface/version.c
3358 src/core/lib/transport/bdp_estimator.c
3359 src/core/lib/transport/byte_stream.c
3360 src/core/lib/transport/connectivity_state.c
3361 src/core/lib/transport/error_utils.c
3362 src/core/lib/transport/metadata.c
3363 src/core/lib/transport/metadata_batch.c
3364 src/core/lib/transport/pid_controller.c
3365 src/core/lib/transport/service_config.c
3366 src/core/lib/transport/static_metadata.c
3367 src/core/lib/transport/status_conversion.c
3368 src/core/lib/transport/timeout_encoding.c
3369 src/core/lib/transport/transport.c
3370 src/core/lib/transport/transport_op_string.c
3371 third_party/nanopb/pb_common.c
3372 third_party/nanopb/pb_decode.c
3373 third_party/nanopb/pb_encode.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003374 src/cpp/codegen/codegen_init.cc
3375)
3376
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003377if(WIN32 AND MSVC)
3378 set_target_properties(grpc++_unsecure PROPERTIES COMPILE_PDB_NAME "grpc++_unsecure"
3379 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3380 )
3381 if (gRPC_INSTALL)
3382 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_unsecure.pdb
3383 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
3384 )
3385 endif()
3386endif()
3387
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003388
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003389target_include_directories(grpc++_unsecure
3390 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3391 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3392 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3393 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03003394 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003395 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003396 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003397 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zeng8076d2b2016-08-25 13:23:13 -07003398 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003399 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003400 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003401 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003402 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003403)
3404
3405target_link_libraries(grpc++_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03003406 ${_gRPC_BASELIB_LIBRARIES}
3407 ${_gRPC_PROTOBUF_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003408 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003409 gpr
3410 grpc_unsecure
3411)
3412
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003413foreach(_hdr
3414 include/grpc++/alarm.h
3415 include/grpc++/channel.h
3416 include/grpc++/client_context.h
3417 include/grpc++/completion_queue.h
3418 include/grpc++/create_channel.h
3419 include/grpc++/create_channel_posix.h
yang-g04981242016-12-01 11:53:08 -08003420 include/grpc++/ext/health_check_service_server_builder_option.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003421 include/grpc++/generic/async_generic_service.h
3422 include/grpc++/generic/generic_stub.h
3423 include/grpc++/grpc++.h
yang-g1accb122016-12-28 10:38:04 -08003424 include/grpc++/health_check_service_interface.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003425 include/grpc++/impl/call.h
Craig Tiller4751c282017-01-10 14:29:00 -08003426 include/grpc++/impl/channel_argument_option.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003427 include/grpc++/impl/client_unary_call.h
3428 include/grpc++/impl/codegen/core_codegen.h
3429 include/grpc++/impl/grpc_library.h
3430 include/grpc++/impl/method_handler_impl.h
3431 include/grpc++/impl/rpc_method.h
3432 include/grpc++/impl/rpc_service_method.h
3433 include/grpc++/impl/serialization_traits.h
3434 include/grpc++/impl/server_builder_option.h
3435 include/grpc++/impl/server_builder_plugin.h
3436 include/grpc++/impl/server_initializer.h
3437 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07003438 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003439 include/grpc++/security/auth_context.h
3440 include/grpc++/security/auth_metadata_processor.h
3441 include/grpc++/security/credentials.h
3442 include/grpc++/security/server_credentials.h
3443 include/grpc++/server.h
3444 include/grpc++/server_builder.h
3445 include/grpc++/server_context.h
3446 include/grpc++/server_posix.h
3447 include/grpc++/support/async_stream.h
3448 include/grpc++/support/async_unary_call.h
3449 include/grpc++/support/byte_buffer.h
3450 include/grpc++/support/channel_arguments.h
3451 include/grpc++/support/config.h
3452 include/grpc++/support/slice.h
3453 include/grpc++/support/status.h
3454 include/grpc++/support/status_code_enum.h
3455 include/grpc++/support/string_ref.h
3456 include/grpc++/support/stub_options.h
3457 include/grpc++/support/sync_stream.h
3458 include/grpc++/support/time.h
3459 include/grpc++/impl/codegen/async_stream.h
3460 include/grpc++/impl/codegen/async_unary_call.h
3461 include/grpc++/impl/codegen/call.h
3462 include/grpc++/impl/codegen/call_hook.h
3463 include/grpc++/impl/codegen/channel_interface.h
3464 include/grpc++/impl/codegen/client_context.h
3465 include/grpc++/impl/codegen/client_unary_call.h
3466 include/grpc++/impl/codegen/completion_queue.h
3467 include/grpc++/impl/codegen/completion_queue_tag.h
3468 include/grpc++/impl/codegen/config.h
3469 include/grpc++/impl/codegen/core_codegen_interface.h
3470 include/grpc++/impl/codegen/create_auth_context.h
3471 include/grpc++/impl/codegen/grpc_library.h
yang-g988b47c2017-01-31 09:51:45 -08003472 include/grpc++/impl/codegen/metadata_map.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003473 include/grpc++/impl/codegen/method_handler_impl.h
3474 include/grpc++/impl/codegen/rpc_method.h
3475 include/grpc++/impl/codegen/rpc_service_method.h
3476 include/grpc++/impl/codegen/security/auth_context.h
3477 include/grpc++/impl/codegen/serialization_traits.h
3478 include/grpc++/impl/codegen/server_context.h
3479 include/grpc++/impl/codegen/server_interface.h
3480 include/grpc++/impl/codegen/service_type.h
Craig Tiller7c70b6c2017-01-23 07:48:42 -08003481 include/grpc++/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003482 include/grpc++/impl/codegen/status.h
3483 include/grpc++/impl/codegen/status_code_enum.h
yang-gd5581492016-09-06 14:05:53 -07003484 include/grpc++/impl/codegen/status_helper.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003485 include/grpc++/impl/codegen/string_ref.h
3486 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003487 include/grpc++/impl/codegen/sync_stream.h
3488 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02003489 include/grpc/impl/codegen/byte_buffer_reader.h
3490 include/grpc/impl/codegen/compression_types.h
3491 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08003492 include/grpc/impl/codegen/exec_ctx_fwd.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02003493 include/grpc/impl/codegen/grpc_types.h
3494 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07003495 include/grpc/impl/codegen/slice.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02003496 include/grpc/impl/codegen/status.h
3497 include/grpc/impl/codegen/atm.h
3498 include/grpc/impl/codegen/atm_gcc_atomic.h
3499 include/grpc/impl/codegen/atm_gcc_sync.h
3500 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08003501 include/grpc/impl/codegen/gpr_slice.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02003502 include/grpc/impl/codegen/gpr_types.h
3503 include/grpc/impl/codegen/port_platform.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02003504 include/grpc/impl/codegen/sync.h
3505 include/grpc/impl/codegen/sync_generic.h
3506 include/grpc/impl/codegen/sync_posix.h
3507 include/grpc/impl/codegen/sync_windows.h
Craig Tiller790f6af2017-03-30 12:39:24 -07003508 include/grpc/byte_buffer.h
3509 include/grpc/byte_buffer_reader.h
3510 include/grpc/compression.h
3511 include/grpc/grpc.h
3512 include/grpc/grpc_posix.h
3513 include/grpc/grpc_security_constants.h
3514 include/grpc/load_reporting.h
3515 include/grpc/slice.h
3516 include/grpc/slice_buffer.h
3517 include/grpc/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003518)
3519 string(REPLACE "include/" "" _path ${_hdr})
3520 get_filename_component(_path ${_path} PATH)
3521 install(FILES ${_hdr}
3522 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
3523 )
3524endforeach()
3525
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003526
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03003527if (gRPC_INSTALL)
3528 install(TARGETS grpc++_unsecure EXPORT gRPCTargets
3529 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
3530 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
3531 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
3532 )
3533endif()
3534
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003535if (gRPC_BUILD_TESTS)
3536
Craig Tiller5e321532017-03-03 08:50:25 -08003537add_library(grpc_benchmark
Craig Tillerf09ec592017-03-03 16:52:37 -08003538 test/cpp/microbenchmarks/helpers.cc
Craig Tiller5e321532017-03-03 08:50:25 -08003539)
3540
3541if(WIN32 AND MSVC)
3542 set_target_properties(grpc_benchmark PROPERTIES COMPILE_PDB_NAME "grpc_benchmark"
3543 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3544 )
3545 if (gRPC_INSTALL)
3546 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_benchmark.pdb
3547 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
3548 )
3549 endif()
3550endif()
3551
3552
3553target_include_directories(grpc_benchmark
3554 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3555 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3556 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3557 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3558 PRIVATE ${ZLIB_INCLUDE_DIR}
3559 PRIVATE ${BENCHMARK}/include
3560 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003561 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zeng9bc0d822017-03-17 13:02:03 -07003562 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003563 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003564 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller5e321532017-03-03 08:50:25 -08003565 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3566 PRIVATE third_party/googletest/include
3567 PRIVATE third_party/googletest
3568 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3569)
3570
3571target_link_libraries(grpc_benchmark
3572 ${_gRPC_PROTOBUF_LIBRARIES}
3573 ${_gRPC_ALLTARGETS_LIBRARIES}
3574 benchmark
3575 grpc++
Craig Tillere067b6e2017-03-06 14:46:37 -08003576 grpc_test_util
Craig Tiller5e321532017-03-03 08:50:25 -08003577 grpc
3578 ${_gRPC_GFLAGS_LIBRARIES}
3579)
3580
3581
3582endif (gRPC_BUILD_TESTS)
3583if (gRPC_BUILD_TESTS)
3584
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003585add_library(grpc_cli_libs
3586 test/cpp/util/cli_call.cc
3587 test/cpp/util/cli_credentials.cc
3588 test/cpp/util/grpc_tool.cc
3589 test/cpp/util/proto_file_parser.cc
3590 test/cpp/util/service_describer.cc
3591 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.cc
3592 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.cc
3593 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.h
3594 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h
3595)
3596
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003597if(WIN32 AND MSVC)
3598 set_target_properties(grpc_cli_libs PROPERTIES COMPILE_PDB_NAME "grpc_cli_libs"
3599 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3600 )
3601 if (gRPC_INSTALL)
3602 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_cli_libs.pdb
3603 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
3604 )
3605 endif()
3606endif()
3607
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003608protobuf_generate_grpc_cpp(
3609 src/proto/grpc/reflection/v1alpha/reflection.proto
3610)
3611
3612target_include_directories(grpc_cli_libs
3613 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3614 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3615 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3616 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3617 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003618 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003619 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003620 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08003621 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003622 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003623 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003624 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3625 PRIVATE third_party/googletest/include
3626 PRIVATE third_party/googletest
3627 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3628)
3629
3630target_link_libraries(grpc_cli_libs
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003631 ${_gRPC_PROTOBUF_LIBRARIES}
3632 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003633 grpc++_proto_reflection_desc_db
3634 grpc++
3635)
3636
3637foreach(_hdr
3638 include/grpc++/impl/codegen/config_protobuf.h
3639)
3640 string(REPLACE "include/" "" _path ${_hdr})
3641 get_filename_component(_path ${_path} PATH)
3642 install(FILES ${_hdr}
3643 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
3644 )
3645endforeach()
3646
3647endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003648
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003649add_library(grpc_plugin_support
3650 src/compiler/cpp_generator.cc
3651 src/compiler/csharp_generator.cc
3652 src/compiler/node_generator.cc
3653 src/compiler/objective_c_generator.cc
Stanley Cheung857a1302016-09-29 17:26:29 -07003654 src/compiler/php_generator.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003655 src/compiler/python_generator.cc
3656 src/compiler/ruby_generator.cc
3657)
3658
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003659if(WIN32 AND MSVC)
3660 set_target_properties(grpc_plugin_support PROPERTIES COMPILE_PDB_NAME "grpc_plugin_support"
3661 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3662 )
3663 if (gRPC_INSTALL)
3664 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_plugin_support.pdb
3665 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
3666 )
3667 endif()
3668endif()
3669
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003670
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003671target_include_directories(grpc_plugin_support
3672 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3673 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3674 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3675 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03003676 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003677 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003678 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003679 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zeng8076d2b2016-08-25 13:23:13 -07003680 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003681 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003682 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003683 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003684 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003685)
3686
3687target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03003688 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003689 ${_gRPC_PROTOBUF_LIBRARIES}
3690 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003691)
3692
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003693foreach(_hdr
3694 include/grpc++/impl/codegen/config_protobuf.h
3695)
3696 string(REPLACE "include/" "" _path ${_hdr})
3697 get_filename_component(_path ${_path} PATH)
3698 install(FILES ${_hdr}
3699 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}"
3700 )
3701endforeach()
3702
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003703
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03003704if (gRPC_INSTALL)
3705 install(TARGETS grpc_plugin_support EXPORT gRPCTargets
3706 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
3707 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
3708 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
3709 )
3710endif()
3711
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003712if (gRPC_BUILD_TESTS)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003713
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003714add_library(http2_client_main
3715 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
3716 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
3717 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
3718 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
3719 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
3720 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
3721 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
3722 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
3723 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
3724 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
3725 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
3726 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
3727 test/cpp/interop/http2_client.cc
3728)
3729
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003730if(WIN32 AND MSVC)
3731 set_target_properties(http2_client_main PROPERTIES COMPILE_PDB_NAME "http2_client_main"
3732 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3733 )
3734 if (gRPC_INSTALL)
3735 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/http2_client_main.pdb
3736 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
3737 )
3738 endif()
3739endif()
3740
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003741protobuf_generate_grpc_cpp(
3742 src/proto/grpc/testing/empty.proto
3743)
3744protobuf_generate_grpc_cpp(
3745 src/proto/grpc/testing/messages.proto
3746)
3747protobuf_generate_grpc_cpp(
3748 src/proto/grpc/testing/test.proto
3749)
3750
3751target_include_directories(http2_client_main
3752 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3753 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3754 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3755 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3756 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003757 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003758 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003759 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08003760 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003761 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003762 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003763 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3764 PRIVATE third_party/googletest/include
3765 PRIVATE third_party/googletest
3766 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3767)
3768
3769target_link_libraries(http2_client_main
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003770 ${_gRPC_PROTOBUF_LIBRARIES}
3771 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003772 grpc++_test_util
3773 grpc_test_util
3774 grpc++
3775 grpc
3776 grpc++_test_config
3777)
3778
3779
3780endif (gRPC_BUILD_TESTS)
3781if (gRPC_BUILD_TESTS)
3782
3783add_library(interop_client_helper
3784 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
3785 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
3786 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
3787 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
3788 test/cpp/interop/client_helper.cc
3789)
3790
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003791if(WIN32 AND MSVC)
3792 set_target_properties(interop_client_helper PROPERTIES COMPILE_PDB_NAME "interop_client_helper"
3793 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3794 )
3795 if (gRPC_INSTALL)
3796 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_client_helper.pdb
3797 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
3798 )
3799 endif()
3800endif()
3801
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003802protobuf_generate_grpc_cpp(
3803 src/proto/grpc/testing/messages.proto
3804)
3805
3806target_include_directories(interop_client_helper
3807 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3808 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3809 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3810 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3811 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003812 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003813 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003814 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08003815 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003816 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003817 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003818 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3819 PRIVATE third_party/googletest/include
3820 PRIVATE third_party/googletest
3821 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3822)
3823
3824target_link_libraries(interop_client_helper
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003825 ${_gRPC_PROTOBUF_LIBRARIES}
3826 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003827 grpc++_test_util
3828 grpc_test_util
3829 grpc++
3830 grpc
3831 gpr
3832)
3833
3834
3835endif (gRPC_BUILD_TESTS)
3836if (gRPC_BUILD_TESTS)
3837
3838add_library(interop_client_main
3839 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
3840 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
3841 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
3842 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
3843 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
3844 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
3845 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
3846 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
3847 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
3848 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
3849 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
3850 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
3851 test/cpp/interop/client.cc
3852 test/cpp/interop/interop_client.cc
3853)
3854
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003855if(WIN32 AND MSVC)
3856 set_target_properties(interop_client_main PROPERTIES COMPILE_PDB_NAME "interop_client_main"
3857 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3858 )
3859 if (gRPC_INSTALL)
3860 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_client_main.pdb
3861 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
3862 )
3863 endif()
3864endif()
3865
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003866protobuf_generate_grpc_cpp(
3867 src/proto/grpc/testing/empty.proto
3868)
3869protobuf_generate_grpc_cpp(
3870 src/proto/grpc/testing/messages.proto
3871)
3872protobuf_generate_grpc_cpp(
3873 src/proto/grpc/testing/test.proto
3874)
3875
3876target_include_directories(interop_client_main
3877 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3878 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3879 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3880 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3881 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003882 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003883 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003884 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08003885 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003886 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003887 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003888 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3889 PRIVATE third_party/googletest/include
3890 PRIVATE third_party/googletest
3891 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3892)
3893
3894target_link_libraries(interop_client_main
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003895 ${_gRPC_PROTOBUF_LIBRARIES}
3896 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003897 interop_client_helper
3898 grpc++_test_util
3899 grpc_test_util
3900 grpc++
3901 grpc
3902 gpr_test_util
3903 gpr
3904 grpc++_test_config
3905)
3906
3907
3908endif (gRPC_BUILD_TESTS)
3909if (gRPC_BUILD_TESTS)
3910
3911add_library(interop_server_helper
3912 test/cpp/interop/server_helper.cc
3913)
3914
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003915if(WIN32 AND MSVC)
3916 set_target_properties(interop_server_helper PROPERTIES COMPILE_PDB_NAME "interop_server_helper"
3917 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3918 )
3919 if (gRPC_INSTALL)
3920 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_server_helper.pdb
3921 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
3922 )
3923 endif()
3924endif()
3925
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003926
3927target_include_directories(interop_server_helper
3928 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3929 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3930 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3931 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3932 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003933 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003934 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003935 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08003936 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003937 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003938 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003939 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
3940 PRIVATE third_party/googletest/include
3941 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003942 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003943)
3944
3945target_link_libraries(interop_server_helper
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003946 ${_gRPC_PROTOBUF_LIBRARIES}
3947 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003948 grpc++_test_util
3949 grpc_test_util
3950 grpc++
3951 grpc
3952 gpr
3953)
3954
3955
3956endif (gRPC_BUILD_TESTS)
3957if (gRPC_BUILD_TESTS)
3958
3959add_library(interop_server_lib
3960 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
3961 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
3962 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
3963 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
3964 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
3965 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
3966 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
3967 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
3968 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
3969 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
3970 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
3971 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
3972 test/cpp/interop/interop_server.cc
3973)
3974
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003975if(WIN32 AND MSVC)
3976 set_target_properties(interop_server_lib PROPERTIES COMPILE_PDB_NAME "interop_server_lib"
3977 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3978 )
3979 if (gRPC_INSTALL)
3980 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_server_lib.pdb
3981 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
3982 )
3983 endif()
3984endif()
3985
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003986protobuf_generate_grpc_cpp(
3987 src/proto/grpc/testing/empty.proto
3988)
3989protobuf_generate_grpc_cpp(
3990 src/proto/grpc/testing/messages.proto
3991)
3992protobuf_generate_grpc_cpp(
3993 src/proto/grpc/testing/test.proto
3994)
3995
3996target_include_directories(interop_server_lib
3997 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
3998 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
3999 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4000 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4001 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004002 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004003 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004004 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004005 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004006 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07004007 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004008 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4009 PRIVATE third_party/googletest/include
4010 PRIVATE third_party/googletest
4011 PRIVATE ${_gRPC_PROTO_GENS_DIR}
4012)
4013
4014target_link_libraries(interop_server_lib
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004015 ${_gRPC_PROTOBUF_LIBRARIES}
4016 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004017 interop_server_helper
4018 grpc++_test_util
4019 grpc_test_util
4020 grpc++
4021 grpc
4022 gpr_test_util
4023 gpr
4024 grpc++_test_config
4025)
4026
4027
4028endif (gRPC_BUILD_TESTS)
4029if (gRPC_BUILD_TESTS)
4030
4031add_library(interop_server_main
4032 test/cpp/interop/interop_server_bootstrap.cc
4033)
4034
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004035if(WIN32 AND MSVC)
4036 set_target_properties(interop_server_main PROPERTIES COMPILE_PDB_NAME "interop_server_main"
4037 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4038 )
4039 if (gRPC_INSTALL)
4040 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_server_main.pdb
4041 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
4042 )
4043 endif()
4044endif()
4045
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004046
4047target_include_directories(interop_server_main
4048 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4049 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4050 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4051 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4052 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004053 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004054 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004055 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004056 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004057 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07004058 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004059 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4060 PRIVATE third_party/googletest/include
4061 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004062 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004063)
4064
4065target_link_libraries(interop_server_main
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004066 ${_gRPC_PROTOBUF_LIBRARIES}
4067 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004068 interop_server_lib
4069)
4070
4071
4072endif (gRPC_BUILD_TESTS)
4073if (gRPC_BUILD_TESTS)
4074
4075add_library(qps
4076 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
4077 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
4078 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
4079 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
4080 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.cc
4081 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.cc
4082 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.h
4083 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.h
4084 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.cc
4085 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.cc
4086 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.h
4087 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.h
4088 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.cc
4089 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.cc
4090 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.h
4091 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.h
4092 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.cc
4093 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.cc
4094 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.h
4095 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.h
Nicolas "Pixel" Nobleb02dd012017-03-24 18:45:22 +01004096 test/cpp/qps/benchmark_config.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004097 test/cpp/qps/client_async.cc
4098 test/cpp/qps/client_sync.cc
4099 test/cpp/qps/driver.cc
4100 test/cpp/qps/parse_json.cc
4101 test/cpp/qps/qps_worker.cc
4102 test/cpp/qps/report.cc
4103 test/cpp/qps/server_async.cc
4104 test/cpp/qps/server_sync.cc
4105 test/cpp/qps/usage_timer.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004106)
4107
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004108if(WIN32 AND MSVC)
4109 set_target_properties(qps PROPERTIES COMPILE_PDB_NAME "qps"
4110 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4111 )
4112 if (gRPC_INSTALL)
4113 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/qps.pdb
4114 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
4115 )
4116 endif()
4117endif()
4118
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004119protobuf_generate_grpc_cpp(
4120 src/proto/grpc/testing/messages.proto
4121)
4122protobuf_generate_grpc_cpp(
4123 src/proto/grpc/testing/payloads.proto
4124)
4125protobuf_generate_grpc_cpp(
4126 src/proto/grpc/testing/stats.proto
4127)
4128protobuf_generate_grpc_cpp(
4129 src/proto/grpc/testing/control.proto
4130)
4131protobuf_generate_grpc_cpp(
4132 src/proto/grpc/testing/services.proto
4133)
4134
4135target_include_directories(qps
4136 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4137 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4138 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4139 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4140 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004141 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004142 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004143 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004144 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004145 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07004146 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004147 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4148 PRIVATE third_party/googletest/include
4149 PRIVATE third_party/googletest
4150 PRIVATE ${_gRPC_PROTO_GENS_DIR}
4151)
4152
4153target_link_libraries(qps
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004154 ${_gRPC_PROTOBUF_LIBRARIES}
4155 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004156 grpc_test_util
4157 grpc++_test_util
4158 grpc++
4159)
4160
4161
4162endif (gRPC_BUILD_TESTS)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004163
Jan Tattermuschc09656c2017-01-27 13:36:24 +01004164add_library(grpc_csharp_ext SHARED
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004165 src/csharp/ext/grpc_csharp_ext.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004166)
4167
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004168if(WIN32 AND MSVC)
4169 set_target_properties(grpc_csharp_ext PROPERTIES COMPILE_PDB_NAME "grpc_csharp_ext"
4170 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4171 )
4172 if (gRPC_INSTALL)
4173 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_csharp_ext.pdb
4174 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
4175 )
4176 endif()
4177endif()
4178
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004179
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004180target_include_directories(grpc_csharp_ext
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004181 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4182 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4183 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4184 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4185 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004186 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004187 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004188 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004189 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004190 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07004191 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004192 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4193)
4194
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004195target_link_libraries(grpc_csharp_ext
4196 ${_gRPC_ALLTARGETS_LIBRARIES}
4197 grpc
4198 gpr
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004199)
4200
4201
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004202
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004203if (gRPC_INSTALL)
4204 install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
4205 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
4206 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
4207 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
4208 )
4209endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004210
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004211if (gRPC_BUILD_TESTS)
4212
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004213add_library(ares
Yuchen Zeng6694bb02017-01-23 17:09:51 -08004214 third_party/cares/cares/ares__close_sockets.c
4215 third_party/cares/cares/ares__get_hostent.c
4216 third_party/cares/cares/ares__read_line.c
4217 third_party/cares/cares/ares__timeval.c
4218 third_party/cares/cares/ares_cancel.c
4219 third_party/cares/cares/ares_create_query.c
4220 third_party/cares/cares/ares_data.c
4221 third_party/cares/cares/ares_destroy.c
4222 third_party/cares/cares/ares_expand_name.c
4223 third_party/cares/cares/ares_expand_string.c
4224 third_party/cares/cares/ares_fds.c
4225 third_party/cares/cares/ares_free_hostent.c
4226 third_party/cares/cares/ares_free_string.c
4227 third_party/cares/cares/ares_getenv.c
4228 third_party/cares/cares/ares_gethostbyaddr.c
4229 third_party/cares/cares/ares_gethostbyname.c
4230 third_party/cares/cares/ares_getnameinfo.c
4231 third_party/cares/cares/ares_getopt.c
4232 third_party/cares/cares/ares_getsock.c
4233 third_party/cares/cares/ares_init.c
4234 third_party/cares/cares/ares_library_init.c
4235 third_party/cares/cares/ares_llist.c
4236 third_party/cares/cares/ares_mkquery.c
4237 third_party/cares/cares/ares_nowarn.c
4238 third_party/cares/cares/ares_options.c
4239 third_party/cares/cares/ares_parse_a_reply.c
4240 third_party/cares/cares/ares_parse_aaaa_reply.c
4241 third_party/cares/cares/ares_parse_mx_reply.c
4242 third_party/cares/cares/ares_parse_naptr_reply.c
4243 third_party/cares/cares/ares_parse_ns_reply.c
4244 third_party/cares/cares/ares_parse_ptr_reply.c
4245 third_party/cares/cares/ares_parse_soa_reply.c
4246 third_party/cares/cares/ares_parse_srv_reply.c
4247 third_party/cares/cares/ares_parse_txt_reply.c
4248 third_party/cares/cares/ares_platform.c
4249 third_party/cares/cares/ares_process.c
4250 third_party/cares/cares/ares_query.c
4251 third_party/cares/cares/ares_search.c
4252 third_party/cares/cares/ares_send.c
4253 third_party/cares/cares/ares_strcasecmp.c
4254 third_party/cares/cares/ares_strdup.c
4255 third_party/cares/cares/ares_strerror.c
4256 third_party/cares/cares/ares_timeout.c
4257 third_party/cares/cares/ares_version.c
4258 third_party/cares/cares/ares_writev.c
4259 third_party/cares/cares/bitncmp.c
4260 third_party/cares/cares/inet_net_pton.c
4261 third_party/cares/cares/inet_ntop.c
4262 third_party/cares/cares/windows_port.c
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004263)
4264
Yuchen Zeng2c977082017-02-27 13:35:41 -08004265if(WIN32 AND MSVC)
4266 set_target_properties(ares PROPERTIES COMPILE_PDB_NAME "ares"
4267 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4268 )
4269 if (gRPC_INSTALL)
4270 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ares.pdb
4271 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
4272 )
4273 endif()
4274endif()
4275
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004276
4277target_include_directories(ares
4278 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4279 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4280 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4281 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4282 PRIVATE ${ZLIB_INCLUDE_DIR}
Yuchen Zeng1492f6c2017-02-02 12:42:54 -08004283 PRIVATE ${BENCHMARK}/include
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004284 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004285 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004286 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004287 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07004288 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004289 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4290)
4291
4292target_link_libraries(ares
4293 ${_gRPC_SSL_LIBRARIES}
Yuchen Zeng1492f6c2017-02-02 12:42:54 -08004294 ${_gRPC_ALLTARGETS_LIBRARIES}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004295)
4296
4297
4298endif (gRPC_BUILD_TESTS)
4299if (gRPC_BUILD_TESTS)
4300
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004301add_library(bad_client_test
4302 test/core/bad_client/bad_client.c
4303)
4304
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004305if(WIN32 AND MSVC)
4306 set_target_properties(bad_client_test PROPERTIES COMPILE_PDB_NAME "bad_client_test"
4307 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4308 )
4309 if (gRPC_INSTALL)
4310 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/bad_client_test.pdb
4311 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
4312 )
4313 endif()
4314endif()
4315
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004316
4317target_include_directories(bad_client_test
4318 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4319 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4320 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4321 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4322 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004323 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004324 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004325 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004326 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004327 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07004328 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004329 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4330)
4331
4332target_link_libraries(bad_client_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004333 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004334 grpc_test_util_unsecure
4335 grpc_unsecure
4336 gpr_test_util
4337 gpr
4338)
4339
4340
4341endif (gRPC_BUILD_TESTS)
4342if (gRPC_BUILD_TESTS)
4343
4344add_library(bad_ssl_test_server
4345 test/core/bad_ssl/server_common.c
4346)
4347
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004348if(WIN32 AND MSVC)
4349 set_target_properties(bad_ssl_test_server PROPERTIES COMPILE_PDB_NAME "bad_ssl_test_server"
4350 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4351 )
4352 if (gRPC_INSTALL)
4353 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/bad_ssl_test_server.pdb
4354 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
4355 )
4356 endif()
4357endif()
4358
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004359
4360target_include_directories(bad_ssl_test_server
4361 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4362 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4363 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4364 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4365 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004366 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004367 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004368 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004369 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004370 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07004371 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004372 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4373)
4374
4375target_link_libraries(bad_ssl_test_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004376 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004377 grpc_test_util
4378 grpc
4379 gpr_test_util
4380 gpr
4381)
4382
4383
4384endif (gRPC_BUILD_TESTS)
4385if (gRPC_BUILD_TESTS)
4386
4387add_library(end2end_tests
4388 test/core/end2end/end2end_tests.c
4389 test/core/end2end/end2end_test_utils.c
4390 test/core/end2end/tests/authority_not_supported.c
4391 test/core/end2end/tests/bad_hostname.c
4392 test/core/end2end/tests/binary_metadata.c
4393 test/core/end2end/tests/call_creds.c
4394 test/core/end2end/tests/cancel_after_accept.c
4395 test/core/end2end/tests/cancel_after_client_done.c
4396 test/core/end2end/tests/cancel_after_invoke.c
4397 test/core/end2end/tests/cancel_before_invoke.c
4398 test/core/end2end/tests/cancel_in_a_vacuum.c
4399 test/core/end2end/tests/cancel_with_status.c
4400 test/core/end2end/tests/compressed_payload.c
4401 test/core/end2end/tests/connectivity.c
4402 test/core/end2end/tests/default_host.c
4403 test/core/end2end/tests/disappearing_server.c
4404 test/core/end2end/tests/empty_batch.c
4405 test/core/end2end/tests/filter_call_init_fails.c
4406 test/core/end2end/tests/filter_causes_close.c
4407 test/core/end2end/tests/filter_latency.c
4408 test/core/end2end/tests/graceful_server_shutdown.c
4409 test/core/end2end/tests/high_initial_seqno.c
4410 test/core/end2end/tests/hpack_size.c
4411 test/core/end2end/tests/idempotent_request.c
4412 test/core/end2end/tests/invoke_large_request.c
Yuchen Zeng990d9fe2017-02-26 16:54:18 -08004413 test/core/end2end/tests/keepalive_timeout.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004414 test/core/end2end/tests/large_metadata.c
4415 test/core/end2end/tests/load_reporting_hook.c
4416 test/core/end2end/tests/max_concurrent_streams.c
Yuchen Zeng22321fc2017-03-28 19:10:09 -07004417 test/core/end2end/tests/max_connection_age.c
Yuchen Zengb2caafc2017-03-29 01:54:08 -07004418 test/core/end2end/tests/max_connection_idle.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004419 test/core/end2end/tests/max_message_length.c
4420 test/core/end2end/tests/negative_deadline.c
4421 test/core/end2end/tests/network_status_change.c
4422 test/core/end2end/tests/no_logging.c
4423 test/core/end2end/tests/no_op.c
4424 test/core/end2end/tests/payload.c
4425 test/core/end2end/tests/ping.c
4426 test/core/end2end/tests/ping_pong_streaming.c
4427 test/core/end2end/tests/registered_call.c
4428 test/core/end2end/tests/request_with_flags.c
4429 test/core/end2end/tests/request_with_payload.c
4430 test/core/end2end/tests/resource_quota_server.c
4431 test/core/end2end/tests/server_finishes_request.c
4432 test/core/end2end/tests/shutdown_finishes_calls.c
4433 test/core/end2end/tests/shutdown_finishes_tags.c
4434 test/core/end2end/tests/simple_cacheable_request.c
4435 test/core/end2end/tests/simple_delayed_request.c
4436 test/core/end2end/tests/simple_metadata.c
4437 test/core/end2end/tests/simple_request.c
4438 test/core/end2end/tests/streaming_error_response.c
4439 test/core/end2end/tests/trailing_metadata.c
4440 test/core/end2end/tests/write_buffering.c
4441 test/core/end2end/tests/write_buffering_at_end.c
4442)
4443
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004444if(WIN32 AND MSVC)
4445 set_target_properties(end2end_tests PROPERTIES COMPILE_PDB_NAME "end2end_tests"
4446 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4447 )
4448 if (gRPC_INSTALL)
4449 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/end2end_tests.pdb
4450 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
4451 )
4452 endif()
4453endif()
4454
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004455
4456target_include_directories(end2end_tests
4457 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4458 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4459 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4460 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4461 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004462 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004463 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004464 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004465 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004466 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07004467 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004468 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4469)
4470
4471target_link_libraries(end2end_tests
4472 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004473 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004474 grpc_test_util
4475 grpc
4476 gpr_test_util
4477 gpr
4478)
4479
4480
4481endif (gRPC_BUILD_TESTS)
4482if (gRPC_BUILD_TESTS)
4483
4484add_library(end2end_nosec_tests
4485 test/core/end2end/end2end_nosec_tests.c
4486 test/core/end2end/end2end_test_utils.c
4487 test/core/end2end/tests/authority_not_supported.c
4488 test/core/end2end/tests/bad_hostname.c
4489 test/core/end2end/tests/binary_metadata.c
4490 test/core/end2end/tests/cancel_after_accept.c
4491 test/core/end2end/tests/cancel_after_client_done.c
4492 test/core/end2end/tests/cancel_after_invoke.c
4493 test/core/end2end/tests/cancel_before_invoke.c
4494 test/core/end2end/tests/cancel_in_a_vacuum.c
4495 test/core/end2end/tests/cancel_with_status.c
4496 test/core/end2end/tests/compressed_payload.c
4497 test/core/end2end/tests/connectivity.c
4498 test/core/end2end/tests/default_host.c
4499 test/core/end2end/tests/disappearing_server.c
4500 test/core/end2end/tests/empty_batch.c
4501 test/core/end2end/tests/filter_call_init_fails.c
4502 test/core/end2end/tests/filter_causes_close.c
4503 test/core/end2end/tests/filter_latency.c
4504 test/core/end2end/tests/graceful_server_shutdown.c
4505 test/core/end2end/tests/high_initial_seqno.c
4506 test/core/end2end/tests/hpack_size.c
4507 test/core/end2end/tests/idempotent_request.c
4508 test/core/end2end/tests/invoke_large_request.c
Yuchen Zeng990d9fe2017-02-26 16:54:18 -08004509 test/core/end2end/tests/keepalive_timeout.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004510 test/core/end2end/tests/large_metadata.c
4511 test/core/end2end/tests/load_reporting_hook.c
4512 test/core/end2end/tests/max_concurrent_streams.c
Yuchen Zeng22321fc2017-03-28 19:10:09 -07004513 test/core/end2end/tests/max_connection_age.c
Yuchen Zengb2caafc2017-03-29 01:54:08 -07004514 test/core/end2end/tests/max_connection_idle.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004515 test/core/end2end/tests/max_message_length.c
4516 test/core/end2end/tests/negative_deadline.c
4517 test/core/end2end/tests/network_status_change.c
4518 test/core/end2end/tests/no_logging.c
4519 test/core/end2end/tests/no_op.c
4520 test/core/end2end/tests/payload.c
4521 test/core/end2end/tests/ping.c
4522 test/core/end2end/tests/ping_pong_streaming.c
4523 test/core/end2end/tests/registered_call.c
4524 test/core/end2end/tests/request_with_flags.c
4525 test/core/end2end/tests/request_with_payload.c
4526 test/core/end2end/tests/resource_quota_server.c
4527 test/core/end2end/tests/server_finishes_request.c
4528 test/core/end2end/tests/shutdown_finishes_calls.c
4529 test/core/end2end/tests/shutdown_finishes_tags.c
4530 test/core/end2end/tests/simple_cacheable_request.c
4531 test/core/end2end/tests/simple_delayed_request.c
4532 test/core/end2end/tests/simple_metadata.c
4533 test/core/end2end/tests/simple_request.c
4534 test/core/end2end/tests/streaming_error_response.c
4535 test/core/end2end/tests/trailing_metadata.c
4536 test/core/end2end/tests/write_buffering.c
4537 test/core/end2end/tests/write_buffering_at_end.c
4538)
4539
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004540if(WIN32 AND MSVC)
4541 set_target_properties(end2end_nosec_tests PROPERTIES COMPILE_PDB_NAME "end2end_nosec_tests"
4542 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4543 )
4544 if (gRPC_INSTALL)
4545 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/end2end_nosec_tests.pdb
4546 DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL
4547 )
4548 endif()
4549endif()
4550
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004551
4552target_include_directories(end2end_nosec_tests
4553 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4554 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4555 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4556 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4557 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004558 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004559 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004560 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004561 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004562 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07004563 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004564 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4565)
4566
4567target_link_libraries(end2end_nosec_tests
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004568 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004569 grpc_test_util_unsecure
4570 grpc_unsecure
4571 gpr_test_util
4572 gpr
4573)
4574
4575
4576endif (gRPC_BUILD_TESTS)
4577
4578if (gRPC_BUILD_TESTS)
4579
4580add_executable(alarm_test
4581 test/core/surface/alarm_test.c
4582)
4583
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004584
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004585target_include_directories(alarm_test
4586 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4587 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4588 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4589 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004590 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004591 PRIVATE ${ZLIB_ROOT_DIR}
4592 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004593 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004594 PRIVATE ${CARES_INCLUDE_DIR}
4595 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4596 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004597 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4598)
4599
4600target_link_libraries(alarm_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004601 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004602 grpc_test_util
4603 grpc
4604 gpr_test_util
4605 gpr
4606)
4607
4608endif (gRPC_BUILD_TESTS)
4609if (gRPC_BUILD_TESTS)
4610
4611add_executable(algorithm_test
4612 test/core/compression/algorithm_test.c
4613)
4614
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004615
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004616target_include_directories(algorithm_test
4617 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4618 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4619 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4620 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004621 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004622 PRIVATE ${ZLIB_ROOT_DIR}
4623 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004624 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004625 PRIVATE ${CARES_INCLUDE_DIR}
4626 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4627 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004628 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4629)
4630
4631target_link_libraries(algorithm_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004632 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004633 grpc_test_util
4634 grpc
4635 gpr_test_util
4636 gpr
4637)
4638
4639endif (gRPC_BUILD_TESTS)
4640if (gRPC_BUILD_TESTS)
4641
4642add_executable(alloc_test
4643 test/core/support/alloc_test.c
4644)
4645
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004646
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004647target_include_directories(alloc_test
4648 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4649 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4650 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4651 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004652 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004653 PRIVATE ${ZLIB_ROOT_DIR}
4654 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004655 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004656 PRIVATE ${CARES_INCLUDE_DIR}
4657 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4658 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004659 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4660)
4661
4662target_link_libraries(alloc_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004663 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004664 gpr_test_util
4665 gpr
4666)
4667
4668endif (gRPC_BUILD_TESTS)
4669if (gRPC_BUILD_TESTS)
4670
4671add_executable(alpn_test
4672 test/core/transport/chttp2/alpn_test.c
4673)
4674
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004675
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004676target_include_directories(alpn_test
4677 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4678 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4679 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4680 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004681 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004682 PRIVATE ${ZLIB_ROOT_DIR}
4683 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004684 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004685 PRIVATE ${CARES_INCLUDE_DIR}
4686 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4687 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004688 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4689)
4690
4691target_link_libraries(alpn_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004692 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004693 grpc_test_util
4694 grpc
4695 gpr_test_util
4696 gpr
4697)
4698
4699endif (gRPC_BUILD_TESTS)
4700if (gRPC_BUILD_TESTS)
4701
Craig Tiller9202b3f2017-03-12 22:30:38 -07004702add_executable(arena_test
4703 test/core/support/arena_test.c
4704)
4705
4706
4707target_include_directories(arena_test
4708 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4709 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4710 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4711 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4712 PRIVATE ${BENCHMARK_ROOT_DIR}/include
4713 PRIVATE ${ZLIB_ROOT_DIR}
4714 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004715 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004716 PRIVATE ${CARES_INCLUDE_DIR}
4717 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4718 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller9202b3f2017-03-12 22:30:38 -07004719 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4720)
4721
4722target_link_libraries(arena_test
4723 ${_gRPC_ALLTARGETS_LIBRARIES}
4724 gpr_test_util
4725 gpr
4726)
4727
4728endif (gRPC_BUILD_TESTS)
4729if (gRPC_BUILD_TESTS)
4730
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004731add_executable(bad_server_response_test
4732 test/core/end2end/bad_server_response_test.c
4733)
4734
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004735
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004736target_include_directories(bad_server_response_test
4737 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4738 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4739 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4740 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004741 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004742 PRIVATE ${ZLIB_ROOT_DIR}
4743 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004744 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004745 PRIVATE ${CARES_INCLUDE_DIR}
4746 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4747 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004748 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4749)
4750
4751target_link_libraries(bad_server_response_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004752 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004753 test_tcp_server
4754 grpc_test_util
4755 grpc
4756 gpr_test_util
4757 gpr
4758)
4759
4760endif (gRPC_BUILD_TESTS)
4761if (gRPC_BUILD_TESTS)
4762
Craig Tillerff1f1602017-01-20 13:55:35 -08004763add_executable(bdp_estimator_test
4764 test/core/transport/bdp_estimator_test.c
4765)
4766
Craig Tiller5395aba2017-02-02 10:29:04 -08004767
Craig Tillerff1f1602017-01-20 13:55:35 -08004768target_include_directories(bdp_estimator_test
4769 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4770 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4771 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4772 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Craig Tiller5395aba2017-02-02 10:29:04 -08004773 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Craig Tillerff1f1602017-01-20 13:55:35 -08004774 PRIVATE ${ZLIB_ROOT_DIR}
4775 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004776 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004777 PRIVATE ${CARES_INCLUDE_DIR}
4778 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4779 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tillerff1f1602017-01-20 13:55:35 -08004780 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4781)
4782
4783target_link_libraries(bdp_estimator_test
Craig Tiller5395aba2017-02-02 10:29:04 -08004784 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tillerff1f1602017-01-20 13:55:35 -08004785 grpc_test_util
4786 grpc
4787 gpr_test_util
4788 gpr
4789)
4790
4791endif (gRPC_BUILD_TESTS)
4792if (gRPC_BUILD_TESTS)
4793
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004794add_executable(bin_decoder_test
4795 test/core/transport/chttp2/bin_decoder_test.c
4796)
4797
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004798
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004799target_include_directories(bin_decoder_test
4800 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4801 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4802 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4803 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004804 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004805 PRIVATE ${ZLIB_ROOT_DIR}
4806 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004807 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004808 PRIVATE ${CARES_INCLUDE_DIR}
4809 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4810 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004811 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4812)
4813
4814target_link_libraries(bin_decoder_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004815 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004816 grpc_test_util
4817 grpc
4818)
4819
4820endif (gRPC_BUILD_TESTS)
4821if (gRPC_BUILD_TESTS)
4822
4823add_executable(bin_encoder_test
4824 test/core/transport/chttp2/bin_encoder_test.c
4825)
4826
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004827
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004828target_include_directories(bin_encoder_test
4829 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4830 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4831 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4832 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004833 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004834 PRIVATE ${ZLIB_ROOT_DIR}
4835 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004836 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004837 PRIVATE ${CARES_INCLUDE_DIR}
4838 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4839 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004840 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4841)
4842
4843target_link_libraries(bin_encoder_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004844 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004845 grpc_test_util
4846 grpc
4847)
4848
4849endif (gRPC_BUILD_TESTS)
4850if (gRPC_BUILD_TESTS)
4851
4852add_executable(census_context_test
4853 test/core/census/context_test.c
4854)
4855
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004856
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004857target_include_directories(census_context_test
4858 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4859 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4860 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4861 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004862 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004863 PRIVATE ${ZLIB_ROOT_DIR}
4864 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004865 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004866 PRIVATE ${CARES_INCLUDE_DIR}
4867 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4868 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004869 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4870)
4871
4872target_link_libraries(census_context_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004873 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004874 grpc_test_util
4875 grpc
4876 gpr_test_util
4877 gpr
4878)
4879
4880endif (gRPC_BUILD_TESTS)
4881if (gRPC_BUILD_TESTS)
4882
4883add_executable(census_resource_test
4884 test/core/census/resource_test.c
4885)
4886
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004887
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004888target_include_directories(census_resource_test
4889 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4890 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4891 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4892 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004893 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004894 PRIVATE ${ZLIB_ROOT_DIR}
4895 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004896 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004897 PRIVATE ${CARES_INCLUDE_DIR}
4898 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4899 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004900 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4901)
4902
4903target_link_libraries(census_resource_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004904 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004905 grpc_test_util
4906 grpc
4907 gpr_test_util
4908 gpr
4909)
4910
4911endif (gRPC_BUILD_TESTS)
4912if (gRPC_BUILD_TESTS)
4913
4914add_executable(census_trace_context_test
4915 test/core/census/trace_context_test.c
4916)
4917
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004918
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004919target_include_directories(census_trace_context_test
4920 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4921 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4922 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4923 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004924 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004925 PRIVATE ${ZLIB_ROOT_DIR}
4926 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004927 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004928 PRIVATE ${CARES_INCLUDE_DIR}
4929 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4930 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004931 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4932)
4933
4934target_link_libraries(census_trace_context_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004935 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004936 grpc_test_util
4937 grpc
4938 gpr_test_util
4939 gpr
4940)
4941
4942endif (gRPC_BUILD_TESTS)
4943if (gRPC_BUILD_TESTS)
4944
4945add_executable(channel_create_test
4946 test/core/surface/channel_create_test.c
4947)
4948
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004949
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004950target_include_directories(channel_create_test
4951 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4952 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4953 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4954 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004955 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004956 PRIVATE ${ZLIB_ROOT_DIR}
4957 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004958 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004959 PRIVATE ${CARES_INCLUDE_DIR}
4960 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4961 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004962 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4963)
4964
4965target_link_libraries(channel_create_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004966 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004967 grpc_test_util
4968 grpc
4969 gpr_test_util
4970 gpr
4971)
4972
4973endif (gRPC_BUILD_TESTS)
4974if (gRPC_BUILD_TESTS)
4975
4976add_executable(chttp2_hpack_encoder_test
4977 test/core/transport/chttp2/hpack_encoder_test.c
4978)
4979
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004980
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004981target_include_directories(chttp2_hpack_encoder_test
4982 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4983 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4984 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4985 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004986 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004987 PRIVATE ${ZLIB_ROOT_DIR}
4988 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004989 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004990 PRIVATE ${CARES_INCLUDE_DIR}
4991 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4992 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004993 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4994)
4995
4996target_link_libraries(chttp2_hpack_encoder_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004997 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004998 grpc_test_util
4999 grpc
5000 gpr_test_util
5001 gpr
5002)
5003
5004endif (gRPC_BUILD_TESTS)
5005if (gRPC_BUILD_TESTS)
5006
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005007add_executable(chttp2_stream_map_test
5008 test/core/transport/chttp2/stream_map_test.c
5009)
5010
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005011
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005012target_include_directories(chttp2_stream_map_test
5013 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5014 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5015 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5016 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005017 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005018 PRIVATE ${ZLIB_ROOT_DIR}
5019 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005020 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005021 PRIVATE ${CARES_INCLUDE_DIR}
5022 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5023 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005024 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5025)
5026
5027target_link_libraries(chttp2_stream_map_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005028 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005029 grpc_test_util
5030 grpc
5031 gpr_test_util
5032 gpr
5033)
5034
5035endif (gRPC_BUILD_TESTS)
5036if (gRPC_BUILD_TESTS)
5037
5038add_executable(chttp2_varint_test
5039 test/core/transport/chttp2/varint_test.c
5040)
5041
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005042
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005043target_include_directories(chttp2_varint_test
5044 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5045 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5046 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5047 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005048 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005049 PRIVATE ${ZLIB_ROOT_DIR}
5050 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005051 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005052 PRIVATE ${CARES_INCLUDE_DIR}
5053 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5054 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005055 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5056)
5057
5058target_link_libraries(chttp2_varint_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005059 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005060 grpc_test_util
5061 grpc
5062 gpr_test_util
5063 gpr
5064)
5065
5066endif (gRPC_BUILD_TESTS)
5067if (gRPC_BUILD_TESTS)
5068
5069add_executable(combiner_test
5070 test/core/iomgr/combiner_test.c
5071)
5072
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005073
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005074target_include_directories(combiner_test
5075 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5076 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5077 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5078 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005079 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005080 PRIVATE ${ZLIB_ROOT_DIR}
5081 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005082 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005083 PRIVATE ${CARES_INCLUDE_DIR}
5084 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5085 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005086 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5087)
5088
5089target_link_libraries(combiner_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005090 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005091 grpc_test_util
5092 grpc
5093 gpr_test_util
5094 gpr
5095)
5096
5097endif (gRPC_BUILD_TESTS)
5098if (gRPC_BUILD_TESTS)
5099
5100add_executable(compression_test
5101 test/core/compression/compression_test.c
5102)
5103
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005104
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005105target_include_directories(compression_test
5106 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5107 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5108 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5109 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005110 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005111 PRIVATE ${ZLIB_ROOT_DIR}
5112 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005113 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005114 PRIVATE ${CARES_INCLUDE_DIR}
5115 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5116 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005117 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5118)
5119
5120target_link_libraries(compression_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005121 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005122 grpc_test_util
5123 grpc
5124 gpr_test_util
5125 gpr
5126)
5127
5128endif (gRPC_BUILD_TESTS)
5129if (gRPC_BUILD_TESTS)
5130
5131add_executable(concurrent_connectivity_test
5132 test/core/surface/concurrent_connectivity_test.c
5133)
5134
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005135
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005136target_include_directories(concurrent_connectivity_test
5137 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5138 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5139 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5140 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005141 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005142 PRIVATE ${ZLIB_ROOT_DIR}
5143 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005144 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005145 PRIVATE ${CARES_INCLUDE_DIR}
5146 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5147 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005148 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5149)
5150
5151target_link_libraries(concurrent_connectivity_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005152 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005153 grpc_test_util
5154 grpc
5155 gpr_test_util
5156 gpr
5157)
5158
5159endif (gRPC_BUILD_TESTS)
5160if (gRPC_BUILD_TESTS)
5161
5162add_executable(connection_refused_test
5163 test/core/end2end/connection_refused_test.c
5164)
5165
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005166
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005167target_include_directories(connection_refused_test
5168 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5169 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5170 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5171 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005172 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005173 PRIVATE ${ZLIB_ROOT_DIR}
5174 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005175 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005176 PRIVATE ${CARES_INCLUDE_DIR}
5177 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5178 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005179 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5180)
5181
5182target_link_libraries(connection_refused_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005183 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005184 grpc_test_util
5185 grpc
5186 gpr_test_util
5187 gpr
5188)
5189
5190endif (gRPC_BUILD_TESTS)
5191if (gRPC_BUILD_TESTS)
5192
5193add_executable(dns_resolver_connectivity_test
5194 test/core/client_channel/resolvers/dns_resolver_connectivity_test.c
5195)
5196
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005197
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005198target_include_directories(dns_resolver_connectivity_test
5199 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5200 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5201 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5202 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005203 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005204 PRIVATE ${ZLIB_ROOT_DIR}
5205 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005206 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005207 PRIVATE ${CARES_INCLUDE_DIR}
5208 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5209 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005210 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5211)
5212
5213target_link_libraries(dns_resolver_connectivity_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005214 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005215 grpc_test_util
5216 grpc
5217 gpr_test_util
5218 gpr
5219)
5220
5221endif (gRPC_BUILD_TESTS)
5222if (gRPC_BUILD_TESTS)
5223
5224add_executable(dns_resolver_test
5225 test/core/client_channel/resolvers/dns_resolver_test.c
5226)
5227
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005228
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005229target_include_directories(dns_resolver_test
5230 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5231 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5232 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5233 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005234 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005235 PRIVATE ${ZLIB_ROOT_DIR}
5236 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005237 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005238 PRIVATE ${CARES_INCLUDE_DIR}
5239 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5240 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005241 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5242)
5243
5244target_link_libraries(dns_resolver_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005245 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005246 grpc_test_util
5247 grpc
5248 gpr_test_util
5249 gpr
5250)
5251
5252endif (gRPC_BUILD_TESTS)
5253if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005254if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005255
5256add_executable(dualstack_socket_test
5257 test/core/end2end/dualstack_socket_test.c
5258)
5259
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005260
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005261target_include_directories(dualstack_socket_test
5262 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5263 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5264 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5265 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005266 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005267 PRIVATE ${ZLIB_ROOT_DIR}
5268 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005269 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005270 PRIVATE ${CARES_INCLUDE_DIR}
5271 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5272 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005273 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5274)
5275
5276target_link_libraries(dualstack_socket_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005277 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005278 grpc_test_util
5279 grpc
5280 gpr_test_util
5281 gpr
5282)
5283
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005284endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005285endif (gRPC_BUILD_TESTS)
5286if (gRPC_BUILD_TESTS)
5287
5288add_executable(endpoint_pair_test
5289 test/core/iomgr/endpoint_pair_test.c
5290)
5291
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005292
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005293target_include_directories(endpoint_pair_test
5294 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5295 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5296 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5297 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005298 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005299 PRIVATE ${ZLIB_ROOT_DIR}
5300 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005301 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005302 PRIVATE ${CARES_INCLUDE_DIR}
5303 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5304 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005305 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5306)
5307
5308target_link_libraries(endpoint_pair_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005309 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005310 grpc_test_util
5311 grpc
5312 gpr_test_util
5313 gpr
5314)
5315
5316endif (gRPC_BUILD_TESTS)
5317if (gRPC_BUILD_TESTS)
ncteisen3da3ce32017-02-17 09:51:25 -08005318
5319add_executable(error_test
5320 test/core/iomgr/error_test.c
5321)
5322
5323
5324target_include_directories(error_test
5325 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5326 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5327 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5328 PRIVATE ${PROTOBUF_ROOT_DIR}/src
5329 PRIVATE ${BENCHMARK_ROOT_DIR}/include
5330 PRIVATE ${ZLIB_ROOT_DIR}
5331 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005332 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005333 PRIVATE ${CARES_INCLUDE_DIR}
5334 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5335 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
ncteisen3da3ce32017-02-17 09:51:25 -08005336 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5337)
5338
5339target_link_libraries(error_test
5340 ${_gRPC_ALLTARGETS_LIBRARIES}
5341 grpc_test_util
5342 grpc
5343 gpr_test_util
5344 gpr
5345)
5346
5347endif (gRPC_BUILD_TESTS)
5348if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005349if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005350
5351add_executable(ev_epoll_linux_test
5352 test/core/iomgr/ev_epoll_linux_test.c
5353)
5354
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005355
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005356target_include_directories(ev_epoll_linux_test
5357 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5358 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5359 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5360 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005361 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005362 PRIVATE ${ZLIB_ROOT_DIR}
5363 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005364 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005365 PRIVATE ${CARES_INCLUDE_DIR}
5366 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5367 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005368 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5369)
5370
5371target_link_libraries(ev_epoll_linux_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005372 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005373 grpc_test_util
5374 grpc
5375 gpr_test_util
5376 gpr
5377)
5378
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005379endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005380endif (gRPC_BUILD_TESTS)
5381if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005382if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005383
5384add_executable(fd_conservation_posix_test
5385 test/core/iomgr/fd_conservation_posix_test.c
5386)
5387
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005388
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005389target_include_directories(fd_conservation_posix_test
5390 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5391 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5392 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5393 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005394 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005395 PRIVATE ${ZLIB_ROOT_DIR}
5396 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005397 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005398 PRIVATE ${CARES_INCLUDE_DIR}
5399 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5400 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005401 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5402)
5403
5404target_link_libraries(fd_conservation_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005405 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005406 grpc_test_util
5407 grpc
5408 gpr_test_util
5409 gpr
5410)
5411
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005412endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005413endif (gRPC_BUILD_TESTS)
5414if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005415if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005416
5417add_executable(fd_posix_test
5418 test/core/iomgr/fd_posix_test.c
5419)
5420
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005421
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005422target_include_directories(fd_posix_test
5423 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5424 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5425 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5426 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005427 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005428 PRIVATE ${ZLIB_ROOT_DIR}
5429 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005430 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005431 PRIVATE ${CARES_INCLUDE_DIR}
5432 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5433 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005434 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5435)
5436
5437target_link_libraries(fd_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005438 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005439 grpc_test_util
5440 grpc
5441 gpr_test_util
5442 gpr
5443)
5444
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005445endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005446endif (gRPC_BUILD_TESTS)
5447if (gRPC_BUILD_TESTS)
5448
5449add_executable(fling_client
5450 test/core/fling/client.c
5451)
5452
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005453
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005454target_include_directories(fling_client
5455 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5456 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5457 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5458 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005459 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005460 PRIVATE ${ZLIB_ROOT_DIR}
5461 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005462 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005463 PRIVATE ${CARES_INCLUDE_DIR}
5464 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5465 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005466 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5467)
5468
5469target_link_libraries(fling_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005470 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005471 grpc_test_util
5472 grpc
5473 gpr_test_util
5474 gpr
5475)
5476
5477endif (gRPC_BUILD_TESTS)
5478if (gRPC_BUILD_TESTS)
5479
5480add_executable(fling_server
5481 test/core/fling/server.c
5482)
5483
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005484
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005485target_include_directories(fling_server
5486 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5487 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5488 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5489 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005490 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005491 PRIVATE ${ZLIB_ROOT_DIR}
5492 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005493 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005494 PRIVATE ${CARES_INCLUDE_DIR}
5495 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5496 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005497 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5498)
5499
5500target_link_libraries(fling_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005501 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005502 grpc_test_util
5503 grpc
5504 gpr_test_util
5505 gpr
5506)
5507
5508endif (gRPC_BUILD_TESTS)
5509if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005510if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005511
5512add_executable(fling_stream_test
5513 test/core/fling/fling_stream_test.c
5514)
5515
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005516
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005517target_include_directories(fling_stream_test
5518 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5519 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5520 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5521 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005522 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005523 PRIVATE ${ZLIB_ROOT_DIR}
5524 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005525 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005526 PRIVATE ${CARES_INCLUDE_DIR}
5527 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5528 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005529 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5530)
5531
5532target_link_libraries(fling_stream_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005533 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005534 grpc_test_util
5535 grpc
5536 gpr_test_util
5537 gpr
5538)
5539
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005540endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005541endif (gRPC_BUILD_TESTS)
5542if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005543if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005544
5545add_executable(fling_test
5546 test/core/fling/fling_test.c
5547)
5548
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005549
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005550target_include_directories(fling_test
5551 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5552 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5553 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5554 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005555 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005556 PRIVATE ${ZLIB_ROOT_DIR}
5557 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005558 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005559 PRIVATE ${CARES_INCLUDE_DIR}
5560 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5561 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005562 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5563)
5564
5565target_link_libraries(fling_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005566 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005567 grpc_test_util
5568 grpc
5569 gpr_test_util
5570 gpr
5571)
5572
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005573endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005574endif (gRPC_BUILD_TESTS)
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01005575
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005576add_executable(gen_hpack_tables
5577 tools/codegen/core/gen_hpack_tables.c
5578)
5579
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005580
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005581target_include_directories(gen_hpack_tables
5582 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5583 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5584 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5585 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005586 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005587 PRIVATE ${ZLIB_ROOT_DIR}
5588 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005589 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005590 PRIVATE ${CARES_INCLUDE_DIR}
5591 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5592 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005593 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005594)
5595
5596target_link_libraries(gen_hpack_tables
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005597 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005598 gpr
5599 grpc
5600)
5601
5602
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03005603if (gRPC_INSTALL)
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02005604 install(TARGETS gen_hpack_tables EXPORT gRPCTargets
5605 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
5606 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
5607 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
5608 )
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03005609endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03005610
5611
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005612add_executable(gen_legal_metadata_characters
5613 tools/codegen/core/gen_legal_metadata_characters.c
5614)
5615
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005616
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005617target_include_directories(gen_legal_metadata_characters
5618 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5619 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5620 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5621 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005622 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005623 PRIVATE ${ZLIB_ROOT_DIR}
5624 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005625 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005626 PRIVATE ${CARES_INCLUDE_DIR}
5627 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5628 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005629 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005630)
5631
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005632target_link_libraries(gen_legal_metadata_characters
5633 ${_gRPC_ALLTARGETS_LIBRARIES}
5634)
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005635
5636
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03005637if (gRPC_INSTALL)
5638 install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets
5639 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
5640 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
5641 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
5642 )
5643endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03005644
5645
Craig Tiller1c7a8422016-08-18 11:13:11 -07005646add_executable(gen_percent_encoding_tables
5647 tools/codegen/core/gen_percent_encoding_tables.c
5648)
5649
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005650
Craig Tiller1c7a8422016-08-18 11:13:11 -07005651target_include_directories(gen_percent_encoding_tables
5652 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5653 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5654 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5655 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005656 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Craig Tiller1c7a8422016-08-18 11:13:11 -07005657 PRIVATE ${ZLIB_ROOT_DIR}
5658 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005659 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005660 PRIVATE ${CARES_INCLUDE_DIR}
5661 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5662 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005663 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Craig Tiller1c7a8422016-08-18 11:13:11 -07005664)
5665
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005666target_link_libraries(gen_percent_encoding_tables
5667 ${_gRPC_ALLTARGETS_LIBRARIES}
5668)
Craig Tiller1c7a8422016-08-18 11:13:11 -07005669
5670
Craig Tiller426dcde2016-09-07 15:43:10 -07005671if (gRPC_INSTALL)
5672 install(TARGETS gen_percent_encoding_tables EXPORT gRPCTargets
5673 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
5674 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
5675 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
5676 )
5677endif()
Craig Tiller1c7a8422016-08-18 11:13:11 -07005678
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005679if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005680if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005681
5682add_executable(goaway_server_test
5683 test/core/end2end/goaway_server_test.c
5684)
5685
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005686
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005687target_include_directories(goaway_server_test
5688 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5689 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5690 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5691 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005692 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005693 PRIVATE ${ZLIB_ROOT_DIR}
5694 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005695 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005696 PRIVATE ${CARES_INCLUDE_DIR}
5697 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5698 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005699 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5700)
5701
5702target_link_libraries(goaway_server_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005703 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005704 grpc_test_util
5705 grpc
5706 gpr_test_util
5707 gpr
5708)
5709
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005710endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005711endif (gRPC_BUILD_TESTS)
5712if (gRPC_BUILD_TESTS)
5713
5714add_executable(gpr_avl_test
5715 test/core/support/avl_test.c
5716)
5717
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005718
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005719target_include_directories(gpr_avl_test
5720 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5721 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5722 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5723 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005724 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005725 PRIVATE ${ZLIB_ROOT_DIR}
5726 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005727 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005728 PRIVATE ${CARES_INCLUDE_DIR}
5729 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5730 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005731 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5732)
5733
5734target_link_libraries(gpr_avl_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005735 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005736 gpr_test_util
5737 gpr
5738)
5739
5740endif (gRPC_BUILD_TESTS)
5741if (gRPC_BUILD_TESTS)
5742
5743add_executable(gpr_backoff_test
5744 test/core/support/backoff_test.c
5745)
5746
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005747
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005748target_include_directories(gpr_backoff_test
5749 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5750 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5751 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5752 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005753 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005754 PRIVATE ${ZLIB_ROOT_DIR}
5755 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005756 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005757 PRIVATE ${CARES_INCLUDE_DIR}
5758 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5759 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005760 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5761)
5762
5763target_link_libraries(gpr_backoff_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005764 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005765 gpr_test_util
5766 gpr
5767)
5768
5769endif (gRPC_BUILD_TESTS)
5770if (gRPC_BUILD_TESTS)
5771
5772add_executable(gpr_cmdline_test
5773 test/core/support/cmdline_test.c
5774)
5775
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005776
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005777target_include_directories(gpr_cmdline_test
5778 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5779 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5780 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5781 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005782 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005783 PRIVATE ${ZLIB_ROOT_DIR}
5784 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005785 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005786 PRIVATE ${CARES_INCLUDE_DIR}
5787 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5788 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005789 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5790)
5791
5792target_link_libraries(gpr_cmdline_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005793 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005794 gpr_test_util
5795 gpr
5796)
5797
5798endif (gRPC_BUILD_TESTS)
5799if (gRPC_BUILD_TESTS)
5800
5801add_executable(gpr_cpu_test
5802 test/core/support/cpu_test.c
5803)
5804
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005805
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005806target_include_directories(gpr_cpu_test
5807 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5808 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5809 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5810 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005811 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005812 PRIVATE ${ZLIB_ROOT_DIR}
5813 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005814 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005815 PRIVATE ${CARES_INCLUDE_DIR}
5816 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5817 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005818 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5819)
5820
5821target_link_libraries(gpr_cpu_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005822 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005823 gpr_test_util
5824 gpr
5825)
5826
5827endif (gRPC_BUILD_TESTS)
5828if (gRPC_BUILD_TESTS)
5829
5830add_executable(gpr_env_test
5831 test/core/support/env_test.c
5832)
5833
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005834
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005835target_include_directories(gpr_env_test
5836 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5837 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5838 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5839 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005840 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005841 PRIVATE ${ZLIB_ROOT_DIR}
5842 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005843 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005844 PRIVATE ${CARES_INCLUDE_DIR}
5845 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5846 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005847 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5848)
5849
5850target_link_libraries(gpr_env_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005851 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005852 gpr_test_util
5853 gpr
5854)
5855
5856endif (gRPC_BUILD_TESTS)
5857if (gRPC_BUILD_TESTS)
5858
5859add_executable(gpr_histogram_test
5860 test/core/support/histogram_test.c
5861)
5862
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005863
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005864target_include_directories(gpr_histogram_test
5865 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5866 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5867 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5868 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005869 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005870 PRIVATE ${ZLIB_ROOT_DIR}
5871 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005872 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005873 PRIVATE ${CARES_INCLUDE_DIR}
5874 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5875 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005876 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5877)
5878
5879target_link_libraries(gpr_histogram_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005880 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005881 gpr_test_util
5882 gpr
5883)
5884
5885endif (gRPC_BUILD_TESTS)
5886if (gRPC_BUILD_TESTS)
5887
5888add_executable(gpr_host_port_test
5889 test/core/support/host_port_test.c
5890)
5891
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005892
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005893target_include_directories(gpr_host_port_test
5894 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5895 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5896 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5897 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005898 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005899 PRIVATE ${ZLIB_ROOT_DIR}
5900 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005901 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005902 PRIVATE ${CARES_INCLUDE_DIR}
5903 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5904 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005905 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5906)
5907
5908target_link_libraries(gpr_host_port_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005909 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005910 gpr_test_util
5911 gpr
5912)
5913
5914endif (gRPC_BUILD_TESTS)
5915if (gRPC_BUILD_TESTS)
5916
5917add_executable(gpr_log_test
5918 test/core/support/log_test.c
5919)
5920
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005921
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005922target_include_directories(gpr_log_test
5923 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5924 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5925 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5926 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005927 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005928 PRIVATE ${ZLIB_ROOT_DIR}
5929 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005930 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005931 PRIVATE ${CARES_INCLUDE_DIR}
5932 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5933 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005934 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5935)
5936
5937target_link_libraries(gpr_log_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005938 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005939 gpr_test_util
5940 gpr
5941)
5942
5943endif (gRPC_BUILD_TESTS)
5944if (gRPC_BUILD_TESTS)
5945
5946add_executable(gpr_mpscq_test
5947 test/core/support/mpscq_test.c
5948)
5949
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005950
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005951target_include_directories(gpr_mpscq_test
5952 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5953 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5954 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5955 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005956 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005957 PRIVATE ${ZLIB_ROOT_DIR}
5958 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005959 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005960 PRIVATE ${CARES_INCLUDE_DIR}
5961 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5962 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005963 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5964)
5965
5966target_link_libraries(gpr_mpscq_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005967 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005968 gpr_test_util
5969 gpr
5970)
5971
5972endif (gRPC_BUILD_TESTS)
5973if (gRPC_BUILD_TESTS)
5974
Craig Tilleredbf2b92017-02-27 07:24:00 -08005975add_executable(gpr_spinlock_test
5976 test/core/support/spinlock_test.c
5977)
5978
5979
5980target_include_directories(gpr_spinlock_test
5981 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5982 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5983 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5984 PRIVATE ${PROTOBUF_ROOT_DIR}/src
5985 PRIVATE ${BENCHMARK_ROOT_DIR}/include
5986 PRIVATE ${ZLIB_ROOT_DIR}
5987 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005988 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005989 PRIVATE ${CARES_INCLUDE_DIR}
5990 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5991 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tilleredbf2b92017-02-27 07:24:00 -08005992 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5993)
5994
5995target_link_libraries(gpr_spinlock_test
5996 ${_gRPC_ALLTARGETS_LIBRARIES}
5997 gpr_test_util
5998 gpr
5999)
6000
6001endif (gRPC_BUILD_TESTS)
6002if (gRPC_BUILD_TESTS)
6003
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006004add_executable(gpr_stack_lockfree_test
6005 test/core/support/stack_lockfree_test.c
6006)
6007
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006008
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006009target_include_directories(gpr_stack_lockfree_test
6010 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6011 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6012 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6013 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006014 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006015 PRIVATE ${ZLIB_ROOT_DIR}
6016 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006017 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006018 PRIVATE ${CARES_INCLUDE_DIR}
6019 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6020 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006021 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6022)
6023
6024target_link_libraries(gpr_stack_lockfree_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006025 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006026 gpr_test_util
6027 gpr
6028)
6029
6030endif (gRPC_BUILD_TESTS)
6031if (gRPC_BUILD_TESTS)
6032
6033add_executable(gpr_string_test
6034 test/core/support/string_test.c
6035)
6036
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006037
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006038target_include_directories(gpr_string_test
6039 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6040 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6041 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6042 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006043 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006044 PRIVATE ${ZLIB_ROOT_DIR}
6045 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006046 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006047 PRIVATE ${CARES_INCLUDE_DIR}
6048 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6049 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006050 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6051)
6052
6053target_link_libraries(gpr_string_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006054 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006055 gpr_test_util
6056 gpr
6057)
6058
6059endif (gRPC_BUILD_TESTS)
6060if (gRPC_BUILD_TESTS)
6061
6062add_executable(gpr_sync_test
6063 test/core/support/sync_test.c
6064)
6065
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006066
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006067target_include_directories(gpr_sync_test
6068 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6069 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6070 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6071 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006072 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006073 PRIVATE ${ZLIB_ROOT_DIR}
6074 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006075 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006076 PRIVATE ${CARES_INCLUDE_DIR}
6077 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6078 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006079 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6080)
6081
6082target_link_libraries(gpr_sync_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006083 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006084 gpr_test_util
6085 gpr
6086)
6087
6088endif (gRPC_BUILD_TESTS)
6089if (gRPC_BUILD_TESTS)
6090
6091add_executable(gpr_thd_test
6092 test/core/support/thd_test.c
6093)
6094
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006095
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006096target_include_directories(gpr_thd_test
6097 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6098 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6099 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6100 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006101 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006102 PRIVATE ${ZLIB_ROOT_DIR}
6103 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006104 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006105 PRIVATE ${CARES_INCLUDE_DIR}
6106 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6107 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006108 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6109)
6110
6111target_link_libraries(gpr_thd_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006112 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006113 gpr_test_util
6114 gpr
6115)
6116
6117endif (gRPC_BUILD_TESTS)
6118if (gRPC_BUILD_TESTS)
6119
6120add_executable(gpr_time_test
6121 test/core/support/time_test.c
6122)
6123
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006124
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006125target_include_directories(gpr_time_test
6126 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6127 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6128 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6129 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006130 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006131 PRIVATE ${ZLIB_ROOT_DIR}
6132 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006133 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006134 PRIVATE ${CARES_INCLUDE_DIR}
6135 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6136 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006137 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6138)
6139
6140target_link_libraries(gpr_time_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006141 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006142 gpr_test_util
6143 gpr
6144)
6145
6146endif (gRPC_BUILD_TESTS)
6147if (gRPC_BUILD_TESTS)
6148
6149add_executable(gpr_tls_test
6150 test/core/support/tls_test.c
6151)
6152
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006153
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006154target_include_directories(gpr_tls_test
6155 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6156 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6157 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6158 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006159 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006160 PRIVATE ${ZLIB_ROOT_DIR}
6161 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006162 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006163 PRIVATE ${CARES_INCLUDE_DIR}
6164 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6165 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006166 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6167)
6168
6169target_link_libraries(gpr_tls_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006170 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006171 gpr_test_util
6172 gpr
6173)
6174
6175endif (gRPC_BUILD_TESTS)
6176if (gRPC_BUILD_TESTS)
6177
6178add_executable(gpr_useful_test
6179 test/core/support/useful_test.c
6180)
6181
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006182
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006183target_include_directories(gpr_useful_test
6184 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6185 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6186 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6187 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006188 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006189 PRIVATE ${ZLIB_ROOT_DIR}
6190 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006191 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006192 PRIVATE ${CARES_INCLUDE_DIR}
6193 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6194 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006195 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6196)
6197
6198target_link_libraries(gpr_useful_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006199 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006200 gpr_test_util
6201 gpr
6202)
6203
6204endif (gRPC_BUILD_TESTS)
6205if (gRPC_BUILD_TESTS)
6206
6207add_executable(grpc_auth_context_test
6208 test/core/security/auth_context_test.c
6209)
6210
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006211
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006212target_include_directories(grpc_auth_context_test
6213 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6214 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6215 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6216 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006217 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006218 PRIVATE ${ZLIB_ROOT_DIR}
6219 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006220 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006221 PRIVATE ${CARES_INCLUDE_DIR}
6222 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6223 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006224 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6225)
6226
6227target_link_libraries(grpc_auth_context_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006228 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006229 grpc_test_util
6230 grpc
6231 gpr_test_util
6232 gpr
6233)
6234
6235endif (gRPC_BUILD_TESTS)
6236if (gRPC_BUILD_TESTS)
6237
6238add_executable(grpc_b64_test
Craig Tiller790f6af2017-03-30 12:39:24 -07006239 test/core/slice/b64_test.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006240)
6241
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006242
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006243target_include_directories(grpc_b64_test
6244 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6245 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6246 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6247 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006248 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006249 PRIVATE ${ZLIB_ROOT_DIR}
6250 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006251 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006252 PRIVATE ${CARES_INCLUDE_DIR}
6253 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6254 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006255 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6256)
6257
6258target_link_libraries(grpc_b64_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006259 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006260 grpc_test_util
6261 grpc
6262 gpr_test_util
6263 gpr
6264)
6265
6266endif (gRPC_BUILD_TESTS)
6267if (gRPC_BUILD_TESTS)
6268
6269add_executable(grpc_byte_buffer_reader_test
6270 test/core/surface/byte_buffer_reader_test.c
6271)
6272
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006273
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006274target_include_directories(grpc_byte_buffer_reader_test
6275 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6276 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6277 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6278 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006279 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006280 PRIVATE ${ZLIB_ROOT_DIR}
6281 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006282 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006283 PRIVATE ${CARES_INCLUDE_DIR}
6284 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6285 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006286 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6287)
6288
6289target_link_libraries(grpc_byte_buffer_reader_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006290 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006291 grpc_test_util
6292 grpc
6293 gpr_test_util
6294 gpr
6295)
6296
6297endif (gRPC_BUILD_TESTS)
6298if (gRPC_BUILD_TESTS)
6299
6300add_executable(grpc_channel_args_test
6301 test/core/channel/channel_args_test.c
6302)
6303
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006304
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006305target_include_directories(grpc_channel_args_test
6306 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6307 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6308 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6309 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006310 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006311 PRIVATE ${ZLIB_ROOT_DIR}
6312 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006313 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006314 PRIVATE ${CARES_INCLUDE_DIR}
6315 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6316 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006317 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6318)
6319
6320target_link_libraries(grpc_channel_args_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006321 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006322 grpc_test_util
6323 grpc
6324 gpr_test_util
6325 gpr
6326)
6327
6328endif (gRPC_BUILD_TESTS)
6329if (gRPC_BUILD_TESTS)
6330
6331add_executable(grpc_channel_stack_test
6332 test/core/channel/channel_stack_test.c
6333)
6334
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006335
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006336target_include_directories(grpc_channel_stack_test
6337 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6338 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6339 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6340 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006341 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006342 PRIVATE ${ZLIB_ROOT_DIR}
6343 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006344 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006345 PRIVATE ${CARES_INCLUDE_DIR}
6346 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6347 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006348 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6349)
6350
6351target_link_libraries(grpc_channel_stack_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006352 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006353 grpc_test_util
6354 grpc
6355 gpr_test_util
6356 gpr
6357)
6358
6359endif (gRPC_BUILD_TESTS)
6360if (gRPC_BUILD_TESTS)
6361
6362add_executable(grpc_completion_queue_test
6363 test/core/surface/completion_queue_test.c
6364)
6365
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006366
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006367target_include_directories(grpc_completion_queue_test
6368 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6369 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6370 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6371 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006372 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006373 PRIVATE ${ZLIB_ROOT_DIR}
6374 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006375 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006376 PRIVATE ${CARES_INCLUDE_DIR}
6377 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6378 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006379 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6380)
6381
6382target_link_libraries(grpc_completion_queue_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
6390endif (gRPC_BUILD_TESTS)
murgatroid991191b722017-02-08 11:56:52 -08006391if (gRPC_BUILD_TESTS)
6392
6393add_executable(grpc_completion_queue_threading_test
6394 test/core/surface/completion_queue_threading_test.c
6395)
6396
murgatroid9998cdf3b2017-02-23 14:59:45 -08006397
murgatroid991191b722017-02-08 11:56:52 -08006398target_include_directories(grpc_completion_queue_threading_test
6399 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6400 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6401 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6402 PRIVATE ${PROTOBUF_ROOT_DIR}/src
murgatroid9998cdf3b2017-02-23 14:59:45 -08006403 PRIVATE ${BENCHMARK_ROOT_DIR}/include
murgatroid991191b722017-02-08 11:56:52 -08006404 PRIVATE ${ZLIB_ROOT_DIR}
6405 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006406 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006407 PRIVATE ${CARES_INCLUDE_DIR}
6408 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6409 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
murgatroid991191b722017-02-08 11:56:52 -08006410 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6411)
6412
6413target_link_libraries(grpc_completion_queue_threading_test
murgatroid9998cdf3b2017-02-23 14:59:45 -08006414 ${_gRPC_ALLTARGETS_LIBRARIES}
murgatroid991191b722017-02-08 11:56:52 -08006415 grpc_test_util
6416 grpc
6417 gpr_test_util
6418 gpr
6419)
6420
6421endif (gRPC_BUILD_TESTS)
Craig Tiller1c7a8422016-08-18 11:13:11 -07006422
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006423add_executable(grpc_create_jwt
6424 test/core/security/create_jwt.c
6425)
6426
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006427
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006428target_include_directories(grpc_create_jwt
6429 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6430 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6431 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6432 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006433 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006434 PRIVATE ${ZLIB_ROOT_DIR}
6435 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006436 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006437 PRIVATE ${CARES_INCLUDE_DIR}
6438 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6439 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006440 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006441)
6442
6443target_link_libraries(grpc_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03006444 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006445 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006446 grpc
6447 gpr
6448)
6449
6450
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03006451if (gRPC_INSTALL)
6452 install(TARGETS grpc_create_jwt EXPORT gRPCTargets
6453 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
6454 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
6455 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
6456 )
6457endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03006458
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006459if (gRPC_BUILD_TESTS)
6460
6461add_executable(grpc_credentials_test
6462 test/core/security/credentials_test.c
6463)
6464
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006465
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006466target_include_directories(grpc_credentials_test
6467 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6468 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6469 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6470 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006471 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006472 PRIVATE ${ZLIB_ROOT_DIR}
6473 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006474 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006475 PRIVATE ${CARES_INCLUDE_DIR}
6476 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6477 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006478 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6479)
6480
6481target_link_libraries(grpc_credentials_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006482 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006483 grpc_test_util
6484 grpc
6485 gpr_test_util
6486 gpr
6487)
6488
6489endif (gRPC_BUILD_TESTS)
6490if (gRPC_BUILD_TESTS)
6491
6492add_executable(grpc_fetch_oauth2
6493 test/core/security/fetch_oauth2.c
6494)
6495
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006496
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006497target_include_directories(grpc_fetch_oauth2
6498 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6499 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6500 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6501 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006502 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006503 PRIVATE ${ZLIB_ROOT_DIR}
6504 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006505 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006506 PRIVATE ${CARES_INCLUDE_DIR}
6507 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6508 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006509 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6510)
6511
6512target_link_libraries(grpc_fetch_oauth2
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006513 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006514 grpc_test_util
6515 grpc
6516 gpr_test_util
6517 gpr
6518)
6519
6520endif (gRPC_BUILD_TESTS)
6521if (gRPC_BUILD_TESTS)
6522
6523add_executable(grpc_invalid_channel_args_test
6524 test/core/surface/invalid_channel_args_test.c
6525)
6526
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006527
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006528target_include_directories(grpc_invalid_channel_args_test
6529 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6530 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6531 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6532 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006533 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006534 PRIVATE ${ZLIB_ROOT_DIR}
6535 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006536 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006537 PRIVATE ${CARES_INCLUDE_DIR}
6538 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6539 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006540 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6541)
6542
6543target_link_libraries(grpc_invalid_channel_args_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006544 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006545 grpc_test_util
6546 grpc
6547 gpr_test_util
6548 gpr
6549)
6550
6551endif (gRPC_BUILD_TESTS)
6552if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006553if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006554
6555add_executable(grpc_json_token_test
6556 test/core/security/json_token_test.c
6557)
6558
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006559
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006560target_include_directories(grpc_json_token_test
6561 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6562 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6563 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6564 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006565 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006566 PRIVATE ${ZLIB_ROOT_DIR}
6567 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006568 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006569 PRIVATE ${CARES_INCLUDE_DIR}
6570 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6571 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006572 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6573)
6574
6575target_link_libraries(grpc_json_token_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006576 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006577 grpc_test_util
6578 grpc
6579 gpr_test_util
6580 gpr
6581)
6582
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006583endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006584endif (gRPC_BUILD_TESTS)
6585if (gRPC_BUILD_TESTS)
6586
6587add_executable(grpc_jwt_verifier_test
6588 test/core/security/jwt_verifier_test.c
6589)
6590
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006591
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006592target_include_directories(grpc_jwt_verifier_test
6593 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6594 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6595 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6596 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006597 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006598 PRIVATE ${ZLIB_ROOT_DIR}
6599 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006600 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006601 PRIVATE ${CARES_INCLUDE_DIR}
6602 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6603 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006604 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6605)
6606
6607target_link_libraries(grpc_jwt_verifier_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006608 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006609 grpc_test_util
6610 grpc
6611 gpr_test_util
6612 gpr
6613)
6614
6615endif (gRPC_BUILD_TESTS)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03006616
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006617add_executable(grpc_print_google_default_creds_token
6618 test/core/security/print_google_default_creds_token.c
6619)
6620
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006621
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006622target_include_directories(grpc_print_google_default_creds_token
6623 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6624 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6625 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6626 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006627 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006628 PRIVATE ${ZLIB_ROOT_DIR}
6629 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006630 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006631 PRIVATE ${CARES_INCLUDE_DIR}
6632 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6633 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006634 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006635)
6636
6637target_link_libraries(grpc_print_google_default_creds_token
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006638 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006639 grpc
6640 gpr
6641)
6642
6643
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03006644if (gRPC_INSTALL)
6645 install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets
6646 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
6647 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
6648 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
6649 )
6650endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03006651
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006652if (gRPC_BUILD_TESTS)
6653
6654add_executable(grpc_security_connector_test
6655 test/core/security/security_connector_test.c
6656)
6657
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006658
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006659target_include_directories(grpc_security_connector_test
6660 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6661 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6662 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6663 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006664 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006665 PRIVATE ${ZLIB_ROOT_DIR}
6666 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006667 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006668 PRIVATE ${CARES_INCLUDE_DIR}
6669 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6670 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006671 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6672)
6673
6674target_link_libraries(grpc_security_connector_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006675 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006676 grpc_test_util
6677 grpc
6678 gpr_test_util
6679 gpr
6680)
6681
6682endif (gRPC_BUILD_TESTS)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03006683
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006684add_executable(grpc_verify_jwt
6685 test/core/security/verify_jwt.c
6686)
6687
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006688
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006689target_include_directories(grpc_verify_jwt
6690 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6691 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6692 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6693 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006694 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006695 PRIVATE ${ZLIB_ROOT_DIR}
6696 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006697 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006698 PRIVATE ${CARES_INCLUDE_DIR}
6699 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6700 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006701 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006702)
6703
6704target_link_libraries(grpc_verify_jwt
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006705 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006706 grpc
6707 gpr
6708)
6709
6710
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03006711if (gRPC_INSTALL)
6712 install(TARGETS grpc_verify_jwt EXPORT gRPCTargets
6713 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
6714 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
6715 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
6716 )
6717endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03006718
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006719if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006720if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006721
6722add_executable(handshake_client
6723 test/core/handshake/client_ssl.c
6724)
6725
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006726
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006727target_include_directories(handshake_client
6728 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6729 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6730 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6731 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006732 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006733 PRIVATE ${ZLIB_ROOT_DIR}
6734 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006735 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006736 PRIVATE ${CARES_INCLUDE_DIR}
6737 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6738 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006739 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6740)
6741
6742target_link_libraries(handshake_client
6743 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006744 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006745 grpc_test_util
6746 grpc
6747 gpr_test_util
6748 gpr
6749)
6750
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006751endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006752endif (gRPC_BUILD_TESTS)
6753if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006754if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006755
6756add_executable(handshake_server
6757 test/core/handshake/server_ssl.c
6758)
6759
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006760
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006761target_include_directories(handshake_server
6762 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6763 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6764 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6765 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006766 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006767 PRIVATE ${ZLIB_ROOT_DIR}
6768 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006769 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006770 PRIVATE ${CARES_INCLUDE_DIR}
6771 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6772 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006773 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6774)
6775
6776target_link_libraries(handshake_server
6777 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006778 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006779 grpc_test_util
6780 grpc
6781 gpr_test_util
6782 gpr
6783)
6784
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006785endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006786endif (gRPC_BUILD_TESTS)
6787if (gRPC_BUILD_TESTS)
6788
6789add_executable(hpack_parser_test
6790 test/core/transport/chttp2/hpack_parser_test.c
6791)
6792
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006793
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006794target_include_directories(hpack_parser_test
6795 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6796 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6797 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6798 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006799 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006800 PRIVATE ${ZLIB_ROOT_DIR}
6801 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006802 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006803 PRIVATE ${CARES_INCLUDE_DIR}
6804 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6805 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006806 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6807)
6808
6809target_link_libraries(hpack_parser_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006810 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006811 grpc_test_util
6812 grpc
6813 gpr_test_util
6814 gpr
6815)
6816
6817endif (gRPC_BUILD_TESTS)
6818if (gRPC_BUILD_TESTS)
6819
6820add_executable(hpack_table_test
6821 test/core/transport/chttp2/hpack_table_test.c
6822)
6823
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006824
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006825target_include_directories(hpack_table_test
6826 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6827 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6828 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6829 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006830 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006831 PRIVATE ${ZLIB_ROOT_DIR}
6832 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006833 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006834 PRIVATE ${CARES_INCLUDE_DIR}
6835 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6836 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006837 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6838)
6839
6840target_link_libraries(hpack_table_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006841 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006842 grpc_test_util
6843 grpc
6844 gpr_test_util
6845 gpr
6846)
6847
6848endif (gRPC_BUILD_TESTS)
6849if (gRPC_BUILD_TESTS)
6850
6851add_executable(http_parser_test
6852 test/core/http/parser_test.c
6853)
6854
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006855
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006856target_include_directories(http_parser_test
6857 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6858 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6859 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6860 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006861 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006862 PRIVATE ${ZLIB_ROOT_DIR}
6863 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006864 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006865 PRIVATE ${CARES_INCLUDE_DIR}
6866 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6867 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006868 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6869)
6870
6871target_link_libraries(http_parser_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006872 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006873 grpc_test_util
6874 grpc
6875 gpr_test_util
6876 gpr
6877)
6878
6879endif (gRPC_BUILD_TESTS)
6880if (gRPC_BUILD_TESTS)
6881
6882add_executable(httpcli_format_request_test
6883 test/core/http/format_request_test.c
6884)
6885
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006886
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006887target_include_directories(httpcli_format_request_test
6888 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6889 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6890 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6891 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006892 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006893 PRIVATE ${ZLIB_ROOT_DIR}
6894 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006895 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006896 PRIVATE ${CARES_INCLUDE_DIR}
6897 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6898 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006899 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6900)
6901
6902target_link_libraries(httpcli_format_request_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006903 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006904 grpc_test_util
6905 grpc
6906 gpr_test_util
6907 gpr
6908)
6909
6910endif (gRPC_BUILD_TESTS)
6911if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006912if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006913
6914add_executable(httpcli_test
6915 test/core/http/httpcli_test.c
6916)
6917
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006918
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006919target_include_directories(httpcli_test
6920 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6921 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6922 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6923 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006924 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006925 PRIVATE ${ZLIB_ROOT_DIR}
6926 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006927 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006928 PRIVATE ${CARES_INCLUDE_DIR}
6929 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6930 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006931 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6932)
6933
6934target_link_libraries(httpcli_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006935 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006936 grpc_test_util
6937 grpc
6938 gpr_test_util
6939 gpr
6940)
6941
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006942endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006943endif (gRPC_BUILD_TESTS)
6944if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006945if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006946
6947add_executable(httpscli_test
6948 test/core/http/httpscli_test.c
6949)
6950
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006951
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006952target_include_directories(httpscli_test
6953 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6954 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6955 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6956 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006957 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006958 PRIVATE ${ZLIB_ROOT_DIR}
6959 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006960 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006961 PRIVATE ${CARES_INCLUDE_DIR}
6962 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6963 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006964 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6965)
6966
6967target_link_libraries(httpscli_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006968 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006969 grpc_test_util
6970 grpc
6971 gpr_test_util
6972 gpr
6973)
6974
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006975endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006976endif (gRPC_BUILD_TESTS)
6977if (gRPC_BUILD_TESTS)
6978
6979add_executable(init_test
6980 test/core/surface/init_test.c
6981)
6982
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006983
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006984target_include_directories(init_test
6985 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6986 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6987 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6988 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006989 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006990 PRIVATE ${ZLIB_ROOT_DIR}
6991 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006992 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006993 PRIVATE ${CARES_INCLUDE_DIR}
6994 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6995 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006996 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6997)
6998
6999target_link_libraries(init_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007000 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007001 grpc_test_util
7002 grpc
7003 gpr_test_util
7004 gpr
7005)
7006
7007endif (gRPC_BUILD_TESTS)
7008if (gRPC_BUILD_TESTS)
7009
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007010add_executable(invalid_call_argument_test
7011 test/core/end2end/invalid_call_argument_test.c
7012)
7013
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007014
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007015target_include_directories(invalid_call_argument_test
7016 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7017 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7018 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7019 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007020 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007021 PRIVATE ${ZLIB_ROOT_DIR}
7022 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007023 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007024 PRIVATE ${CARES_INCLUDE_DIR}
7025 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7026 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007027 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7028)
7029
7030target_link_libraries(invalid_call_argument_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007031 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007032 grpc_test_util
7033 grpc
7034 gpr_test_util
7035 gpr
7036)
7037
7038endif (gRPC_BUILD_TESTS)
7039if (gRPC_BUILD_TESTS)
7040
7041add_executable(json_rewrite
7042 test/core/json/json_rewrite.c
7043)
7044
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007045
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007046target_include_directories(json_rewrite
7047 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7048 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7049 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7050 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007051 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007052 PRIVATE ${ZLIB_ROOT_DIR}
7053 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007054 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007055 PRIVATE ${CARES_INCLUDE_DIR}
7056 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7057 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007058 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7059)
7060
7061target_link_libraries(json_rewrite
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007062 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007063 grpc
7064 gpr
7065)
7066
7067endif (gRPC_BUILD_TESTS)
7068if (gRPC_BUILD_TESTS)
7069
7070add_executable(json_rewrite_test
7071 test/core/json/json_rewrite_test.c
7072)
7073
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007074
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007075target_include_directories(json_rewrite_test
7076 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7077 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7078 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7079 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007080 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007081 PRIVATE ${ZLIB_ROOT_DIR}
7082 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007083 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007084 PRIVATE ${CARES_INCLUDE_DIR}
7085 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7086 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007087 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7088)
7089
7090target_link_libraries(json_rewrite_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007091 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007092 grpc_test_util
7093 grpc
7094 gpr_test_util
7095 gpr
7096)
7097
7098endif (gRPC_BUILD_TESTS)
7099if (gRPC_BUILD_TESTS)
7100
7101add_executable(json_stream_error_test
7102 test/core/json/json_stream_error_test.c
7103)
7104
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007105
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007106target_include_directories(json_stream_error_test
7107 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7108 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7109 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7110 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007111 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007112 PRIVATE ${ZLIB_ROOT_DIR}
7113 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007114 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007115 PRIVATE ${CARES_INCLUDE_DIR}
7116 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7117 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007118 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7119)
7120
7121target_link_libraries(json_stream_error_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007122 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007123 grpc_test_util
7124 grpc
7125 gpr_test_util
7126 gpr
7127)
7128
7129endif (gRPC_BUILD_TESTS)
7130if (gRPC_BUILD_TESTS)
7131
7132add_executable(json_test
7133 test/core/json/json_test.c
7134)
7135
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007136
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007137target_include_directories(json_test
7138 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7139 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7140 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7141 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007142 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007143 PRIVATE ${ZLIB_ROOT_DIR}
7144 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007145 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007146 PRIVATE ${CARES_INCLUDE_DIR}
7147 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7148 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007149 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7150)
7151
7152target_link_libraries(json_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007153 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007154 grpc_test_util
7155 grpc
7156 gpr_test_util
7157 gpr
7158)
7159
7160endif (gRPC_BUILD_TESTS)
7161if (gRPC_BUILD_TESTS)
7162
7163add_executable(lame_client_test
7164 test/core/surface/lame_client_test.c
7165)
7166
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007167
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007168target_include_directories(lame_client_test
7169 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7170 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7171 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7172 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007173 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007174 PRIVATE ${ZLIB_ROOT_DIR}
7175 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007176 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007177 PRIVATE ${CARES_INCLUDE_DIR}
7178 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7179 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007180 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7181)
7182
7183target_link_libraries(lame_client_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007184 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007185 grpc_test_util
7186 grpc
7187 gpr_test_util
7188 gpr
7189)
7190
7191endif (gRPC_BUILD_TESTS)
7192if (gRPC_BUILD_TESTS)
7193
7194add_executable(lb_policies_test
7195 test/core/client_channel/lb_policies_test.c
7196)
7197
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007198
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007199target_include_directories(lb_policies_test
7200 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7201 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7202 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7203 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007204 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007205 PRIVATE ${ZLIB_ROOT_DIR}
7206 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007207 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007208 PRIVATE ${CARES_INCLUDE_DIR}
7209 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7210 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007211 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7212)
7213
7214target_link_libraries(lb_policies_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007215 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007216 grpc_test_util
7217 grpc
7218 gpr_test_util
7219 gpr
7220)
7221
7222endif (gRPC_BUILD_TESTS)
7223if (gRPC_BUILD_TESTS)
7224
7225add_executable(load_file_test
7226 test/core/iomgr/load_file_test.c
7227)
7228
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007229
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007230target_include_directories(load_file_test
7231 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7232 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7233 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7234 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007235 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007236 PRIVATE ${ZLIB_ROOT_DIR}
7237 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007238 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007239 PRIVATE ${CARES_INCLUDE_DIR}
7240 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7241 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007242 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7243)
7244
7245target_link_libraries(load_file_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007246 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007247 grpc_test_util
7248 grpc
7249 gpr_test_util
7250 gpr
7251)
7252
7253endif (gRPC_BUILD_TESTS)
7254if (gRPC_BUILD_TESTS)
7255
7256add_executable(memory_profile_client
7257 test/core/memory_usage/client.c
7258)
7259
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007260
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007261target_include_directories(memory_profile_client
7262 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7263 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7264 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7265 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007266 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007267 PRIVATE ${ZLIB_ROOT_DIR}
7268 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007269 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007270 PRIVATE ${CARES_INCLUDE_DIR}
7271 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7272 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007273 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7274)
7275
7276target_link_libraries(memory_profile_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007277 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007278 grpc_test_util
7279 grpc
7280 gpr_test_util
7281 gpr
7282)
7283
7284endif (gRPC_BUILD_TESTS)
7285if (gRPC_BUILD_TESTS)
7286
7287add_executable(memory_profile_server
7288 test/core/memory_usage/server.c
7289)
7290
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007291
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007292target_include_directories(memory_profile_server
7293 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7294 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7295 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7296 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007297 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007298 PRIVATE ${ZLIB_ROOT_DIR}
7299 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007300 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007301 PRIVATE ${CARES_INCLUDE_DIR}
7302 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7303 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007304 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7305)
7306
7307target_link_libraries(memory_profile_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007308 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007309 grpc_test_util
7310 grpc
7311 gpr_test_util
7312 gpr
7313)
7314
7315endif (gRPC_BUILD_TESTS)
7316if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007317if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007318
7319add_executable(memory_profile_test
7320 test/core/memory_usage/memory_usage_test.c
7321)
7322
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007323
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007324target_include_directories(memory_profile_test
7325 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7326 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7327 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7328 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007329 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007330 PRIVATE ${ZLIB_ROOT_DIR}
7331 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007332 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007333 PRIVATE ${CARES_INCLUDE_DIR}
7334 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7335 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007336 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7337)
7338
7339target_link_libraries(memory_profile_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007340 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007341 grpc_test_util
7342 grpc
7343 gpr_test_util
7344 gpr
7345)
7346
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007347endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007348endif (gRPC_BUILD_TESTS)
7349if (gRPC_BUILD_TESTS)
7350
7351add_executable(message_compress_test
7352 test/core/compression/message_compress_test.c
7353)
7354
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007355
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007356target_include_directories(message_compress_test
7357 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7358 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7359 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7360 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007361 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007362 PRIVATE ${ZLIB_ROOT_DIR}
7363 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007364 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007365 PRIVATE ${CARES_INCLUDE_DIR}
7366 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7367 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007368 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7369)
7370
7371target_link_libraries(message_compress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007372 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007373 grpc_test_util
7374 grpc
7375 gpr_test_util
7376 gpr
7377)
7378
7379endif (gRPC_BUILD_TESTS)
7380if (gRPC_BUILD_TESTS)
7381
7382add_executable(mlog_test
7383 test/core/census/mlog_test.c
7384)
7385
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007386
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007387target_include_directories(mlog_test
7388 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7389 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7390 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7391 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007392 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007393 PRIVATE ${ZLIB_ROOT_DIR}
7394 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007395 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007396 PRIVATE ${CARES_INCLUDE_DIR}
7397 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7398 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007399 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7400)
7401
7402target_link_libraries(mlog_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007403 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007404 grpc_test_util
7405 grpc
7406 gpr_test_util
7407 gpr
7408)
7409
7410endif (gRPC_BUILD_TESTS)
7411if (gRPC_BUILD_TESTS)
7412
7413add_executable(multiple_server_queues_test
7414 test/core/end2end/multiple_server_queues_test.c
7415)
7416
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007417
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007418target_include_directories(multiple_server_queues_test
7419 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7420 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7421 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7422 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007423 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007424 PRIVATE ${ZLIB_ROOT_DIR}
7425 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007426 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007427 PRIVATE ${CARES_INCLUDE_DIR}
7428 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7429 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007430 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7431)
7432
7433target_link_libraries(multiple_server_queues_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007434 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007435 grpc_test_util
7436 grpc
7437 gpr_test_util
7438 gpr
7439)
7440
7441endif (gRPC_BUILD_TESTS)
7442if (gRPC_BUILD_TESTS)
7443
7444add_executable(murmur_hash_test
7445 test/core/support/murmur_hash_test.c
7446)
7447
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007448
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007449target_include_directories(murmur_hash_test
7450 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7451 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7452 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7453 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007454 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007455 PRIVATE ${ZLIB_ROOT_DIR}
7456 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007457 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007458 PRIVATE ${CARES_INCLUDE_DIR}
7459 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7460 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007461 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7462)
7463
7464target_link_libraries(murmur_hash_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007465 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007466 gpr_test_util
7467 gpr
7468)
7469
7470endif (gRPC_BUILD_TESTS)
7471if (gRPC_BUILD_TESTS)
7472
7473add_executable(no_server_test
7474 test/core/end2end/no_server_test.c
7475)
7476
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007477
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007478target_include_directories(no_server_test
7479 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7480 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7481 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7482 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007483 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007484 PRIVATE ${ZLIB_ROOT_DIR}
7485 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007486 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007487 PRIVATE ${CARES_INCLUDE_DIR}
7488 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7489 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007490 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7491)
7492
7493target_link_libraries(no_server_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007494 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007495 grpc_test_util
7496 grpc
7497 gpr_test_util
7498 gpr
7499)
7500
7501endif (gRPC_BUILD_TESTS)
7502if (gRPC_BUILD_TESTS)
7503
Yuchen Zenga9d8a152017-02-15 15:27:44 -08007504add_executable(parse_address_test
7505 test/core/client_channel/parse_address_test.c
7506)
7507
David Garcia Quintas8a0ec882017-03-03 16:53:54 -08007508
Yuchen Zenga9d8a152017-02-15 15:27:44 -08007509target_include_directories(parse_address_test
7510 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7511 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7512 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7513 PRIVATE ${PROTOBUF_ROOT_DIR}/src
David Garcia Quintas8a0ec882017-03-03 16:53:54 -08007514 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Yuchen Zenga9d8a152017-02-15 15:27:44 -08007515 PRIVATE ${ZLIB_ROOT_DIR}
7516 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007517 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007518 PRIVATE ${CARES_INCLUDE_DIR}
7519 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7520 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Yuchen Zenga9d8a152017-02-15 15:27:44 -08007521 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7522)
7523
7524target_link_libraries(parse_address_test
David Garcia Quintas8a0ec882017-03-03 16:53:54 -08007525 ${_gRPC_ALLTARGETS_LIBRARIES}
Yuchen Zenga9d8a152017-02-15 15:27:44 -08007526 grpc_test_util
7527 grpc
7528 gpr_test_util
7529 gpr
7530)
7531
7532endif (gRPC_BUILD_TESTS)
7533if (gRPC_BUILD_TESTS)
7534
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007535add_executable(percent_encoding_test
7536 test/core/slice/percent_encoding_test.c
7537)
7538
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007539
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007540target_include_directories(percent_encoding_test
7541 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7542 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7543 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7544 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007545 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007546 PRIVATE ${ZLIB_ROOT_DIR}
7547 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007548 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007549 PRIVATE ${CARES_INCLUDE_DIR}
7550 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7551 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007552 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7553)
7554
7555target_link_libraries(percent_encoding_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007556 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007557 grpc_test_util
7558 grpc
7559 gpr_test_util
7560 gpr
7561)
7562
7563endif (gRPC_BUILD_TESTS)
7564if (gRPC_BUILD_TESTS)
Sree Kuchibhotla66131682017-02-02 09:39:07 -08007565if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007566
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08007567add_executable(pollset_set_test
7568 test/core/iomgr/pollset_set_test.c
7569)
7570
Sree Kuchibhotla66131682017-02-02 09:39:07 -08007571
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08007572target_include_directories(pollset_set_test
7573 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7574 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7575 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7576 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Sree Kuchibhotla66131682017-02-02 09:39:07 -08007577 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08007578 PRIVATE ${ZLIB_ROOT_DIR}
7579 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007580 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007581 PRIVATE ${CARES_INCLUDE_DIR}
7582 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7583 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08007584 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7585)
7586
7587target_link_libraries(pollset_set_test
Sree Kuchibhotla66131682017-02-02 09:39:07 -08007588 ${_gRPC_ALLTARGETS_LIBRARIES}
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08007589 grpc_test_util
7590 grpc
7591 gpr_test_util
7592 gpr
7593)
7594
Sree Kuchibhotla66131682017-02-02 09:39:07 -08007595endif()
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08007596endif (gRPC_BUILD_TESTS)
7597if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007598if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007599
Stanley Cheung16952182017-01-27 20:09:31 -08007600add_executable(resolve_address_posix_test
7601 test/core/iomgr/resolve_address_posix_test.c
7602)
7603
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007604
Stanley Cheung16952182017-01-27 20:09:31 -08007605target_include_directories(resolve_address_posix_test
7606 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7607 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7608 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7609 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007610 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Stanley Cheung16952182017-01-27 20:09:31 -08007611 PRIVATE ${ZLIB_ROOT_DIR}
7612 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007613 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007614 PRIVATE ${CARES_INCLUDE_DIR}
7615 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7616 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Stanley Cheung16952182017-01-27 20:09:31 -08007617 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7618)
7619
7620target_link_libraries(resolve_address_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007621 ${_gRPC_ALLTARGETS_LIBRARIES}
Stanley Cheung16952182017-01-27 20:09:31 -08007622 grpc_test_util
7623 grpc
7624 gpr_test_util
7625 gpr
7626)
7627
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007628endif()
Stanley Cheung16952182017-01-27 20:09:31 -08007629endif (gRPC_BUILD_TESTS)
7630if (gRPC_BUILD_TESTS)
7631
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007632add_executable(resolve_address_test
7633 test/core/iomgr/resolve_address_test.c
7634)
7635
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007636
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007637target_include_directories(resolve_address_test
7638 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7639 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7640 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7641 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007642 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007643 PRIVATE ${ZLIB_ROOT_DIR}
7644 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007645 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007646 PRIVATE ${CARES_INCLUDE_DIR}
7647 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7648 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007649 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7650)
7651
7652target_link_libraries(resolve_address_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007653 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007654 grpc_test_util
7655 grpc
7656 gpr_test_util
7657 gpr
7658)
7659
7660endif (gRPC_BUILD_TESTS)
7661if (gRPC_BUILD_TESTS)
7662
7663add_executable(resource_quota_test
7664 test/core/iomgr/resource_quota_test.c
7665)
7666
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007667
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007668target_include_directories(resource_quota_test
7669 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7670 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7671 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7672 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007673 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007674 PRIVATE ${ZLIB_ROOT_DIR}
7675 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007676 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007677 PRIVATE ${CARES_INCLUDE_DIR}
7678 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7679 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007680 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7681)
7682
7683target_link_libraries(resource_quota_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007684 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007685 grpc_test_util
7686 grpc
7687 gpr_test_util
7688 gpr
7689)
7690
7691endif (gRPC_BUILD_TESTS)
7692if (gRPC_BUILD_TESTS)
7693
7694add_executable(secure_channel_create_test
7695 test/core/surface/secure_channel_create_test.c
7696)
7697
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007698
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007699target_include_directories(secure_channel_create_test
7700 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7701 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7702 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7703 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007704 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007705 PRIVATE ${ZLIB_ROOT_DIR}
7706 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007707 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007708 PRIVATE ${CARES_INCLUDE_DIR}
7709 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7710 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007711 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7712)
7713
7714target_link_libraries(secure_channel_create_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007715 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007716 grpc_test_util
7717 grpc
7718 gpr_test_util
7719 gpr
7720)
7721
7722endif (gRPC_BUILD_TESTS)
7723if (gRPC_BUILD_TESTS)
7724
7725add_executable(secure_endpoint_test
7726 test/core/security/secure_endpoint_test.c
7727)
7728
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007729
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007730target_include_directories(secure_endpoint_test
7731 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7732 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7733 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7734 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007735 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007736 PRIVATE ${ZLIB_ROOT_DIR}
7737 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007738 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007739 PRIVATE ${CARES_INCLUDE_DIR}
7740 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7741 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007742 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7743)
7744
7745target_link_libraries(secure_endpoint_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007746 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007747 grpc_test_util
7748 grpc
7749 gpr_test_util
7750 gpr
7751)
7752
7753endif (gRPC_BUILD_TESTS)
7754if (gRPC_BUILD_TESTS)
7755
7756add_executable(sequential_connectivity_test
7757 test/core/surface/sequential_connectivity_test.c
7758)
7759
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007760
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007761target_include_directories(sequential_connectivity_test
7762 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7763 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7764 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7765 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007766 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007767 PRIVATE ${ZLIB_ROOT_DIR}
7768 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007769 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007770 PRIVATE ${CARES_INCLUDE_DIR}
7771 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7772 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007773 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7774)
7775
7776target_link_libraries(sequential_connectivity_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007777 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007778 grpc_test_util
7779 grpc
7780 gpr_test_util
7781 gpr
7782)
7783
7784endif (gRPC_BUILD_TESTS)
7785if (gRPC_BUILD_TESTS)
7786
7787add_executable(server_chttp2_test
7788 test/core/surface/server_chttp2_test.c
7789)
7790
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007791
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007792target_include_directories(server_chttp2_test
7793 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7794 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7795 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7796 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007797 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007798 PRIVATE ${ZLIB_ROOT_DIR}
7799 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007800 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007801 PRIVATE ${CARES_INCLUDE_DIR}
7802 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7803 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007804 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7805)
7806
7807target_link_libraries(server_chttp2_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007808 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007809 grpc_test_util
7810 grpc
7811 gpr_test_util
7812 gpr
7813)
7814
7815endif (gRPC_BUILD_TESTS)
7816if (gRPC_BUILD_TESTS)
7817
7818add_executable(server_test
7819 test/core/surface/server_test.c
7820)
7821
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007822
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007823target_include_directories(server_test
7824 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7825 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7826 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7827 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007828 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007829 PRIVATE ${ZLIB_ROOT_DIR}
7830 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007831 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007832 PRIVATE ${CARES_INCLUDE_DIR}
7833 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7834 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007835 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7836)
7837
7838target_link_libraries(server_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007839 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007840 grpc_test_util
7841 grpc
7842 gpr_test_util
7843 gpr
7844)
7845
7846endif (gRPC_BUILD_TESTS)
7847if (gRPC_BUILD_TESTS)
7848
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007849add_executable(slice_buffer_test
7850 test/core/slice/slice_buffer_test.c
7851)
7852
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007853
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007854target_include_directories(slice_buffer_test
7855 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7856 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7857 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7858 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007859 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007860 PRIVATE ${ZLIB_ROOT_DIR}
7861 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007862 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007863 PRIVATE ${CARES_INCLUDE_DIR}
7864 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7865 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007866 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7867)
7868
7869target_link_libraries(slice_buffer_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007870 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007871 grpc_test_util
7872 grpc
7873 gpr_test_util
7874 gpr
7875)
7876
7877endif (gRPC_BUILD_TESTS)
7878if (gRPC_BUILD_TESTS)
7879
7880add_executable(slice_string_helpers_test
7881 test/core/slice/slice_string_helpers_test.c
7882)
7883
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007884
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007885target_include_directories(slice_string_helpers_test
7886 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7887 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7888 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7889 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007890 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007891 PRIVATE ${ZLIB_ROOT_DIR}
7892 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007893 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007894 PRIVATE ${CARES_INCLUDE_DIR}
7895 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7896 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007897 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7898)
7899
7900target_link_libraries(slice_string_helpers_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007901 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007902 grpc_test_util
7903 grpc
7904 gpr_test_util
7905 gpr
7906)
7907
7908endif (gRPC_BUILD_TESTS)
7909if (gRPC_BUILD_TESTS)
7910
7911add_executable(slice_test
7912 test/core/slice/slice_test.c
7913)
7914
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007915
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007916target_include_directories(slice_test
7917 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7918 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7919 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7920 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007921 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007922 PRIVATE ${ZLIB_ROOT_DIR}
7923 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007924 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007925 PRIVATE ${CARES_INCLUDE_DIR}
7926 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7927 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007928 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7929)
7930
7931target_link_libraries(slice_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007932 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007933 grpc_test_util
7934 grpc
7935 gpr_test_util
7936 gpr
7937)
7938
7939endif (gRPC_BUILD_TESTS)
7940if (gRPC_BUILD_TESTS)
7941
7942add_executable(sockaddr_resolver_test
7943 test/core/client_channel/resolvers/sockaddr_resolver_test.c
7944)
7945
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007946
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007947target_include_directories(sockaddr_resolver_test
7948 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7949 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7950 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7951 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007952 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007953 PRIVATE ${ZLIB_ROOT_DIR}
7954 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007955 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007956 PRIVATE ${CARES_INCLUDE_DIR}
7957 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7958 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007959 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7960)
7961
7962target_link_libraries(sockaddr_resolver_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007963 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007964 grpc_test_util
7965 grpc
7966 gpr_test_util
7967 gpr
7968)
7969
7970endif (gRPC_BUILD_TESTS)
7971if (gRPC_BUILD_TESTS)
7972
7973add_executable(sockaddr_utils_test
7974 test/core/iomgr/sockaddr_utils_test.c
7975)
7976
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007977
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007978target_include_directories(sockaddr_utils_test
7979 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7980 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7981 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7982 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007983 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007984 PRIVATE ${ZLIB_ROOT_DIR}
7985 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007986 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007987 PRIVATE ${CARES_INCLUDE_DIR}
7988 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7989 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007990 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7991)
7992
7993target_link_libraries(sockaddr_utils_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007994 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007995 grpc_test_util
7996 grpc
7997 gpr_test_util
7998 gpr
7999)
8000
8001endif (gRPC_BUILD_TESTS)
8002if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008003if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008004
8005add_executable(socket_utils_test
8006 test/core/iomgr/socket_utils_test.c
8007)
8008
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008009
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008010target_include_directories(socket_utils_test
8011 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8012 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8013 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8014 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008015 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008016 PRIVATE ${ZLIB_ROOT_DIR}
8017 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008018 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008019 PRIVATE ${CARES_INCLUDE_DIR}
8020 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8021 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008022 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8023)
8024
8025target_link_libraries(socket_utils_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008026 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008027 grpc_test_util
8028 grpc
8029 gpr_test_util
8030 gpr
8031)
8032
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008033endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008034endif (gRPC_BUILD_TESTS)
8035if (gRPC_BUILD_TESTS)
8036
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008037add_executable(status_conversion_test
8038 test/core/transport/status_conversion_test.c
8039)
8040
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008041
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008042target_include_directories(status_conversion_test
8043 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8044 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8045 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8046 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008047 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008048 PRIVATE ${ZLIB_ROOT_DIR}
8049 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008050 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008051 PRIVATE ${CARES_INCLUDE_DIR}
8052 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8053 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008054 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8055)
8056
8057target_link_libraries(status_conversion_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008058 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008059 grpc_test_util
8060 grpc
8061 gpr_test_util
8062 gpr
8063)
8064
8065endif (gRPC_BUILD_TESTS)
8066if (gRPC_BUILD_TESTS)
Craig Tiller295df6d2017-03-01 11:28:24 -08008067
8068add_executable(stream_owned_slice_test
8069 test/core/transport/stream_owned_slice_test.c
8070)
8071
8072
8073target_include_directories(stream_owned_slice_test
8074 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8075 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8076 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8077 PRIVATE ${PROTOBUF_ROOT_DIR}/src
8078 PRIVATE ${BENCHMARK_ROOT_DIR}/include
8079 PRIVATE ${ZLIB_ROOT_DIR}
8080 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008081 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008082 PRIVATE ${CARES_INCLUDE_DIR}
8083 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8084 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller295df6d2017-03-01 11:28:24 -08008085 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8086)
8087
8088target_link_libraries(stream_owned_slice_test
8089 ${_gRPC_ALLTARGETS_LIBRARIES}
8090 grpc_test_util
8091 grpc
8092 gpr_test_util
8093 gpr
8094)
8095
8096endif (gRPC_BUILD_TESTS)
8097if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008098if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008099
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008100add_executable(tcp_client_posix_test
8101 test/core/iomgr/tcp_client_posix_test.c
8102)
8103
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008104
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008105target_include_directories(tcp_client_posix_test
8106 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8107 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8108 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8109 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008110 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008111 PRIVATE ${ZLIB_ROOT_DIR}
8112 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008113 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008114 PRIVATE ${CARES_INCLUDE_DIR}
8115 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8116 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008117 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8118)
8119
8120target_link_libraries(tcp_client_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008121 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008122 grpc_test_util
8123 grpc
8124 gpr_test_util
8125 gpr
8126)
8127
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008128endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008129endif (gRPC_BUILD_TESTS)
8130if (gRPC_BUILD_TESTS)
8131
murgatroid991191b722017-02-08 11:56:52 -08008132add_executable(tcp_client_uv_test
8133 test/core/iomgr/tcp_client_uv_test.c
8134)
8135
murgatroid9998cdf3b2017-02-23 14:59:45 -08008136
murgatroid991191b722017-02-08 11:56:52 -08008137target_include_directories(tcp_client_uv_test
8138 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8139 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8140 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8141 PRIVATE ${PROTOBUF_ROOT_DIR}/src
murgatroid9998cdf3b2017-02-23 14:59:45 -08008142 PRIVATE ${BENCHMARK_ROOT_DIR}/include
murgatroid991191b722017-02-08 11:56:52 -08008143 PRIVATE ${ZLIB_ROOT_DIR}
8144 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008145 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008146 PRIVATE ${CARES_INCLUDE_DIR}
8147 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8148 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
murgatroid991191b722017-02-08 11:56:52 -08008149 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8150)
8151
8152target_link_libraries(tcp_client_uv_test
murgatroid9998cdf3b2017-02-23 14:59:45 -08008153 ${_gRPC_ALLTARGETS_LIBRARIES}
murgatroid991191b722017-02-08 11:56:52 -08008154 grpc_test_util
8155 grpc
8156 gpr_test_util
8157 gpr
8158)
8159
8160endif (gRPC_BUILD_TESTS)
8161if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008162if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008163
8164add_executable(tcp_posix_test
8165 test/core/iomgr/tcp_posix_test.c
8166)
8167
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008168
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008169target_include_directories(tcp_posix_test
8170 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8171 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8172 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8173 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008174 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008175 PRIVATE ${ZLIB_ROOT_DIR}
8176 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008177 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008178 PRIVATE ${CARES_INCLUDE_DIR}
8179 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8180 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008181 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8182)
8183
8184target_link_libraries(tcp_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008185 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008186 grpc_test_util
8187 grpc
8188 gpr_test_util
8189 gpr
8190)
8191
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008192endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008193endif (gRPC_BUILD_TESTS)
8194if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008195if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008196
8197add_executable(tcp_server_posix_test
8198 test/core/iomgr/tcp_server_posix_test.c
8199)
8200
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008201
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008202target_include_directories(tcp_server_posix_test
8203 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8204 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8205 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8206 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008207 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008208 PRIVATE ${ZLIB_ROOT_DIR}
8209 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008210 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008211 PRIVATE ${CARES_INCLUDE_DIR}
8212 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8213 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008214 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8215)
8216
8217target_link_libraries(tcp_server_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008218 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008219 grpc_test_util
8220 grpc
8221 gpr_test_util
8222 gpr
8223)
8224
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008225endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008226endif (gRPC_BUILD_TESTS)
8227if (gRPC_BUILD_TESTS)
8228
murgatroid991191b722017-02-08 11:56:52 -08008229add_executable(tcp_server_uv_test
8230 test/core/iomgr/tcp_server_uv_test.c
8231)
8232
murgatroid9998cdf3b2017-02-23 14:59:45 -08008233
murgatroid991191b722017-02-08 11:56:52 -08008234target_include_directories(tcp_server_uv_test
8235 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8236 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8237 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8238 PRIVATE ${PROTOBUF_ROOT_DIR}/src
murgatroid9998cdf3b2017-02-23 14:59:45 -08008239 PRIVATE ${BENCHMARK_ROOT_DIR}/include
murgatroid991191b722017-02-08 11:56:52 -08008240 PRIVATE ${ZLIB_ROOT_DIR}
8241 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008242 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008243 PRIVATE ${CARES_INCLUDE_DIR}
8244 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8245 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
murgatroid991191b722017-02-08 11:56:52 -08008246 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8247)
8248
8249target_link_libraries(tcp_server_uv_test
murgatroid9998cdf3b2017-02-23 14:59:45 -08008250 ${_gRPC_ALLTARGETS_LIBRARIES}
murgatroid991191b722017-02-08 11:56:52 -08008251 grpc_test_util
8252 grpc
8253 gpr_test_util
8254 gpr
8255)
8256
8257endif (gRPC_BUILD_TESTS)
8258if (gRPC_BUILD_TESTS)
8259
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008260add_executable(time_averaged_stats_test
8261 test/core/iomgr/time_averaged_stats_test.c
8262)
8263
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008264
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008265target_include_directories(time_averaged_stats_test
8266 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8267 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8268 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8269 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008270 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008271 PRIVATE ${ZLIB_ROOT_DIR}
8272 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008273 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008274 PRIVATE ${CARES_INCLUDE_DIR}
8275 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8276 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008277 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8278)
8279
8280target_link_libraries(time_averaged_stats_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008281 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008282 grpc_test_util
8283 grpc
8284 gpr_test_util
8285 gpr
8286)
8287
8288endif (gRPC_BUILD_TESTS)
8289if (gRPC_BUILD_TESTS)
8290
8291add_executable(timeout_encoding_test
8292 test/core/transport/timeout_encoding_test.c
8293)
8294
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008295
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008296target_include_directories(timeout_encoding_test
8297 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8298 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8299 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8300 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008301 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008302 PRIVATE ${ZLIB_ROOT_DIR}
8303 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008304 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008305 PRIVATE ${CARES_INCLUDE_DIR}
8306 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8307 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008308 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8309)
8310
8311target_link_libraries(timeout_encoding_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008312 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008313 grpc_test_util
8314 grpc
8315 gpr_test_util
8316 gpr
8317)
8318
8319endif (gRPC_BUILD_TESTS)
8320if (gRPC_BUILD_TESTS)
8321
8322add_executable(timer_heap_test
8323 test/core/iomgr/timer_heap_test.c
8324)
8325
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008326
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008327target_include_directories(timer_heap_test
8328 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8329 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8330 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8331 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008332 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008333 PRIVATE ${ZLIB_ROOT_DIR}
8334 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008335 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008336 PRIVATE ${CARES_INCLUDE_DIR}
8337 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8338 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008339 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8340)
8341
8342target_link_libraries(timer_heap_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008343 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008344 grpc_test_util
8345 grpc
8346 gpr_test_util
8347 gpr
8348)
8349
8350endif (gRPC_BUILD_TESTS)
8351if (gRPC_BUILD_TESTS)
8352
8353add_executable(timer_list_test
8354 test/core/iomgr/timer_list_test.c
8355)
8356
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008357
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008358target_include_directories(timer_list_test
8359 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8360 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8361 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8362 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008363 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008364 PRIVATE ${ZLIB_ROOT_DIR}
8365 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008366 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008367 PRIVATE ${CARES_INCLUDE_DIR}
8368 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8369 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008370 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8371)
8372
8373target_link_libraries(timer_list_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008374 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008375 grpc_test_util
8376 grpc
8377 gpr_test_util
8378 gpr
8379)
8380
8381endif (gRPC_BUILD_TESTS)
8382if (gRPC_BUILD_TESTS)
8383
8384add_executable(transport_connectivity_state_test
8385 test/core/transport/connectivity_state_test.c
8386)
8387
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008388
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008389target_include_directories(transport_connectivity_state_test
8390 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8391 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8392 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8393 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008394 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008395 PRIVATE ${ZLIB_ROOT_DIR}
8396 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008397 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008398 PRIVATE ${CARES_INCLUDE_DIR}
8399 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8400 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008401 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8402)
8403
8404target_link_libraries(transport_connectivity_state_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008405 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008406 grpc_test_util
8407 grpc
8408 gpr_test_util
8409 gpr
8410)
8411
8412endif (gRPC_BUILD_TESTS)
8413if (gRPC_BUILD_TESTS)
8414
8415add_executable(transport_metadata_test
8416 test/core/transport/metadata_test.c
8417)
8418
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008419
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008420target_include_directories(transport_metadata_test
8421 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8422 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8423 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8424 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008425 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008426 PRIVATE ${ZLIB_ROOT_DIR}
8427 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008428 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008429 PRIVATE ${CARES_INCLUDE_DIR}
8430 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8431 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008432 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8433)
8434
8435target_link_libraries(transport_metadata_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008436 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008437 grpc_test_util
8438 grpc
8439 gpr_test_util
8440 gpr
8441)
8442
8443endif (gRPC_BUILD_TESTS)
8444if (gRPC_BUILD_TESTS)
8445
8446add_executable(transport_pid_controller_test
8447 test/core/transport/pid_controller_test.c
8448)
8449
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008450
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008451target_include_directories(transport_pid_controller_test
8452 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8453 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8454 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8455 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008456 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008457 PRIVATE ${ZLIB_ROOT_DIR}
8458 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008459 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008460 PRIVATE ${CARES_INCLUDE_DIR}
8461 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8462 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008463 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8464)
8465
8466target_link_libraries(transport_pid_controller_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008467 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008468 grpc_test_util
8469 grpc
8470 gpr_test_util
8471 gpr
8472)
8473
8474endif (gRPC_BUILD_TESTS)
8475if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008476if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008477
8478add_executable(transport_security_test
8479 test/core/tsi/transport_security_test.c
8480)
8481
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008482
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008483target_include_directories(transport_security_test
8484 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8485 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8486 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8487 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008488 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008489 PRIVATE ${ZLIB_ROOT_DIR}
8490 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008491 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008492 PRIVATE ${CARES_INCLUDE_DIR}
8493 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8494 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008495 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8496)
8497
8498target_link_libraries(transport_security_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008499 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008500 grpc_test_util
8501 grpc
8502 gpr_test_util
8503 gpr
8504)
8505
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008506endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008507endif (gRPC_BUILD_TESTS)
8508if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008509if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008510
8511add_executable(udp_server_test
8512 test/core/iomgr/udp_server_test.c
8513)
8514
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008515
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008516target_include_directories(udp_server_test
8517 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8518 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8519 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8520 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008521 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008522 PRIVATE ${ZLIB_ROOT_DIR}
8523 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008524 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008525 PRIVATE ${CARES_INCLUDE_DIR}
8526 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8527 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008528 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8529)
8530
8531target_link_libraries(udp_server_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008532 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008533 grpc_test_util
8534 grpc
8535 gpr_test_util
8536 gpr
8537)
8538
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008539endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008540endif (gRPC_BUILD_TESTS)
8541if (gRPC_BUILD_TESTS)
8542
8543add_executable(uri_parser_test
8544 test/core/client_channel/uri_parser_test.c
8545)
8546
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008547
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008548target_include_directories(uri_parser_test
8549 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8550 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8551 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8552 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008553 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008554 PRIVATE ${ZLIB_ROOT_DIR}
8555 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008556 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008557 PRIVATE ${CARES_INCLUDE_DIR}
8558 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8559 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008560 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8561)
8562
8563target_link_libraries(uri_parser_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008564 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008565 grpc_test_util
8566 grpc
8567 gpr_test_util
8568 gpr
8569)
8570
8571endif (gRPC_BUILD_TESTS)
8572if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008573if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008574
8575add_executable(wakeup_fd_cv_test
8576 test/core/iomgr/wakeup_fd_cv_test.c
8577)
8578
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008579
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008580target_include_directories(wakeup_fd_cv_test
8581 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8582 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8583 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8584 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008585 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008586 PRIVATE ${ZLIB_ROOT_DIR}
8587 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008588 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008589 PRIVATE ${CARES_INCLUDE_DIR}
8590 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8591 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008592 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8593)
8594
8595target_link_libraries(wakeup_fd_cv_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008596 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008597 grpc_test_util
8598 grpc
8599 gpr_test_util
8600 gpr
8601)
8602
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008603endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008604endif (gRPC_BUILD_TESTS)
8605if (gRPC_BUILD_TESTS)
8606
8607add_executable(alarm_cpp_test
8608 test/cpp/common/alarm_cpp_test.cc
8609 third_party/googletest/src/gtest-all.cc
8610)
8611
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008612
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008613target_include_directories(alarm_cpp_test
8614 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8615 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8616 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8617 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008618 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008619 PRIVATE ${ZLIB_ROOT_DIR}
8620 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008621 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008622 PRIVATE ${CARES_INCLUDE_DIR}
8623 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8624 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008625 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8626 PRIVATE third_party/googletest/include
8627 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008628 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008629)
8630
8631target_link_libraries(alarm_cpp_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008632 ${_gRPC_PROTOBUF_LIBRARIES}
8633 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008634 grpc++_test_util
8635 grpc_test_util
8636 grpc++
8637 grpc
8638 gpr_test_util
8639 gpr
8640 ${_gRPC_GFLAGS_LIBRARIES}
8641)
8642
8643endif (gRPC_BUILD_TESTS)
8644if (gRPC_BUILD_TESTS)
8645
8646add_executable(async_end2end_test
8647 test/cpp/end2end/async_end2end_test.cc
8648 third_party/googletest/src/gtest-all.cc
8649)
8650
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008651
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008652target_include_directories(async_end2end_test
8653 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8654 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8655 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8656 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008657 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008658 PRIVATE ${ZLIB_ROOT_DIR}
8659 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008660 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008661 PRIVATE ${CARES_INCLUDE_DIR}
8662 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8663 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008664 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8665 PRIVATE third_party/googletest/include
8666 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008667 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008668)
8669
8670target_link_libraries(async_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008671 ${_gRPC_PROTOBUF_LIBRARIES}
8672 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008673 grpc++_test_util
8674 grpc_test_util
8675 grpc++
8676 grpc
8677 gpr_test_util
8678 gpr
8679 ${_gRPC_GFLAGS_LIBRARIES}
8680)
8681
8682endif (gRPC_BUILD_TESTS)
8683if (gRPC_BUILD_TESTS)
8684
8685add_executable(auth_property_iterator_test
8686 test/cpp/common/auth_property_iterator_test.cc
8687 third_party/googletest/src/gtest-all.cc
8688)
8689
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008690
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008691target_include_directories(auth_property_iterator_test
8692 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8693 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8694 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8695 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008696 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008697 PRIVATE ${ZLIB_ROOT_DIR}
8698 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008699 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008700 PRIVATE ${CARES_INCLUDE_DIR}
8701 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8702 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008703 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8704 PRIVATE third_party/googletest/include
8705 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008706 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008707)
8708
8709target_link_libraries(auth_property_iterator_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008710 ${_gRPC_PROTOBUF_LIBRARIES}
8711 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008712 grpc++_test_util
8713 grpc_test_util
8714 grpc++
8715 grpc
8716 gpr_test_util
8717 gpr
8718 ${_gRPC_GFLAGS_LIBRARIES}
8719)
8720
8721endif (gRPC_BUILD_TESTS)
8722if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008723if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008724
Craig Tiller9202b3f2017-03-12 22:30:38 -07008725add_executable(bm_arena
8726 test/cpp/microbenchmarks/bm_arena.cc
8727 third_party/googletest/src/gtest-all.cc
8728)
8729
8730
8731target_include_directories(bm_arena
8732 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8733 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8734 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8735 PRIVATE ${PROTOBUF_ROOT_DIR}/src
8736 PRIVATE ${BENCHMARK_ROOT_DIR}/include
8737 PRIVATE ${ZLIB_ROOT_DIR}
8738 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008739 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008740 PRIVATE ${CARES_INCLUDE_DIR}
8741 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8742 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller9202b3f2017-03-12 22:30:38 -07008743 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8744 PRIVATE third_party/googletest/include
8745 PRIVATE third_party/googletest
8746 PRIVATE ${_gRPC_PROTO_GENS_DIR}
8747)
8748
8749target_link_libraries(bm_arena
8750 ${_gRPC_PROTOBUF_LIBRARIES}
8751 ${_gRPC_ALLTARGETS_LIBRARIES}
8752 grpc_benchmark
8753 benchmark
8754 grpc++_test_util
8755 grpc_test_util
8756 grpc++
8757 grpc
8758 gpr_test_util
8759 gpr
8760 ${_gRPC_GFLAGS_LIBRARIES}
8761)
8762
8763endif()
8764endif (gRPC_BUILD_TESTS)
8765if (gRPC_BUILD_TESTS)
8766if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
8767
Craig Tillerfd044b82017-02-15 16:15:48 -08008768add_executable(bm_call_create
8769 test/cpp/microbenchmarks/bm_call_create.cc
8770 third_party/googletest/src/gtest-all.cc
8771)
8772
8773
8774target_include_directories(bm_call_create
8775 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8776 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8777 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8778 PRIVATE ${PROTOBUF_ROOT_DIR}/src
8779 PRIVATE ${BENCHMARK_ROOT_DIR}/include
8780 PRIVATE ${ZLIB_ROOT_DIR}
8781 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008782 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008783 PRIVATE ${CARES_INCLUDE_DIR}
8784 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8785 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tillerfd044b82017-02-15 16:15:48 -08008786 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8787 PRIVATE third_party/googletest/include
8788 PRIVATE third_party/googletest
8789 PRIVATE ${_gRPC_PROTO_GENS_DIR}
8790)
8791
8792target_link_libraries(bm_call_create
8793 ${_gRPC_PROTOBUF_LIBRARIES}
8794 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08008795 grpc_benchmark
Craig Tillerfd044b82017-02-15 16:15:48 -08008796 benchmark
8797 grpc++_test_util
8798 grpc_test_util
8799 grpc++
8800 grpc
8801 gpr_test_util
8802 gpr
8803 ${_gRPC_GFLAGS_LIBRARIES}
8804)
8805
8806endif()
8807endif (gRPC_BUILD_TESTS)
8808if (gRPC_BUILD_TESTS)
8809if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
8810
Craig Tiller523d54b2017-02-23 08:52:38 -08008811add_executable(bm_chttp2_hpack
8812 test/cpp/microbenchmarks/bm_chttp2_hpack.cc
Craig Tiller2f792d92017-02-22 16:26:33 -08008813 third_party/googletest/src/gtest-all.cc
8814)
8815
8816
Craig Tiller523d54b2017-02-23 08:52:38 -08008817target_include_directories(bm_chttp2_hpack
Craig Tiller2f792d92017-02-22 16:26:33 -08008818 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8819 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8820 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8821 PRIVATE ${PROTOBUF_ROOT_DIR}/src
8822 PRIVATE ${BENCHMARK_ROOT_DIR}/include
8823 PRIVATE ${ZLIB_ROOT_DIR}
8824 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008825 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008826 PRIVATE ${CARES_INCLUDE_DIR}
8827 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8828 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller2f792d92017-02-22 16:26:33 -08008829 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8830 PRIVATE third_party/googletest/include
8831 PRIVATE third_party/googletest
8832 PRIVATE ${_gRPC_PROTO_GENS_DIR}
8833)
8834
Craig Tiller523d54b2017-02-23 08:52:38 -08008835target_link_libraries(bm_chttp2_hpack
Craig Tiller2f792d92017-02-22 16:26:33 -08008836 ${_gRPC_PROTOBUF_LIBRARIES}
8837 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08008838 grpc_benchmark
Craig Tiller2f792d92017-02-22 16:26:33 -08008839 benchmark
8840 grpc++_test_util
8841 grpc_test_util
8842 grpc++
8843 grpc
8844 gpr_test_util
8845 gpr
8846 ${_gRPC_GFLAGS_LIBRARIES}
8847)
8848
8849endif()
8850endif (gRPC_BUILD_TESTS)
8851if (gRPC_BUILD_TESTS)
8852if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
8853
Craig Tiller18f09a02017-02-23 17:10:04 -08008854add_executable(bm_chttp2_transport
8855 test/cpp/microbenchmarks/bm_chttp2_transport.cc
8856 third_party/googletest/src/gtest-all.cc
8857)
8858
8859
8860target_include_directories(bm_chttp2_transport
8861 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8862 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8863 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8864 PRIVATE ${PROTOBUF_ROOT_DIR}/src
8865 PRIVATE ${BENCHMARK_ROOT_DIR}/include
8866 PRIVATE ${ZLIB_ROOT_DIR}
8867 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng937302b2017-03-22 10:54:31 -07008868 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
8869 PRIVATE ${CARES_INCLUDE_DIR}
8870 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8871 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller18f09a02017-02-23 17:10:04 -08008872 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8873 PRIVATE third_party/googletest/include
8874 PRIVATE third_party/googletest
8875 PRIVATE ${_gRPC_PROTO_GENS_DIR}
8876)
8877
8878target_link_libraries(bm_chttp2_transport
8879 ${_gRPC_PROTOBUF_LIBRARIES}
8880 ${_gRPC_ALLTARGETS_LIBRARIES}
8881 grpc_benchmark
8882 benchmark
8883 grpc++_test_util
8884 grpc_test_util
8885 grpc++
8886 grpc
8887 gpr_test_util
8888 gpr
8889 ${_gRPC_GFLAGS_LIBRARIES}
8890)
8891
8892endif()
8893endif (gRPC_BUILD_TESTS)
8894if (gRPC_BUILD_TESTS)
8895if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
8896
Craig Tillerb3f34b62017-02-13 10:29:33 -08008897add_executable(bm_closure
8898 test/cpp/microbenchmarks/bm_closure.cc
8899 third_party/googletest/src/gtest-all.cc
8900)
8901
8902
8903target_include_directories(bm_closure
8904 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8905 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8906 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8907 PRIVATE ${PROTOBUF_ROOT_DIR}/src
8908 PRIVATE ${BENCHMARK_ROOT_DIR}/include
8909 PRIVATE ${ZLIB_ROOT_DIR}
8910 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008911 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008912 PRIVATE ${CARES_INCLUDE_DIR}
8913 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8914 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tillerb3f34b62017-02-13 10:29:33 -08008915 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8916 PRIVATE third_party/googletest/include
8917 PRIVATE third_party/googletest
8918 PRIVATE ${_gRPC_PROTO_GENS_DIR}
8919)
8920
8921target_link_libraries(bm_closure
8922 ${_gRPC_PROTOBUF_LIBRARIES}
8923 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08008924 grpc_benchmark
Craig Tillerb3f34b62017-02-13 10:29:33 -08008925 benchmark
Craig Tiller510f38a2017-02-24 17:00:19 -08008926 grpc++_test_util
Craig Tillerb3f34b62017-02-13 10:29:33 -08008927 grpc_test_util
Craig Tiller510f38a2017-02-24 17:00:19 -08008928 grpc++
Craig Tillerb3f34b62017-02-13 10:29:33 -08008929 grpc
8930 gpr_test_util
8931 gpr
8932 ${_gRPC_GFLAGS_LIBRARIES}
8933)
8934
8935endif()
8936endif (gRPC_BUILD_TESTS)
8937if (gRPC_BUILD_TESTS)
8938if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
8939
Craig Tiller14ae5382017-02-14 12:43:50 -08008940add_executable(bm_cq
8941 test/cpp/microbenchmarks/bm_cq.cc
8942 third_party/googletest/src/gtest-all.cc
8943)
8944
8945
8946target_include_directories(bm_cq
8947 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8948 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8949 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8950 PRIVATE ${PROTOBUF_ROOT_DIR}/src
8951 PRIVATE ${BENCHMARK_ROOT_DIR}/include
8952 PRIVATE ${ZLIB_ROOT_DIR}
8953 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008954 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008955 PRIVATE ${CARES_INCLUDE_DIR}
8956 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8957 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller14ae5382017-02-14 12:43:50 -08008958 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8959 PRIVATE third_party/googletest/include
8960 PRIVATE third_party/googletest
8961 PRIVATE ${_gRPC_PROTO_GENS_DIR}
8962)
8963
8964target_link_libraries(bm_cq
8965 ${_gRPC_PROTOBUF_LIBRARIES}
8966 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08008967 grpc_benchmark
Craig Tiller14ae5382017-02-14 12:43:50 -08008968 benchmark
8969 grpc++_test_util
8970 grpc_test_util
8971 grpc++
8972 grpc
8973 gpr_test_util
8974 gpr
8975 ${_gRPC_GFLAGS_LIBRARIES}
8976)
8977
8978endif()
8979endif (gRPC_BUILD_TESTS)
8980if (gRPC_BUILD_TESTS)
8981if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
8982
Craig Tiller264307f2017-02-16 09:07:45 -08008983add_executable(bm_error
8984 test/cpp/microbenchmarks/bm_error.cc
8985 third_party/googletest/src/gtest-all.cc
8986)
8987
8988
8989target_include_directories(bm_error
8990 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8991 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8992 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8993 PRIVATE ${PROTOBUF_ROOT_DIR}/src
8994 PRIVATE ${BENCHMARK_ROOT_DIR}/include
8995 PRIVATE ${ZLIB_ROOT_DIR}
8996 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008997 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008998 PRIVATE ${CARES_INCLUDE_DIR}
8999 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9000 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller264307f2017-02-16 09:07:45 -08009001 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9002 PRIVATE third_party/googletest/include
9003 PRIVATE third_party/googletest
9004 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9005)
9006
9007target_link_libraries(bm_error
9008 ${_gRPC_PROTOBUF_LIBRARIES}
9009 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08009010 grpc_benchmark
Craig Tiller264307f2017-02-16 09:07:45 -08009011 benchmark
9012 grpc++_test_util
9013 grpc_test_util
9014 grpc++
9015 grpc
9016 gpr_test_util
9017 gpr
9018 ${_gRPC_GFLAGS_LIBRARIES}
9019)
9020
9021endif()
9022endif (gRPC_BUILD_TESTS)
9023if (gRPC_BUILD_TESTS)
9024if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9025
Craig Tiller12d22e42017-03-03 10:14:20 -08009026add_executable(bm_fullstack_streaming_ping_pong
9027 test/cpp/microbenchmarks/bm_fullstack_streaming_ping_pong.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009028 third_party/googletest/src/gtest-all.cc
9029)
9030
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009031
Craig Tiller12d22e42017-03-03 10:14:20 -08009032target_include_directories(bm_fullstack_streaming_ping_pong
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009033 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9034 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9035 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9036 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009037 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009038 PRIVATE ${ZLIB_ROOT_DIR}
9039 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009040 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009041 PRIVATE ${CARES_INCLUDE_DIR}
9042 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9043 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009044 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9045 PRIVATE third_party/googletest/include
9046 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009047 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009048)
9049
Craig Tiller12d22e42017-03-03 10:14:20 -08009050target_link_libraries(bm_fullstack_streaming_ping_pong
9051 ${_gRPC_PROTOBUF_LIBRARIES}
9052 ${_gRPC_ALLTARGETS_LIBRARIES}
9053 grpc_benchmark
9054 benchmark
9055 grpc++_test_util
9056 grpc_test_util
9057 grpc++
9058 grpc
9059 gpr_test_util
9060 gpr
9061 ${_gRPC_GFLAGS_LIBRARIES}
9062)
9063
9064endif()
9065endif (gRPC_BUILD_TESTS)
9066if (gRPC_BUILD_TESTS)
9067if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9068
9069add_executable(bm_fullstack_streaming_pump
9070 test/cpp/microbenchmarks/bm_fullstack_streaming_pump.cc
9071 third_party/googletest/src/gtest-all.cc
9072)
9073
9074
9075target_include_directories(bm_fullstack_streaming_pump
9076 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9077 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9078 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9079 PRIVATE ${PROTOBUF_ROOT_DIR}/src
9080 PRIVATE ${BENCHMARK_ROOT_DIR}/include
9081 PRIVATE ${ZLIB_ROOT_DIR}
9082 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009083 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009084 PRIVATE ${CARES_INCLUDE_DIR}
9085 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9086 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller12d22e42017-03-03 10:14:20 -08009087 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9088 PRIVATE third_party/googletest/include
9089 PRIVATE third_party/googletest
9090 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9091)
9092
9093target_link_libraries(bm_fullstack_streaming_pump
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009094 ${_gRPC_PROTOBUF_LIBRARIES}
9095 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08009096 grpc_benchmark
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009097 benchmark
9098 grpc++_test_util
9099 grpc_test_util
9100 grpc++
9101 grpc
9102 gpr_test_util
9103 gpr
9104 ${_gRPC_GFLAGS_LIBRARIES}
9105)
9106
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009107endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009108endif (gRPC_BUILD_TESTS)
9109if (gRPC_BUILD_TESTS)
Craig Tillerb8e2bca2017-02-16 16:26:51 -08009110if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9111
Craig Tiller52bd4412017-03-03 10:52:22 -08009112add_executable(bm_fullstack_trickle
9113 test/cpp/microbenchmarks/bm_fullstack_trickle.cc
9114 third_party/googletest/src/gtest-all.cc
9115)
9116
9117
9118target_include_directories(bm_fullstack_trickle
9119 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9120 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9121 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9122 PRIVATE ${PROTOBUF_ROOT_DIR}/src
9123 PRIVATE ${BENCHMARK_ROOT_DIR}/include
9124 PRIVATE ${ZLIB_ROOT_DIR}
9125 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009126 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009127 PRIVATE ${CARES_INCLUDE_DIR}
9128 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9129 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller52bd4412017-03-03 10:52:22 -08009130 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9131 PRIVATE third_party/googletest/include
9132 PRIVATE third_party/googletest
9133 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9134)
9135
9136target_link_libraries(bm_fullstack_trickle
9137 ${_gRPC_PROTOBUF_LIBRARIES}
9138 ${_gRPC_ALLTARGETS_LIBRARIES}
9139 grpc_benchmark
9140 benchmark
9141 grpc++_test_util
9142 grpc_test_util
9143 grpc++
9144 grpc
9145 gpr_test_util
9146 gpr
9147 ${_gRPC_GFLAGS_LIBRARIES}
9148)
9149
9150endif()
9151endif (gRPC_BUILD_TESTS)
9152if (gRPC_BUILD_TESTS)
9153if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9154
Craig Tiller62ac65b2017-03-03 09:57:43 -08009155add_executable(bm_fullstack_unary_ping_pong
9156 test/cpp/microbenchmarks/bm_fullstack_unary_ping_pong.cc
9157 third_party/googletest/src/gtest-all.cc
9158)
9159
9160
9161target_include_directories(bm_fullstack_unary_ping_pong
9162 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9163 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9164 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9165 PRIVATE ${PROTOBUF_ROOT_DIR}/src
9166 PRIVATE ${BENCHMARK_ROOT_DIR}/include
9167 PRIVATE ${ZLIB_ROOT_DIR}
9168 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009169 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009170 PRIVATE ${CARES_INCLUDE_DIR}
9171 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9172 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller62ac65b2017-03-03 09:57:43 -08009173 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9174 PRIVATE third_party/googletest/include
9175 PRIVATE third_party/googletest
9176 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9177)
9178
9179target_link_libraries(bm_fullstack_unary_ping_pong
9180 ${_gRPC_PROTOBUF_LIBRARIES}
9181 ${_gRPC_ALLTARGETS_LIBRARIES}
9182 grpc_benchmark
9183 benchmark
9184 grpc++_test_util
9185 grpc_test_util
9186 grpc++
9187 grpc
9188 gpr_test_util
9189 gpr
9190 ${_gRPC_GFLAGS_LIBRARIES}
9191)
9192
9193endif()
9194endif (gRPC_BUILD_TESTS)
9195if (gRPC_BUILD_TESTS)
9196if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9197
Craig Tillerb8e2bca2017-02-16 16:26:51 -08009198add_executable(bm_metadata
9199 test/cpp/microbenchmarks/bm_metadata.cc
9200 third_party/googletest/src/gtest-all.cc
9201)
9202
9203
9204target_include_directories(bm_metadata
9205 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9206 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9207 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9208 PRIVATE ${PROTOBUF_ROOT_DIR}/src
9209 PRIVATE ${BENCHMARK_ROOT_DIR}/include
9210 PRIVATE ${ZLIB_ROOT_DIR}
9211 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009212 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009213 PRIVATE ${CARES_INCLUDE_DIR}
9214 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9215 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tillerb8e2bca2017-02-16 16:26:51 -08009216 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9217 PRIVATE third_party/googletest/include
9218 PRIVATE third_party/googletest
9219 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9220)
9221
9222target_link_libraries(bm_metadata
9223 ${_gRPC_PROTOBUF_LIBRARIES}
9224 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08009225 grpc_benchmark
Craig Tillerb8e2bca2017-02-16 16:26:51 -08009226 benchmark
Craig Tillerad14bce2017-03-09 08:32:01 -08009227 grpc++_test_util
Craig Tillerb8e2bca2017-02-16 16:26:51 -08009228 grpc_test_util
Craig Tillerad14bce2017-03-09 08:32:01 -08009229 grpc++
Craig Tillerb8e2bca2017-02-16 16:26:51 -08009230 grpc
9231 gpr_test_util
9232 gpr
9233 ${_gRPC_GFLAGS_LIBRARIES}
9234)
9235
9236endif()
9237endif (gRPC_BUILD_TESTS)
9238if (gRPC_BUILD_TESTS)
Craig Tiller1128d462017-03-03 16:46:54 -08009239if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9240
9241add_executable(bm_pollset
9242 test/cpp/microbenchmarks/bm_pollset.cc
9243 third_party/googletest/src/gtest-all.cc
9244)
9245
9246
9247target_include_directories(bm_pollset
9248 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9249 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9250 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9251 PRIVATE ${PROTOBUF_ROOT_DIR}/src
9252 PRIVATE ${BENCHMARK_ROOT_DIR}/include
9253 PRIVATE ${ZLIB_ROOT_DIR}
9254 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009255 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009256 PRIVATE ${CARES_INCLUDE_DIR}
9257 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9258 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller1128d462017-03-03 16:46:54 -08009259 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9260 PRIVATE third_party/googletest/include
9261 PRIVATE third_party/googletest
9262 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9263)
9264
9265target_link_libraries(bm_pollset
9266 ${_gRPC_PROTOBUF_LIBRARIES}
9267 ${_gRPC_ALLTARGETS_LIBRARIES}
9268 grpc_benchmark
9269 benchmark
Craig Tiller3a351892017-03-10 07:39:26 -08009270 grpc++_test_util
Craig Tiller1128d462017-03-03 16:46:54 -08009271 grpc_test_util
Craig Tiller3a351892017-03-10 07:39:26 -08009272 grpc++
Craig Tiller1128d462017-03-03 16:46:54 -08009273 grpc
9274 gpr_test_util
9275 gpr
9276 ${_gRPC_GFLAGS_LIBRARIES}
9277)
9278
9279endif()
9280endif (gRPC_BUILD_TESTS)
9281if (gRPC_BUILD_TESTS)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009282
9283add_executable(channel_arguments_test
9284 test/cpp/common/channel_arguments_test.cc
9285 third_party/googletest/src/gtest-all.cc
9286)
9287
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009288
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009289target_include_directories(channel_arguments_test
9290 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9291 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9292 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9293 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009294 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009295 PRIVATE ${ZLIB_ROOT_DIR}
9296 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009297 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009298 PRIVATE ${CARES_INCLUDE_DIR}
9299 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9300 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009301 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9302 PRIVATE third_party/googletest/include
9303 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009304 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009305)
9306
9307target_link_libraries(channel_arguments_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009308 ${_gRPC_PROTOBUF_LIBRARIES}
9309 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009310 grpc++
9311 grpc
9312 gpr
9313 ${_gRPC_GFLAGS_LIBRARIES}
9314)
9315
9316endif (gRPC_BUILD_TESTS)
9317if (gRPC_BUILD_TESTS)
9318
9319add_executable(channel_filter_test
9320 test/cpp/common/channel_filter_test.cc
9321 third_party/googletest/src/gtest-all.cc
9322)
9323
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009324
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009325target_include_directories(channel_filter_test
9326 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9327 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9328 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9329 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009330 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009331 PRIVATE ${ZLIB_ROOT_DIR}
9332 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009333 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009334 PRIVATE ${CARES_INCLUDE_DIR}
9335 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9336 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009337 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9338 PRIVATE third_party/googletest/include
9339 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009340 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009341)
9342
9343target_link_libraries(channel_filter_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009344 ${_gRPC_PROTOBUF_LIBRARIES}
9345 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009346 grpc++
9347 grpc
9348 gpr
9349 ${_gRPC_GFLAGS_LIBRARIES}
9350)
9351
9352endif (gRPC_BUILD_TESTS)
9353if (gRPC_BUILD_TESTS)
9354
9355add_executable(cli_call_test
9356 test/cpp/util/cli_call_test.cc
9357 third_party/googletest/src/gtest-all.cc
9358)
9359
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009360
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009361target_include_directories(cli_call_test
9362 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9363 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9364 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9365 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009366 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009367 PRIVATE ${ZLIB_ROOT_DIR}
9368 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009369 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009370 PRIVATE ${CARES_INCLUDE_DIR}
9371 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9372 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009373 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9374 PRIVATE third_party/googletest/include
9375 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009376 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009377)
9378
9379target_link_libraries(cli_call_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009380 ${_gRPC_PROTOBUF_LIBRARIES}
9381 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009382 grpc_cli_libs
9383 grpc++_test_util
9384 grpc_test_util
9385 grpc++
9386 grpc
9387 gpr_test_util
9388 gpr
9389 ${_gRPC_GFLAGS_LIBRARIES}
9390)
9391
9392endif (gRPC_BUILD_TESTS)
9393if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009394if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009395
9396add_executable(client_crash_test
9397 test/cpp/end2end/client_crash_test.cc
9398 third_party/googletest/src/gtest-all.cc
9399)
9400
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009401
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009402target_include_directories(client_crash_test
9403 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9404 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9405 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9406 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009407 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009408 PRIVATE ${ZLIB_ROOT_DIR}
9409 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009410 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009411 PRIVATE ${CARES_INCLUDE_DIR}
9412 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9413 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009414 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9415 PRIVATE third_party/googletest/include
9416 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009417 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009418)
9419
9420target_link_libraries(client_crash_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009421 ${_gRPC_PROTOBUF_LIBRARIES}
9422 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009423 grpc++_test_util
9424 grpc_test_util
9425 grpc++
9426 grpc
9427 gpr_test_util
9428 gpr
9429 ${_gRPC_GFLAGS_LIBRARIES}
9430)
9431
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009432endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009433endif (gRPC_BUILD_TESTS)
9434if (gRPC_BUILD_TESTS)
9435
9436add_executable(client_crash_test_server
9437 test/cpp/end2end/client_crash_test_server.cc
9438 third_party/googletest/src/gtest-all.cc
9439)
9440
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009441
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009442target_include_directories(client_crash_test_server
9443 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9444 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9445 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9446 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009447 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009448 PRIVATE ${ZLIB_ROOT_DIR}
9449 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009450 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009451 PRIVATE ${CARES_INCLUDE_DIR}
9452 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9453 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009454 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9455 PRIVATE third_party/googletest/include
9456 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009457 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009458)
9459
9460target_link_libraries(client_crash_test_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009461 ${_gRPC_PROTOBUF_LIBRARIES}
9462 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009463 grpc++_test_util
9464 grpc_test_util
9465 grpc++
9466 grpc
9467 gpr_test_util
9468 gpr
9469 ${_gRPC_GFLAGS_LIBRARIES}
9470)
9471
9472endif (gRPC_BUILD_TESTS)
9473if (gRPC_BUILD_TESTS)
9474
9475add_executable(codegen_test_full
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009476 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.cc
9477 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.cc
9478 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.h
9479 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.h
9480 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
9481 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
9482 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
9483 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
9484 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.cc
9485 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.cc
9486 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.h
9487 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.h
9488 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.cc
9489 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.cc
9490 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.h
9491 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.h
9492 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.cc
9493 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.cc
9494 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.h
9495 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009496 test/cpp/codegen/codegen_test_full.cc
9497 third_party/googletest/src/gtest-all.cc
9498)
9499
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009500protobuf_generate_grpc_cpp(
9501 src/proto/grpc/testing/control.proto
9502)
9503protobuf_generate_grpc_cpp(
9504 src/proto/grpc/testing/messages.proto
9505)
9506protobuf_generate_grpc_cpp(
9507 src/proto/grpc/testing/payloads.proto
9508)
9509protobuf_generate_grpc_cpp(
9510 src/proto/grpc/testing/services.proto
9511)
9512protobuf_generate_grpc_cpp(
9513 src/proto/grpc/testing/stats.proto
9514)
9515
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009516target_include_directories(codegen_test_full
9517 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9518 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9519 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9520 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009521 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009522 PRIVATE ${ZLIB_ROOT_DIR}
9523 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009524 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009525 PRIVATE ${CARES_INCLUDE_DIR}
9526 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9527 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009528 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9529 PRIVATE third_party/googletest/include
9530 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009531 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009532)
9533
9534target_link_libraries(codegen_test_full
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009535 ${_gRPC_PROTOBUF_LIBRARIES}
9536 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009537 grpc++
9538 grpc
9539 gpr
9540 ${_gRPC_GFLAGS_LIBRARIES}
9541)
9542
9543endif (gRPC_BUILD_TESTS)
9544if (gRPC_BUILD_TESTS)
9545
9546add_executable(codegen_test_minimal
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009547 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.cc
9548 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.cc
9549 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.h
9550 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.h
9551 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
9552 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
9553 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
9554 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
9555 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.cc
9556 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.cc
9557 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.h
9558 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.h
9559 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.cc
9560 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.cc
9561 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.h
9562 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.h
9563 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.cc
9564 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.cc
9565 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.h
9566 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009567 test/cpp/codegen/codegen_test_minimal.cc
9568 src/cpp/codegen/codegen_init.cc
9569 third_party/googletest/src/gtest-all.cc
9570)
9571
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009572protobuf_generate_grpc_cpp(
9573 src/proto/grpc/testing/control.proto
9574)
9575protobuf_generate_grpc_cpp(
9576 src/proto/grpc/testing/messages.proto
9577)
9578protobuf_generate_grpc_cpp(
9579 src/proto/grpc/testing/payloads.proto
9580)
9581protobuf_generate_grpc_cpp(
9582 src/proto/grpc/testing/services.proto
9583)
9584protobuf_generate_grpc_cpp(
9585 src/proto/grpc/testing/stats.proto
9586)
9587
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009588target_include_directories(codegen_test_minimal
9589 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9590 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9591 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9592 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009593 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009594 PRIVATE ${ZLIB_ROOT_DIR}
9595 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009596 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009597 PRIVATE ${CARES_INCLUDE_DIR}
9598 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9599 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009600 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9601 PRIVATE third_party/googletest/include
9602 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009603 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009604)
9605
9606target_link_libraries(codegen_test_minimal
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009607 ${_gRPC_PROTOBUF_LIBRARIES}
9608 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009609 ${_gRPC_GFLAGS_LIBRARIES}
9610)
9611
9612endif (gRPC_BUILD_TESTS)
9613if (gRPC_BUILD_TESTS)
9614
9615add_executable(credentials_test
9616 test/cpp/client/credentials_test.cc
9617 third_party/googletest/src/gtest-all.cc
9618)
9619
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009620
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009621target_include_directories(credentials_test
9622 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9623 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9624 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9625 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009626 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009627 PRIVATE ${ZLIB_ROOT_DIR}
9628 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009629 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009630 PRIVATE ${CARES_INCLUDE_DIR}
9631 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9632 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009633 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9634 PRIVATE third_party/googletest/include
9635 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009636 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009637)
9638
9639target_link_libraries(credentials_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009640 ${_gRPC_PROTOBUF_LIBRARIES}
9641 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009642 grpc++
9643 grpc
9644 gpr
9645 ${_gRPC_GFLAGS_LIBRARIES}
9646)
9647
9648endif (gRPC_BUILD_TESTS)
9649if (gRPC_BUILD_TESTS)
9650
9651add_executable(cxx_byte_buffer_test
9652 test/cpp/util/byte_buffer_test.cc
9653 third_party/googletest/src/gtest-all.cc
9654)
9655
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009656
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009657target_include_directories(cxx_byte_buffer_test
9658 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9659 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9660 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9661 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009662 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009663 PRIVATE ${ZLIB_ROOT_DIR}
9664 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009665 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009666 PRIVATE ${CARES_INCLUDE_DIR}
9667 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9668 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009669 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9670 PRIVATE third_party/googletest/include
9671 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009672 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009673)
9674
9675target_link_libraries(cxx_byte_buffer_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009676 ${_gRPC_PROTOBUF_LIBRARIES}
9677 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009678 grpc_test_util
9679 grpc++
9680 grpc
9681 gpr_test_util
9682 gpr
9683 ${_gRPC_GFLAGS_LIBRARIES}
9684)
9685
9686endif (gRPC_BUILD_TESTS)
9687if (gRPC_BUILD_TESTS)
9688
9689add_executable(cxx_slice_test
9690 test/cpp/util/slice_test.cc
9691 third_party/googletest/src/gtest-all.cc
9692)
9693
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009694
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009695target_include_directories(cxx_slice_test
9696 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9697 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9698 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9699 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009700 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009701 PRIVATE ${ZLIB_ROOT_DIR}
9702 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009703 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009704 PRIVATE ${CARES_INCLUDE_DIR}
9705 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9706 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009707 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9708 PRIVATE third_party/googletest/include
9709 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009710 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009711)
9712
9713target_link_libraries(cxx_slice_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009714 ${_gRPC_PROTOBUF_LIBRARIES}
9715 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009716 grpc_test_util
9717 grpc++
9718 grpc
9719 gpr_test_util
9720 gpr
9721 ${_gRPC_GFLAGS_LIBRARIES}
9722)
9723
9724endif (gRPC_BUILD_TESTS)
9725if (gRPC_BUILD_TESTS)
9726
9727add_executable(cxx_string_ref_test
9728 test/cpp/util/string_ref_test.cc
9729 third_party/googletest/src/gtest-all.cc
9730)
9731
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009732
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009733target_include_directories(cxx_string_ref_test
9734 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9735 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9736 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9737 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009738 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009739 PRIVATE ${ZLIB_ROOT_DIR}
9740 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009741 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009742 PRIVATE ${CARES_INCLUDE_DIR}
9743 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9744 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009745 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9746 PRIVATE third_party/googletest/include
9747 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009748 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009749)
9750
9751target_link_libraries(cxx_string_ref_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009752 ${_gRPC_PROTOBUF_LIBRARIES}
9753 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009754 grpc++
9755 ${_gRPC_GFLAGS_LIBRARIES}
9756)
9757
9758endif (gRPC_BUILD_TESTS)
9759if (gRPC_BUILD_TESTS)
9760
9761add_executable(cxx_time_test
9762 test/cpp/util/time_test.cc
9763 third_party/googletest/src/gtest-all.cc
9764)
9765
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009766
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009767target_include_directories(cxx_time_test
9768 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9769 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9770 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9771 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009772 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009773 PRIVATE ${ZLIB_ROOT_DIR}
9774 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009775 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009776 PRIVATE ${CARES_INCLUDE_DIR}
9777 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9778 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009779 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9780 PRIVATE third_party/googletest/include
9781 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009782 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009783)
9784
9785target_link_libraries(cxx_time_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009786 ${_gRPC_PROTOBUF_LIBRARIES}
9787 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009788 grpc_test_util
9789 grpc++
9790 grpc
9791 gpr_test_util
9792 gpr
9793 ${_gRPC_GFLAGS_LIBRARIES}
9794)
9795
9796endif (gRPC_BUILD_TESTS)
9797if (gRPC_BUILD_TESTS)
9798
9799add_executable(end2end_test
9800 test/cpp/end2end/end2end_test.cc
9801 third_party/googletest/src/gtest-all.cc
9802)
9803
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009804
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009805target_include_directories(end2end_test
9806 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9807 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9808 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9809 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009810 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009811 PRIVATE ${ZLIB_ROOT_DIR}
9812 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009813 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009814 PRIVATE ${CARES_INCLUDE_DIR}
9815 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9816 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009817 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9818 PRIVATE third_party/googletest/include
9819 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009820 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009821)
9822
9823target_link_libraries(end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009824 ${_gRPC_PROTOBUF_LIBRARIES}
9825 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009826 grpc++_test_util
9827 grpc_test_util
9828 grpc++
9829 grpc
9830 gpr_test_util
9831 gpr
9832 ${_gRPC_GFLAGS_LIBRARIES}
9833)
9834
9835endif (gRPC_BUILD_TESTS)
9836if (gRPC_BUILD_TESTS)
9837
9838add_executable(filter_end2end_test
9839 test/cpp/end2end/filter_end2end_test.cc
9840 third_party/googletest/src/gtest-all.cc
9841)
9842
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009843
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009844target_include_directories(filter_end2end_test
9845 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9846 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9847 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9848 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009849 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009850 PRIVATE ${ZLIB_ROOT_DIR}
9851 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009852 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009853 PRIVATE ${CARES_INCLUDE_DIR}
9854 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9855 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009856 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9857 PRIVATE third_party/googletest/include
9858 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009859 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009860)
9861
9862target_link_libraries(filter_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009863 ${_gRPC_PROTOBUF_LIBRARIES}
9864 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009865 grpc++_test_util
9866 grpc_test_util
9867 grpc++
9868 grpc
9869 gpr_test_util
9870 gpr
9871 ${_gRPC_GFLAGS_LIBRARIES}
9872)
9873
9874endif (gRPC_BUILD_TESTS)
9875if (gRPC_BUILD_TESTS)
9876
9877add_executable(generic_end2end_test
9878 test/cpp/end2end/generic_end2end_test.cc
9879 third_party/googletest/src/gtest-all.cc
9880)
9881
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009882
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009883target_include_directories(generic_end2end_test
9884 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9885 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9886 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9887 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009888 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009889 PRIVATE ${ZLIB_ROOT_DIR}
9890 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009891 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009892 PRIVATE ${CARES_INCLUDE_DIR}
9893 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9894 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009895 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9896 PRIVATE third_party/googletest/include
9897 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009898 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009899)
9900
9901target_link_libraries(generic_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009902 ${_gRPC_PROTOBUF_LIBRARIES}
9903 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009904 grpc++_test_util
9905 grpc_test_util
9906 grpc++
9907 grpc
9908 gpr_test_util
9909 gpr
9910 ${_gRPC_GFLAGS_LIBRARIES}
9911)
9912
9913endif (gRPC_BUILD_TESTS)
9914if (gRPC_BUILD_TESTS)
9915
9916add_executable(golden_file_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009917 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.pb.cc
9918 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.grpc.pb.cc
9919 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.pb.h
9920 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009921 test/cpp/codegen/golden_file_test.cc
9922 third_party/googletest/src/gtest-all.cc
9923)
9924
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009925protobuf_generate_grpc_cpp(
9926 src/proto/grpc/testing/compiler_test.proto
9927)
9928
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009929target_include_directories(golden_file_test
9930 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9931 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9932 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9933 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009934 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009935 PRIVATE ${ZLIB_ROOT_DIR}
9936 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009937 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009938 PRIVATE ${CARES_INCLUDE_DIR}
9939 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9940 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009941 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9942 PRIVATE third_party/googletest/include
9943 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009944 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009945)
9946
9947target_link_libraries(golden_file_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009948 ${_gRPC_PROTOBUF_LIBRARIES}
9949 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009950 grpc++
9951 grpc
9952 gpr
9953 ${_gRPC_GFLAGS_LIBRARIES}
9954)
9955
9956endif (gRPC_BUILD_TESTS)
9957if (gRPC_BUILD_TESTS)
9958
9959add_executable(grpc_cli
9960 test/cpp/util/grpc_cli.cc
9961 third_party/googletest/src/gtest-all.cc
9962)
9963
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009964
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009965target_include_directories(grpc_cli
9966 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9967 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9968 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9969 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009970 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009971 PRIVATE ${ZLIB_ROOT_DIR}
9972 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009973 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009974 PRIVATE ${CARES_INCLUDE_DIR}
9975 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9976 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009977 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9978 PRIVATE third_party/googletest/include
9979 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009980 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009981)
9982
9983target_link_libraries(grpc_cli
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009984 ${_gRPC_PROTOBUF_LIBRARIES}
9985 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009986 grpc_cli_libs
9987 grpc++_proto_reflection_desc_db
9988 grpc++
9989 grpc
9990 gpr
9991 grpc++_test_config
9992 ${_gRPC_GFLAGS_LIBRARIES}
9993)
9994
9995endif (gRPC_BUILD_TESTS)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03009996
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01009997add_executable(grpc_cpp_plugin
9998 src/compiler/cpp_plugin.cc
9999)
10000
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010001
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010002target_include_directories(grpc_cpp_plugin
10003 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10004 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10005 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10006 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010007 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010008 PRIVATE ${ZLIB_ROOT_DIR}
10009 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010010 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010011 PRIVATE ${CARES_INCLUDE_DIR}
10012 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10013 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010014 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010015 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010016)
10017
10018target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030010019 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010020 ${_gRPC_PROTOBUF_LIBRARIES}
10021 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010022 grpc_plugin_support
10023)
10024
10025
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010026if (gRPC_INSTALL)
10027 install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
10028 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
10029 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
10030 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
10031 )
10032endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030010033
10034
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010035add_executable(grpc_csharp_plugin
10036 src/compiler/csharp_plugin.cc
10037)
10038
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010039
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010040target_include_directories(grpc_csharp_plugin
10041 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10042 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10043 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10044 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010045 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010046 PRIVATE ${ZLIB_ROOT_DIR}
10047 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010048 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010049 PRIVATE ${CARES_INCLUDE_DIR}
10050 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10051 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010052 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010053 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010054)
10055
10056target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030010057 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010058 ${_gRPC_PROTOBUF_LIBRARIES}
10059 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010060 grpc_plugin_support
10061)
10062
10063
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010064if (gRPC_INSTALL)
10065 install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
10066 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
10067 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
10068 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
10069 )
10070endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030010071
10072
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010073add_executable(grpc_node_plugin
10074 src/compiler/node_plugin.cc
10075)
10076
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010077
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010078target_include_directories(grpc_node_plugin
10079 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10080 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10081 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10082 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010083 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010084 PRIVATE ${ZLIB_ROOT_DIR}
10085 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010086 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010087 PRIVATE ${CARES_INCLUDE_DIR}
10088 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10089 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010090 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010091 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010092)
10093
10094target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030010095 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010096 ${_gRPC_PROTOBUF_LIBRARIES}
10097 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010098 grpc_plugin_support
10099)
10100
10101
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010102if (gRPC_INSTALL)
10103 install(TARGETS grpc_node_plugin EXPORT gRPCTargets
10104 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
10105 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
10106 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
10107 )
10108endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030010109
10110
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010111add_executable(grpc_objective_c_plugin
10112 src/compiler/objective_c_plugin.cc
10113)
10114
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010115
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010116target_include_directories(grpc_objective_c_plugin
10117 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10118 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10119 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10120 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010121 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010122 PRIVATE ${ZLIB_ROOT_DIR}
10123 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010124 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010125 PRIVATE ${CARES_INCLUDE_DIR}
10126 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10127 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010128 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010129 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010130)
10131
10132target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030010133 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010134 ${_gRPC_PROTOBUF_LIBRARIES}
10135 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010136 grpc_plugin_support
10137)
10138
10139
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010140if (gRPC_INSTALL)
10141 install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
10142 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
10143 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
10144 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
10145 )
10146endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030010147
10148
Stanley Cheung857a1302016-09-29 17:26:29 -070010149add_executable(grpc_php_plugin
10150 src/compiler/php_plugin.cc
10151)
10152
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010153
Stanley Cheung857a1302016-09-29 17:26:29 -070010154target_include_directories(grpc_php_plugin
10155 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10156 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10157 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10158 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010159 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Stanley Cheung857a1302016-09-29 17:26:29 -070010160 PRIVATE ${ZLIB_ROOT_DIR}
10161 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010162 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010163 PRIVATE ${CARES_INCLUDE_DIR}
10164 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10165 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010166 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010167 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Stanley Cheung857a1302016-09-29 17:26:29 -070010168)
10169
10170target_link_libraries(grpc_php_plugin
10171 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010172 ${_gRPC_PROTOBUF_LIBRARIES}
10173 ${_gRPC_ALLTARGETS_LIBRARIES}
Stanley Cheung857a1302016-09-29 17:26:29 -070010174 grpc_plugin_support
10175)
10176
10177
10178if (gRPC_INSTALL)
10179 install(TARGETS grpc_php_plugin EXPORT gRPCTargets
10180 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
10181 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
10182 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
10183 )
10184endif()
10185
10186
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010187add_executable(grpc_python_plugin
10188 src/compiler/python_plugin.cc
10189)
10190
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010191
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010192target_include_directories(grpc_python_plugin
10193 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10194 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10195 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10196 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010197 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010198 PRIVATE ${ZLIB_ROOT_DIR}
10199 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010200 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010201 PRIVATE ${CARES_INCLUDE_DIR}
10202 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10203 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010204 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010205 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010206)
10207
10208target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030010209 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010210 ${_gRPC_PROTOBUF_LIBRARIES}
10211 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010212 grpc_plugin_support
10213)
10214
10215
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010216if (gRPC_INSTALL)
10217 install(TARGETS grpc_python_plugin EXPORT gRPCTargets
10218 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
10219 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
10220 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
10221 )
10222endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030010223
10224
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010225add_executable(grpc_ruby_plugin
10226 src/compiler/ruby_plugin.cc
10227)
10228
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010229
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010230target_include_directories(grpc_ruby_plugin
10231 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10232 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10233 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10234 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010235 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010236 PRIVATE ${ZLIB_ROOT_DIR}
10237 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010238 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010239 PRIVATE ${CARES_INCLUDE_DIR}
10240 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10241 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010242 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010243 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010244)
10245
10246target_link_libraries(grpc_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030010247 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010248 ${_gRPC_PROTOBUF_LIBRARIES}
10249 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010250 grpc_plugin_support
10251)
10252
10253
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010254if (gRPC_INSTALL)
10255 install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
10256 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
10257 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
10258 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
10259 )
10260endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010261
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010262if (gRPC_BUILD_TESTS)
10263
10264add_executable(grpc_tool_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010265 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc
10266 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc
10267 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h
10268 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h
10269 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc
10270 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc
10271 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h
10272 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010273 test/cpp/util/grpc_tool_test.cc
10274 third_party/googletest/src/gtest-all.cc
10275)
10276
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010277protobuf_generate_grpc_cpp(
10278 src/proto/grpc/testing/echo.proto
10279)
10280protobuf_generate_grpc_cpp(
10281 src/proto/grpc/testing/echo_messages.proto
10282)
10283
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010284target_include_directories(grpc_tool_test
10285 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10286 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10287 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10288 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010289 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010290 PRIVATE ${ZLIB_ROOT_DIR}
10291 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010292 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010293 PRIVATE ${CARES_INCLUDE_DIR}
10294 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10295 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010296 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10297 PRIVATE third_party/googletest/include
10298 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010299 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010300)
10301
10302target_link_libraries(grpc_tool_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010303 ${_gRPC_PROTOBUF_LIBRARIES}
10304 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010305 grpc_cli_libs
10306 grpc++_proto_reflection_desc_db
10307 grpc++_reflection
10308 grpc++_test_util
10309 grpc_test_util
10310 grpc++
10311 grpc
10312 gpr_test_util
10313 gpr
10314 ${_gRPC_GFLAGS_LIBRARIES}
10315)
10316
10317endif (gRPC_BUILD_TESTS)
10318if (gRPC_BUILD_TESTS)
10319
10320add_executable(grpclb_api_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010321 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.cc
10322 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.cc
10323 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.h
10324 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010325 test/cpp/grpclb/grpclb_api_test.cc
10326 third_party/googletest/src/gtest-all.cc
10327)
10328
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010329protobuf_generate_grpc_cpp(
10330 src/proto/grpc/lb/v1/load_balancer.proto
10331)
10332
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010333target_include_directories(grpclb_api_test
10334 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10335 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10336 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10337 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010338 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010339 PRIVATE ${ZLIB_ROOT_DIR}
10340 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010341 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010342 PRIVATE ${CARES_INCLUDE_DIR}
10343 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10344 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010345 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10346 PRIVATE third_party/googletest/include
10347 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010348 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010349)
10350
10351target_link_libraries(grpclb_api_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010352 ${_gRPC_PROTOBUF_LIBRARIES}
10353 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010354 grpc++_test_util
10355 grpc_test_util
10356 grpc++
10357 grpc
10358 ${_gRPC_GFLAGS_LIBRARIES}
10359)
10360
10361endif (gRPC_BUILD_TESTS)
10362if (gRPC_BUILD_TESTS)
10363
10364add_executable(grpclb_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010365 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.cc
10366 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.cc
10367 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.h
10368 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010369 test/cpp/grpclb/grpclb_test.cc
10370 third_party/googletest/src/gtest-all.cc
10371)
10372
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010373protobuf_generate_grpc_cpp(
10374 src/proto/grpc/lb/v1/load_balancer.proto
10375)
10376
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010377target_include_directories(grpclb_test
10378 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10379 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10380 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10381 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010382 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010383 PRIVATE ${ZLIB_ROOT_DIR}
10384 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010385 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010386 PRIVATE ${CARES_INCLUDE_DIR}
10387 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10388 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010389 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10390 PRIVATE third_party/googletest/include
10391 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010392 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010393)
10394
10395target_link_libraries(grpclb_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010396 ${_gRPC_PROTOBUF_LIBRARIES}
10397 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010398 grpc++_test_util
10399 grpc_test_util
Jan Tattermusch1c6a1442017-01-13 14:17:40 +010010400 grpc++
10401 grpc
10402 gpr_test_util
10403 gpr
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010404 ${_gRPC_GFLAGS_LIBRARIES}
10405)
10406
10407endif (gRPC_BUILD_TESTS)
10408if (gRPC_BUILD_TESTS)
10409
yang-ga7198022017-01-26 13:23:52 -080010410add_executable(health_service_end2end_test
10411 test/cpp/end2end/health_service_end2end_test.cc
10412 third_party/googletest/src/gtest-all.cc
10413)
10414
yang-g13a537b2017-02-07 13:13:20 -080010415
yang-ga7198022017-01-26 13:23:52 -080010416target_include_directories(health_service_end2end_test
10417 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10418 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10419 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10420 PRIVATE ${PROTOBUF_ROOT_DIR}/src
yang-g13a537b2017-02-07 13:13:20 -080010421 PRIVATE ${BENCHMARK_ROOT_DIR}/include
yang-ga7198022017-01-26 13:23:52 -080010422 PRIVATE ${ZLIB_ROOT_DIR}
10423 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010424 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010425 PRIVATE ${CARES_INCLUDE_DIR}
10426 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10427 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
yang-ga7198022017-01-26 13:23:52 -080010428 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10429 PRIVATE third_party/googletest/include
10430 PRIVATE third_party/googletest
yang-g13a537b2017-02-07 13:13:20 -080010431 PRIVATE ${_gRPC_PROTO_GENS_DIR}
yang-ga7198022017-01-26 13:23:52 -080010432)
10433
10434target_link_libraries(health_service_end2end_test
yang-g13a537b2017-02-07 13:13:20 -080010435 ${_gRPC_PROTOBUF_LIBRARIES}
10436 ${_gRPC_ALLTARGETS_LIBRARIES}
yang-ga7198022017-01-26 13:23:52 -080010437 grpc++_test_util
10438 grpc_test_util
10439 grpc++
10440 grpc
10441 gpr_test_util
10442 gpr
10443 ${_gRPC_GFLAGS_LIBRARIES}
10444)
10445
10446endif (gRPC_BUILD_TESTS)
10447if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010448if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010449
10450add_executable(http2_client
10451 third_party/googletest/src/gtest-all.cc
10452)
10453
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010454
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010455target_include_directories(http2_client
10456 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10457 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10458 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10459 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010460 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010461 PRIVATE ${ZLIB_ROOT_DIR}
10462 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010463 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010464 PRIVATE ${CARES_INCLUDE_DIR}
10465 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10466 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010467 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10468 PRIVATE third_party/googletest/include
10469 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010470 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010471)
10472
10473target_link_libraries(http2_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010474 ${_gRPC_PROTOBUF_LIBRARIES}
10475 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010476 http2_client_main
10477 grpc++_test_util
10478 grpc_test_util
10479 grpc++
10480 grpc
10481 grpc++_test_config
10482 ${_gRPC_GFLAGS_LIBRARIES}
10483)
10484
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010485endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010486endif (gRPC_BUILD_TESTS)
10487if (gRPC_BUILD_TESTS)
10488
10489add_executable(hybrid_end2end_test
10490 test/cpp/end2end/hybrid_end2end_test.cc
10491 third_party/googletest/src/gtest-all.cc
10492)
10493
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010494
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010495target_include_directories(hybrid_end2end_test
10496 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10497 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10498 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10499 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010500 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010501 PRIVATE ${ZLIB_ROOT_DIR}
10502 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010503 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010504 PRIVATE ${CARES_INCLUDE_DIR}
10505 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10506 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010507 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10508 PRIVATE third_party/googletest/include
10509 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010510 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010511)
10512
10513target_link_libraries(hybrid_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010514 ${_gRPC_PROTOBUF_LIBRARIES}
10515 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010516 grpc++_test_util
10517 grpc_test_util
10518 grpc++
10519 grpc
10520 gpr_test_util
10521 gpr
10522 ${_gRPC_GFLAGS_LIBRARIES}
10523)
10524
10525endif (gRPC_BUILD_TESTS)
10526if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010527if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010528
10529add_executable(interop_client
10530 third_party/googletest/src/gtest-all.cc
10531)
10532
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010533
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010534target_include_directories(interop_client
10535 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10536 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10537 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10538 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010539 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010540 PRIVATE ${ZLIB_ROOT_DIR}
10541 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010542 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010543 PRIVATE ${CARES_INCLUDE_DIR}
10544 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10545 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010546 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10547 PRIVATE third_party/googletest/include
10548 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010549 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010550)
10551
10552target_link_libraries(interop_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010553 ${_gRPC_PROTOBUF_LIBRARIES}
10554 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010555 interop_client_main
10556 interop_client_helper
10557 grpc++_test_util
10558 grpc_test_util
10559 grpc++
10560 grpc
10561 gpr_test_util
10562 gpr
10563 grpc++_test_config
10564 ${_gRPC_GFLAGS_LIBRARIES}
10565)
10566
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010567endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010568endif (gRPC_BUILD_TESTS)
10569if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010570if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010571
10572add_executable(interop_server
10573 third_party/googletest/src/gtest-all.cc
10574)
10575
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010576
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010577target_include_directories(interop_server
10578 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10579 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10580 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10581 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010582 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010583 PRIVATE ${ZLIB_ROOT_DIR}
10584 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010585 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010586 PRIVATE ${CARES_INCLUDE_DIR}
10587 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10588 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010589 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10590 PRIVATE third_party/googletest/include
10591 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010592 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010593)
10594
10595target_link_libraries(interop_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010596 ${_gRPC_PROTOBUF_LIBRARIES}
10597 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010598 interop_server_main
10599 interop_server_helper
10600 interop_server_lib
10601 grpc++_test_util
10602 grpc_test_util
10603 grpc++
10604 grpc
10605 gpr_test_util
10606 gpr
10607 grpc++_test_config
10608 ${_gRPC_GFLAGS_LIBRARIES}
10609)
10610
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010611endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010612endif (gRPC_BUILD_TESTS)
10613if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010614if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010615
10616add_executable(interop_test
10617 test/cpp/interop/interop_test.cc
10618 third_party/googletest/src/gtest-all.cc
10619)
10620
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010621
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010622target_include_directories(interop_test
10623 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10624 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10625 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10626 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010627 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010628 PRIVATE ${ZLIB_ROOT_DIR}
10629 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010630 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010631 PRIVATE ${CARES_INCLUDE_DIR}
10632 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10633 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010634 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10635 PRIVATE third_party/googletest/include
10636 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010637 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010638)
10639
10640target_link_libraries(interop_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010641 ${_gRPC_PROTOBUF_LIBRARIES}
10642 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010643 grpc_test_util
10644 grpc
10645 gpr_test_util
10646 gpr
10647 grpc++_test_config
10648 ${_gRPC_GFLAGS_LIBRARIES}
10649)
10650
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010651endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010652endif (gRPC_BUILD_TESTS)
10653if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010654if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010655
10656add_executable(json_run_localhost
10657 test/cpp/qps/json_run_localhost.cc
10658 third_party/googletest/src/gtest-all.cc
10659)
10660
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010661
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010662target_include_directories(json_run_localhost
10663 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10664 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10665 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10666 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010667 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010668 PRIVATE ${ZLIB_ROOT_DIR}
10669 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010670 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010671 PRIVATE ${CARES_INCLUDE_DIR}
10672 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10673 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010674 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10675 PRIVATE third_party/googletest/include
10676 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010677 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010678)
10679
10680target_link_libraries(json_run_localhost
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010681 ${_gRPC_PROTOBUF_LIBRARIES}
10682 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010683 grpc++_test_util
10684 grpc_test_util
10685 grpc++
10686 grpc
10687 gpr_test_util
10688 gpr
10689 grpc++_test_config
10690 ${_gRPC_GFLAGS_LIBRARIES}
10691)
10692
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010693endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010694endif (gRPC_BUILD_TESTS)
10695if (gRPC_BUILD_TESTS)
10696
10697add_executable(metrics_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010698 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.cc
10699 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.cc
10700 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.h
10701 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010702 test/cpp/interop/metrics_client.cc
10703 third_party/googletest/src/gtest-all.cc
10704)
10705
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010706protobuf_generate_grpc_cpp(
10707 src/proto/grpc/testing/metrics.proto
10708)
10709
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010710target_include_directories(metrics_client
10711 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10712 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10713 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10714 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010715 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010716 PRIVATE ${ZLIB_ROOT_DIR}
10717 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010718 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010719 PRIVATE ${CARES_INCLUDE_DIR}
10720 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10721 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010722 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10723 PRIVATE third_party/googletest/include
10724 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010725 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010726)
10727
10728target_link_libraries(metrics_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010729 ${_gRPC_PROTOBUF_LIBRARIES}
10730 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010731 grpc++
10732 grpc
10733 gpr
10734 grpc++_test_config
10735 ${_gRPC_GFLAGS_LIBRARIES}
10736)
10737
10738endif (gRPC_BUILD_TESTS)
10739if (gRPC_BUILD_TESTS)
10740
10741add_executable(mock_test
10742 test/cpp/end2end/mock_test.cc
10743 third_party/googletest/src/gtest-all.cc
10744)
10745
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010746
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010747target_include_directories(mock_test
10748 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10749 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10750 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10751 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010752 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010753 PRIVATE ${ZLIB_ROOT_DIR}
10754 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010755 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010756 PRIVATE ${CARES_INCLUDE_DIR}
10757 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10758 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010759 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10760 PRIVATE third_party/googletest/include
10761 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010762 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010763)
10764
10765target_link_libraries(mock_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010766 ${_gRPC_PROTOBUF_LIBRARIES}
10767 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010768 grpc++_test_util
10769 grpc_test_util
10770 grpc++
10771 grpc
10772 gpr_test_util
10773 gpr
10774 ${_gRPC_GFLAGS_LIBRARIES}
10775)
10776
10777endif (gRPC_BUILD_TESTS)
10778if (gRPC_BUILD_TESTS)
10779
10780add_executable(noop-benchmark
10781 test/cpp/microbenchmarks/noop-benchmark.cc
10782 third_party/googletest/src/gtest-all.cc
10783)
10784
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010785
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010786target_include_directories(noop-benchmark
10787 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10788 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10789 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10790 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010791 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010792 PRIVATE ${ZLIB_ROOT_DIR}
10793 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010794 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010795 PRIVATE ${CARES_INCLUDE_DIR}
10796 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10797 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010798 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10799 PRIVATE third_party/googletest/include
10800 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010801 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010802)
10803
10804target_link_libraries(noop-benchmark
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010805 ${_gRPC_PROTOBUF_LIBRARIES}
10806 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010807 benchmark
10808 ${_gRPC_GFLAGS_LIBRARIES}
10809)
10810
10811endif (gRPC_BUILD_TESTS)
10812if (gRPC_BUILD_TESTS)
10813
10814add_executable(proto_server_reflection_test
10815 test/cpp/end2end/proto_server_reflection_test.cc
10816 third_party/googletest/src/gtest-all.cc
10817)
10818
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010819
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010820target_include_directories(proto_server_reflection_test
10821 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10822 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10823 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10824 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010825 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010826 PRIVATE ${ZLIB_ROOT_DIR}
10827 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010828 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010829 PRIVATE ${CARES_INCLUDE_DIR}
10830 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10831 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010832 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10833 PRIVATE third_party/googletest/include
10834 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010835 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010836)
10837
10838target_link_libraries(proto_server_reflection_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010839 ${_gRPC_PROTOBUF_LIBRARIES}
10840 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010841 grpc++_proto_reflection_desc_db
10842 grpc++_reflection
10843 grpc++_test_util
10844 grpc_test_util
10845 grpc++
10846 grpc
10847 gpr_test_util
10848 gpr
10849 ${_gRPC_GFLAGS_LIBRARIES}
10850)
10851
10852endif (gRPC_BUILD_TESTS)
10853if (gRPC_BUILD_TESTS)
Harvey Tuch5f3cfe92017-01-20 11:02:11 -050010854
10855add_executable(proto_utils_test
10856 test/cpp/codegen/proto_utils_test.cc
10857 third_party/googletest/src/gtest-all.cc
10858)
10859
10860
10861target_include_directories(proto_utils_test
10862 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10863 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10864 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10865 PRIVATE ${PROTOBUF_ROOT_DIR}/src
10866 PRIVATE ${BENCHMARK_ROOT_DIR}/include
10867 PRIVATE ${ZLIB_ROOT_DIR}
10868 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010869 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010870 PRIVATE ${CARES_INCLUDE_DIR}
10871 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10872 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Harvey Tuch5f3cfe92017-01-20 11:02:11 -050010873 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10874 PRIVATE third_party/googletest/include
10875 PRIVATE third_party/googletest
10876 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10877)
10878
10879target_link_libraries(proto_utils_test
10880 ${_gRPC_PROTOBUF_LIBRARIES}
10881 ${_gRPC_ALLTARGETS_LIBRARIES}
10882 grpc++
10883 grpc
10884 ${_gRPC_GFLAGS_LIBRARIES}
10885)
10886
10887endif (gRPC_BUILD_TESTS)
10888if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010889if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010890
10891add_executable(qps_interarrival_test
10892 test/cpp/qps/qps_interarrival_test.cc
10893 third_party/googletest/src/gtest-all.cc
10894)
10895
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010896
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010897target_include_directories(qps_interarrival_test
10898 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10899 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10900 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10901 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010902 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010903 PRIVATE ${ZLIB_ROOT_DIR}
10904 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010905 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010906 PRIVATE ${CARES_INCLUDE_DIR}
10907 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10908 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010909 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10910 PRIVATE third_party/googletest/include
10911 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010912 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010913)
10914
10915target_link_libraries(qps_interarrival_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010916 ${_gRPC_PROTOBUF_LIBRARIES}
10917 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010918 qps
10919 grpc++_test_util
10920 grpc_test_util
10921 grpc++
10922 grpc
10923 gpr_test_util
10924 gpr
10925 ${_gRPC_GFLAGS_LIBRARIES}
10926)
10927
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010928endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010929endif (gRPC_BUILD_TESTS)
10930if (gRPC_BUILD_TESTS)
10931
10932add_executable(qps_json_driver
10933 test/cpp/qps/qps_json_driver.cc
10934 third_party/googletest/src/gtest-all.cc
10935)
10936
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010937
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010938target_include_directories(qps_json_driver
10939 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10940 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10941 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10942 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010943 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010944 PRIVATE ${ZLIB_ROOT_DIR}
10945 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010946 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010947 PRIVATE ${CARES_INCLUDE_DIR}
10948 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10949 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010950 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10951 PRIVATE third_party/googletest/include
10952 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010953 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010954)
10955
10956target_link_libraries(qps_json_driver
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010957 ${_gRPC_PROTOBUF_LIBRARIES}
10958 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010959 qps
10960 grpc++_test_util
10961 grpc_test_util
10962 grpc++
10963 grpc
10964 gpr_test_util
10965 gpr
10966 grpc++_test_config
10967 ${_gRPC_GFLAGS_LIBRARIES}
10968)
10969
10970endif (gRPC_BUILD_TESTS)
10971if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010972if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010973
10974add_executable(qps_openloop_test
10975 test/cpp/qps/qps_openloop_test.cc
10976 third_party/googletest/src/gtest-all.cc
10977)
10978
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010979
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010980target_include_directories(qps_openloop_test
10981 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10982 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10983 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10984 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010985 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010986 PRIVATE ${ZLIB_ROOT_DIR}
10987 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010988 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010989 PRIVATE ${CARES_INCLUDE_DIR}
10990 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10991 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010992 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10993 PRIVATE third_party/googletest/include
10994 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010995 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010996)
10997
10998target_link_libraries(qps_openloop_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010999 ${_gRPC_PROTOBUF_LIBRARIES}
11000 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011001 qps
11002 grpc++_test_util
11003 grpc_test_util
11004 grpc++
11005 grpc
11006 gpr_test_util
11007 gpr
11008 grpc++_test_config
11009 ${_gRPC_GFLAGS_LIBRARIES}
11010)
11011
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011012endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011013endif (gRPC_BUILD_TESTS)
11014if (gRPC_BUILD_TESTS)
11015
11016add_executable(qps_worker
11017 test/cpp/qps/worker.cc
11018 third_party/googletest/src/gtest-all.cc
11019)
11020
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011021
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011022target_include_directories(qps_worker
11023 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11024 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11025 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11026 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011027 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011028 PRIVATE ${ZLIB_ROOT_DIR}
11029 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011030 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011031 PRIVATE ${CARES_INCLUDE_DIR}
11032 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11033 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011034 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11035 PRIVATE third_party/googletest/include
11036 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011037 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011038)
11039
11040target_link_libraries(qps_worker
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011041 ${_gRPC_PROTOBUF_LIBRARIES}
11042 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011043 qps
11044 grpc++_test_util
11045 grpc_test_util
11046 grpc++
11047 grpc
11048 gpr_test_util
11049 gpr
11050 grpc++_test_config
11051 ${_gRPC_GFLAGS_LIBRARIES}
11052)
11053
11054endif (gRPC_BUILD_TESTS)
11055if (gRPC_BUILD_TESTS)
11056
11057add_executable(reconnect_interop_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011058 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
11059 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
11060 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
11061 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
11062 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
11063 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
11064 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
11065 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
11066 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
11067 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
11068 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
11069 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011070 test/cpp/interop/reconnect_interop_client.cc
11071 third_party/googletest/src/gtest-all.cc
11072)
11073
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011074protobuf_generate_grpc_cpp(
11075 src/proto/grpc/testing/empty.proto
11076)
11077protobuf_generate_grpc_cpp(
11078 src/proto/grpc/testing/messages.proto
11079)
11080protobuf_generate_grpc_cpp(
11081 src/proto/grpc/testing/test.proto
11082)
11083
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011084target_include_directories(reconnect_interop_client
11085 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11086 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11087 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11088 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011089 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011090 PRIVATE ${ZLIB_ROOT_DIR}
11091 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011092 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011093 PRIVATE ${CARES_INCLUDE_DIR}
11094 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11095 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011096 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11097 PRIVATE third_party/googletest/include
11098 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011099 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011100)
11101
11102target_link_libraries(reconnect_interop_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011103 ${_gRPC_PROTOBUF_LIBRARIES}
11104 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011105 grpc++_test_util
11106 grpc_test_util
11107 grpc++
11108 grpc
11109 gpr_test_util
11110 gpr
11111 grpc++_test_config
11112 ${_gRPC_GFLAGS_LIBRARIES}
11113)
11114
11115endif (gRPC_BUILD_TESTS)
11116if (gRPC_BUILD_TESTS)
11117
11118add_executable(reconnect_interop_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011119 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
11120 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
11121 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
11122 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
11123 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
11124 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
11125 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
11126 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
11127 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
11128 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
11129 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
11130 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011131 test/cpp/interop/reconnect_interop_server.cc
11132 third_party/googletest/src/gtest-all.cc
11133)
11134
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011135protobuf_generate_grpc_cpp(
11136 src/proto/grpc/testing/empty.proto
11137)
11138protobuf_generate_grpc_cpp(
11139 src/proto/grpc/testing/messages.proto
11140)
11141protobuf_generate_grpc_cpp(
11142 src/proto/grpc/testing/test.proto
11143)
11144
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011145target_include_directories(reconnect_interop_server
11146 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11147 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11148 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11149 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011150 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011151 PRIVATE ${ZLIB_ROOT_DIR}
11152 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011153 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011154 PRIVATE ${CARES_INCLUDE_DIR}
11155 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11156 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011157 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11158 PRIVATE third_party/googletest/include
11159 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011160 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011161)
11162
11163target_link_libraries(reconnect_interop_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011164 ${_gRPC_PROTOBUF_LIBRARIES}
11165 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011166 reconnect_server
11167 test_tcp_server
11168 grpc++_test_util
11169 grpc_test_util
11170 grpc++
11171 grpc
11172 gpr_test_util
11173 gpr
11174 grpc++_test_config
11175 ${_gRPC_GFLAGS_LIBRARIES}
11176)
11177
11178endif (gRPC_BUILD_TESTS)
11179if (gRPC_BUILD_TESTS)
11180
11181add_executable(round_robin_end2end_test
11182 test/cpp/end2end/round_robin_end2end_test.cc
11183 third_party/googletest/src/gtest-all.cc
11184)
11185
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011186
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011187target_include_directories(round_robin_end2end_test
11188 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11189 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11190 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11191 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011192 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011193 PRIVATE ${ZLIB_ROOT_DIR}
11194 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011195 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011196 PRIVATE ${CARES_INCLUDE_DIR}
11197 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11198 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011199 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11200 PRIVATE third_party/googletest/include
11201 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011202 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011203)
11204
11205target_link_libraries(round_robin_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011206 ${_gRPC_PROTOBUF_LIBRARIES}
11207 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011208 grpc++_test_util
11209 grpc_test_util
11210 grpc++
11211 grpc
11212 gpr_test_util
11213 gpr
11214 ${_gRPC_GFLAGS_LIBRARIES}
11215)
11216
11217endif (gRPC_BUILD_TESTS)
11218if (gRPC_BUILD_TESTS)
11219
11220add_executable(secure_auth_context_test
11221 test/cpp/common/secure_auth_context_test.cc
11222 third_party/googletest/src/gtest-all.cc
11223)
11224
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011225
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011226target_include_directories(secure_auth_context_test
11227 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11228 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11229 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11230 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011231 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011232 PRIVATE ${ZLIB_ROOT_DIR}
11233 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011234 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011235 PRIVATE ${CARES_INCLUDE_DIR}
11236 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11237 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011238 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11239 PRIVATE third_party/googletest/include
11240 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011241 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011242)
11243
11244target_link_libraries(secure_auth_context_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011245 ${_gRPC_PROTOBUF_LIBRARIES}
11246 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011247 grpc++_test_util
11248 grpc_test_util
11249 grpc++
11250 grpc
11251 gpr_test_util
11252 gpr
11253 ${_gRPC_GFLAGS_LIBRARIES}
11254)
11255
11256endif (gRPC_BUILD_TESTS)
11257if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011258if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011259
11260add_executable(secure_sync_unary_ping_pong_test
11261 test/cpp/qps/secure_sync_unary_ping_pong_test.cc
11262 third_party/googletest/src/gtest-all.cc
11263)
11264
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011265
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011266target_include_directories(secure_sync_unary_ping_pong_test
11267 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11268 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11269 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11270 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011271 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011272 PRIVATE ${ZLIB_ROOT_DIR}
11273 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011274 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011275 PRIVATE ${CARES_INCLUDE_DIR}
11276 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11277 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011278 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11279 PRIVATE third_party/googletest/include
11280 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011281 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011282)
11283
11284target_link_libraries(secure_sync_unary_ping_pong_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011285 ${_gRPC_PROTOBUF_LIBRARIES}
11286 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011287 qps
11288 grpc++_test_util
11289 grpc_test_util
11290 grpc++
11291 grpc
11292 gpr_test_util
11293 gpr
11294 ${_gRPC_GFLAGS_LIBRARIES}
11295)
11296
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011297endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011298endif (gRPC_BUILD_TESTS)
11299if (gRPC_BUILD_TESTS)
11300
11301add_executable(server_builder_plugin_test
11302 test/cpp/end2end/server_builder_plugin_test.cc
11303 third_party/googletest/src/gtest-all.cc
11304)
11305
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011306
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011307target_include_directories(server_builder_plugin_test
11308 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11309 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11310 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11311 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011312 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011313 PRIVATE ${ZLIB_ROOT_DIR}
11314 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011315 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011316 PRIVATE ${CARES_INCLUDE_DIR}
11317 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11318 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011319 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11320 PRIVATE third_party/googletest/include
11321 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011322 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011323)
11324
11325target_link_libraries(server_builder_plugin_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011326 ${_gRPC_PROTOBUF_LIBRARIES}
11327 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011328 grpc++_test_util
11329 grpc_test_util
11330 grpc++
11331 grpc
11332 gpr_test_util
11333 gpr
11334 ${_gRPC_GFLAGS_LIBRARIES}
11335)
11336
11337endif (gRPC_BUILD_TESTS)
11338if (gRPC_BUILD_TESTS)
11339
Craig Tiller332bcc32017-03-08 12:47:46 -080011340add_executable(server_builder_test
11341 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc
11342 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc
11343 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h
11344 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h
11345 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc
11346 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc
11347 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h
11348 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h
11349 test/cpp/server/server_builder_test.cc
11350 third_party/googletest/src/gtest-all.cc
11351)
11352
11353protobuf_generate_grpc_cpp(
11354 src/proto/grpc/testing/echo_messages.proto
11355)
11356protobuf_generate_grpc_cpp(
11357 src/proto/grpc/testing/echo.proto
11358)
11359
11360target_include_directories(server_builder_test
11361 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11362 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11363 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11364 PRIVATE ${PROTOBUF_ROOT_DIR}/src
11365 PRIVATE ${BENCHMARK_ROOT_DIR}/include
11366 PRIVATE ${ZLIB_ROOT_DIR}
11367 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011368 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011369 PRIVATE ${CARES_INCLUDE_DIR}
11370 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11371 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller332bcc32017-03-08 12:47:46 -080011372 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11373 PRIVATE third_party/googletest/include
11374 PRIVATE third_party/googletest
11375 PRIVATE ${_gRPC_PROTO_GENS_DIR}
11376)
11377
11378target_link_libraries(server_builder_test
11379 ${_gRPC_PROTOBUF_LIBRARIES}
11380 ${_gRPC_ALLTARGETS_LIBRARIES}
11381 grpc++_test_util
11382 grpc_test_util
11383 gpr_test_util
11384 grpc++
11385 grpc
11386 gpr
11387 ${_gRPC_GFLAGS_LIBRARIES}
11388)
11389
11390endif (gRPC_BUILD_TESTS)
11391if (gRPC_BUILD_TESTS)
11392
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011393add_executable(server_context_test_spouse_test
11394 test/cpp/test/server_context_test_spouse_test.cc
11395 third_party/googletest/src/gtest-all.cc
11396)
11397
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011398
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011399target_include_directories(server_context_test_spouse_test
11400 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11401 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11402 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11403 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011404 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011405 PRIVATE ${ZLIB_ROOT_DIR}
11406 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011407 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011408 PRIVATE ${CARES_INCLUDE_DIR}
11409 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11410 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011411 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11412 PRIVATE third_party/googletest/include
11413 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011414 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011415)
11416
11417target_link_libraries(server_context_test_spouse_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011418 ${_gRPC_PROTOBUF_LIBRARIES}
11419 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011420 grpc_test_util
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011421 grpc++
11422 grpc
11423 gpr_test_util
11424 gpr
11425 ${_gRPC_GFLAGS_LIBRARIES}
11426)
11427
11428endif (gRPC_BUILD_TESTS)
11429if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011430if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011431
11432add_executable(server_crash_test
11433 test/cpp/end2end/server_crash_test.cc
11434 third_party/googletest/src/gtest-all.cc
11435)
11436
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011437
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011438target_include_directories(server_crash_test
11439 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11440 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11441 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11442 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011443 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011444 PRIVATE ${ZLIB_ROOT_DIR}
11445 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011446 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011447 PRIVATE ${CARES_INCLUDE_DIR}
11448 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11449 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011450 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11451 PRIVATE third_party/googletest/include
11452 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011453 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011454)
11455
11456target_link_libraries(server_crash_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011457 ${_gRPC_PROTOBUF_LIBRARIES}
11458 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011459 grpc++_test_util
11460 grpc_test_util
11461 grpc++
11462 grpc
11463 gpr_test_util
11464 gpr
11465 ${_gRPC_GFLAGS_LIBRARIES}
11466)
11467
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011468endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011469endif (gRPC_BUILD_TESTS)
11470if (gRPC_BUILD_TESTS)
11471
11472add_executable(server_crash_test_client
11473 test/cpp/end2end/server_crash_test_client.cc
11474 third_party/googletest/src/gtest-all.cc
11475)
11476
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011477
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011478target_include_directories(server_crash_test_client
11479 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11480 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11481 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11482 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011483 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011484 PRIVATE ${ZLIB_ROOT_DIR}
11485 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011486 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011487 PRIVATE ${CARES_INCLUDE_DIR}
11488 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11489 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011490 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11491 PRIVATE third_party/googletest/include
11492 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011493 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011494)
11495
11496target_link_libraries(server_crash_test_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011497 ${_gRPC_PROTOBUF_LIBRARIES}
11498 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011499 grpc++_test_util
11500 grpc_test_util
11501 grpc++
11502 grpc
11503 gpr_test_util
11504 gpr
11505 ${_gRPC_GFLAGS_LIBRARIES}
11506)
11507
11508endif (gRPC_BUILD_TESTS)
11509if (gRPC_BUILD_TESTS)
11510
11511add_executable(shutdown_test
11512 test/cpp/end2end/shutdown_test.cc
11513 third_party/googletest/src/gtest-all.cc
11514)
11515
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011516
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011517target_include_directories(shutdown_test
11518 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11519 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11520 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11521 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011522 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011523 PRIVATE ${ZLIB_ROOT_DIR}
11524 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011525 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011526 PRIVATE ${CARES_INCLUDE_DIR}
11527 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11528 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011529 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11530 PRIVATE third_party/googletest/include
11531 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011532 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011533)
11534
11535target_link_libraries(shutdown_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011536 ${_gRPC_PROTOBUF_LIBRARIES}
11537 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011538 grpc++_test_util
11539 grpc_test_util
11540 grpc++
11541 grpc
11542 gpr_test_util
11543 gpr
11544 ${_gRPC_GFLAGS_LIBRARIES}
11545)
11546
11547endif (gRPC_BUILD_TESTS)
11548if (gRPC_BUILD_TESTS)
11549
11550add_executable(status_test
11551 test/cpp/util/status_test.cc
11552 third_party/googletest/src/gtest-all.cc
11553)
11554
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011555
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011556target_include_directories(status_test
11557 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11558 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11559 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11560 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011561 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011562 PRIVATE ${ZLIB_ROOT_DIR}
11563 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011564 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011565 PRIVATE ${CARES_INCLUDE_DIR}
11566 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11567 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011568 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11569 PRIVATE third_party/googletest/include
11570 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011571 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011572)
11573
11574target_link_libraries(status_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011575 ${_gRPC_PROTOBUF_LIBRARIES}
11576 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011577 grpc_test_util
11578 grpc++
11579 grpc
11580 gpr_test_util
11581 gpr
11582 ${_gRPC_GFLAGS_LIBRARIES}
11583)
11584
11585endif (gRPC_BUILD_TESTS)
11586if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011587if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011588
11589add_executable(streaming_throughput_test
11590 test/cpp/end2end/streaming_throughput_test.cc
11591 third_party/googletest/src/gtest-all.cc
11592)
11593
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011594
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011595target_include_directories(streaming_throughput_test
11596 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11597 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11598 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11599 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011600 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011601 PRIVATE ${ZLIB_ROOT_DIR}
11602 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011603 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011604 PRIVATE ${CARES_INCLUDE_DIR}
11605 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11606 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011607 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11608 PRIVATE third_party/googletest/include
11609 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011610 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011611)
11612
11613target_link_libraries(streaming_throughput_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011614 ${_gRPC_PROTOBUF_LIBRARIES}
11615 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011616 grpc++_test_util
11617 grpc_test_util
11618 grpc++
11619 grpc
11620 gpr_test_util
11621 gpr
11622 ${_gRPC_GFLAGS_LIBRARIES}
11623)
11624
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011625endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011626endif (gRPC_BUILD_TESTS)
11627if (gRPC_BUILD_TESTS)
11628
11629add_executable(stress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011630 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
11631 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
11632 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
11633 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
11634 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
11635 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
11636 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
11637 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
11638 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.cc
11639 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.cc
11640 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.h
11641 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.h
11642 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
11643 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
11644 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
11645 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011646 test/cpp/interop/interop_client.cc
11647 test/cpp/interop/stress_interop_client.cc
11648 test/cpp/interop/stress_test.cc
11649 test/cpp/util/metrics_server.cc
11650 third_party/googletest/src/gtest-all.cc
11651)
11652
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011653protobuf_generate_grpc_cpp(
11654 src/proto/grpc/testing/empty.proto
11655)
11656protobuf_generate_grpc_cpp(
11657 src/proto/grpc/testing/messages.proto
11658)
11659protobuf_generate_grpc_cpp(
11660 src/proto/grpc/testing/metrics.proto
11661)
11662protobuf_generate_grpc_cpp(
11663 src/proto/grpc/testing/test.proto
11664)
11665
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011666target_include_directories(stress_test
11667 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11668 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11669 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11670 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011671 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011672 PRIVATE ${ZLIB_ROOT_DIR}
11673 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011674 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011675 PRIVATE ${CARES_INCLUDE_DIR}
11676 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11677 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011678 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11679 PRIVATE third_party/googletest/include
11680 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011681 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011682)
11683
11684target_link_libraries(stress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011685 ${_gRPC_PROTOBUF_LIBRARIES}
11686 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011687 grpc++_test_util
11688 grpc_test_util
11689 grpc++
11690 grpc
11691 gpr_test_util
11692 gpr
11693 grpc++_test_config
11694 ${_gRPC_GFLAGS_LIBRARIES}
11695)
11696
11697endif (gRPC_BUILD_TESTS)
11698if (gRPC_BUILD_TESTS)
11699
11700add_executable(thread_manager_test
11701 test/cpp/thread_manager/thread_manager_test.cc
11702 third_party/googletest/src/gtest-all.cc
11703)
11704
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011705
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011706target_include_directories(thread_manager_test
11707 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11708 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11709 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11710 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011711 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011712 PRIVATE ${ZLIB_ROOT_DIR}
11713 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011714 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011715 PRIVATE ${CARES_INCLUDE_DIR}
11716 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11717 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011718 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11719 PRIVATE third_party/googletest/include
11720 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011721 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011722)
11723
11724target_link_libraries(thread_manager_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011725 ${_gRPC_PROTOBUF_LIBRARIES}
11726 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011727 grpc++
11728 grpc
11729 gpr
11730 grpc++_test_config
11731 ${_gRPC_GFLAGS_LIBRARIES}
11732)
11733
11734endif (gRPC_BUILD_TESTS)
11735if (gRPC_BUILD_TESTS)
11736
11737add_executable(thread_stress_test
11738 test/cpp/end2end/thread_stress_test.cc
11739 third_party/googletest/src/gtest-all.cc
11740)
11741
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011742
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011743target_include_directories(thread_stress_test
11744 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11745 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11746 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11747 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011748 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011749 PRIVATE ${ZLIB_ROOT_DIR}
11750 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011751 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011752 PRIVATE ${CARES_INCLUDE_DIR}
11753 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11754 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011755 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11756 PRIVATE third_party/googletest/include
11757 PRIVATE third_party/googletest
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011758 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011759)
11760
11761target_link_libraries(thread_stress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011762 ${_gRPC_PROTOBUF_LIBRARIES}
11763 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011764 grpc++_test_util
11765 grpc_test_util
11766 grpc++
11767 grpc
11768 gpr_test_util
11769 gpr
11770 ${_gRPC_GFLAGS_LIBRARIES}
11771)
11772
11773endif (gRPC_BUILD_TESTS)
11774if (gRPC_BUILD_TESTS)
Craig Tiller1bb53712017-02-04 15:39:27 -080011775if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011776
Craig Tiller9a3997c2017-01-30 13:22:33 -080011777add_executable(writes_per_rpc_test
11778 test/cpp/performance/writes_per_rpc_test.cc
11779 third_party/googletest/src/gtest-all.cc
11780)
11781
Craig Tillerc40b3472017-02-03 11:54:26 -080011782
Craig Tiller9a3997c2017-01-30 13:22:33 -080011783target_include_directories(writes_per_rpc_test
11784 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11785 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11786 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11787 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Craig Tillerc40b3472017-02-03 11:54:26 -080011788 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Craig Tiller9a3997c2017-01-30 13:22:33 -080011789 PRIVATE ${ZLIB_ROOT_DIR}
11790 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011791 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011792 PRIVATE ${CARES_INCLUDE_DIR}
11793 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11794 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller9a3997c2017-01-30 13:22:33 -080011795 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11796 PRIVATE third_party/googletest/include
11797 PRIVATE third_party/googletest
Craig Tillerc40b3472017-02-03 11:54:26 -080011798 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Craig Tiller9a3997c2017-01-30 13:22:33 -080011799)
11800
11801target_link_libraries(writes_per_rpc_test
Craig Tillerc40b3472017-02-03 11:54:26 -080011802 ${_gRPC_PROTOBUF_LIBRARIES}
11803 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller9a3997c2017-01-30 13:22:33 -080011804 grpc++_test_util
11805 grpc_test_util
11806 grpc++
11807 grpc
11808 gpr_test_util
11809 gpr
11810 ${_gRPC_GFLAGS_LIBRARIES}
11811)
11812
Craig Tiller1bb53712017-02-04 15:39:27 -080011813endif()
Craig Tiller9a3997c2017-01-30 13:22:33 -080011814endif (gRPC_BUILD_TESTS)
11815if (gRPC_BUILD_TESTS)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011816
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011817add_executable(public_headers_must_be_c89
11818 test/core/surface/public_headers_must_be_c89.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011819)
11820
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011821
11822target_include_directories(public_headers_must_be_c89
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011823 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11824 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11825 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11826 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011827 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011828 PRIVATE ${ZLIB_ROOT_DIR}
11829 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011830 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011831 PRIVATE ${CARES_INCLUDE_DIR}
11832 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11833 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011834 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011835)
11836
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011837target_link_libraries(public_headers_must_be_c89
11838 ${_gRPC_ALLTARGETS_LIBRARIES}
11839 grpc
11840 gpr
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011841)
11842
11843endif (gRPC_BUILD_TESTS)
11844if (gRPC_BUILD_TESTS)
11845
11846add_executable(badreq_bad_client_test
11847 test/core/bad_client/tests/badreq.c
11848)
11849
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011850
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011851target_include_directories(badreq_bad_client_test
11852 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11853 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11854 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11855 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011856 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011857 PRIVATE ${ZLIB_ROOT_DIR}
11858 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011859 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011860 PRIVATE ${CARES_INCLUDE_DIR}
11861 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11862 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011863 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11864)
11865
11866target_link_libraries(badreq_bad_client_test
11867 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011868 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011869 bad_client_test
11870 grpc_test_util_unsecure
11871 grpc_unsecure
11872 gpr_test_util
11873 gpr
11874)
11875
11876endif (gRPC_BUILD_TESTS)
11877if (gRPC_BUILD_TESTS)
11878
11879add_executable(connection_prefix_bad_client_test
11880 test/core/bad_client/tests/connection_prefix.c
11881)
11882
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011883
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011884target_include_directories(connection_prefix_bad_client_test
11885 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11886 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11887 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11888 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011889 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011890 PRIVATE ${ZLIB_ROOT_DIR}
11891 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011892 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011893 PRIVATE ${CARES_INCLUDE_DIR}
11894 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11895 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011896 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11897)
11898
11899target_link_libraries(connection_prefix_bad_client_test
11900 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011901 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011902 bad_client_test
11903 grpc_test_util_unsecure
11904 grpc_unsecure
11905 gpr_test_util
11906 gpr
11907)
11908
11909endif (gRPC_BUILD_TESTS)
11910if (gRPC_BUILD_TESTS)
11911
11912add_executable(head_of_line_blocking_bad_client_test
11913 test/core/bad_client/tests/head_of_line_blocking.c
11914)
11915
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011916
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011917target_include_directories(head_of_line_blocking_bad_client_test
11918 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11919 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11920 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11921 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011922 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011923 PRIVATE ${ZLIB_ROOT_DIR}
11924 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011925 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011926 PRIVATE ${CARES_INCLUDE_DIR}
11927 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11928 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011929 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11930)
11931
11932target_link_libraries(head_of_line_blocking_bad_client_test
11933 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011934 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011935 bad_client_test
11936 grpc_test_util_unsecure
11937 grpc_unsecure
11938 gpr_test_util
11939 gpr
11940)
11941
11942endif (gRPC_BUILD_TESTS)
11943if (gRPC_BUILD_TESTS)
11944
11945add_executable(headers_bad_client_test
11946 test/core/bad_client/tests/headers.c
11947)
11948
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011949
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011950target_include_directories(headers_bad_client_test
11951 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11952 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11953 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11954 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011955 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011956 PRIVATE ${ZLIB_ROOT_DIR}
11957 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011958 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011959 PRIVATE ${CARES_INCLUDE_DIR}
11960 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11961 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011962 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11963)
11964
11965target_link_libraries(headers_bad_client_test
11966 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011967 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011968 bad_client_test
11969 grpc_test_util_unsecure
11970 grpc_unsecure
11971 gpr_test_util
11972 gpr
11973)
11974
11975endif (gRPC_BUILD_TESTS)
11976if (gRPC_BUILD_TESTS)
11977
11978add_executable(initial_settings_frame_bad_client_test
11979 test/core/bad_client/tests/initial_settings_frame.c
11980)
11981
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011982
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011983target_include_directories(initial_settings_frame_bad_client_test
11984 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11985 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11986 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11987 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011988 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011989 PRIVATE ${ZLIB_ROOT_DIR}
11990 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011991 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011992 PRIVATE ${CARES_INCLUDE_DIR}
11993 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11994 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011995 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
11996)
11997
11998target_link_libraries(initial_settings_frame_bad_client_test
11999 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012000 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012001 bad_client_test
12002 grpc_test_util_unsecure
12003 grpc_unsecure
12004 gpr_test_util
12005 gpr
12006)
12007
12008endif (gRPC_BUILD_TESTS)
12009if (gRPC_BUILD_TESTS)
12010
12011add_executable(large_metadata_bad_client_test
12012 test/core/bad_client/tests/large_metadata.c
12013)
12014
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012015
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012016target_include_directories(large_metadata_bad_client_test
12017 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12018 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12019 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12020 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012021 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012022 PRIVATE ${ZLIB_ROOT_DIR}
12023 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012024 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012025 PRIVATE ${CARES_INCLUDE_DIR}
12026 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12027 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012028 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12029)
12030
12031target_link_libraries(large_metadata_bad_client_test
12032 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012033 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012034 bad_client_test
12035 grpc_test_util_unsecure
12036 grpc_unsecure
12037 gpr_test_util
12038 gpr
12039)
12040
12041endif (gRPC_BUILD_TESTS)
12042if (gRPC_BUILD_TESTS)
12043
12044add_executable(server_registered_method_bad_client_test
12045 test/core/bad_client/tests/server_registered_method.c
12046)
12047
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012048
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012049target_include_directories(server_registered_method_bad_client_test
12050 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12051 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12052 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12053 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012054 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012055 PRIVATE ${ZLIB_ROOT_DIR}
12056 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012057 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012058 PRIVATE ${CARES_INCLUDE_DIR}
12059 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12060 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012061 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12062)
12063
12064target_link_libraries(server_registered_method_bad_client_test
12065 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012066 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012067 bad_client_test
12068 grpc_test_util_unsecure
12069 grpc_unsecure
12070 gpr_test_util
12071 gpr
12072)
12073
12074endif (gRPC_BUILD_TESTS)
12075if (gRPC_BUILD_TESTS)
12076
12077add_executable(simple_request_bad_client_test
12078 test/core/bad_client/tests/simple_request.c
12079)
12080
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012081
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012082target_include_directories(simple_request_bad_client_test
12083 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12084 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12085 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12086 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012087 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012088 PRIVATE ${ZLIB_ROOT_DIR}
12089 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012090 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012091 PRIVATE ${CARES_INCLUDE_DIR}
12092 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12093 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012094 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12095)
12096
12097target_link_libraries(simple_request_bad_client_test
12098 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012099 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012100 bad_client_test
12101 grpc_test_util_unsecure
12102 grpc_unsecure
12103 gpr_test_util
12104 gpr
12105)
12106
12107endif (gRPC_BUILD_TESTS)
12108if (gRPC_BUILD_TESTS)
12109
12110add_executable(unknown_frame_bad_client_test
12111 test/core/bad_client/tests/unknown_frame.c
12112)
12113
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012114
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012115target_include_directories(unknown_frame_bad_client_test
12116 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12117 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12118 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12119 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012120 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012121 PRIVATE ${ZLIB_ROOT_DIR}
12122 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012123 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012124 PRIVATE ${CARES_INCLUDE_DIR}
12125 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12126 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012127 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12128)
12129
12130target_link_libraries(unknown_frame_bad_client_test
12131 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012132 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012133 bad_client_test
12134 grpc_test_util_unsecure
12135 grpc_unsecure
12136 gpr_test_util
12137 gpr
12138)
12139
12140endif (gRPC_BUILD_TESTS)
12141if (gRPC_BUILD_TESTS)
12142
12143add_executable(window_overflow_bad_client_test
12144 test/core/bad_client/tests/window_overflow.c
12145)
12146
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012147
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012148target_include_directories(window_overflow_bad_client_test
12149 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12150 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12151 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12152 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012153 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012154 PRIVATE ${ZLIB_ROOT_DIR}
12155 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012156 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012157 PRIVATE ${CARES_INCLUDE_DIR}
12158 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12159 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012160 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12161)
12162
12163target_link_libraries(window_overflow_bad_client_test
12164 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012165 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012166 bad_client_test
12167 grpc_test_util_unsecure
12168 grpc_unsecure
12169 gpr_test_util
12170 gpr
12171)
12172
12173endif (gRPC_BUILD_TESTS)
12174if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012175if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012176
12177add_executable(bad_ssl_cert_server
12178 test/core/bad_ssl/servers/cert.c
12179)
12180
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012181
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012182target_include_directories(bad_ssl_cert_server
12183 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12184 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12185 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12186 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012187 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012188 PRIVATE ${ZLIB_ROOT_DIR}
12189 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012190 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012191 PRIVATE ${CARES_INCLUDE_DIR}
12192 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12193 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012194 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12195)
12196
12197target_link_libraries(bad_ssl_cert_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012198 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012199 bad_ssl_test_server
12200 grpc_test_util
12201 grpc
12202 gpr_test_util
12203 gpr
12204)
12205
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012206endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012207endif (gRPC_BUILD_TESTS)
12208if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012209if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012210
12211add_executable(bad_ssl_cert_test
12212 test/core/bad_ssl/bad_ssl_test.c
12213)
12214
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012215
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012216target_include_directories(bad_ssl_cert_test
12217 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12218 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12219 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12220 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012221 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012222 PRIVATE ${ZLIB_ROOT_DIR}
12223 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012224 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012225 PRIVATE ${CARES_INCLUDE_DIR}
12226 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12227 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012228 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12229)
12230
12231target_link_libraries(bad_ssl_cert_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012232 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012233 grpc_test_util
12234 grpc
12235 gpr_test_util
12236 gpr
12237)
12238
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012239endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012240endif (gRPC_BUILD_TESTS)
12241if (gRPC_BUILD_TESTS)
12242
12243add_executable(h2_census_test
12244 test/core/end2end/fixtures/h2_census.c
12245)
12246
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012247
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012248target_include_directories(h2_census_test
12249 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12250 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12251 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12252 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012253 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012254 PRIVATE ${ZLIB_ROOT_DIR}
12255 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012256 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012257 PRIVATE ${CARES_INCLUDE_DIR}
12258 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12259 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012260 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12261)
12262
12263target_link_libraries(h2_census_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012264 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012265 end2end_tests
12266 grpc_test_util
12267 grpc
12268 gpr_test_util
12269 gpr
12270)
12271
12272endif (gRPC_BUILD_TESTS)
12273if (gRPC_BUILD_TESTS)
12274
12275add_executable(h2_compress_test
12276 test/core/end2end/fixtures/h2_compress.c
12277)
12278
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012279
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012280target_include_directories(h2_compress_test
12281 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12282 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12283 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12284 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012285 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012286 PRIVATE ${ZLIB_ROOT_DIR}
12287 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012288 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012289 PRIVATE ${CARES_INCLUDE_DIR}
12290 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12291 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012292 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12293)
12294
12295target_link_libraries(h2_compress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012296 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012297 end2end_tests
12298 grpc_test_util
12299 grpc
12300 gpr_test_util
12301 gpr
12302)
12303
12304endif (gRPC_BUILD_TESTS)
12305if (gRPC_BUILD_TESTS)
12306
12307add_executable(h2_fakesec_test
12308 test/core/end2end/fixtures/h2_fakesec.c
12309)
12310
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012311
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012312target_include_directories(h2_fakesec_test
12313 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12314 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12315 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12316 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012317 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012318 PRIVATE ${ZLIB_ROOT_DIR}
12319 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012320 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012321 PRIVATE ${CARES_INCLUDE_DIR}
12322 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12323 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012324 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12325)
12326
12327target_link_libraries(h2_fakesec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012328 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012329 end2end_tests
12330 grpc_test_util
12331 grpc
12332 gpr_test_util
12333 gpr
12334)
12335
12336endif (gRPC_BUILD_TESTS)
12337if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012338if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012339
12340add_executable(h2_fd_test
12341 test/core/end2end/fixtures/h2_fd.c
12342)
12343
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012344
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012345target_include_directories(h2_fd_test
12346 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12347 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12348 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12349 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012350 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012351 PRIVATE ${ZLIB_ROOT_DIR}
12352 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012353 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012354 PRIVATE ${CARES_INCLUDE_DIR}
12355 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12356 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012357 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12358)
12359
12360target_link_libraries(h2_fd_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012361 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012362 end2end_tests
12363 grpc_test_util
12364 grpc
12365 gpr_test_util
12366 gpr
12367)
12368
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012369endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012370endif (gRPC_BUILD_TESTS)
12371if (gRPC_BUILD_TESTS)
12372
12373add_executable(h2_full_test
12374 test/core/end2end/fixtures/h2_full.c
12375)
12376
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012377
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012378target_include_directories(h2_full_test
12379 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12380 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12381 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12382 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012383 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012384 PRIVATE ${ZLIB_ROOT_DIR}
12385 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012386 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012387 PRIVATE ${CARES_INCLUDE_DIR}
12388 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12389 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012390 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12391)
12392
12393target_link_libraries(h2_full_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012394 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012395 end2end_tests
12396 grpc_test_util
12397 grpc
12398 gpr_test_util
12399 gpr
12400)
12401
12402endif (gRPC_BUILD_TESTS)
12403if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012404if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012405
12406add_executable(h2_full+pipe_test
12407 test/core/end2end/fixtures/h2_full+pipe.c
12408)
12409
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012410
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012411target_include_directories(h2_full+pipe_test
12412 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12413 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12414 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12415 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012416 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012417 PRIVATE ${ZLIB_ROOT_DIR}
12418 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012419 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012420 PRIVATE ${CARES_INCLUDE_DIR}
12421 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12422 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012423 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12424)
12425
12426target_link_libraries(h2_full+pipe_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012427 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012428 end2end_tests
12429 grpc_test_util
12430 grpc
12431 gpr_test_util
12432 gpr
12433)
12434
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012435endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012436endif (gRPC_BUILD_TESTS)
12437if (gRPC_BUILD_TESTS)
12438
12439add_executable(h2_full+trace_test
12440 test/core/end2end/fixtures/h2_full+trace.c
12441)
12442
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012443
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012444target_include_directories(h2_full+trace_test
12445 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12446 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12447 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12448 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012449 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012450 PRIVATE ${ZLIB_ROOT_DIR}
12451 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012452 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012453 PRIVATE ${CARES_INCLUDE_DIR}
12454 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12455 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012456 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12457)
12458
12459target_link_libraries(h2_full+trace_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012460 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012461 end2end_tests
12462 grpc_test_util
12463 grpc
12464 gpr_test_util
12465 gpr
12466)
12467
12468endif (gRPC_BUILD_TESTS)
12469if (gRPC_BUILD_TESTS)
12470
12471add_executable(h2_http_proxy_test
12472 test/core/end2end/fixtures/h2_http_proxy.c
12473)
12474
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012475
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012476target_include_directories(h2_http_proxy_test
12477 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12478 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12479 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12480 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012481 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012482 PRIVATE ${ZLIB_ROOT_DIR}
12483 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012484 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012485 PRIVATE ${CARES_INCLUDE_DIR}
12486 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12487 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012488 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12489)
12490
12491target_link_libraries(h2_http_proxy_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012492 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012493 end2end_tests
12494 grpc_test_util
12495 grpc
12496 gpr_test_util
12497 gpr
12498)
12499
12500endif (gRPC_BUILD_TESTS)
12501if (gRPC_BUILD_TESTS)
12502
12503add_executable(h2_load_reporting_test
12504 test/core/end2end/fixtures/h2_load_reporting.c
12505)
12506
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012507
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012508target_include_directories(h2_load_reporting_test
12509 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12510 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12511 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12512 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012513 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012514 PRIVATE ${ZLIB_ROOT_DIR}
12515 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012516 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012517 PRIVATE ${CARES_INCLUDE_DIR}
12518 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12519 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012520 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12521)
12522
12523target_link_libraries(h2_load_reporting_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012524 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012525 end2end_tests
12526 grpc_test_util
12527 grpc
12528 gpr_test_util
12529 gpr
12530)
12531
12532endif (gRPC_BUILD_TESTS)
12533if (gRPC_BUILD_TESTS)
12534
12535add_executable(h2_oauth2_test
12536 test/core/end2end/fixtures/h2_oauth2.c
12537)
12538
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012539
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012540target_include_directories(h2_oauth2_test
12541 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12542 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12543 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12544 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012545 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012546 PRIVATE ${ZLIB_ROOT_DIR}
12547 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012548 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012549 PRIVATE ${CARES_INCLUDE_DIR}
12550 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12551 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012552 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12553)
12554
12555target_link_libraries(h2_oauth2_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012556 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012557 end2end_tests
12558 grpc_test_util
12559 grpc
12560 gpr_test_util
12561 gpr
12562)
12563
12564endif (gRPC_BUILD_TESTS)
12565if (gRPC_BUILD_TESTS)
12566
12567add_executable(h2_proxy_test
12568 test/core/end2end/fixtures/h2_proxy.c
12569)
12570
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012571
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012572target_include_directories(h2_proxy_test
12573 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12574 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12575 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12576 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012577 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012578 PRIVATE ${ZLIB_ROOT_DIR}
12579 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012580 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012581 PRIVATE ${CARES_INCLUDE_DIR}
12582 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12583 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012584 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12585)
12586
12587target_link_libraries(h2_proxy_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012588 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012589 end2end_tests
12590 grpc_test_util
12591 grpc
12592 gpr_test_util
12593 gpr
12594)
12595
12596endif (gRPC_BUILD_TESTS)
12597if (gRPC_BUILD_TESTS)
12598
12599add_executable(h2_sockpair_test
12600 test/core/end2end/fixtures/h2_sockpair.c
12601)
12602
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012603
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012604target_include_directories(h2_sockpair_test
12605 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12606 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12607 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12608 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012609 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012610 PRIVATE ${ZLIB_ROOT_DIR}
12611 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012612 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012613 PRIVATE ${CARES_INCLUDE_DIR}
12614 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12615 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012616 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12617)
12618
12619target_link_libraries(h2_sockpair_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012620 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012621 end2end_tests
12622 grpc_test_util
12623 grpc
12624 gpr_test_util
12625 gpr
12626)
12627
12628endif (gRPC_BUILD_TESTS)
12629if (gRPC_BUILD_TESTS)
12630
12631add_executable(h2_sockpair+trace_test
12632 test/core/end2end/fixtures/h2_sockpair+trace.c
12633)
12634
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012635
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012636target_include_directories(h2_sockpair+trace_test
12637 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12638 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12639 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12640 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012641 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012642 PRIVATE ${ZLIB_ROOT_DIR}
12643 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012644 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012645 PRIVATE ${CARES_INCLUDE_DIR}
12646 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12647 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012648 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12649)
12650
12651target_link_libraries(h2_sockpair+trace_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012652 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012653 end2end_tests
12654 grpc_test_util
12655 grpc
12656 gpr_test_util
12657 gpr
12658)
12659
12660endif (gRPC_BUILD_TESTS)
12661if (gRPC_BUILD_TESTS)
12662
12663add_executable(h2_sockpair_1byte_test
12664 test/core/end2end/fixtures/h2_sockpair_1byte.c
12665)
12666
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012667
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012668target_include_directories(h2_sockpair_1byte_test
12669 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12670 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12671 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12672 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012673 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012674 PRIVATE ${ZLIB_ROOT_DIR}
12675 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012676 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012677 PRIVATE ${CARES_INCLUDE_DIR}
12678 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12679 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012680 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12681)
12682
12683target_link_libraries(h2_sockpair_1byte_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012684 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012685 end2end_tests
12686 grpc_test_util
12687 grpc
12688 gpr_test_util
12689 gpr
12690)
12691
12692endif (gRPC_BUILD_TESTS)
12693if (gRPC_BUILD_TESTS)
12694
12695add_executable(h2_ssl_test
12696 test/core/end2end/fixtures/h2_ssl.c
12697)
12698
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012699
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012700target_include_directories(h2_ssl_test
12701 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12702 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12703 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12704 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012705 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012706 PRIVATE ${ZLIB_ROOT_DIR}
12707 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012708 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012709 PRIVATE ${CARES_INCLUDE_DIR}
12710 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12711 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012712 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12713)
12714
12715target_link_libraries(h2_ssl_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012716 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012717 end2end_tests
12718 grpc_test_util
12719 grpc
12720 gpr_test_util
12721 gpr
12722)
12723
12724endif (gRPC_BUILD_TESTS)
12725if (gRPC_BUILD_TESTS)
12726
12727add_executable(h2_ssl_cert_test
12728 test/core/end2end/fixtures/h2_ssl_cert.c
12729)
12730
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012731
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012732target_include_directories(h2_ssl_cert_test
12733 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12734 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12735 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12736 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012737 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012738 PRIVATE ${ZLIB_ROOT_DIR}
12739 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012740 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012741 PRIVATE ${CARES_INCLUDE_DIR}
12742 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12743 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012744 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12745)
12746
12747target_link_libraries(h2_ssl_cert_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012748 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012749 end2end_tests
12750 grpc_test_util
12751 grpc
12752 gpr_test_util
12753 gpr
12754)
12755
12756endif (gRPC_BUILD_TESTS)
12757if (gRPC_BUILD_TESTS)
12758
12759add_executable(h2_ssl_proxy_test
12760 test/core/end2end/fixtures/h2_ssl_proxy.c
12761)
12762
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012763
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012764target_include_directories(h2_ssl_proxy_test
12765 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12766 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12767 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12768 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012769 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012770 PRIVATE ${ZLIB_ROOT_DIR}
12771 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012772 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012773 PRIVATE ${CARES_INCLUDE_DIR}
12774 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12775 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012776 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12777)
12778
12779target_link_libraries(h2_ssl_proxy_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012780 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012781 end2end_tests
12782 grpc_test_util
12783 grpc
12784 gpr_test_util
12785 gpr
12786)
12787
12788endif (gRPC_BUILD_TESTS)
12789if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012790if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012791
12792add_executable(h2_uds_test
12793 test/core/end2end/fixtures/h2_uds.c
12794)
12795
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012796
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012797target_include_directories(h2_uds_test
12798 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12799 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12800 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12801 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012802 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012803 PRIVATE ${ZLIB_ROOT_DIR}
12804 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012805 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012806 PRIVATE ${CARES_INCLUDE_DIR}
12807 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12808 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012809 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12810)
12811
12812target_link_libraries(h2_uds_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012813 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012814 end2end_tests
12815 grpc_test_util
12816 grpc
12817 gpr_test_util
12818 gpr
12819)
12820
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012821endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012822endif (gRPC_BUILD_TESTS)
12823if (gRPC_BUILD_TESTS)
12824
12825add_executable(h2_census_nosec_test
12826 test/core/end2end/fixtures/h2_census.c
12827)
12828
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012829
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012830target_include_directories(h2_census_nosec_test
12831 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12832 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12833 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12834 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012835 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012836 PRIVATE ${ZLIB_ROOT_DIR}
12837 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012838 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012839 PRIVATE ${CARES_INCLUDE_DIR}
12840 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12841 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012842 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12843)
12844
12845target_link_libraries(h2_census_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012846 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012847 end2end_nosec_tests
12848 grpc_test_util_unsecure
12849 grpc_unsecure
12850 gpr_test_util
12851 gpr
12852)
12853
12854endif (gRPC_BUILD_TESTS)
12855if (gRPC_BUILD_TESTS)
12856
12857add_executable(h2_compress_nosec_test
12858 test/core/end2end/fixtures/h2_compress.c
12859)
12860
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012861
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012862target_include_directories(h2_compress_nosec_test
12863 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12864 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12865 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12866 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012867 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012868 PRIVATE ${ZLIB_ROOT_DIR}
12869 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012870 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012871 PRIVATE ${CARES_INCLUDE_DIR}
12872 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12873 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012874 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12875)
12876
12877target_link_libraries(h2_compress_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012878 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012879 end2end_nosec_tests
12880 grpc_test_util_unsecure
12881 grpc_unsecure
12882 gpr_test_util
12883 gpr
12884)
12885
12886endif (gRPC_BUILD_TESTS)
12887if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012888if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012889
12890add_executable(h2_fd_nosec_test
12891 test/core/end2end/fixtures/h2_fd.c
12892)
12893
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012894
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012895target_include_directories(h2_fd_nosec_test
12896 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12897 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12898 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12899 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012900 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012901 PRIVATE ${ZLIB_ROOT_DIR}
12902 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012903 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012904 PRIVATE ${CARES_INCLUDE_DIR}
12905 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12906 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012907 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12908)
12909
12910target_link_libraries(h2_fd_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012911 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012912 end2end_nosec_tests
12913 grpc_test_util_unsecure
12914 grpc_unsecure
12915 gpr_test_util
12916 gpr
12917)
12918
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012919endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012920endif (gRPC_BUILD_TESTS)
12921if (gRPC_BUILD_TESTS)
12922
12923add_executable(h2_full_nosec_test
12924 test/core/end2end/fixtures/h2_full.c
12925)
12926
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012927
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012928target_include_directories(h2_full_nosec_test
12929 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12930 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12931 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12932 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012933 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012934 PRIVATE ${ZLIB_ROOT_DIR}
12935 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012936 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012937 PRIVATE ${CARES_INCLUDE_DIR}
12938 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12939 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012940 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12941)
12942
12943target_link_libraries(h2_full_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012944 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012945 end2end_nosec_tests
12946 grpc_test_util_unsecure
12947 grpc_unsecure
12948 gpr_test_util
12949 gpr
12950)
12951
12952endif (gRPC_BUILD_TESTS)
12953if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012954if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012955
12956add_executable(h2_full+pipe_nosec_test
12957 test/core/end2end/fixtures/h2_full+pipe.c
12958)
12959
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012960
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012961target_include_directories(h2_full+pipe_nosec_test
12962 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12963 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12964 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12965 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012966 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012967 PRIVATE ${ZLIB_ROOT_DIR}
12968 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012969 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012970 PRIVATE ${CARES_INCLUDE_DIR}
12971 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12972 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012973 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12974)
12975
12976target_link_libraries(h2_full+pipe_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012977 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012978 end2end_nosec_tests
12979 grpc_test_util_unsecure
12980 grpc_unsecure
12981 gpr_test_util
12982 gpr
12983)
12984
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012985endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012986endif (gRPC_BUILD_TESTS)
12987if (gRPC_BUILD_TESTS)
12988
12989add_executable(h2_full+trace_nosec_test
12990 test/core/end2end/fixtures/h2_full+trace.c
12991)
12992
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012993
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012994target_include_directories(h2_full+trace_nosec_test
12995 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12996 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12997 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12998 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012999 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013000 PRIVATE ${ZLIB_ROOT_DIR}
13001 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013002 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013003 PRIVATE ${CARES_INCLUDE_DIR}
13004 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13005 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013006 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13007)
13008
13009target_link_libraries(h2_full+trace_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013010 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013011 end2end_nosec_tests
13012 grpc_test_util_unsecure
13013 grpc_unsecure
13014 gpr_test_util
13015 gpr
13016)
13017
13018endif (gRPC_BUILD_TESTS)
13019if (gRPC_BUILD_TESTS)
13020
13021add_executable(h2_http_proxy_nosec_test
13022 test/core/end2end/fixtures/h2_http_proxy.c
13023)
13024
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013025
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013026target_include_directories(h2_http_proxy_nosec_test
13027 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13028 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13029 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13030 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013031 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013032 PRIVATE ${ZLIB_ROOT_DIR}
13033 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013034 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013035 PRIVATE ${CARES_INCLUDE_DIR}
13036 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13037 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013038 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13039)
13040
13041target_link_libraries(h2_http_proxy_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013042 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013043 end2end_nosec_tests
13044 grpc_test_util_unsecure
13045 grpc_unsecure
13046 gpr_test_util
13047 gpr
13048)
13049
13050endif (gRPC_BUILD_TESTS)
13051if (gRPC_BUILD_TESTS)
13052
13053add_executable(h2_load_reporting_nosec_test
13054 test/core/end2end/fixtures/h2_load_reporting.c
13055)
13056
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013057
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013058target_include_directories(h2_load_reporting_nosec_test
13059 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13060 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13061 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13062 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013063 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013064 PRIVATE ${ZLIB_ROOT_DIR}
13065 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013066 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013067 PRIVATE ${CARES_INCLUDE_DIR}
13068 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13069 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013070 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13071)
13072
13073target_link_libraries(h2_load_reporting_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013074 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013075 end2end_nosec_tests
13076 grpc_test_util_unsecure
13077 grpc_unsecure
13078 gpr_test_util
13079 gpr
13080)
13081
13082endif (gRPC_BUILD_TESTS)
13083if (gRPC_BUILD_TESTS)
13084
13085add_executable(h2_proxy_nosec_test
13086 test/core/end2end/fixtures/h2_proxy.c
13087)
13088
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013089
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013090target_include_directories(h2_proxy_nosec_test
13091 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13092 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13093 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13094 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013095 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013096 PRIVATE ${ZLIB_ROOT_DIR}
13097 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013098 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013099 PRIVATE ${CARES_INCLUDE_DIR}
13100 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13101 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013102 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13103)
13104
13105target_link_libraries(h2_proxy_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013106 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013107 end2end_nosec_tests
13108 grpc_test_util_unsecure
13109 grpc_unsecure
13110 gpr_test_util
13111 gpr
13112)
13113
13114endif (gRPC_BUILD_TESTS)
13115if (gRPC_BUILD_TESTS)
13116
13117add_executable(h2_sockpair_nosec_test
13118 test/core/end2end/fixtures/h2_sockpair.c
13119)
13120
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013121
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013122target_include_directories(h2_sockpair_nosec_test
13123 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13124 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13125 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13126 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013127 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013128 PRIVATE ${ZLIB_ROOT_DIR}
13129 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013130 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013131 PRIVATE ${CARES_INCLUDE_DIR}
13132 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13133 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013134 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13135)
13136
13137target_link_libraries(h2_sockpair_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013138 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013139 end2end_nosec_tests
13140 grpc_test_util_unsecure
13141 grpc_unsecure
13142 gpr_test_util
13143 gpr
13144)
13145
13146endif (gRPC_BUILD_TESTS)
13147if (gRPC_BUILD_TESTS)
13148
13149add_executable(h2_sockpair+trace_nosec_test
13150 test/core/end2end/fixtures/h2_sockpair+trace.c
13151)
13152
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013153
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013154target_include_directories(h2_sockpair+trace_nosec_test
13155 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13156 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13157 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13158 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013159 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013160 PRIVATE ${ZLIB_ROOT_DIR}
13161 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013162 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013163 PRIVATE ${CARES_INCLUDE_DIR}
13164 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13165 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013166 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13167)
13168
13169target_link_libraries(h2_sockpair+trace_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013170 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013171 end2end_nosec_tests
13172 grpc_test_util_unsecure
13173 grpc_unsecure
13174 gpr_test_util
13175 gpr
13176)
13177
13178endif (gRPC_BUILD_TESTS)
13179if (gRPC_BUILD_TESTS)
13180
13181add_executable(h2_sockpair_1byte_nosec_test
13182 test/core/end2end/fixtures/h2_sockpair_1byte.c
13183)
13184
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013185
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013186target_include_directories(h2_sockpair_1byte_nosec_test
13187 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13188 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13189 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13190 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013191 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013192 PRIVATE ${ZLIB_ROOT_DIR}
13193 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013194 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013195 PRIVATE ${CARES_INCLUDE_DIR}
13196 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13197 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013198 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13199)
13200
13201target_link_libraries(h2_sockpair_1byte_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013202 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013203 end2end_nosec_tests
13204 grpc_test_util_unsecure
13205 grpc_unsecure
13206 gpr_test_util
13207 gpr
13208)
13209
13210endif (gRPC_BUILD_TESTS)
13211if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013212if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013213
13214add_executable(h2_uds_nosec_test
13215 test/core/end2end/fixtures/h2_uds.c
13216)
13217
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013218
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013219target_include_directories(h2_uds_nosec_test
13220 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13221 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13222 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13223 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013224 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013225 PRIVATE ${ZLIB_ROOT_DIR}
13226 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013227 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013228 PRIVATE ${CARES_INCLUDE_DIR}
13229 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13230 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013231 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13232)
13233
13234target_link_libraries(h2_uds_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013235 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013236 end2end_nosec_tests
13237 grpc_test_util_unsecure
13238 grpc_unsecure
13239 gpr_test_util
13240 gpr
13241)
13242
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013243endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013244endif (gRPC_BUILD_TESTS)
13245if (gRPC_BUILD_TESTS)
13246
13247add_executable(api_fuzzer_one_entry
13248 test/core/end2end/fuzzers/api_fuzzer.c
13249 test/core/util/one_corpus_entry_fuzzer.c
13250)
13251
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013252
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013253target_include_directories(api_fuzzer_one_entry
13254 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13255 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13256 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13257 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013258 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013259 PRIVATE ${ZLIB_ROOT_DIR}
13260 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013261 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013262 PRIVATE ${CARES_INCLUDE_DIR}
13263 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13264 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013265 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13266)
13267
13268target_link_libraries(api_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013269 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013270 grpc_test_util
13271 grpc
13272 gpr_test_util
13273 gpr
13274)
13275
13276endif (gRPC_BUILD_TESTS)
13277if (gRPC_BUILD_TESTS)
13278
13279add_executable(client_fuzzer_one_entry
13280 test/core/end2end/fuzzers/client_fuzzer.c
13281 test/core/util/one_corpus_entry_fuzzer.c
13282)
13283
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013284
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013285target_include_directories(client_fuzzer_one_entry
13286 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13287 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13288 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13289 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013290 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013291 PRIVATE ${ZLIB_ROOT_DIR}
13292 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013293 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013294 PRIVATE ${CARES_INCLUDE_DIR}
13295 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13296 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013297 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13298)
13299
13300target_link_libraries(client_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013301 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013302 grpc_test_util
13303 grpc
13304 gpr_test_util
13305 gpr
13306)
13307
13308endif (gRPC_BUILD_TESTS)
13309if (gRPC_BUILD_TESTS)
13310
13311add_executable(hpack_parser_fuzzer_test_one_entry
13312 test/core/transport/chttp2/hpack_parser_fuzzer_test.c
13313 test/core/util/one_corpus_entry_fuzzer.c
13314)
13315
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013316
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013317target_include_directories(hpack_parser_fuzzer_test_one_entry
13318 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13319 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13320 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13321 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013322 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013323 PRIVATE ${ZLIB_ROOT_DIR}
13324 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013325 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013326 PRIVATE ${CARES_INCLUDE_DIR}
13327 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13328 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013329 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13330)
13331
13332target_link_libraries(hpack_parser_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013333 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013334 grpc_test_util
13335 grpc
13336 gpr_test_util
13337 gpr
13338)
13339
13340endif (gRPC_BUILD_TESTS)
13341if (gRPC_BUILD_TESTS)
13342
13343add_executable(http_request_fuzzer_test_one_entry
13344 test/core/http/request_fuzzer.c
13345 test/core/util/one_corpus_entry_fuzzer.c
13346)
13347
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013348
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013349target_include_directories(http_request_fuzzer_test_one_entry
13350 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13351 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13352 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13353 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013354 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013355 PRIVATE ${ZLIB_ROOT_DIR}
13356 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013357 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013358 PRIVATE ${CARES_INCLUDE_DIR}
13359 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13360 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013361 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13362)
13363
13364target_link_libraries(http_request_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013365 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013366 grpc_test_util
13367 grpc
13368 gpr_test_util
13369 gpr
13370)
13371
13372endif (gRPC_BUILD_TESTS)
13373if (gRPC_BUILD_TESTS)
13374
13375add_executable(http_response_fuzzer_test_one_entry
13376 test/core/http/response_fuzzer.c
13377 test/core/util/one_corpus_entry_fuzzer.c
13378)
13379
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013380
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013381target_include_directories(http_response_fuzzer_test_one_entry
13382 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13383 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13384 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13385 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013386 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013387 PRIVATE ${ZLIB_ROOT_DIR}
13388 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013389 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013390 PRIVATE ${CARES_INCLUDE_DIR}
13391 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13392 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013393 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13394)
13395
13396target_link_libraries(http_response_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013397 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013398 grpc_test_util
13399 grpc
13400 gpr_test_util
13401 gpr
13402)
13403
13404endif (gRPC_BUILD_TESTS)
13405if (gRPC_BUILD_TESTS)
13406
13407add_executable(json_fuzzer_test_one_entry
13408 test/core/json/fuzzer.c
13409 test/core/util/one_corpus_entry_fuzzer.c
13410)
13411
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013412
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013413target_include_directories(json_fuzzer_test_one_entry
13414 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13415 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13416 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13417 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013418 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013419 PRIVATE ${ZLIB_ROOT_DIR}
13420 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013421 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013422 PRIVATE ${CARES_INCLUDE_DIR}
13423 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13424 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013425 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13426)
13427
13428target_link_libraries(json_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013429 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013430 grpc_test_util
13431 grpc
13432 gpr_test_util
13433 gpr
13434)
13435
13436endif (gRPC_BUILD_TESTS)
13437if (gRPC_BUILD_TESTS)
13438
13439add_executable(nanopb_fuzzer_response_test_one_entry
13440 test/core/nanopb/fuzzer_response.c
13441 test/core/util/one_corpus_entry_fuzzer.c
13442)
13443
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013444
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013445target_include_directories(nanopb_fuzzer_response_test_one_entry
13446 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13447 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13448 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13449 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013450 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013451 PRIVATE ${ZLIB_ROOT_DIR}
13452 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013453 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013454 PRIVATE ${CARES_INCLUDE_DIR}
13455 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13456 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013457 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13458)
13459
13460target_link_libraries(nanopb_fuzzer_response_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013461 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013462 grpc_test_util
13463 grpc
13464 gpr_test_util
13465 gpr
13466)
13467
13468endif (gRPC_BUILD_TESTS)
13469if (gRPC_BUILD_TESTS)
13470
13471add_executable(nanopb_fuzzer_serverlist_test_one_entry
13472 test/core/nanopb/fuzzer_serverlist.c
13473 test/core/util/one_corpus_entry_fuzzer.c
13474)
13475
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013476
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013477target_include_directories(nanopb_fuzzer_serverlist_test_one_entry
13478 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13479 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13480 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13481 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013482 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013483 PRIVATE ${ZLIB_ROOT_DIR}
13484 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013485 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013486 PRIVATE ${CARES_INCLUDE_DIR}
13487 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13488 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013489 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13490)
13491
13492target_link_libraries(nanopb_fuzzer_serverlist_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013493 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013494 grpc_test_util
13495 grpc
13496 gpr_test_util
13497 gpr
13498)
13499
13500endif (gRPC_BUILD_TESTS)
13501if (gRPC_BUILD_TESTS)
13502
13503add_executable(percent_decode_fuzzer_one_entry
13504 test/core/slice/percent_decode_fuzzer.c
13505 test/core/util/one_corpus_entry_fuzzer.c
13506)
13507
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013508
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013509target_include_directories(percent_decode_fuzzer_one_entry
13510 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13511 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13512 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13513 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013514 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013515 PRIVATE ${ZLIB_ROOT_DIR}
13516 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013517 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013518 PRIVATE ${CARES_INCLUDE_DIR}
13519 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13520 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013521 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13522)
13523
13524target_link_libraries(percent_decode_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013525 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013526 grpc_test_util
13527 grpc
13528 gpr_test_util
13529 gpr
13530)
13531
13532endif (gRPC_BUILD_TESTS)
13533if (gRPC_BUILD_TESTS)
13534
13535add_executable(percent_encode_fuzzer_one_entry
13536 test/core/slice/percent_encode_fuzzer.c
13537 test/core/util/one_corpus_entry_fuzzer.c
13538)
13539
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013540
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013541target_include_directories(percent_encode_fuzzer_one_entry
13542 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13543 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13544 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13545 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013546 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013547 PRIVATE ${ZLIB_ROOT_DIR}
13548 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013549 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013550 PRIVATE ${CARES_INCLUDE_DIR}
13551 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13552 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013553 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13554)
13555
13556target_link_libraries(percent_encode_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013557 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013558 grpc_test_util
13559 grpc
13560 gpr_test_util
13561 gpr
13562)
13563
13564endif (gRPC_BUILD_TESTS)
13565if (gRPC_BUILD_TESTS)
13566
13567add_executable(server_fuzzer_one_entry
13568 test/core/end2end/fuzzers/server_fuzzer.c
13569 test/core/util/one_corpus_entry_fuzzer.c
13570)
13571
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013572
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013573target_include_directories(server_fuzzer_one_entry
13574 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13575 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13576 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13577 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013578 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013579 PRIVATE ${ZLIB_ROOT_DIR}
13580 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013581 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013582 PRIVATE ${CARES_INCLUDE_DIR}
13583 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13584 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013585 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13586)
13587
13588target_link_libraries(server_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013589 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013590 grpc_test_util
13591 grpc
13592 gpr_test_util
13593 gpr
13594)
13595
13596endif (gRPC_BUILD_TESTS)
13597if (gRPC_BUILD_TESTS)
13598
13599add_executable(ssl_server_fuzzer_one_entry
13600 test/core/security/ssl_server_fuzzer.c
13601 test/core/util/one_corpus_entry_fuzzer.c
13602)
13603
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013604
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013605target_include_directories(ssl_server_fuzzer_one_entry
13606 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13607 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13608 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13609 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013610 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013611 PRIVATE ${ZLIB_ROOT_DIR}
13612 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013613 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013614 PRIVATE ${CARES_INCLUDE_DIR}
13615 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13616 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013617 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13618)
13619
13620target_link_libraries(ssl_server_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013621 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013622 grpc_test_util
13623 grpc
13624 gpr_test_util
13625 gpr
13626)
13627
13628endif (gRPC_BUILD_TESTS)
13629if (gRPC_BUILD_TESTS)
13630
13631add_executable(uri_fuzzer_test_one_entry
13632 test/core/client_channel/uri_fuzzer_test.c
13633 test/core/util/one_corpus_entry_fuzzer.c
13634)
13635
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013636
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013637target_include_directories(uri_fuzzer_test_one_entry
13638 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13639 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13640 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13641 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013642 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013643 PRIVATE ${ZLIB_ROOT_DIR}
13644 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013645 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013646 PRIVATE ${CARES_INCLUDE_DIR}
13647 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13648 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013649 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13650)
13651
13652target_link_libraries(uri_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013653 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013654 grpc_test_util
13655 grpc
13656 gpr_test_util
13657 gpr
13658)
13659
13660endif (gRPC_BUILD_TESTS)
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010013661
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010013662
13663
13664
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +020013665
13666
13667
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030013668foreach(_config gRPCConfig gRPCConfigVersion)
13669 configure_file(tools/cmake/${_config}.cmake.in
13670 ${_config}.cmake @ONLY)
13671 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
13672 DESTINATION ${CMAKE_INSTALL_CMAKEDIR}
13673 )
13674endforeach()