blob: 5413bbcc0f3719088d991149f0f2dd72119ffc5c [file] [log] [blame]
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001# GRPC global cmake file
2# This currently builds C and C++ code.
3# This file has been automatically generated from a template file.
4# Please look at the templates directory instead.
5# This file can be regenerated from the template by running
6# tools/buildgen/generate_projects.sh
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02007#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +02008# Copyright 2015 gRPC authors.
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01009#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020010# Licensed under the Apache License, Version 2.0 (the "License");
11# you may not use this file except in compliance with the License.
12# You may obtain a copy of the License at
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010013#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020014# http://www.apache.org/licenses/LICENSE-2.0
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010015#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020016# Unless required by applicable law or agreed to in writing, software
17# distributed under the License is distributed on an "AS IS" BASIS,
18# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19# See the License for the specific language governing permissions and
20# limitations under the License.
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010021
22
23
24cmake_minimum_required(VERSION 2.8)
25
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010026set(PACKAGE_NAME "grpc")
David Garcia Quintasaebcdbd2017-05-30 14:14:27 -070027set(PACKAGE_VERSION "1.5.0-dev")
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +010028set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
29set(PACKAGE_TARNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}")
30set(PACKAGE_BUGREPORT "https://github.com/grpc/grpc/issues/")
31project(${PACKAGE_NAME} C CXX)
32
Jan Tattermuschdca8d632017-06-23 15:52:40 +020033set(gRPC_INSTALL_BINDIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Installation directory for executables")
34set(gRPC_INSTALL_LIBDIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "Installation directory for libraries")
35set(gRPC_INSTALL_INCLUDEDIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "Installation directory for headers")
36set(gRPC_INSTALL_CMAKEDIR "${CMAKE_INSTALL_PREFIX}/lib/cmake/${PACKAGE_NAME}" CACHE PATH "Installation directory for cmake config files")
37
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010038# Options
39option(gRPC_BUILD_TESTS "Build tests" OFF)
40
Alex Merryc17eb5c2017-05-15 21:17:29 +010041set(gRPC_INSTALL_default ON)
Alex Merrya65f0062017-05-15 22:59:37 +010042if (NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
43 # Disable gRPC_INSTALL by default if building as a submodule
44 set(gRPC_INSTALL_default OFF)
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030045endif()
Alex Merryc17eb5c2017-05-15 21:17:29 +010046set(gRPC_INSTALL ${gRPC_INSTALL_default} CACHE BOOL
47 "Generate installation target: gRPC_ZLIB_PROVIDER, gRPC_CARES_PROVIDER, gRPC_SSL_PROVIDER and gRPC_PROTOBUF_PROVIDER must all be \"package\"")
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030048
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030049set(gRPC_ZLIB_PROVIDER "module" CACHE STRING "Provider of zlib library")
50set_property(CACHE gRPC_ZLIB_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010051
Yuchen Zeng8076d2b2016-08-25 13:23:13 -070052set(gRPC_CARES_PROVIDER "module" CACHE STRING "Provider of c-ares library")
53set_property(CACHE gRPC_CARES_PROVIDER PROPERTY STRINGS "module" "package")
54
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030055set(gRPC_SSL_PROVIDER "module" CACHE STRING "Provider of ssl library")
56set_property(CACHE gRPC_SSL_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammera72712e2016-07-06 10:30:25 +010057
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030058set(gRPC_PROTOBUF_PROVIDER "module" CACHE STRING "Provider of protobuf library")
59set_property(CACHE gRPC_PROTOBUF_PROVIDER PROPERTY STRINGS "module" "package")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010060
Kamil Skalski6ba7d532017-06-28 19:42:26 +010061set(gRPC_PROTOBUF_PACKAGE_TYPE "" CACHE STRING "Algorithm for searching protobuf package")
62set_property(CACHE gRPC_PROTOBUF_PACKAGE_TYPE PROPERTY STRINGS "CONFIG" "MODULE")
63
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010064set(gRPC_GFLAGS_PROVIDER "module" CACHE STRING "Provider of gflags library")
65set_property(CACHE gRPC_GFLAGS_PROVIDER PROPERTY STRINGS "module" "package")
66
Jan Tattermusch438c0b52017-01-23 11:24:53 +010067set(gRPC_BENCHMARK_PROVIDER "module" CACHE STRING "Provider of benchmark library")
68set_property(CACHE gRPC_BENCHMARK_PROVIDER PROPERTY STRINGS "module" "package")
69
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030070set(gRPC_USE_PROTO_LITE OFF CACHE BOOL "Use the protobuf-lite library")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010071
Jan Tattermusch438c0b52017-01-23 11:24:53 +010072if(UNIX)
73 if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
74 set(_gRPC_PLATFORM_LINUX ON)
75 elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
76 set(_gRPC_PLATFORM_MAC ON)
77 else()
78 set(_gRPC_PLATFORM_POSIX ON)
79 endif()
80endif()
81if(WIN32)
82 set(_gRPC_PLATFORM_WINDOWS ON)
83endif()
84
Jan Tattermuschc09656c2017-01-27 13:36:24 +010085set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
86
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030087if (MSVC)
Jan Tattermusch51407912017-02-02 20:44:22 +010088 include(cmake/msvc_static_runtime.cmake)
Jan Tattermusch3aab96f2017-01-11 16:12:46 +010089 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 +010090 # needed to compile protobuf
91 add_definitions(/wd4065 /wd4506)
92 # TODO(jtattermusch): revisit C4267 occurrences throughout the code
93 add_definitions(/wd4267)
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030094endif()
95
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030096if (gRPC_USE_PROTO_LITE)
97 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf-lite")
Tamas Berghammer23911562016-07-27 15:24:05 +010098 add_definitions("-DGRPC_USE_PROTO_LITE")
99else()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300100 set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100101endif()
102
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300103if("${gRPC_ZLIB_PROVIDER}" STREQUAL "module")
104 if(NOT ZLIB_ROOT_DIR)
105 set(ZLIB_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zlib)
106 endif()
107 set(ZLIB_INCLUDE_DIR "${ZLIB_ROOT_DIR}")
108 if(EXISTS "${ZLIB_ROOT_DIR}/CMakeLists.txt")
Jan Tattermusch74c74fb2017-06-19 16:14:50 +0200109 # TODO(jtattermusch): workaround for https://github.com/madler/zlib/issues/218
110 include_directories(${ZLIB_INCLUDE_DIR})
111
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300112 add_subdirectory(${ZLIB_ROOT_DIR} third_party/zlib)
113 if(TARGET zlibstatic)
114 set(_gRPC_ZLIB_LIBRARIES zlibstatic)
115 endif()
116 else()
117 message(WARNING "gRPC_ZLIB_PROVIDER is \"module\" but ZLIB_ROOT_DIR is wrong")
118 endif()
Alex Merryc17eb5c2017-05-15 21:17:29 +0100119 if(gRPC_INSTALL)
120 message(WARNING "gRPC_INSTALL will be forced to FALSE because gRPC_ZLIB_PROVIDER is \"module\"")
121 set(gRPC_INSTALL FALSE)
122 endif()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300123elseif("${gRPC_ZLIB_PROVIDER}" STREQUAL "package")
124 find_package(ZLIB)
125 if(TARGET ZLIB::ZLIB)
126 set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB)
127 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300128 set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND)\n find_package(ZLIB)\nendif()")
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100129endif()
130
Yuchen Zeng8076d2b2016-08-25 13:23:13 -0700131if("${gRPC_CARES_PROVIDER}" STREQUAL "module")
132 if(NOT CARES_ROOT_DIR)
Yuchen Zeng74962182017-03-20 15:39:47 -0700133 set(CARES_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/c-ares)
Yuchen Zeng8076d2b2016-08-25 13:23:13 -0700134 endif()
Yuchen Zengc75bbf22017-03-20 12:35:20 -0700135 string(TOLOWER ${CMAKE_SYSTEM_NAME} CARES_SYSTEM_NAME)
Yuchen Zeng74962182017-03-20 15:39:47 -0700136 set(CARES_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/third_party/cares/cares")
137 set(CARES_BUILD_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/third_party/cares")
Yuchen Zengc75bbf22017-03-20 12:35:20 -0700138 set(CARES_PLATFORM_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/third_party/cares/config_${CARES_SYSTEM_NAME}")
Yuchen Zeng74962182017-03-20 15:39:47 -0700139 if(EXISTS "${CARES_ROOT_DIR}/CMakeLists.txt")
140 if("${CARES_SYSTEM_NAME}" MATCHES "windows")
141 add_definitions(-DCARES_STATICLIB=1)
142 add_definitions(-DWIN32_LEAN_AND_MEAN=1)
143 else()
144 add_definitions(-DHAVE_CONFIG_H=1)
145 add_definitions(-D_GNU_SOURCE=1)
146 endif()
147 add_subdirectory(src/c-ares third_party/cares)
148 if(TARGET cares)
149 set(_gRPC_CARES_LIBRARIES cares)
150 endif()
Yuchen Zeng8076d2b2016-08-25 13:23:13 -0700151 else()
Yuchen Zeng74962182017-03-20 15:39:47 -0700152 message(WARNING "gRPC_CARES_PROVIDER is \"module\" but CARES_ROOT_DIR is wrong")
Yuchen Zeng8076d2b2016-08-25 13:23:13 -0700153 endif()
Alex Merryc17eb5c2017-05-15 21:17:29 +0100154 if(gRPC_INSTALL)
155 message(WARNING "gRPC_INSTALL will be forced to FALSE because gRPC_CARES_PROVIDER is \"module\"")
156 set(gRPC_INSTALL FALSE)
Yuchen Zeng8076d2b2016-08-25 13:23:13 -0700157 endif()
Yuchen Zeng8076d2b2016-08-25 13:23:13 -0700158elseif("${gRPC_CARES_PROVIDER}" STREQUAL "package")
Alex Merry8ced27a362017-05-15 21:56:44 +0100159 find_package(c-ares CONFIG)
160 if(TARGET c-ares::cares)
161 set(_gRPC_CARES_LIBRARIES c-ares::cares)
Yuchen Zeng8076d2b2016-08-25 13:23:13 -0700162 endif()
Alex Merry8ced27a362017-05-15 21:56:44 +0100163 set(_gRPC_FIND_CARES "if(NOT c-ares_FOUND)\n find_package(c-ares CONFIG)\nendif()")
Yuchen Zeng8076d2b2016-08-25 13:23:13 -0700164endif()
165
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300166if("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "module")
167 # Building the protobuf tests require gmock what is not part of a standard protobuf checkout.
168 # Disable them unless they are explicitly requested from the cmake command line (when we assume
169 # gmock is downloaded to the right location inside protobuf).
170 if(NOT protobuf_BUILD_TESTS)
171 set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests")
172 endif()
Jan Tattermuschb70df572017-06-19 16:37:15 +0200173 # Disable building protobuf with zlib. Building protobuf with zlib breaks
174 # the build if zlib is not installed on the system.
175 if(NOT protobuf_WITH_ZLIB)
176 set(protobuf_WITH_ZLIB OFF CACHE BOOL "Build protobuf with zlib.")
177 endif()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300178 if(NOT PROTOBUF_ROOT_DIR)
179 set(PROTOBUF_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/protobuf)
180 endif()
yang-g66d40c62017-04-12 10:18:10 -0700181 set(PROTOBUF_WELLKNOWN_IMPORT_DIR ${PROTOBUF_ROOT_DIR}/src)
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300182 if(EXISTS "${PROTOBUF_ROOT_DIR}/cmake/CMakeLists.txt")
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300183 set(protobuf_MSVC_STATIC_RUNTIME OFF CACHE BOOL "Link static runtime libraries")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300184 add_subdirectory(${PROTOBUF_ROOT_DIR}/cmake third_party/protobuf)
185 if(TARGET ${_gRPC_PROTOBUF_LIBRARY_NAME})
186 set(_gRPC_PROTOBUF_LIBRARIES ${_gRPC_PROTOBUF_LIBRARY_NAME})
187 endif()
188 if(TARGET libprotoc)
189 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES libprotoc)
190 endif()
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100191 if(TARGET protoc)
192 set(_gRPC_PROTOBUF_PROTOC protoc)
193 endif()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300194 else()
195 message(WARNING "gRPC_PROTOBUF_PROVIDER is \"module\" but PROTOBUF_ROOT_DIR is wrong")
196 endif()
Alex Merryc17eb5c2017-05-15 21:17:29 +0100197 if(gRPC_INSTALL)
198 message(WARNING "gRPC_INSTALL will be forced to FALSE because gRPC_PROTOBUF_PROVIDER is \"module\"")
199 set(gRPC_INSTALL FALSE)
200 endif()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300201elseif("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "package")
Kamil Skalski6ba7d532017-06-28 19:42:26 +0100202 find_package(Protobuf ${gRPC_PROTOBUF_PACKAGE_TYPE})
203 if(Protobuf_FOUND OR PROTOBUF_FOUND)
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300204 if(TARGET protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
205 set(_gRPC_PROTOBUF_LIBRARIES protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME})
Kamil Skalski6ba7d532017-06-28 19:42:26 +0100206 else()
207 set(_gRPC_PROTOBUF_LIBRARIES ${PROTOBUF_LIBRARIES})
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300208 endif()
209 if(TARGET protobuf::libprotoc)
210 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES protobuf::libprotoc)
Kamil Skalski6ba7d532017-06-28 19:42:26 +0100211 else()
212 set(_gRPC_PROTOBUF_PROTOC_LIBRARIES ${PROTOBUF_PROTOC_LIBRARIES})
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300213 endif()
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100214 if(TARGET protobuf::protoc)
215 set(_gRPC_PROTOBUF_PROTOC protobuf::protoc)
Kamil Skalski6ba7d532017-06-28 19:42:26 +0100216 else()
217 set(_gRPC_PROTOBUF_PROTOC ${PROTOBUF_PROTOC_EXECUTABLE})
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100218 endif()
Kamil Skalski6ba7d532017-06-28 19:42:26 +0100219 set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND AND NOT PROTOBUF_FOUND)\n find_package(Protobuf ${gRPC_PROTOBUF_PACKAGE_TYPE})\nendif()")
220 endif()
221 if(PROTOBUF_FOUND)
222 include_directories(${PROTOBUF_INCLUDE_DIRS})
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300223 endif()
yang-g66d40c62017-04-12 10:18:10 -0700224 set(PROTOBUF_WELLKNOWN_IMPORT_DIR /usr/local/include)
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300225endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100226
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300227if("${gRPC_SSL_PROVIDER}" STREQUAL "module")
228 if(NOT BORINGSSL_ROOT_DIR)
229 set(BORINGSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/boringssl)
230 endif()
231 if(EXISTS "${BORINGSSL_ROOT_DIR}/CMakeLists.txt")
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100232 set(OPENSSL_NO_ASM ON) # make boringssl buildable with Visual Studio
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300233 add_subdirectory(${BORINGSSL_ROOT_DIR} third_party/boringssl)
234 if(TARGET ssl)
235 set(_gRPC_SSL_LIBRARIES ssl)
236 endif()
237 else()
238 message(WARNING "gRPC_SSL_PROVIDER is \"module\" but BORINGSSL_ROOT_DIR is wrong")
239 endif()
Alex Merryc17eb5c2017-05-15 21:17:29 +0100240 if(gRPC_INSTALL)
241 message(WARNING "gRPC_INSTALL will be forced to FALSE because gRPC_SSL_PROVIDER is \"module\"")
242 set(gRPC_INSTALL FALSE)
243 endif()
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300244elseif("${gRPC_SSL_PROVIDER}" STREQUAL "package")
245 find_package(OpenSSL)
246 if(TARGET OpenSSL::SSL)
247 set(_gRPC_SSL_LIBRARIES OpenSSL::SSL)
248 endif()
Konstantin Podsvirovdd331482016-07-28 00:00:25 +0300249 set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND)\n find_package(OpenSSL)\nendif()")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300250endif()
251
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100252if("${gRPC_GFLAGS_PROVIDER}" STREQUAL "module")
253 if(NOT GFLAGS_ROOT_DIR)
254 set(GFLAGS_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/gflags)
255 endif()
256 if(EXISTS "${GFLAGS_ROOT_DIR}/CMakeLists.txt")
257 add_subdirectory(${GFLAGS_ROOT_DIR} third_party/gflags)
258 if(TARGET gflags_static)
259 set(_gRPC_GFLAGS_LIBRARIES gflags_static)
260 endif()
261 else()
262 message(WARNING "gRPC_GFLAGS_PROVIDER is \"module\" but GFLAGS_ROOT_DIR is wrong")
263 endif()
264elseif("${gRPC_GFLAGS_PROVIDER}" STREQUAL "package")
265 find_package(gflags)
266 if(TARGET gflags::gflags)
267 set(_gRPC_GFLAGS_LIBRARIES gflags::gflags)
268 endif()
269 set(_gRPC_FIND_GFLAGS "if(NOT gflags_FOUND)\n find_package(gflags)\nendif()")
270endif()
271
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100272if("${gRPC_BENCHMARK_PROVIDER}" STREQUAL "module")
273 if(NOT BENCHMARK_ROOT_DIR)
274 set(BENCHMARK_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/benchmark)
275 endif()
276 if(EXISTS "${BENCHMARK_ROOT_DIR}/CMakeLists.txt")
277 add_subdirectory(${BENCHMARK_ROOT_DIR} third_party/benchmark)
278 if(TARGET benchmark)
279 set(_gRPC_BENCHMARK_LIBRARIES benchmark)
280 endif()
281 else()
282 message(WARNING "gRPC_BENCHMARK_PROVIDER is \"module\" but BENCHMARK_ROOT_DIR is wrong")
283 endif()
284elseif("${gRPC_BENCHMARK_PROVIDER}" STREQUAL "package")
285 find_package(benchmark)
286 if(TARGET benchmark::benchmark)
287 set(_gRPC_BENCHMARK_LIBRARIES benchmark::benchmark)
288 endif()
289 set(_gRPC_FIND_BENCHMARK "if(NOT benchmark_FOUND)\n find_package(benchmark)\nendif()")
290endif()
291
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300292if(NOT MSVC)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100293 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300294 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
295endif()
296
Mehrdad Afshari79ec0ff2017-04-19 03:14:26 -0700297if(_gRPC_PLATFORM_MAC)
298 set(_gRPC_ALLTARGETS_LIBRARIES ${CMAKE_DL_LIBS} m pthread)
299elseif(UNIX)
300 set(_gRPC_ALLTARGETS_LIBRARIES ${CMAKE_DL_LIBS} rt m pthread)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100301endif()
302
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300303if(WIN32 AND MSVC)
304 set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32)
Tamas Berghammer23911562016-07-27 15:24:05 +0100305endif()
306
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100307# Create directory for generated .proto files
308set(_gRPC_PROTO_GENS_DIR ${CMAKE_BINARY_DIR}/gens)
309file(MAKE_DIRECTORY ${_gRPC_PROTO_GENS_DIR})
310
311# protobuf_generate_grpc_cpp
312# --------------------------
313#
314# Add custom commands to process ``.proto`` files to C++ using protoc and
315# GRPC plugin::
316#
317# protobuf_generate_grpc_cpp [<ARGN>...]
318#
319# ``ARGN``
320# ``.proto`` files
321#
322function(protobuf_generate_grpc_cpp)
323 if(NOT ARGN)
324 message(SEND_ERROR "Error: PROTOBUF_GENERATE_GRPC_CPP() called without any proto files")
325 return()
326 endif()
327
yang-g66d40c62017-04-12 10:18:10 -0700328 set(_protobuf_include_path -I . -I ${PROTOBUF_WELLKNOWN_IMPORT_DIR})
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100329 foreach(FIL ${ARGN})
330 get_filename_component(ABS_FIL ${FIL} ABSOLUTE)
331 get_filename_component(FIL_WE ${FIL} NAME_WE)
Jan Tattermuschecc457b2017-04-07 14:06:16 +0200332 file(RELATIVE_PATH REL_FIL ${CMAKE_CURRENT_SOURCE_DIR} ${ABS_FIL})
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100333 get_filename_component(REL_DIR ${REL_FIL} DIRECTORY)
334 set(RELFIL_WE "${REL_DIR}/${FIL_WE}")
Yuchen Zenge02cbeb2017-01-19 16:33:30 -0800335
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100336 add_custom_command(
337 OUTPUT "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.cc"
338 "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.h"
Mahak Mukhi78ca0d12017-04-26 13:39:46 -0700339 "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}_mock.grpc.pb.h"
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100340 "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.cc"
341 "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.h"
Jan Tattermusch6fe1d802017-06-12 11:37:40 +0200342 COMMAND $<TARGET_FILE:${_gRPC_PROTOBUF_PROTOC}>
Mahak Mukhi78ca0d12017-04-26 13:39:46 -0700343 ARGS --grpc_out=generate_mock_code=true:${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100344 --cpp_out=${_gRPC_PROTO_GENS_DIR}
345 --plugin=protoc-gen-grpc=$<TARGET_FILE:grpc_cpp_plugin>
346 ${_protobuf_include_path}
347 ${REL_FIL}
348 DEPENDS ${ABS_FIL} ${_gRPC_PROTOBUF_PROTOC} grpc_cpp_plugin
Jan Tattermuschecc457b2017-04-07 14:06:16 +0200349 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100350 COMMENT "Running gRPC C++ protocol buffer compiler on ${FIL}"
351 VERBATIM)
Yuchen Zenge02cbeb2017-01-19 16:33:30 -0800352
Mahak Mukhi78ca0d12017-04-26 13:39:46 -0700353 set_source_files_properties("${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.cc" "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.h" "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}_mock.grpc.pb.h" "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.cc" "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.h" PROPERTIES GENERATED TRUE)
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100354 endforeach()
355endfunction()
356
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100357add_custom_target(plugins
358 DEPENDS
359 grpc_cpp_plugin
360 grpc_csharp_plugin
361 grpc_node_plugin
362 grpc_objective_c_plugin
363 grpc_php_plugin
364 grpc_python_plugin
365 grpc_ruby_plugin
366)
367
368add_custom_target(tools_c
369 DEPENDS
Craig Tiller819cd882017-04-25 13:18:22 -0700370 check_epollexclusive
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100371 gen_hpack_tables
372 gen_legal_metadata_characters
373 gen_percent_encoding_tables
374 grpc_create_jwt
375 grpc_print_google_default_creds_token
376 grpc_verify_jwt
377)
378
379add_custom_target(tools_cxx
380 DEPENDS
381)
382
383add_custom_target(tools
384 DEPENDS tools_c tools_cxx)
385
386if (gRPC_BUILD_TESTS)
387add_custom_target(buildtests_c)
388add_dependencies(buildtests_c alarm_test)
389add_dependencies(buildtests_c algorithm_test)
390add_dependencies(buildtests_c alloc_test)
391add_dependencies(buildtests_c alpn_test)
Craig Tiller9202b3f2017-03-12 22:30:38 -0700392add_dependencies(buildtests_c arena_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100393add_dependencies(buildtests_c bad_server_response_test)
Craig Tiller5395aba2017-02-02 10:29:04 -0800394add_dependencies(buildtests_c bdp_estimator_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100395add_dependencies(buildtests_c bin_decoder_test)
396add_dependencies(buildtests_c bin_encoder_test)
397add_dependencies(buildtests_c census_context_test)
Vizerai0359e122017-04-28 20:06:58 -0700398add_dependencies(buildtests_c census_intrusive_hash_map_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100399add_dependencies(buildtests_c census_resource_test)
400add_dependencies(buildtests_c census_trace_context_test)
401add_dependencies(buildtests_c channel_create_test)
402add_dependencies(buildtests_c chttp2_hpack_encoder_test)
403add_dependencies(buildtests_c chttp2_stream_map_test)
404add_dependencies(buildtests_c chttp2_varint_test)
405add_dependencies(buildtests_c combiner_test)
406add_dependencies(buildtests_c compression_test)
407add_dependencies(buildtests_c concurrent_connectivity_test)
408add_dependencies(buildtests_c connection_refused_test)
409add_dependencies(buildtests_c dns_resolver_connectivity_test)
410add_dependencies(buildtests_c dns_resolver_test)
411if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
412add_dependencies(buildtests_c dualstack_socket_test)
413endif()
414add_dependencies(buildtests_c endpoint_pair_test)
ncteisen3da3ce32017-02-17 09:51:25 -0800415add_dependencies(buildtests_c error_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100416if(_gRPC_PLATFORM_LINUX)
Craig Tiller6a85ee02017-04-27 19:17:11 +0000417add_dependencies(buildtests_c ev_epollsig_linux_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100418endif()
David Garcia Quintas53af23c2017-04-15 10:29:46 -0700419add_dependencies(buildtests_c fake_resolver_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100420if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
421add_dependencies(buildtests_c fd_conservation_posix_test)
422endif()
423if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
424add_dependencies(buildtests_c fd_posix_test)
425endif()
426add_dependencies(buildtests_c fling_client)
427add_dependencies(buildtests_c fling_server)
428if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
429add_dependencies(buildtests_c fling_stream_test)
430endif()
431if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
432add_dependencies(buildtests_c fling_test)
433endif()
434if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
435add_dependencies(buildtests_c goaway_server_test)
436endif()
437add_dependencies(buildtests_c gpr_avl_test)
438add_dependencies(buildtests_c gpr_backoff_test)
439add_dependencies(buildtests_c gpr_cmdline_test)
440add_dependencies(buildtests_c gpr_cpu_test)
441add_dependencies(buildtests_c gpr_env_test)
442add_dependencies(buildtests_c gpr_histogram_test)
443add_dependencies(buildtests_c gpr_host_port_test)
444add_dependencies(buildtests_c gpr_log_test)
445add_dependencies(buildtests_c gpr_mpscq_test)
Craig Tilleredbf2b92017-02-27 07:24:00 -0800446add_dependencies(buildtests_c gpr_spinlock_test)
Ken Paysona4710a02017-07-10 16:49:59 -0700447add_dependencies(buildtests_c gpr_stack_lockfree_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100448add_dependencies(buildtests_c gpr_string_test)
449add_dependencies(buildtests_c gpr_sync_test)
450add_dependencies(buildtests_c gpr_thd_test)
451add_dependencies(buildtests_c gpr_time_test)
452add_dependencies(buildtests_c gpr_tls_test)
453add_dependencies(buildtests_c gpr_useful_test)
454add_dependencies(buildtests_c grpc_auth_context_test)
455add_dependencies(buildtests_c grpc_b64_test)
456add_dependencies(buildtests_c grpc_byte_buffer_reader_test)
457add_dependencies(buildtests_c grpc_channel_args_test)
458add_dependencies(buildtests_c grpc_channel_stack_test)
459add_dependencies(buildtests_c grpc_completion_queue_test)
murgatroid9998cdf3b2017-02-23 14:59:45 -0800460add_dependencies(buildtests_c grpc_completion_queue_threading_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100461add_dependencies(buildtests_c grpc_credentials_test)
462add_dependencies(buildtests_c grpc_fetch_oauth2)
463add_dependencies(buildtests_c grpc_invalid_channel_args_test)
464if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
465add_dependencies(buildtests_c grpc_json_token_test)
466endif()
467add_dependencies(buildtests_c grpc_jwt_verifier_test)
468add_dependencies(buildtests_c grpc_security_connector_test)
469if(_gRPC_PLATFORM_LINUX)
470add_dependencies(buildtests_c handshake_client)
471endif()
472if(_gRPC_PLATFORM_LINUX)
473add_dependencies(buildtests_c handshake_server)
474endif()
475add_dependencies(buildtests_c hpack_parser_test)
476add_dependencies(buildtests_c hpack_table_test)
477add_dependencies(buildtests_c http_parser_test)
478add_dependencies(buildtests_c httpcli_format_request_test)
479if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
480add_dependencies(buildtests_c httpcli_test)
481endif()
482if(_gRPC_PLATFORM_LINUX)
483add_dependencies(buildtests_c httpscli_test)
484endif()
485add_dependencies(buildtests_c init_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100486add_dependencies(buildtests_c invalid_call_argument_test)
487add_dependencies(buildtests_c json_rewrite)
488add_dependencies(buildtests_c json_rewrite_test)
489add_dependencies(buildtests_c json_stream_error_test)
490add_dependencies(buildtests_c json_test)
491add_dependencies(buildtests_c lame_client_test)
492add_dependencies(buildtests_c lb_policies_test)
493add_dependencies(buildtests_c load_file_test)
494add_dependencies(buildtests_c memory_profile_client)
495add_dependencies(buildtests_c memory_profile_server)
496if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
497add_dependencies(buildtests_c memory_profile_test)
498endif()
499add_dependencies(buildtests_c message_compress_test)
Craig Tiller494e72d2017-04-03 08:43:22 -0700500add_dependencies(buildtests_c minimal_stack_is_minimal_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100501add_dependencies(buildtests_c mlog_test)
502add_dependencies(buildtests_c multiple_server_queues_test)
503add_dependencies(buildtests_c murmur_hash_test)
504add_dependencies(buildtests_c no_server_test)
Alexander Polcync3b1f182017-04-18 13:51:36 -0700505add_dependencies(buildtests_c num_external_connectivity_watchers_test)
David Garcia Quintas8a0ec882017-03-03 16:53:54 -0800506add_dependencies(buildtests_c parse_address_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100507add_dependencies(buildtests_c percent_encoding_test)
Sree Kuchibhotla66131682017-02-02 09:39:07 -0800508if(_gRPC_PLATFORM_LINUX)
509add_dependencies(buildtests_c pollset_set_test)
510endif()
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100511if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
512add_dependencies(buildtests_c resolve_address_posix_test)
513endif()
514add_dependencies(buildtests_c resolve_address_test)
515add_dependencies(buildtests_c resource_quota_test)
516add_dependencies(buildtests_c secure_channel_create_test)
517add_dependencies(buildtests_c secure_endpoint_test)
518add_dependencies(buildtests_c sequential_connectivity_test)
519add_dependencies(buildtests_c server_chttp2_test)
520add_dependencies(buildtests_c server_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100521add_dependencies(buildtests_c slice_buffer_test)
Mark D. Roth0c0b89a2017-04-19 13:28:24 -0700522add_dependencies(buildtests_c slice_hash_table_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100523add_dependencies(buildtests_c slice_string_helpers_test)
524add_dependencies(buildtests_c slice_test)
525add_dependencies(buildtests_c sockaddr_resolver_test)
526add_dependencies(buildtests_c sockaddr_utils_test)
527if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
528add_dependencies(buildtests_c socket_utils_test)
529endif()
530add_dependencies(buildtests_c status_conversion_test)
Muxi Yanc1f837c2017-05-04 18:17:13 -0700531add_dependencies(buildtests_c stream_compression_test)
Craig Tiller295df6d2017-03-01 11:28:24 -0800532add_dependencies(buildtests_c stream_owned_slice_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100533if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
534add_dependencies(buildtests_c tcp_client_posix_test)
535endif()
murgatroid9998cdf3b2017-02-23 14:59:45 -0800536add_dependencies(buildtests_c tcp_client_uv_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100537if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
538add_dependencies(buildtests_c tcp_posix_test)
539endif()
540if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
541add_dependencies(buildtests_c tcp_server_posix_test)
542endif()
murgatroid9998cdf3b2017-02-23 14:59:45 -0800543add_dependencies(buildtests_c tcp_server_uv_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100544add_dependencies(buildtests_c time_averaged_stats_test)
545add_dependencies(buildtests_c timeout_encoding_test)
546add_dependencies(buildtests_c timer_heap_test)
547add_dependencies(buildtests_c timer_list_test)
548add_dependencies(buildtests_c transport_connectivity_state_test)
549add_dependencies(buildtests_c transport_metadata_test)
550add_dependencies(buildtests_c transport_pid_controller_test)
551if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
552add_dependencies(buildtests_c transport_security_test)
553endif()
554if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
555add_dependencies(buildtests_c udp_server_test)
556endif()
557add_dependencies(buildtests_c uri_parser_test)
558if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
559add_dependencies(buildtests_c wakeup_fd_cv_test)
560endif()
561add_dependencies(buildtests_c public_headers_must_be_c89)
562add_dependencies(buildtests_c badreq_bad_client_test)
563add_dependencies(buildtests_c connection_prefix_bad_client_test)
564add_dependencies(buildtests_c head_of_line_blocking_bad_client_test)
565add_dependencies(buildtests_c headers_bad_client_test)
566add_dependencies(buildtests_c initial_settings_frame_bad_client_test)
567add_dependencies(buildtests_c large_metadata_bad_client_test)
568add_dependencies(buildtests_c server_registered_method_bad_client_test)
569add_dependencies(buildtests_c simple_request_bad_client_test)
570add_dependencies(buildtests_c unknown_frame_bad_client_test)
571add_dependencies(buildtests_c window_overflow_bad_client_test)
572if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
573add_dependencies(buildtests_c bad_ssl_cert_server)
574endif()
575if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
576add_dependencies(buildtests_c bad_ssl_cert_test)
577endif()
578add_dependencies(buildtests_c h2_census_test)
579add_dependencies(buildtests_c h2_compress_test)
580add_dependencies(buildtests_c h2_fakesec_test)
581if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
582add_dependencies(buildtests_c h2_fd_test)
583endif()
584add_dependencies(buildtests_c h2_full_test)
585if(_gRPC_PLATFORM_LINUX)
586add_dependencies(buildtests_c h2_full+pipe_test)
587endif()
588add_dependencies(buildtests_c h2_full+trace_test)
Muxi Yan29ff4662017-05-15 10:27:55 -0700589add_dependencies(buildtests_c h2_full+workarounds_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100590add_dependencies(buildtests_c h2_http_proxy_test)
591add_dependencies(buildtests_c h2_load_reporting_test)
592add_dependencies(buildtests_c h2_oauth2_test)
593add_dependencies(buildtests_c h2_proxy_test)
594add_dependencies(buildtests_c h2_sockpair_test)
595add_dependencies(buildtests_c h2_sockpair+trace_test)
596add_dependencies(buildtests_c h2_sockpair_1byte_test)
597add_dependencies(buildtests_c h2_ssl_test)
598add_dependencies(buildtests_c h2_ssl_cert_test)
599add_dependencies(buildtests_c h2_ssl_proxy_test)
600if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
601add_dependencies(buildtests_c h2_uds_test)
602endif()
Vijay Pai3d7d5f42017-05-04 10:02:24 -0700603add_dependencies(buildtests_c inproc_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100604add_dependencies(buildtests_c h2_census_nosec_test)
605add_dependencies(buildtests_c h2_compress_nosec_test)
606if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
607add_dependencies(buildtests_c h2_fd_nosec_test)
608endif()
609add_dependencies(buildtests_c h2_full_nosec_test)
610if(_gRPC_PLATFORM_LINUX)
611add_dependencies(buildtests_c h2_full+pipe_nosec_test)
612endif()
613add_dependencies(buildtests_c h2_full+trace_nosec_test)
Muxi Yan29ff4662017-05-15 10:27:55 -0700614add_dependencies(buildtests_c h2_full+workarounds_nosec_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100615add_dependencies(buildtests_c h2_http_proxy_nosec_test)
616add_dependencies(buildtests_c h2_load_reporting_nosec_test)
617add_dependencies(buildtests_c h2_proxy_nosec_test)
618add_dependencies(buildtests_c h2_sockpair_nosec_test)
619add_dependencies(buildtests_c h2_sockpair+trace_nosec_test)
620add_dependencies(buildtests_c h2_sockpair_1byte_nosec_test)
621if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
622add_dependencies(buildtests_c h2_uds_nosec_test)
623endif()
Vijay Pai3d7d5f42017-05-04 10:02:24 -0700624add_dependencies(buildtests_c inproc_nosec_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100625add_dependencies(buildtests_c api_fuzzer_one_entry)
626add_dependencies(buildtests_c client_fuzzer_one_entry)
627add_dependencies(buildtests_c hpack_parser_fuzzer_test_one_entry)
628add_dependencies(buildtests_c http_request_fuzzer_test_one_entry)
629add_dependencies(buildtests_c http_response_fuzzer_test_one_entry)
630add_dependencies(buildtests_c json_fuzzer_test_one_entry)
631add_dependencies(buildtests_c nanopb_fuzzer_response_test_one_entry)
632add_dependencies(buildtests_c nanopb_fuzzer_serverlist_test_one_entry)
633add_dependencies(buildtests_c percent_decode_fuzzer_one_entry)
634add_dependencies(buildtests_c percent_encode_fuzzer_one_entry)
635add_dependencies(buildtests_c server_fuzzer_one_entry)
636add_dependencies(buildtests_c ssl_server_fuzzer_one_entry)
637add_dependencies(buildtests_c uri_fuzzer_test_one_entry)
638
639add_custom_target(buildtests_cxx)
640add_dependencies(buildtests_cxx alarm_cpp_test)
641add_dependencies(buildtests_cxx async_end2end_test)
642add_dependencies(buildtests_cxx auth_property_iterator_test)
643if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller9202b3f2017-03-12 22:30:38 -0700644add_dependencies(buildtests_cxx bm_arena)
645endif()
646if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tillerfd044b82017-02-15 16:15:48 -0800647add_dependencies(buildtests_cxx bm_call_create)
648endif()
649if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller523d54b2017-02-23 08:52:38 -0800650add_dependencies(buildtests_cxx bm_chttp2_hpack)
Craig Tiller2f792d92017-02-22 16:26:33 -0800651endif()
652if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller18f09a02017-02-23 17:10:04 -0800653add_dependencies(buildtests_cxx bm_chttp2_transport)
654endif()
655if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tillerb3f34b62017-02-13 10:29:33 -0800656add_dependencies(buildtests_cxx bm_closure)
657endif()
658if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller14ae5382017-02-14 12:43:50 -0800659add_dependencies(buildtests_cxx bm_cq)
660endif()
661if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Sree Kuchibhotla3c754e42017-04-04 13:49:08 -0700662add_dependencies(buildtests_cxx bm_cq_multiple_threads)
663endif()
664if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller264307f2017-02-16 09:07:45 -0800665add_dependencies(buildtests_cxx bm_error)
666endif()
667if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller12d22e42017-03-03 10:14:20 -0800668add_dependencies(buildtests_cxx bm_fullstack_streaming_ping_pong)
669endif()
670if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
671add_dependencies(buildtests_cxx bm_fullstack_streaming_pump)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100672endif()
Craig Tillerb8e2bca2017-02-16 16:26:51 -0800673if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller52bd4412017-03-03 10:52:22 -0800674add_dependencies(buildtests_cxx bm_fullstack_trickle)
675endif()
676if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller62ac65b2017-03-03 09:57:43 -0800677add_dependencies(buildtests_cxx bm_fullstack_unary_ping_pong)
678endif()
679if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tillerb8e2bca2017-02-16 16:26:51 -0800680add_dependencies(buildtests_cxx bm_metadata)
681endif()
Craig Tiller1128d462017-03-03 16:46:54 -0800682if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
683add_dependencies(buildtests_cxx bm_pollset)
684endif()
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100685add_dependencies(buildtests_cxx channel_arguments_test)
686add_dependencies(buildtests_cxx channel_filter_test)
687add_dependencies(buildtests_cxx cli_call_test)
688if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
689add_dependencies(buildtests_cxx client_crash_test)
690endif()
691add_dependencies(buildtests_cxx client_crash_test_server)
David Garcia Quintas87d5a312017-06-06 19:45:58 -0700692add_dependencies(buildtests_cxx client_lb_end2end_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100693add_dependencies(buildtests_cxx codegen_test_full)
694add_dependencies(buildtests_cxx codegen_test_minimal)
695add_dependencies(buildtests_cxx credentials_test)
696add_dependencies(buildtests_cxx cxx_byte_buffer_test)
697add_dependencies(buildtests_cxx cxx_slice_test)
698add_dependencies(buildtests_cxx cxx_string_ref_test)
699add_dependencies(buildtests_cxx cxx_time_test)
700add_dependencies(buildtests_cxx end2end_test)
yang-geceec8e2017-04-10 11:58:44 -0700701add_dependencies(buildtests_cxx error_details_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100702add_dependencies(buildtests_cxx filter_end2end_test)
703add_dependencies(buildtests_cxx generic_end2end_test)
704add_dependencies(buildtests_cxx golden_file_test)
705add_dependencies(buildtests_cxx grpc_cli)
706add_dependencies(buildtests_cxx grpc_tool_test)
707add_dependencies(buildtests_cxx grpclb_api_test)
David Garcia Quintas04911ca2017-04-27 16:31:14 -0700708add_dependencies(buildtests_cxx grpclb_end2end_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100709add_dependencies(buildtests_cxx grpclb_test)
yang-g13a537b2017-02-07 13:13:20 -0800710add_dependencies(buildtests_cxx health_service_end2end_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100711if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
712add_dependencies(buildtests_cxx http2_client)
713endif()
714add_dependencies(buildtests_cxx hybrid_end2end_test)
715if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
716add_dependencies(buildtests_cxx interop_client)
717endif()
718if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
719add_dependencies(buildtests_cxx interop_server)
720endif()
721if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
722add_dependencies(buildtests_cxx interop_test)
723endif()
724if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
725add_dependencies(buildtests_cxx json_run_localhost)
726endif()
Craig Tillerb3d70102017-03-31 14:17:09 -0700727add_dependencies(buildtests_cxx memory_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100728add_dependencies(buildtests_cxx metrics_client)
729add_dependencies(buildtests_cxx mock_test)
730add_dependencies(buildtests_cxx noop-benchmark)
731add_dependencies(buildtests_cxx proto_server_reflection_test)
Harvey Tuch5f3cfe92017-01-20 11:02:11 -0500732add_dependencies(buildtests_cxx proto_utils_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100733if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
734add_dependencies(buildtests_cxx qps_interarrival_test)
735endif()
736add_dependencies(buildtests_cxx qps_json_driver)
737if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
738add_dependencies(buildtests_cxx qps_openloop_test)
739endif()
740add_dependencies(buildtests_cxx qps_worker)
741add_dependencies(buildtests_cxx reconnect_interop_client)
742add_dependencies(buildtests_cxx reconnect_interop_server)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100743add_dependencies(buildtests_cxx secure_auth_context_test)
744if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
745add_dependencies(buildtests_cxx secure_sync_unary_ping_pong_test)
746endif()
747add_dependencies(buildtests_cxx server_builder_plugin_test)
Craig Tiller332bcc32017-03-08 12:47:46 -0800748add_dependencies(buildtests_cxx server_builder_test)
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100749add_dependencies(buildtests_cxx server_context_test_spouse_test)
750if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
751add_dependencies(buildtests_cxx server_crash_test)
752endif()
753add_dependencies(buildtests_cxx server_crash_test_client)
754add_dependencies(buildtests_cxx shutdown_test)
755add_dependencies(buildtests_cxx status_test)
756if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
757add_dependencies(buildtests_cxx streaming_throughput_test)
758endif()
759add_dependencies(buildtests_cxx stress_test)
760add_dependencies(buildtests_cxx thread_manager_test)
761add_dependencies(buildtests_cxx thread_stress_test)
Craig Tiller1bb53712017-02-04 15:39:27 -0800762if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tillerc40b3472017-02-03 11:54:26 -0800763add_dependencies(buildtests_cxx writes_per_rpc_test)
Craig Tiller1bb53712017-02-04 15:39:27 -0800764endif()
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100765
766add_custom_target(buildtests
767 DEPENDS buildtests_c buildtests_cxx)
768endif (gRPC_BUILD_TESTS)
769
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100770
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100771add_library(gpr
772 src/core/lib/profiling/basic_timers.c
773 src/core/lib/profiling/stap_timers.c
774 src/core/lib/support/alloc.c
Craig Tiller9202b3f2017-03-12 22:30:38 -0700775 src/core/lib/support/arena.c
Mark D. Rothfecba532017-03-17 09:50:48 -0700776 src/core/lib/support/atm.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100777 src/core/lib/support/avl.c
778 src/core/lib/support/backoff.c
779 src/core/lib/support/cmdline.c
780 src/core/lib/support/cpu_iphone.c
781 src/core/lib/support/cpu_linux.c
782 src/core/lib/support/cpu_posix.c
783 src/core/lib/support/cpu_windows.c
784 src/core/lib/support/env_linux.c
785 src/core/lib/support/env_posix.c
786 src/core/lib/support/env_windows.c
787 src/core/lib/support/histogram.c
788 src/core/lib/support/host_port.c
789 src/core/lib/support/log.c
790 src/core/lib/support/log_android.c
791 src/core/lib/support/log_linux.c
792 src/core/lib/support/log_posix.c
793 src/core/lib/support/log_windows.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700794 src/core/lib/support/mpscq.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100795 src/core/lib/support/murmur_hash.c
Ken Paysona4710a02017-07-10 16:49:59 -0700796 src/core/lib/support/stack_lockfree.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100797 src/core/lib/support/string.c
798 src/core/lib/support/string_posix.c
799 src/core/lib/support/string_util_windows.c
800 src/core/lib/support/string_windows.c
801 src/core/lib/support/subprocess_posix.c
802 src/core/lib/support/subprocess_windows.c
803 src/core/lib/support/sync.c
804 src/core/lib/support/sync_posix.c
805 src/core/lib/support/sync_windows.c
806 src/core/lib/support/thd.c
807 src/core/lib/support/thd_posix.c
808 src/core/lib/support/thd_windows.c
809 src/core/lib/support/time.c
810 src/core/lib/support/time_posix.c
811 src/core/lib/support/time_precise.c
812 src/core/lib/support/time_windows.c
813 src/core/lib/support/tls_pthread.c
814 src/core/lib/support/tmpfile_msys.c
815 src/core/lib/support/tmpfile_posix.c
816 src/core/lib/support/tmpfile_windows.c
817 src/core/lib/support/wrap_memcpy.c
818)
819
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +0100820if(WIN32 AND MSVC)
821 set_target_properties(gpr PROPERTIES COMPILE_PDB_NAME "gpr"
822 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
823 )
824 if (gRPC_INSTALL)
825 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/gpr.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +0200826 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +0100827 )
828 endif()
829endif()
830
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100831
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100832target_include_directories(gpr
Jan Tattermusch456b7132017-06-20 13:21:27 +0200833 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100834 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100835 PRIVATE ${BORINGSSL_ROOT_DIR}/include
836 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +0300837 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100838 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100839 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -0700840 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zeng8076d2b2016-08-25 13:23:13 -0700841 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -0700842 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -0700843 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100844 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100845)
846
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100847target_link_libraries(gpr
848 ${_gRPC_ALLTARGETS_LIBRARIES}
849)
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100850
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300851foreach(_hdr
852 include/grpc/support/alloc.h
853 include/grpc/support/atm.h
854 include/grpc/support/atm_gcc_atomic.h
855 include/grpc/support/atm_gcc_sync.h
856 include/grpc/support/atm_windows.h
857 include/grpc/support/avl.h
858 include/grpc/support/cmdline.h
859 include/grpc/support/cpu.h
860 include/grpc/support/histogram.h
861 include/grpc/support/host_port.h
862 include/grpc/support/log.h
863 include/grpc/support/log_windows.h
864 include/grpc/support/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300865 include/grpc/support/string_util.h
866 include/grpc/support/subprocess.h
867 include/grpc/support/sync.h
868 include/grpc/support/sync_generic.h
869 include/grpc/support/sync_posix.h
870 include/grpc/support/sync_windows.h
871 include/grpc/support/thd.h
872 include/grpc/support/time.h
873 include/grpc/support/tls.h
874 include/grpc/support/tls_gcc.h
875 include/grpc/support/tls_msvc.h
876 include/grpc/support/tls_pthread.h
877 include/grpc/support/useful.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300878 include/grpc/impl/codegen/atm.h
879 include/grpc/impl/codegen/atm_gcc_atomic.h
880 include/grpc/impl/codegen/atm_gcc_sync.h
881 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -0800882 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -0700883 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300884 include/grpc/impl/codegen/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300885 include/grpc/impl/codegen/sync.h
886 include/grpc/impl/codegen/sync_generic.h
887 include/grpc/impl/codegen/sync_posix.h
888 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300889)
890 string(REPLACE "include/" "" _path ${_hdr})
891 get_filename_component(_path ${_path} PATH)
892 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +0200893 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300894 )
895endforeach()
896
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100897
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300898if (gRPC_INSTALL)
899 install(TARGETS gpr EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +0200900 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
901 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
902 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +0300903 )
904endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +0300905
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100906if (gRPC_BUILD_TESTS)
907
908add_library(gpr_test_util
909 test/core/util/test_config.c
910)
911
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +0100912if(WIN32 AND MSVC)
913 set_target_properties(gpr_test_util PROPERTIES COMPILE_PDB_NAME "gpr_test_util"
914 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
915 )
916 if (gRPC_INSTALL)
917 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/gpr_test_util.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +0200918 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +0100919 )
920 endif()
921endif()
922
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100923
924target_include_directories(gpr_test_util
Jan Tattermusch456b7132017-06-20 13:21:27 +0200925 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100926 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100927 PRIVATE ${BORINGSSL_ROOT_DIR}/include
928 PRIVATE ${PROTOBUF_ROOT_DIR}/src
929 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100930 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100931 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -0700932 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -0800933 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -0700934 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -0700935 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100936 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
937)
938
939target_link_libraries(gpr_test_util
Jan Tattermusch438c0b52017-01-23 11:24:53 +0100940 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +0100941 gpr
942)
943
944
945endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +0100946
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100947add_library(grpc
948 src/core/lib/surface/init.c
949 src/core/lib/channel/channel_args.c
950 src/core/lib/channel/channel_stack.c
951 src/core/lib/channel/channel_stack_builder.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100952 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700953 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -0800954 src/core/lib/channel/handshaker_factory.c
955 src/core/lib/channel/handshaker_registry.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100956 src/core/lib/compression/compression.c
957 src/core/lib/compression/message_compress.c
Muxi Yane87a7e12017-06-29 16:53:24 -0700958 src/core/lib/compression/stream_compression.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100959 src/core/lib/http/format_request.c
960 src/core/lib/http/httpcli.c
961 src/core/lib/http/parser.c
962 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -0700963 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100964 src/core/lib/iomgr/endpoint.c
965 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -0700966 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100967 src/core/lib/iomgr/endpoint_pair_windows.c
968 src/core/lib/iomgr/error.c
Craig Tillerc67cc992017-04-27 10:15:51 -0700969 src/core/lib/iomgr/ev_epoll1_linux.c
Sree Kuchibhotla5a1a3b42017-05-05 13:14:45 -0700970 src/core/lib/iomgr/ev_epoll_limited_pollers_linux.c
Sree Kuchibhotlad4fc32e2017-05-02 14:15:12 -0700971 src/core/lib/iomgr/ev_epoll_thread_pool_linux.c
Craig Tillerf4360d72017-04-07 08:51:00 -0700972 src/core/lib/iomgr/ev_epollex_linux.c
Craig Tillerc67cc992017-04-27 10:15:51 -0700973 src/core/lib/iomgr/ev_epollsig_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100974 src/core/lib/iomgr/ev_poll_posix.c
975 src/core/lib/iomgr/ev_posix.c
Jan Tattermuschde030a32017-05-16 18:20:26 +0200976 src/core/lib/iomgr/ev_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100977 src/core/lib/iomgr/exec_ctx.c
978 src/core/lib/iomgr/executor.c
979 src/core/lib/iomgr/iocp_windows.c
980 src/core/lib/iomgr/iomgr.c
981 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700982 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100983 src/core/lib/iomgr/iomgr_windows.c
Craig Tiller819cd882017-04-25 13:18:22 -0700984 src/core/lib/iomgr/is_epollexclusive_available.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100985 src/core/lib/iomgr/load_file.c
Craig Tiller376887d2017-04-06 08:27:03 -0700986 src/core/lib/iomgr/lockfree_event.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +0200987 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100988 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -0700989 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100990 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -0700991 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100992 src/core/lib/iomgr/pollset_windows.c
993 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -0700994 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100995 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -0700996 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +0100997 src/core/lib/iomgr/sockaddr_utils.c
Michael Warresc46b3eb2017-02-22 22:57:04 -0500998 src/core/lib/iomgr/socket_factory_posix.c
Yuchen Zengde3daf52016-10-13 17:26:26 -0700999 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001000 src/core/lib/iomgr/socket_utils_common_posix.c
1001 src/core/lib/iomgr/socket_utils_linux.c
1002 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001003 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -07001004 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001005 src/core/lib/iomgr/socket_windows.c
1006 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001007 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001008 src/core/lib/iomgr/tcp_client_windows.c
1009 src/core/lib/iomgr/tcp_posix.c
1010 src/core/lib/iomgr/tcp_server_posix.c
Yuchen Zeng68745bb2017-03-14 17:51:07 -07001011 src/core/lib/iomgr/tcp_server_utils_posix_common.c
Yuchen Zeng47155ed2017-03-13 17:18:07 -07001012 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c
1013 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c
murgatroid999030c812016-09-16 13:25:08 -07001014 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001015 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -07001016 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001017 src/core/lib/iomgr/tcp_windows.c
1018 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -07001019 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001020 src/core/lib/iomgr/timer_heap.c
Craig Tillerc3571792017-05-02 12:33:38 -07001021 src/core/lib/iomgr/timer_manager.c
murgatroid999030c812016-09-16 13:25:08 -07001022 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001023 src/core/lib/iomgr/udp_server.c
1024 src/core/lib/iomgr/unix_sockets_posix.c
1025 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -07001026 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001027 src/core/lib/iomgr/wakeup_fd_eventfd.c
1028 src/core/lib/iomgr/wakeup_fd_nospecial.c
1029 src/core/lib/iomgr/wakeup_fd_pipe.c
1030 src/core/lib/iomgr/wakeup_fd_posix.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001031 src/core/lib/json/json.c
1032 src/core/lib/json/json_reader.c
1033 src/core/lib/json/json_string.c
1034 src/core/lib/json/json_writer.c
Craig Tiller29b527f2017-03-30 10:27:20 -07001035 src/core/lib/slice/b64.c
Craig Tillerc3350542016-10-26 16:19:01 -07001036 src/core/lib/slice/percent_encoding.c
1037 src/core/lib/slice/slice.c
1038 src/core/lib/slice/slice_buffer.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001039 src/core/lib/slice/slice_hash_table.c
1040 src/core/lib/slice/slice_intern.c
Craig Tillerc3350542016-10-26 16:19:01 -07001041 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001042 src/core/lib/surface/alarm.c
1043 src/core/lib/surface/api_trace.c
1044 src/core/lib/surface/byte_buffer.c
1045 src/core/lib/surface/byte_buffer_reader.c
1046 src/core/lib/surface/call.c
1047 src/core/lib/surface/call_details.c
1048 src/core/lib/surface/call_log_batch.c
1049 src/core/lib/surface/channel.c
1050 src/core/lib/surface/channel_init.c
1051 src/core/lib/surface/channel_ping.c
1052 src/core/lib/surface/channel_stack_type.c
1053 src/core/lib/surface/completion_queue.c
Sree Kuchibhotlabf184282017-03-21 15:18:58 -07001054 src/core/lib/surface/completion_queue_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001055 src/core/lib/surface/event_string.c
Craig Tiller8ebb5442017-04-07 16:01:55 -07001056 src/core/lib/surface/lame_client.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001057 src/core/lib/surface/metadata_array.c
1058 src/core/lib/surface/server.c
1059 src/core/lib/surface/validate_metadata.c
1060 src/core/lib/surface/version.c
Craig Tiller9e0066b2016-10-20 14:04:18 -07001061 src/core/lib/transport/bdp_estimator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001062 src/core/lib/transport/byte_stream.c
1063 src/core/lib/transport/connectivity_state.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001064 src/core/lib/transport/error_utils.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001065 src/core/lib/transport/metadata.c
1066 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -07001067 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -07001068 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001069 src/core/lib/transport/static_metadata.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001070 src/core/lib/transport/status_conversion.c
Robbie Shade710d2422016-07-13 15:15:38 -04001071 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001072 src/core/lib/transport/transport.c
1073 src/core/lib/transport/transport_op_string.c
Craig Tiller1f477302017-05-05 11:01:25 -07001074 src/core/lib/debug/trace.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001075 src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c
1076 src/core/ext/transport/chttp2/transport/bin_decoder.c
1077 src/core/ext/transport/chttp2/transport/bin_encoder.c
1078 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
1079 src/core/ext/transport/chttp2/transport/chttp2_transport.c
1080 src/core/ext/transport/chttp2/transport/frame_data.c
1081 src/core/ext/transport/chttp2/transport/frame_goaway.c
1082 src/core/ext/transport/chttp2/transport/frame_ping.c
1083 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
1084 src/core/ext/transport/chttp2/transport/frame_settings.c
1085 src/core/ext/transport/chttp2/transport/frame_window_update.c
1086 src/core/ext/transport/chttp2/transport/hpack_encoder.c
1087 src/core/ext/transport/chttp2/transport/hpack_parser.c
1088 src/core/ext/transport/chttp2/transport/hpack_table.c
Craig Tillerc8f62bc2017-04-03 16:25:45 -07001089 src/core/ext/transport/chttp2/transport/http2_settings.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001090 src/core/ext/transport/chttp2/transport/huffsyms.c
1091 src/core/ext/transport/chttp2/transport/incoming_metadata.c
1092 src/core/ext/transport/chttp2/transport/parsing.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001093 src/core/ext/transport/chttp2/transport/stream_lists.c
1094 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001095 src/core/ext/transport/chttp2/transport/varint.c
1096 src/core/ext/transport/chttp2/transport/writing.c
1097 src/core/ext/transport/chttp2/alpn/alpn.c
Craig Tilleraf767432017-04-03 13:54:31 -07001098 src/core/ext/filters/http/client/http_client_filter.c
Craig Tilleraf767432017-04-03 13:54:31 -07001099 src/core/ext/filters/http/http_filters_plugin.c
Craig Tiller71d6ce62017-04-06 09:10:09 -07001100 src/core/ext/filters/http/message_compress/message_compress_filter.c
Craig Tilleraf767432017-04-03 13:54:31 -07001101 src/core/ext/filters/http/server/http_server_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001102 src/core/lib/http/httpcli_security_connector.c
1103 src/core/lib/security/context/security_context.c
1104 src/core/lib/security/credentials/composite/composite_credentials.c
1105 src/core/lib/security/credentials/credentials.c
1106 src/core/lib/security/credentials/credentials_metadata.c
1107 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -07001108 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001109 src/core/lib/security/credentials/google_default/google_default_credentials.c
1110 src/core/lib/security/credentials/iam/iam_credentials.c
1111 src/core/lib/security/credentials/jwt/json_token.c
1112 src/core/lib/security/credentials/jwt/jwt_credentials.c
1113 src/core/lib/security/credentials/jwt/jwt_verifier.c
1114 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
1115 src/core/lib/security/credentials/plugin/plugin_credentials.c
1116 src/core/lib/security/credentials/ssl/ssl_credentials.c
1117 src/core/lib/security/transport/client_auth_filter.c
David Garcia Quintas01291502017-02-07 13:26:41 -08001118 src/core/lib/security/transport/lb_targets_info.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001119 src/core/lib/security/transport/secure_endpoint.c
1120 src/core/lib/security/transport/security_connector.c
Mark D. Roth071cacf2016-11-17 13:17:56 -08001121 src/core/lib/security/transport/security_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001122 src/core/lib/security/transport/server_auth_filter.c
1123 src/core/lib/security/transport/tsi_error.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001124 src/core/lib/security/util/json_util.c
1125 src/core/lib/surface/init_secure.c
Craig Tiller134fed32017-03-28 14:27:18 -07001126 src/core/tsi/fake_transport_security.c
1127 src/core/tsi/ssl_transport_security.c
1128 src/core/tsi/transport_security.c
jiangtaoli2016e69881d2017-04-10 14:29:43 -07001129 src/core/tsi/transport_security_adapter.c
Mark D. Roth71403822016-12-02 10:51:39 -08001130 src/core/ext/transport/chttp2/server/chttp2_server.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001131 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
Craig Tiller9eb0fde2017-03-31 16:59:30 -07001132 src/core/ext/filters/client_channel/channel_connectivity.c
1133 src/core/ext/filters/client_channel/client_channel.c
1134 src/core/ext/filters/client_channel/client_channel_factory.c
1135 src/core/ext/filters/client_channel/client_channel_plugin.c
1136 src/core/ext/filters/client_channel/connector.c
1137 src/core/ext/filters/client_channel/http_connect_handshaker.c
1138 src/core/ext/filters/client_channel/http_proxy.c
1139 src/core/ext/filters/client_channel/lb_policy.c
1140 src/core/ext/filters/client_channel/lb_policy_factory.c
1141 src/core/ext/filters/client_channel/lb_policy_registry.c
1142 src/core/ext/filters/client_channel/parse_address.c
1143 src/core/ext/filters/client_channel/proxy_mapper.c
1144 src/core/ext/filters/client_channel/proxy_mapper_registry.c
1145 src/core/ext/filters/client_channel/resolver.c
1146 src/core/ext/filters/client_channel/resolver_factory.c
1147 src/core/ext/filters/client_channel/resolver_registry.c
1148 src/core/ext/filters/client_channel/retry_throttle.c
1149 src/core/ext/filters/client_channel/subchannel.c
1150 src/core/ext/filters/client_channel/subchannel_index.c
1151 src/core/ext/filters/client_channel/uri_parser.c
Craig Tiller71d6ce62017-04-06 09:10:09 -07001152 src/core/ext/filters/deadline/deadline_filter.c
Mark D. Roth8686cab2016-11-17 13:12:17 -08001153 src/core/ext/transport/chttp2/client/chttp2_connector.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001154 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
1155 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
1156 src/core/ext/transport/chttp2/client/insecure/channel_create.c
1157 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
Vijay Pai3d7d5f42017-05-04 10:02:24 -07001158 src/core/ext/transport/inproc/inproc_plugin.c
1159 src/core/ext/transport/inproc/inproc_transport.c
Mark D. Roth09e458c2017-05-02 08:13:26 -07001160 src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.c
Craig Tiller9eb0fde2017-03-31 16:59:30 -07001161 src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c
1162 src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.c
Mark D. Roth09e458c2017-05-02 08:13:26 -07001163 src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.c
Craig Tiller9eb0fde2017-03-31 16:59:30 -07001164 src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.c
1165 src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001166 third_party/nanopb/pb_common.c
1167 third_party/nanopb/pb_decode.c
1168 third_party/nanopb/pb_encode.c
David Garcia Quintas87d5a312017-06-06 19:45:58 -07001169 src/core/ext/filters/client_channel/resolver/fake/fake_resolver.c
Craig Tiller9eb0fde2017-03-31 16:59:30 -07001170 src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.c
1171 src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.c
1172 src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.c
1173 src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.c
1174 src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.c
Yuchen Zeng4ebace72017-06-05 17:24:06 -07001175 src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_fallback.c
Craig Tiller9eb0fde2017-03-31 16:59:30 -07001176 src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.c
1177 src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.c
1178 src/core/ext/filters/load_reporting/load_reporting.c
1179 src/core/ext/filters/load_reporting/load_reporting_filter.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07001180 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001181 src/core/ext/census/context.c
1182 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -07001183 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001184 src/core/ext/census/grpc_context.c
1185 src/core/ext/census/grpc_filter.c
1186 src/core/ext/census/grpc_plugin.c
1187 src/core/ext/census/initialize.c
Vizerai0359e122017-04-28 20:06:58 -07001188 src/core/ext/census/intrusive_hash_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001189 src/core/ext/census/mlog.c
1190 src/core/ext/census/operation.c
1191 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07001192 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -07001193 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001194 src/core/ext/census/tracing.c
Craig Tiller6d4894e2017-03-31 17:22:06 -07001195 src/core/ext/filters/max_age/max_age_filter.c
Craig Tiller9b3648a2017-04-03 12:25:19 -07001196 src/core/ext/filters/message_size/message_size_filter.c
Muxi Yan29ff4662017-05-15 10:27:55 -07001197 src/core/ext/filters/workarounds/workaround_cronet_compression_filter.c
1198 src/core/ext/filters/workarounds/workaround_utils.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001199 src/core/plugin_registry/grpc_plugin_registry.c
1200)
1201
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001202if(WIN32 AND MSVC)
1203 set_target_properties(grpc PROPERTIES COMPILE_PDB_NAME "grpc"
1204 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
1205 )
1206 if (gRPC_INSTALL)
1207 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02001208 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001209 )
1210 endif()
1211endif()
1212
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001213
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001214target_include_directories(grpc
Jan Tattermusch456b7132017-06-20 13:21:27 +02001215 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001216 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001217 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1218 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001219 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001220 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001221 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07001222 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zeng8076d2b2016-08-25 13:23:13 -07001223 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07001224 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07001225 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001226 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001227)
1228
1229target_link_libraries(grpc
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001230 ${_gRPC_BASELIB_LIBRARIES}
1231 ${_gRPC_SSL_LIBRARIES}
1232 ${_gRPC_ZLIB_LIBRARIES}
Yuchen Zeng8076d2b2016-08-25 13:23:13 -07001233 ${_gRPC_CARES_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001234 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001235 gpr
1236)
1237
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001238foreach(_hdr
1239 include/grpc/byte_buffer.h
1240 include/grpc/byte_buffer_reader.h
1241 include/grpc/compression.h
1242 include/grpc/grpc.h
1243 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001244 include/grpc/grpc_security_constants.h
David Garcia Quintasf31f0962017-02-10 14:53:58 -08001245 include/grpc/load_reporting.h
Craig Tillerc3350542016-10-26 16:19:01 -07001246 include/grpc/slice.h
1247 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001248 include/grpc/status.h
Muxi Yan1d3ce9a2017-05-15 16:01:17 -07001249 include/grpc/support/workaround_list.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001250 include/grpc/impl/codegen/byte_buffer_reader.h
1251 include/grpc/impl/codegen/compression_types.h
1252 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08001253 include/grpc/impl/codegen/exec_ctx_fwd.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001254 include/grpc/impl/codegen/grpc_types.h
1255 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07001256 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001257 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001258 include/grpc/impl/codegen/atm.h
1259 include/grpc/impl/codegen/atm_gcc_atomic.h
1260 include/grpc/impl/codegen/atm_gcc_sync.h
1261 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08001262 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001263 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001264 include/grpc/impl/codegen/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001265 include/grpc/impl/codegen/sync.h
1266 include/grpc/impl/codegen/sync_generic.h
1267 include/grpc/impl/codegen/sync_posix.h
1268 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001269 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001270 include/grpc/census.h
1271)
1272 string(REPLACE "include/" "" _path ${_hdr})
1273 get_filename_component(_path ${_path} PATH)
1274 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02001275 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001276 )
1277endforeach()
1278
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001279
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001280if (gRPC_INSTALL)
1281 install(TARGETS grpc EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02001282 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
1283 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
1284 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001285 )
1286endif()
1287
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001288
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001289add_library(grpc_cronet
1290 src/core/lib/surface/init.c
1291 src/core/lib/channel/channel_args.c
1292 src/core/lib/channel/channel_stack.c
1293 src/core/lib/channel/channel_stack_builder.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001294 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -07001295 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -08001296 src/core/lib/channel/handshaker_factory.c
1297 src/core/lib/channel/handshaker_registry.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001298 src/core/lib/compression/compression.c
1299 src/core/lib/compression/message_compress.c
Muxi Yane87a7e12017-06-29 16:53:24 -07001300 src/core/lib/compression/stream_compression.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001301 src/core/lib/http/format_request.c
1302 src/core/lib/http/httpcli.c
1303 src/core/lib/http/parser.c
1304 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -07001305 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001306 src/core/lib/iomgr/endpoint.c
1307 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -07001308 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001309 src/core/lib/iomgr/endpoint_pair_windows.c
1310 src/core/lib/iomgr/error.c
Craig Tillerc67cc992017-04-27 10:15:51 -07001311 src/core/lib/iomgr/ev_epoll1_linux.c
Sree Kuchibhotla5a1a3b42017-05-05 13:14:45 -07001312 src/core/lib/iomgr/ev_epoll_limited_pollers_linux.c
Sree Kuchibhotlad4fc32e2017-05-02 14:15:12 -07001313 src/core/lib/iomgr/ev_epoll_thread_pool_linux.c
Craig Tillerf4360d72017-04-07 08:51:00 -07001314 src/core/lib/iomgr/ev_epollex_linux.c
Craig Tillerc67cc992017-04-27 10:15:51 -07001315 src/core/lib/iomgr/ev_epollsig_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001316 src/core/lib/iomgr/ev_poll_posix.c
1317 src/core/lib/iomgr/ev_posix.c
Jan Tattermuschde030a32017-05-16 18:20:26 +02001318 src/core/lib/iomgr/ev_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001319 src/core/lib/iomgr/exec_ctx.c
1320 src/core/lib/iomgr/executor.c
1321 src/core/lib/iomgr/iocp_windows.c
1322 src/core/lib/iomgr/iomgr.c
1323 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001324 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001325 src/core/lib/iomgr/iomgr_windows.c
Craig Tiller819cd882017-04-25 13:18:22 -07001326 src/core/lib/iomgr/is_epollexclusive_available.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001327 src/core/lib/iomgr/load_file.c
Craig Tiller376887d2017-04-06 08:27:03 -07001328 src/core/lib/iomgr/lockfree_event.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02001329 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001330 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -07001331 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001332 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -07001333 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001334 src/core/lib/iomgr/pollset_windows.c
1335 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001336 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001337 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -07001338 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001339 src/core/lib/iomgr/sockaddr_utils.c
Michael Warresc46b3eb2017-02-22 22:57:04 -05001340 src/core/lib/iomgr/socket_factory_posix.c
Yuchen Zengde3daf52016-10-13 17:26:26 -07001341 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001342 src/core/lib/iomgr/socket_utils_common_posix.c
1343 src/core/lib/iomgr/socket_utils_linux.c
1344 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001345 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -07001346 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001347 src/core/lib/iomgr/socket_windows.c
1348 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001349 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001350 src/core/lib/iomgr/tcp_client_windows.c
1351 src/core/lib/iomgr/tcp_posix.c
1352 src/core/lib/iomgr/tcp_server_posix.c
Yuchen Zeng68745bb2017-03-14 17:51:07 -07001353 src/core/lib/iomgr/tcp_server_utils_posix_common.c
Yuchen Zeng47155ed2017-03-13 17:18:07 -07001354 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c
1355 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c
murgatroid999030c812016-09-16 13:25:08 -07001356 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001357 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -07001358 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001359 src/core/lib/iomgr/tcp_windows.c
1360 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -07001361 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001362 src/core/lib/iomgr/timer_heap.c
Craig Tillerc3571792017-05-02 12:33:38 -07001363 src/core/lib/iomgr/timer_manager.c
murgatroid999030c812016-09-16 13:25:08 -07001364 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001365 src/core/lib/iomgr/udp_server.c
1366 src/core/lib/iomgr/unix_sockets_posix.c
1367 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -07001368 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001369 src/core/lib/iomgr/wakeup_fd_eventfd.c
1370 src/core/lib/iomgr/wakeup_fd_nospecial.c
1371 src/core/lib/iomgr/wakeup_fd_pipe.c
1372 src/core/lib/iomgr/wakeup_fd_posix.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001373 src/core/lib/json/json.c
1374 src/core/lib/json/json_reader.c
1375 src/core/lib/json/json_string.c
1376 src/core/lib/json/json_writer.c
Craig Tiller29b527f2017-03-30 10:27:20 -07001377 src/core/lib/slice/b64.c
Craig Tillerc3350542016-10-26 16:19:01 -07001378 src/core/lib/slice/percent_encoding.c
1379 src/core/lib/slice/slice.c
1380 src/core/lib/slice/slice_buffer.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001381 src/core/lib/slice/slice_hash_table.c
1382 src/core/lib/slice/slice_intern.c
Craig Tillerc3350542016-10-26 16:19:01 -07001383 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001384 src/core/lib/surface/alarm.c
1385 src/core/lib/surface/api_trace.c
1386 src/core/lib/surface/byte_buffer.c
1387 src/core/lib/surface/byte_buffer_reader.c
1388 src/core/lib/surface/call.c
1389 src/core/lib/surface/call_details.c
1390 src/core/lib/surface/call_log_batch.c
1391 src/core/lib/surface/channel.c
1392 src/core/lib/surface/channel_init.c
1393 src/core/lib/surface/channel_ping.c
1394 src/core/lib/surface/channel_stack_type.c
1395 src/core/lib/surface/completion_queue.c
Sree Kuchibhotlabf184282017-03-21 15:18:58 -07001396 src/core/lib/surface/completion_queue_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001397 src/core/lib/surface/event_string.c
Craig Tiller8ebb5442017-04-07 16:01:55 -07001398 src/core/lib/surface/lame_client.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001399 src/core/lib/surface/metadata_array.c
1400 src/core/lib/surface/server.c
1401 src/core/lib/surface/validate_metadata.c
1402 src/core/lib/surface/version.c
Craig Tiller9e0066b2016-10-20 14:04:18 -07001403 src/core/lib/transport/bdp_estimator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001404 src/core/lib/transport/byte_stream.c
1405 src/core/lib/transport/connectivity_state.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001406 src/core/lib/transport/error_utils.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001407 src/core/lib/transport/metadata.c
1408 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -07001409 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -07001410 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001411 src/core/lib/transport/static_metadata.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001412 src/core/lib/transport/status_conversion.c
Robbie Shade710d2422016-07-13 15:15:38 -04001413 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001414 src/core/lib/transport/transport.c
1415 src/core/lib/transport/transport_op_string.c
Craig Tiller1f477302017-05-05 11:01:25 -07001416 src/core/lib/debug/trace.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001417 src/core/ext/transport/cronet/client/secure/cronet_channel_create.c
1418 src/core/ext/transport/cronet/transport/cronet_api_dummy.c
1419 src/core/ext/transport/cronet/transport/cronet_transport.c
1420 src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
1421 src/core/ext/transport/chttp2/transport/bin_decoder.c
1422 src/core/ext/transport/chttp2/transport/bin_encoder.c
1423 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
1424 src/core/ext/transport/chttp2/transport/chttp2_transport.c
1425 src/core/ext/transport/chttp2/transport/frame_data.c
1426 src/core/ext/transport/chttp2/transport/frame_goaway.c
1427 src/core/ext/transport/chttp2/transport/frame_ping.c
1428 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
1429 src/core/ext/transport/chttp2/transport/frame_settings.c
1430 src/core/ext/transport/chttp2/transport/frame_window_update.c
1431 src/core/ext/transport/chttp2/transport/hpack_encoder.c
1432 src/core/ext/transport/chttp2/transport/hpack_parser.c
1433 src/core/ext/transport/chttp2/transport/hpack_table.c
Craig Tillerc8f62bc2017-04-03 16:25:45 -07001434 src/core/ext/transport/chttp2/transport/http2_settings.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001435 src/core/ext/transport/chttp2/transport/huffsyms.c
1436 src/core/ext/transport/chttp2/transport/incoming_metadata.c
1437 src/core/ext/transport/chttp2/transport/parsing.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001438 src/core/ext/transport/chttp2/transport/stream_lists.c
1439 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001440 src/core/ext/transport/chttp2/transport/varint.c
1441 src/core/ext/transport/chttp2/transport/writing.c
1442 src/core/ext/transport/chttp2/alpn/alpn.c
Craig Tilleraf767432017-04-03 13:54:31 -07001443 src/core/ext/filters/http/client/http_client_filter.c
Craig Tilleraf767432017-04-03 13:54:31 -07001444 src/core/ext/filters/http/http_filters_plugin.c
Craig Tiller71d6ce62017-04-06 09:10:09 -07001445 src/core/ext/filters/http/message_compress/message_compress_filter.c
Craig Tilleraf767432017-04-03 13:54:31 -07001446 src/core/ext/filters/http/server/http_server_filter.c
Craig Tiller9eb0fde2017-03-31 16:59:30 -07001447 src/core/ext/filters/client_channel/channel_connectivity.c
1448 src/core/ext/filters/client_channel/client_channel.c
1449 src/core/ext/filters/client_channel/client_channel_factory.c
1450 src/core/ext/filters/client_channel/client_channel_plugin.c
1451 src/core/ext/filters/client_channel/connector.c
1452 src/core/ext/filters/client_channel/http_connect_handshaker.c
1453 src/core/ext/filters/client_channel/http_proxy.c
1454 src/core/ext/filters/client_channel/lb_policy.c
1455 src/core/ext/filters/client_channel/lb_policy_factory.c
1456 src/core/ext/filters/client_channel/lb_policy_registry.c
1457 src/core/ext/filters/client_channel/parse_address.c
1458 src/core/ext/filters/client_channel/proxy_mapper.c
1459 src/core/ext/filters/client_channel/proxy_mapper_registry.c
1460 src/core/ext/filters/client_channel/resolver.c
1461 src/core/ext/filters/client_channel/resolver_factory.c
1462 src/core/ext/filters/client_channel/resolver_registry.c
1463 src/core/ext/filters/client_channel/retry_throttle.c
1464 src/core/ext/filters/client_channel/subchannel.c
1465 src/core/ext/filters/client_channel/subchannel_index.c
1466 src/core/ext/filters/client_channel/uri_parser.c
Craig Tiller71d6ce62017-04-06 09:10:09 -07001467 src/core/ext/filters/deadline/deadline_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001468 src/core/lib/http/httpcli_security_connector.c
1469 src/core/lib/security/context/security_context.c
1470 src/core/lib/security/credentials/composite/composite_credentials.c
1471 src/core/lib/security/credentials/credentials.c
1472 src/core/lib/security/credentials/credentials_metadata.c
1473 src/core/lib/security/credentials/fake/fake_credentials.c
murgatroid997c205902016-08-09 10:07:42 -07001474 src/core/lib/security/credentials/google_default/credentials_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001475 src/core/lib/security/credentials/google_default/google_default_credentials.c
1476 src/core/lib/security/credentials/iam/iam_credentials.c
1477 src/core/lib/security/credentials/jwt/json_token.c
1478 src/core/lib/security/credentials/jwt/jwt_credentials.c
1479 src/core/lib/security/credentials/jwt/jwt_verifier.c
1480 src/core/lib/security/credentials/oauth2/oauth2_credentials.c
1481 src/core/lib/security/credentials/plugin/plugin_credentials.c
1482 src/core/lib/security/credentials/ssl/ssl_credentials.c
1483 src/core/lib/security/transport/client_auth_filter.c
David Garcia Quintas01291502017-02-07 13:26:41 -08001484 src/core/lib/security/transport/lb_targets_info.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001485 src/core/lib/security/transport/secure_endpoint.c
1486 src/core/lib/security/transport/security_connector.c
Mark D. Roth071cacf2016-11-17 13:17:56 -08001487 src/core/lib/security/transport/security_handshaker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001488 src/core/lib/security/transport/server_auth_filter.c
1489 src/core/lib/security/transport/tsi_error.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001490 src/core/lib/security/util/json_util.c
1491 src/core/lib/surface/init_secure.c
Craig Tiller134fed32017-03-28 14:27:18 -07001492 src/core/tsi/fake_transport_security.c
1493 src/core/tsi/ssl_transport_security.c
1494 src/core/tsi/transport_security.c
jiangtaoli2016e69881d2017-04-10 14:29:43 -07001495 src/core/tsi/transport_security_adapter.c
Mark D. Roth8686cab2016-11-17 13:12:17 -08001496 src/core/ext/transport/chttp2/client/chttp2_connector.c
Craig Tiller9eb0fde2017-03-31 16:59:30 -07001497 src/core/ext/filters/load_reporting/load_reporting.c
1498 src/core/ext/filters/load_reporting/load_reporting_filter.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001499 src/core/plugin_registry/grpc_cronet_plugin_registry.c
1500)
1501
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001502if(WIN32 AND MSVC)
1503 set_target_properties(grpc_cronet PROPERTIES COMPILE_PDB_NAME "grpc_cronet"
1504 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
1505 )
1506 if (gRPC_INSTALL)
1507 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_cronet.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02001508 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001509 )
1510 endif()
1511endif()
1512
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001513
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001514target_include_directories(grpc_cronet
Jan Tattermusch456b7132017-06-20 13:21:27 +02001515 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001516 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001517 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1518 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001519 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001520 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001521 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07001522 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zeng8076d2b2016-08-25 13:23:13 -07001523 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07001524 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07001525 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001526 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001527)
1528
1529target_link_libraries(grpc_cronet
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03001530 ${_gRPC_BASELIB_LIBRARIES}
1531 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch807693b2017-06-12 10:15:27 +02001532 ${_gRPC_ZLIB_LIBRARIES}
1533 ${_gRPC_CARES_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001534 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001535 gpr
1536)
1537
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001538foreach(_hdr
1539 include/grpc/byte_buffer.h
1540 include/grpc/byte_buffer_reader.h
1541 include/grpc/compression.h
1542 include/grpc/grpc.h
1543 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02001544 include/grpc/grpc_security_constants.h
David Garcia Quintasf31f0962017-02-10 14:53:58 -08001545 include/grpc/load_reporting.h
Craig Tillerc3350542016-10-26 16:19:01 -07001546 include/grpc/slice.h
1547 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001548 include/grpc/status.h
Muxi Yan1d3ce9a2017-05-15 16:01:17 -07001549 include/grpc/support/workaround_list.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001550 include/grpc/impl/codegen/byte_buffer_reader.h
1551 include/grpc/impl/codegen/compression_types.h
1552 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08001553 include/grpc/impl/codegen/exec_ctx_fwd.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001554 include/grpc/impl/codegen/grpc_types.h
1555 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07001556 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001557 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001558 include/grpc/impl/codegen/atm.h
1559 include/grpc/impl/codegen/atm_gcc_atomic.h
1560 include/grpc/impl/codegen/atm_gcc_sync.h
1561 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08001562 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07001563 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001564 include/grpc/impl/codegen/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001565 include/grpc/impl/codegen/sync.h
1566 include/grpc/impl/codegen/sync_generic.h
1567 include/grpc/impl/codegen/sync_posix.h
1568 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001569 include/grpc/grpc_cronet.h
1570 include/grpc/grpc_security.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001571)
1572 string(REPLACE "include/" "" _path ${_hdr})
1573 get_filename_component(_path ${_path} PATH)
1574 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02001575 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03001576 )
1577endforeach()
1578
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001579
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001580if (gRPC_INSTALL)
1581 install(TARGETS grpc_cronet EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02001582 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
1583 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
1584 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03001585 )
1586endif()
1587
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001588if (gRPC_BUILD_TESTS)
1589
1590add_library(grpc_test_util
1591 test/core/end2end/data/client_certs.c
1592 test/core/end2end/data/server1_cert.c
1593 test/core/end2end/data/server1_key.c
1594 test/core/end2end/data/test_root_cert.c
1595 test/core/security/oauth2_utils.c
David Garcia Quintas87d5a312017-06-06 19:45:58 -07001596 src/core/ext/filters/client_channel/resolver/fake/fake_resolver.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001597 test/core/end2end/cq_verifier.c
Craig Tillere067b6e2017-03-06 14:46:37 -08001598 test/core/end2end/fixtures/http_proxy_fixture.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001599 test/core/end2end/fixtures/proxy.c
1600 test/core/iomgr/endpoint_tests.c
Craig Tiller61eb40c2017-02-03 13:46:33 -08001601 test/core/util/debugger_macros.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001602 test/core/util/grpc_profiler.c
1603 test/core/util/memory_counters.c
1604 test/core/util/mock_endpoint.c
1605 test/core/util/parse_hexstring.c
1606 test/core/util/passthru_endpoint.c
Craig Tillercba864b2017-02-17 10:27:56 -08001607 test/core/util/port.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001608 test/core/util/port_server_client.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001609 test/core/util/slice_splitter.c
Craig Tillerfe5f4972017-02-13 16:26:27 -08001610 test/core/util/trickle_endpoint.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001611 src/core/lib/channel/channel_args.c
1612 src/core/lib/channel/channel_stack.c
1613 src/core/lib/channel/channel_stack_builder.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001614 src/core/lib/channel/connected_channel.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001615 src/core/lib/channel/handshaker.c
1616 src/core/lib/channel/handshaker_factory.c
1617 src/core/lib/channel/handshaker_registry.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001618 src/core/lib/compression/compression.c
1619 src/core/lib/compression/message_compress.c
Muxi Yane87a7e12017-06-29 16:53:24 -07001620 src/core/lib/compression/stream_compression.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001621 src/core/lib/http/format_request.c
1622 src/core/lib/http/httpcli.c
1623 src/core/lib/http/parser.c
1624 src/core/lib/iomgr/closure.c
1625 src/core/lib/iomgr/combiner.c
1626 src/core/lib/iomgr/endpoint.c
1627 src/core/lib/iomgr/endpoint_pair_posix.c
1628 src/core/lib/iomgr/endpoint_pair_uv.c
1629 src/core/lib/iomgr/endpoint_pair_windows.c
1630 src/core/lib/iomgr/error.c
Craig Tillerc67cc992017-04-27 10:15:51 -07001631 src/core/lib/iomgr/ev_epoll1_linux.c
Sree Kuchibhotla5a1a3b42017-05-05 13:14:45 -07001632 src/core/lib/iomgr/ev_epoll_limited_pollers_linux.c
Sree Kuchibhotlad4fc32e2017-05-02 14:15:12 -07001633 src/core/lib/iomgr/ev_epoll_thread_pool_linux.c
Craig Tillerf4360d72017-04-07 08:51:00 -07001634 src/core/lib/iomgr/ev_epollex_linux.c
Craig Tillerc67cc992017-04-27 10:15:51 -07001635 src/core/lib/iomgr/ev_epollsig_linux.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001636 src/core/lib/iomgr/ev_poll_posix.c
1637 src/core/lib/iomgr/ev_posix.c
Jan Tattermuschde030a32017-05-16 18:20:26 +02001638 src/core/lib/iomgr/ev_windows.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001639 src/core/lib/iomgr/exec_ctx.c
1640 src/core/lib/iomgr/executor.c
1641 src/core/lib/iomgr/iocp_windows.c
1642 src/core/lib/iomgr/iomgr.c
1643 src/core/lib/iomgr/iomgr_posix.c
1644 src/core/lib/iomgr/iomgr_uv.c
1645 src/core/lib/iomgr/iomgr_windows.c
Craig Tiller819cd882017-04-25 13:18:22 -07001646 src/core/lib/iomgr/is_epollexclusive_available.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001647 src/core/lib/iomgr/load_file.c
Craig Tiller376887d2017-04-06 08:27:03 -07001648 src/core/lib/iomgr/lockfree_event.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001649 src/core/lib/iomgr/network_status_tracker.c
1650 src/core/lib/iomgr/polling_entity.c
1651 src/core/lib/iomgr/pollset_set_uv.c
1652 src/core/lib/iomgr/pollset_set_windows.c
1653 src/core/lib/iomgr/pollset_uv.c
1654 src/core/lib/iomgr/pollset_windows.c
1655 src/core/lib/iomgr/resolve_address_posix.c
1656 src/core/lib/iomgr/resolve_address_uv.c
1657 src/core/lib/iomgr/resolve_address_windows.c
1658 src/core/lib/iomgr/resource_quota.c
1659 src/core/lib/iomgr/sockaddr_utils.c
Michael Warresc46b3eb2017-02-22 22:57:04 -05001660 src/core/lib/iomgr/socket_factory_posix.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001661 src/core/lib/iomgr/socket_mutator.c
1662 src/core/lib/iomgr/socket_utils_common_posix.c
1663 src/core/lib/iomgr/socket_utils_linux.c
1664 src/core/lib/iomgr/socket_utils_posix.c
1665 src/core/lib/iomgr/socket_utils_uv.c
1666 src/core/lib/iomgr/socket_utils_windows.c
1667 src/core/lib/iomgr/socket_windows.c
1668 src/core/lib/iomgr/tcp_client_posix.c
1669 src/core/lib/iomgr/tcp_client_uv.c
1670 src/core/lib/iomgr/tcp_client_windows.c
1671 src/core/lib/iomgr/tcp_posix.c
1672 src/core/lib/iomgr/tcp_server_posix.c
Yuchen Zeng68745bb2017-03-14 17:51:07 -07001673 src/core/lib/iomgr/tcp_server_utils_posix_common.c
Yuchen Zeng47155ed2017-03-13 17:18:07 -07001674 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c
1675 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001676 src/core/lib/iomgr/tcp_server_uv.c
1677 src/core/lib/iomgr/tcp_server_windows.c
1678 src/core/lib/iomgr/tcp_uv.c
1679 src/core/lib/iomgr/tcp_windows.c
1680 src/core/lib/iomgr/time_averaged_stats.c
1681 src/core/lib/iomgr/timer_generic.c
1682 src/core/lib/iomgr/timer_heap.c
Craig Tillerc3571792017-05-02 12:33:38 -07001683 src/core/lib/iomgr/timer_manager.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001684 src/core/lib/iomgr/timer_uv.c
1685 src/core/lib/iomgr/udp_server.c
1686 src/core/lib/iomgr/unix_sockets_posix.c
1687 src/core/lib/iomgr/unix_sockets_posix_noop.c
1688 src/core/lib/iomgr/wakeup_fd_cv.c
1689 src/core/lib/iomgr/wakeup_fd_eventfd.c
1690 src/core/lib/iomgr/wakeup_fd_nospecial.c
1691 src/core/lib/iomgr/wakeup_fd_pipe.c
1692 src/core/lib/iomgr/wakeup_fd_posix.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001693 src/core/lib/json/json.c
1694 src/core/lib/json/json_reader.c
1695 src/core/lib/json/json_string.c
1696 src/core/lib/json/json_writer.c
Craig Tiller29b527f2017-03-30 10:27:20 -07001697 src/core/lib/slice/b64.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001698 src/core/lib/slice/percent_encoding.c
1699 src/core/lib/slice/slice.c
1700 src/core/lib/slice/slice_buffer.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001701 src/core/lib/slice/slice_hash_table.c
1702 src/core/lib/slice/slice_intern.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001703 src/core/lib/slice/slice_string_helpers.c
1704 src/core/lib/surface/alarm.c
1705 src/core/lib/surface/api_trace.c
1706 src/core/lib/surface/byte_buffer.c
1707 src/core/lib/surface/byte_buffer_reader.c
1708 src/core/lib/surface/call.c
1709 src/core/lib/surface/call_details.c
1710 src/core/lib/surface/call_log_batch.c
1711 src/core/lib/surface/channel.c
1712 src/core/lib/surface/channel_init.c
1713 src/core/lib/surface/channel_ping.c
1714 src/core/lib/surface/channel_stack_type.c
1715 src/core/lib/surface/completion_queue.c
Sree Kuchibhotlabf184282017-03-21 15:18:58 -07001716 src/core/lib/surface/completion_queue_factory.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001717 src/core/lib/surface/event_string.c
Craig Tiller8ebb5442017-04-07 16:01:55 -07001718 src/core/lib/surface/lame_client.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001719 src/core/lib/surface/metadata_array.c
1720 src/core/lib/surface/server.c
1721 src/core/lib/surface/validate_metadata.c
1722 src/core/lib/surface/version.c
Craig Tillerff1f1602017-01-20 13:55:35 -08001723 src/core/lib/transport/bdp_estimator.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001724 src/core/lib/transport/byte_stream.c
1725 src/core/lib/transport/connectivity_state.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001726 src/core/lib/transport/error_utils.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001727 src/core/lib/transport/metadata.c
1728 src/core/lib/transport/metadata_batch.c
1729 src/core/lib/transport/pid_controller.c
1730 src/core/lib/transport/service_config.c
1731 src/core/lib/transport/static_metadata.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001732 src/core/lib/transport/status_conversion.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001733 src/core/lib/transport/timeout_encoding.c
1734 src/core/lib/transport/transport.c
1735 src/core/lib/transport/transport_op_string.c
Craig Tiller1f477302017-05-05 11:01:25 -07001736 src/core/lib/debug/trace.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001737)
1738
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001739if(WIN32 AND MSVC)
1740 set_target_properties(grpc_test_util PROPERTIES COMPILE_PDB_NAME "grpc_test_util"
1741 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
1742 )
1743 if (gRPC_INSTALL)
1744 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_test_util.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02001745 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001746 )
1747 endif()
1748endif()
1749
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001750
1751target_include_directories(grpc_test_util
Jan Tattermusch456b7132017-06-20 13:21:27 +02001752 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001753 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001754 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1755 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1756 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001757 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001758 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07001759 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08001760 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07001761 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07001762 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001763 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
1764)
1765
1766target_link_libraries(grpc_test_util
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001767 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001768 gpr_test_util
1769 gpr
1770 grpc
1771)
1772
1773foreach(_hdr
1774 include/grpc/byte_buffer.h
1775 include/grpc/byte_buffer_reader.h
1776 include/grpc/compression.h
1777 include/grpc/grpc.h
1778 include/grpc/grpc_posix.h
1779 include/grpc/grpc_security_constants.h
David Garcia Quintasf31f0962017-02-10 14:53:58 -08001780 include/grpc/load_reporting.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001781 include/grpc/slice.h
1782 include/grpc/slice_buffer.h
1783 include/grpc/status.h
Muxi Yan1d3ce9a2017-05-15 16:01:17 -07001784 include/grpc/support/workaround_list.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001785 include/grpc/impl/codegen/byte_buffer_reader.h
1786 include/grpc/impl/codegen/compression_types.h
1787 include/grpc/impl/codegen/connectivity_state.h
1788 include/grpc/impl/codegen/exec_ctx_fwd.h
1789 include/grpc/impl/codegen/grpc_types.h
1790 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07001791 include/grpc/impl/codegen/slice.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001792 include/grpc/impl/codegen/status.h
1793 include/grpc/impl/codegen/atm.h
1794 include/grpc/impl/codegen/atm_gcc_atomic.h
1795 include/grpc/impl/codegen/atm_gcc_sync.h
1796 include/grpc/impl/codegen/atm_windows.h
1797 include/grpc/impl/codegen/gpr_slice.h
1798 include/grpc/impl/codegen/gpr_types.h
1799 include/grpc/impl/codegen/port_platform.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001800 include/grpc/impl/codegen/sync.h
1801 include/grpc/impl/codegen/sync_generic.h
1802 include/grpc/impl/codegen/sync_posix.h
1803 include/grpc/impl/codegen/sync_windows.h
1804)
1805 string(REPLACE "include/" "" _path ${_hdr})
1806 get_filename_component(_path ${_path} PATH)
1807 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02001808 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001809 )
1810endforeach()
1811
1812endif (gRPC_BUILD_TESTS)
1813if (gRPC_BUILD_TESTS)
1814
1815add_library(grpc_test_util_unsecure
David Garcia Quintas87d5a312017-06-06 19:45:58 -07001816 src/core/ext/filters/client_channel/resolver/fake/fake_resolver.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001817 test/core/end2end/cq_verifier.c
Craig Tillere067b6e2017-03-06 14:46:37 -08001818 test/core/end2end/fixtures/http_proxy_fixture.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001819 test/core/end2end/fixtures/proxy.c
1820 test/core/iomgr/endpoint_tests.c
Craig Tiller61eb40c2017-02-03 13:46:33 -08001821 test/core/util/debugger_macros.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001822 test/core/util/grpc_profiler.c
1823 test/core/util/memory_counters.c
1824 test/core/util/mock_endpoint.c
1825 test/core/util/parse_hexstring.c
1826 test/core/util/passthru_endpoint.c
Craig Tillercba864b2017-02-17 10:27:56 -08001827 test/core/util/port.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001828 test/core/util/port_server_client.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001829 test/core/util/slice_splitter.c
Craig Tillerfe5f4972017-02-13 16:26:27 -08001830 test/core/util/trickle_endpoint.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001831)
1832
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001833if(WIN32 AND MSVC)
1834 set_target_properties(grpc_test_util_unsecure PROPERTIES COMPILE_PDB_NAME "grpc_test_util_unsecure"
1835 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
1836 )
1837 if (gRPC_INSTALL)
1838 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_test_util_unsecure.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02001839 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01001840 )
1841 endif()
1842endif()
1843
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001844
1845target_include_directories(grpc_test_util_unsecure
Jan Tattermusch456b7132017-06-20 13:21:27 +02001846 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001847 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001848 PRIVATE ${BORINGSSL_ROOT_DIR}/include
1849 PRIVATE ${PROTOBUF_ROOT_DIR}/src
1850 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001851 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001852 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07001853 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08001854 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07001855 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07001856 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001857 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
1858)
1859
1860target_link_libraries(grpc_test_util_unsecure
Jan Tattermusch438c0b52017-01-23 11:24:53 +01001861 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01001862 gpr
1863 gpr_test_util
1864 grpc_unsecure
1865 grpc
1866)
1867
1868
1869endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01001870
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001871add_library(grpc_unsecure
1872 src/core/lib/surface/init.c
1873 src/core/lib/surface/init_unsecure.c
1874 src/core/lib/channel/channel_args.c
1875 src/core/lib/channel/channel_stack.c
1876 src/core/lib/channel/channel_stack_builder.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001877 src/core/lib/channel/connected_channel.c
Mark D. Rothdfbdefe2016-07-14 09:18:22 -07001878 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -08001879 src/core/lib/channel/handshaker_factory.c
1880 src/core/lib/channel/handshaker_registry.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001881 src/core/lib/compression/compression.c
1882 src/core/lib/compression/message_compress.c
Muxi Yane87a7e12017-06-29 16:53:24 -07001883 src/core/lib/compression/stream_compression.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001884 src/core/lib/http/format_request.c
1885 src/core/lib/http/httpcli.c
1886 src/core/lib/http/parser.c
1887 src/core/lib/iomgr/closure.c
Craig Tiller57726ca2016-09-12 11:59:45 -07001888 src/core/lib/iomgr/combiner.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001889 src/core/lib/iomgr/endpoint.c
1890 src/core/lib/iomgr/endpoint_pair_posix.c
murgatroid99c36f6ea2016-10-03 09:24:09 -07001891 src/core/lib/iomgr/endpoint_pair_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001892 src/core/lib/iomgr/endpoint_pair_windows.c
1893 src/core/lib/iomgr/error.c
Craig Tillerc67cc992017-04-27 10:15:51 -07001894 src/core/lib/iomgr/ev_epoll1_linux.c
Sree Kuchibhotla5a1a3b42017-05-05 13:14:45 -07001895 src/core/lib/iomgr/ev_epoll_limited_pollers_linux.c
Sree Kuchibhotlad4fc32e2017-05-02 14:15:12 -07001896 src/core/lib/iomgr/ev_epoll_thread_pool_linux.c
Craig Tillerf4360d72017-04-07 08:51:00 -07001897 src/core/lib/iomgr/ev_epollex_linux.c
Craig Tillerc67cc992017-04-27 10:15:51 -07001898 src/core/lib/iomgr/ev_epollsig_linux.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001899 src/core/lib/iomgr/ev_poll_posix.c
1900 src/core/lib/iomgr/ev_posix.c
Jan Tattermuschde030a32017-05-16 18:20:26 +02001901 src/core/lib/iomgr/ev_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001902 src/core/lib/iomgr/exec_ctx.c
1903 src/core/lib/iomgr/executor.c
1904 src/core/lib/iomgr/iocp_windows.c
1905 src/core/lib/iomgr/iomgr.c
1906 src/core/lib/iomgr/iomgr_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001907 src/core/lib/iomgr/iomgr_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001908 src/core/lib/iomgr/iomgr_windows.c
Craig Tiller819cd882017-04-25 13:18:22 -07001909 src/core/lib/iomgr/is_epollexclusive_available.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001910 src/core/lib/iomgr/load_file.c
Craig Tiller376887d2017-04-06 08:27:03 -07001911 src/core/lib/iomgr/lockfree_event.c
Nicolas "Pixel" Nobleb360c8a2016-07-02 00:54:28 +02001912 src/core/lib/iomgr/network_status_tracker.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001913 src/core/lib/iomgr/polling_entity.c
murgatroid999030c812016-09-16 13:25:08 -07001914 src/core/lib/iomgr/pollset_set_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001915 src/core/lib/iomgr/pollset_set_windows.c
murgatroid999030c812016-09-16 13:25:08 -07001916 src/core/lib/iomgr/pollset_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001917 src/core/lib/iomgr/pollset_windows.c
1918 src/core/lib/iomgr/resolve_address_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001919 src/core/lib/iomgr/resolve_address_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001920 src/core/lib/iomgr/resolve_address_windows.c
Craig Tiller20afa3d2016-10-17 14:52:14 -07001921 src/core/lib/iomgr/resource_quota.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001922 src/core/lib/iomgr/sockaddr_utils.c
Michael Warresc46b3eb2017-02-22 22:57:04 -05001923 src/core/lib/iomgr/socket_factory_posix.c
Yuchen Zengde3daf52016-10-13 17:26:26 -07001924 src/core/lib/iomgr/socket_mutator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001925 src/core/lib/iomgr/socket_utils_common_posix.c
1926 src/core/lib/iomgr/socket_utils_linux.c
1927 src/core/lib/iomgr/socket_utils_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001928 src/core/lib/iomgr/socket_utils_uv.c
murgatroid9979b32272016-08-08 13:38:30 -07001929 src/core/lib/iomgr/socket_utils_windows.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001930 src/core/lib/iomgr/socket_windows.c
1931 src/core/lib/iomgr/tcp_client_posix.c
murgatroid999030c812016-09-16 13:25:08 -07001932 src/core/lib/iomgr/tcp_client_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001933 src/core/lib/iomgr/tcp_client_windows.c
1934 src/core/lib/iomgr/tcp_posix.c
1935 src/core/lib/iomgr/tcp_server_posix.c
Yuchen Zeng68745bb2017-03-14 17:51:07 -07001936 src/core/lib/iomgr/tcp_server_utils_posix_common.c
Yuchen Zeng47155ed2017-03-13 17:18:07 -07001937 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c
1938 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c
murgatroid999030c812016-09-16 13:25:08 -07001939 src/core/lib/iomgr/tcp_server_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001940 src/core/lib/iomgr/tcp_server_windows.c
murgatroid999030c812016-09-16 13:25:08 -07001941 src/core/lib/iomgr/tcp_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001942 src/core/lib/iomgr/tcp_windows.c
1943 src/core/lib/iomgr/time_averaged_stats.c
murgatroid999030c812016-09-16 13:25:08 -07001944 src/core/lib/iomgr/timer_generic.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001945 src/core/lib/iomgr/timer_heap.c
Craig Tillerc3571792017-05-02 12:33:38 -07001946 src/core/lib/iomgr/timer_manager.c
murgatroid999030c812016-09-16 13:25:08 -07001947 src/core/lib/iomgr/timer_uv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001948 src/core/lib/iomgr/udp_server.c
1949 src/core/lib/iomgr/unix_sockets_posix.c
1950 src/core/lib/iomgr/unix_sockets_posix_noop.c
kpayson64d195cf52016-10-09 18:04:00 -07001951 src/core/lib/iomgr/wakeup_fd_cv.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001952 src/core/lib/iomgr/wakeup_fd_eventfd.c
1953 src/core/lib/iomgr/wakeup_fd_nospecial.c
1954 src/core/lib/iomgr/wakeup_fd_pipe.c
1955 src/core/lib/iomgr/wakeup_fd_posix.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001956 src/core/lib/json/json.c
1957 src/core/lib/json/json_reader.c
1958 src/core/lib/json/json_string.c
1959 src/core/lib/json/json_writer.c
Craig Tiller29b527f2017-03-30 10:27:20 -07001960 src/core/lib/slice/b64.c
Craig Tillerc3350542016-10-26 16:19:01 -07001961 src/core/lib/slice/percent_encoding.c
1962 src/core/lib/slice/slice.c
1963 src/core/lib/slice/slice_buffer.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001964 src/core/lib/slice/slice_hash_table.c
1965 src/core/lib/slice/slice_intern.c
Craig Tillerc3350542016-10-26 16:19:01 -07001966 src/core/lib/slice/slice_string_helpers.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001967 src/core/lib/surface/alarm.c
1968 src/core/lib/surface/api_trace.c
1969 src/core/lib/surface/byte_buffer.c
1970 src/core/lib/surface/byte_buffer_reader.c
1971 src/core/lib/surface/call.c
1972 src/core/lib/surface/call_details.c
1973 src/core/lib/surface/call_log_batch.c
1974 src/core/lib/surface/channel.c
1975 src/core/lib/surface/channel_init.c
1976 src/core/lib/surface/channel_ping.c
1977 src/core/lib/surface/channel_stack_type.c
1978 src/core/lib/surface/completion_queue.c
Sree Kuchibhotlabf184282017-03-21 15:18:58 -07001979 src/core/lib/surface/completion_queue_factory.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001980 src/core/lib/surface/event_string.c
Craig Tiller8ebb5442017-04-07 16:01:55 -07001981 src/core/lib/surface/lame_client.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001982 src/core/lib/surface/metadata_array.c
1983 src/core/lib/surface/server.c
1984 src/core/lib/surface/validate_metadata.c
1985 src/core/lib/surface/version.c
Craig Tiller9e0066b2016-10-20 14:04:18 -07001986 src/core/lib/transport/bdp_estimator.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001987 src/core/lib/transport/byte_stream.c
1988 src/core/lib/transport/connectivity_state.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001989 src/core/lib/transport/error_utils.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001990 src/core/lib/transport/metadata.c
1991 src/core/lib/transport/metadata_batch.c
Craig Tillerdd2fa642016-10-20 15:46:32 -07001992 src/core/lib/transport/pid_controller.c
Mark D. Rothea846a02016-11-03 11:32:54 -07001993 src/core/lib/transport/service_config.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001994 src/core/lib/transport/static_metadata.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08001995 src/core/lib/transport/status_conversion.c
Robbie Shade710d2422016-07-13 15:15:38 -04001996 src/core/lib/transport/timeout_encoding.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01001997 src/core/lib/transport/transport.c
1998 src/core/lib/transport/transport_op_string.c
Craig Tiller1f477302017-05-05 11:01:25 -07001999 src/core/lib/debug/trace.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002000 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
2001 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
2002 src/core/ext/transport/chttp2/transport/bin_decoder.c
2003 src/core/ext/transport/chttp2/transport/bin_encoder.c
2004 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
2005 src/core/ext/transport/chttp2/transport/chttp2_transport.c
2006 src/core/ext/transport/chttp2/transport/frame_data.c
2007 src/core/ext/transport/chttp2/transport/frame_goaway.c
2008 src/core/ext/transport/chttp2/transport/frame_ping.c
2009 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
2010 src/core/ext/transport/chttp2/transport/frame_settings.c
2011 src/core/ext/transport/chttp2/transport/frame_window_update.c
2012 src/core/ext/transport/chttp2/transport/hpack_encoder.c
2013 src/core/ext/transport/chttp2/transport/hpack_parser.c
2014 src/core/ext/transport/chttp2/transport/hpack_table.c
Craig Tillerc8f62bc2017-04-03 16:25:45 -07002015 src/core/ext/transport/chttp2/transport/http2_settings.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002016 src/core/ext/transport/chttp2/transport/huffsyms.c
2017 src/core/ext/transport/chttp2/transport/incoming_metadata.c
2018 src/core/ext/transport/chttp2/transport/parsing.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002019 src/core/ext/transport/chttp2/transport/stream_lists.c
2020 src/core/ext/transport/chttp2/transport/stream_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002021 src/core/ext/transport/chttp2/transport/varint.c
2022 src/core/ext/transport/chttp2/transport/writing.c
2023 src/core/ext/transport/chttp2/alpn/alpn.c
Craig Tilleraf767432017-04-03 13:54:31 -07002024 src/core/ext/filters/http/client/http_client_filter.c
Craig Tilleraf767432017-04-03 13:54:31 -07002025 src/core/ext/filters/http/http_filters_plugin.c
Craig Tiller71d6ce62017-04-06 09:10:09 -07002026 src/core/ext/filters/http/message_compress/message_compress_filter.c
Craig Tilleraf767432017-04-03 13:54:31 -07002027 src/core/ext/filters/http/server/http_server_filter.c
Mark D. Roth71403822016-12-02 10:51:39 -08002028 src/core/ext/transport/chttp2/server/chttp2_server.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002029 src/core/ext/transport/chttp2/client/insecure/channel_create.c
2030 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
Mark D. Roth2502afb2016-11-29 15:17:31 -08002031 src/core/ext/transport/chttp2/client/chttp2_connector.c
Craig Tiller9eb0fde2017-03-31 16:59:30 -07002032 src/core/ext/filters/client_channel/channel_connectivity.c
2033 src/core/ext/filters/client_channel/client_channel.c
2034 src/core/ext/filters/client_channel/client_channel_factory.c
2035 src/core/ext/filters/client_channel/client_channel_plugin.c
2036 src/core/ext/filters/client_channel/connector.c
2037 src/core/ext/filters/client_channel/http_connect_handshaker.c
2038 src/core/ext/filters/client_channel/http_proxy.c
2039 src/core/ext/filters/client_channel/lb_policy.c
2040 src/core/ext/filters/client_channel/lb_policy_factory.c
2041 src/core/ext/filters/client_channel/lb_policy_registry.c
2042 src/core/ext/filters/client_channel/parse_address.c
2043 src/core/ext/filters/client_channel/proxy_mapper.c
2044 src/core/ext/filters/client_channel/proxy_mapper_registry.c
2045 src/core/ext/filters/client_channel/resolver.c
2046 src/core/ext/filters/client_channel/resolver_factory.c
2047 src/core/ext/filters/client_channel/resolver_registry.c
2048 src/core/ext/filters/client_channel/retry_throttle.c
2049 src/core/ext/filters/client_channel/subchannel.c
2050 src/core/ext/filters/client_channel/subchannel_index.c
2051 src/core/ext/filters/client_channel/uri_parser.c
Craig Tiller71d6ce62017-04-06 09:10:09 -07002052 src/core/ext/filters/deadline/deadline_filter.c
Vijay Pai3d7d5f42017-05-04 10:02:24 -07002053 src/core/ext/transport/inproc/inproc_plugin.c
2054 src/core/ext/transport/inproc/inproc_transport.c
Craig Tiller9eb0fde2017-03-31 16:59:30 -07002055 src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.c
2056 src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.c
2057 src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.c
Yuchen Zeng4ebace72017-06-05 17:24:06 -07002058 src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_fallback.c
Craig Tiller9eb0fde2017-03-31 16:59:30 -07002059 src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.c
2060 src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.c
David Garcia Quintas87d5a312017-06-06 19:45:58 -07002061 src/core/ext/filters/client_channel/resolver/fake/fake_resolver.c
Craig Tiller9eb0fde2017-03-31 16:59:30 -07002062 src/core/ext/filters/load_reporting/load_reporting.c
2063 src/core/ext/filters/load_reporting/load_reporting_filter.c
Mark D. Roth09e458c2017-05-02 08:13:26 -07002064 src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.c
Craig Tiller9eb0fde2017-03-31 16:59:30 -07002065 src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c
2066 src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.c
Mark D. Roth09e458c2017-05-02 08:13:26 -07002067 src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.c
Craig Tiller9eb0fde2017-03-31 16:59:30 -07002068 src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.c
2069 src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002070 third_party/nanopb/pb_common.c
2071 third_party/nanopb/pb_decode.c
2072 third_party/nanopb/pb_encode.c
Craig Tiller9eb0fde2017-03-31 16:59:30 -07002073 src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.c
2074 src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07002075 src/core/ext/census/base_resources.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002076 src/core/ext/census/context.c
2077 src/core/ext/census/gen/census.pb.c
Alistair Veitcha0c69f92016-08-31 12:01:27 -07002078 src/core/ext/census/gen/trace_context.pb.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002079 src/core/ext/census/grpc_context.c
2080 src/core/ext/census/grpc_filter.c
2081 src/core/ext/census/grpc_plugin.c
2082 src/core/ext/census/initialize.c
Vizerai0359e122017-04-28 20:06:58 -07002083 src/core/ext/census/intrusive_hash_map.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002084 src/core/ext/census/mlog.c
2085 src/core/ext/census/operation.c
2086 src/core/ext/census/placeholders.c
Alistair Veitch3abd27e2016-07-21 17:29:04 -07002087 src/core/ext/census/resource.c
Vizerai12d1fc62016-09-09 14:22:19 -07002088 src/core/ext/census/trace_context.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002089 src/core/ext/census/tracing.c
Craig Tiller6d4894e2017-03-31 17:22:06 -07002090 src/core/ext/filters/max_age/max_age_filter.c
Craig Tiller9b3648a2017-04-03 12:25:19 -07002091 src/core/ext/filters/message_size/message_size_filter.c
Muxi Yan29ff4662017-05-15 10:27:55 -07002092 src/core/ext/filters/workarounds/workaround_cronet_compression_filter.c
2093 src/core/ext/filters/workarounds/workaround_utils.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002094 src/core/plugin_registry/grpc_unsecure_plugin_registry.c
2095)
2096
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002097if(WIN32 AND MSVC)
2098 set_target_properties(grpc_unsecure PROPERTIES COMPILE_PDB_NAME "grpc_unsecure"
2099 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2100 )
2101 if (gRPC_INSTALL)
2102 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_unsecure.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002103 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002104 )
2105 endif()
2106endif()
2107
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002108
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002109target_include_directories(grpc_unsecure
Jan Tattermusch456b7132017-06-20 13:21:27 +02002110 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002111 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002112 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2113 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002114 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002115 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002116 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07002117 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zeng8076d2b2016-08-25 13:23:13 -07002118 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07002119 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07002120 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002121 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002122)
2123
2124target_link_libraries(grpc_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002125 ${_gRPC_BASELIB_LIBRARIES}
Jan Tattermusch807693b2017-06-12 10:15:27 +02002126 ${_gRPC_ZLIB_LIBRARIES}
2127 ${_gRPC_CARES_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002128 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002129 gpr
2130)
2131
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002132foreach(_hdr
2133 include/grpc/byte_buffer.h
2134 include/grpc/byte_buffer_reader.h
2135 include/grpc/compression.h
2136 include/grpc/grpc.h
2137 include/grpc/grpc_posix.h
Nicolas "Pixel" Noblee3e17d32016-08-20 01:45:32 +02002138 include/grpc/grpc_security_constants.h
David Garcia Quintasf31f0962017-02-10 14:53:58 -08002139 include/grpc/load_reporting.h
Craig Tillerc3350542016-10-26 16:19:01 -07002140 include/grpc/slice.h
2141 include/grpc/slice_buffer.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002142 include/grpc/status.h
Muxi Yan1d3ce9a2017-05-15 16:01:17 -07002143 include/grpc/support/workaround_list.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002144 include/grpc/impl/codegen/byte_buffer_reader.h
2145 include/grpc/impl/codegen/compression_types.h
2146 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08002147 include/grpc/impl/codegen/exec_ctx_fwd.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002148 include/grpc/impl/codegen/grpc_types.h
2149 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07002150 include/grpc/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002151 include/grpc/impl/codegen/status.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002152 include/grpc/impl/codegen/atm.h
2153 include/grpc/impl/codegen/atm_gcc_atomic.h
2154 include/grpc/impl/codegen/atm_gcc_sync.h
2155 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08002156 include/grpc/impl/codegen/gpr_slice.h
David Garcia Quintas44cb6c92016-08-02 10:26:51 -07002157 include/grpc/impl/codegen/gpr_types.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002158 include/grpc/impl/codegen/port_platform.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002159 include/grpc/impl/codegen/sync.h
2160 include/grpc/impl/codegen/sync_generic.h
2161 include/grpc/impl/codegen/sync_posix.h
2162 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002163 include/grpc/census.h
2164)
2165 string(REPLACE "include/" "" _path ${_hdr})
2166 get_filename_component(_path ${_path} PATH)
2167 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002168 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002169 )
2170endforeach()
2171
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002172
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002173if (gRPC_INSTALL)
2174 install(TARGETS grpc_unsecure EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002175 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
2176 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
2177 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002178 )
2179endif()
2180
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002181if (gRPC_BUILD_TESTS)
2182
2183add_library(reconnect_server
2184 test/core/util/reconnect_server.c
2185)
2186
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002187if(WIN32 AND MSVC)
2188 set_target_properties(reconnect_server PROPERTIES COMPILE_PDB_NAME "reconnect_server"
2189 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2190 )
2191 if (gRPC_INSTALL)
2192 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/reconnect_server.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002193 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002194 )
2195 endif()
2196endif()
2197
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002198
2199target_include_directories(reconnect_server
Jan Tattermusch456b7132017-06-20 13:21:27 +02002200 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002201 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002202 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2203 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2204 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002205 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002206 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07002207 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08002208 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07002209 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07002210 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002211 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
2212)
2213
2214target_link_libraries(reconnect_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002215 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002216 test_tcp_server
2217 grpc_test_util
2218 grpc
2219 gpr_test_util
2220 gpr
2221)
2222
2223
2224endif (gRPC_BUILD_TESTS)
2225if (gRPC_BUILD_TESTS)
2226
2227add_library(test_tcp_server
2228 test/core/util/test_tcp_server.c
2229)
2230
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002231if(WIN32 AND MSVC)
2232 set_target_properties(test_tcp_server PROPERTIES COMPILE_PDB_NAME "test_tcp_server"
2233 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2234 )
2235 if (gRPC_INSTALL)
2236 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/test_tcp_server.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002237 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002238 )
2239 endif()
2240endif()
2241
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002242
2243target_include_directories(test_tcp_server
Jan Tattermusch456b7132017-06-20 13:21:27 +02002244 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002245 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002246 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2247 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2248 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002249 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002250 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07002251 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08002252 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07002253 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07002254 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002255 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
2256)
2257
2258target_link_libraries(test_tcp_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002259 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002260 grpc_test_util
2261 grpc
2262 gpr_test_util
2263 gpr
2264)
2265
2266
2267endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002268
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002269add_library(grpc++
murgatroid991ca0f3e2016-08-26 14:58:49 -07002270 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002271 src/cpp/client/secure_credentials.cc
2272 src/cpp/common/auth_property_iterator.cc
2273 src/cpp/common/secure_auth_context.cc
2274 src/cpp/common/secure_channel_arguments.cc
2275 src/cpp/common/secure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07002276 src/cpp/server/insecure_server_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002277 src/cpp/server/secure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002278 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002279 src/cpp/client/client_context.cc
2280 src/cpp/client/create_channel.cc
2281 src/cpp/client/create_channel_internal.cc
2282 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002283 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002284 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002285 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07002286 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002287 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002288 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07002289 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002290 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07002291 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002292 src/cpp/server/async_generic_service.cc
Craig Tiller4751c282017-01-10 14:29:00 -08002293 src/cpp/server/channel_argument_option.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002294 src/cpp/server/create_default_thread_pool.cc
2295 src/cpp/server/dynamic_thread_pool.cc
yang-gc3c475f2016-12-27 10:37:26 -08002296 src/cpp/server/health/default_health_check_service.cc
2297 src/cpp/server/health/health.pb.c
2298 src/cpp/server/health/health_check_service.cc
2299 src/cpp/server/health/health_check_service_server_builder_option.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002300 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002301 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002302 src/cpp/server/server_context.cc
2303 src/cpp/server/server_credentials.cc
2304 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07002305 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002306 src/cpp/util/byte_buffer_cc.cc
2307 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002308 src/cpp/util/status.cc
2309 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07002310 src/cpp/util/time_cc.cc
Craig Tiller790f6af2017-03-30 12:39:24 -07002311 third_party/nanopb/pb_common.c
2312 third_party/nanopb/pb_decode.c
2313 third_party/nanopb/pb_encode.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002314 src/cpp/codegen/codegen_init.cc
2315)
2316
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002317if(WIN32 AND MSVC)
2318 set_target_properties(grpc++ PROPERTIES COMPILE_PDB_NAME "grpc++"
2319 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2320 )
2321 if (gRPC_INSTALL)
2322 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002323 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002324 )
2325 endif()
2326endif()
2327
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002328
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002329target_include_directories(grpc++
Jan Tattermusch456b7132017-06-20 13:21:27 +02002330 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002331 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002332 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2333 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002334 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002335 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002336 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07002337 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zeng8076d2b2016-08-25 13:23:13 -07002338 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07002339 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07002340 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002341 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002342 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002343)
2344
2345target_link_libraries(grpc++
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03002346 ${_gRPC_BASELIB_LIBRARIES}
2347 ${_gRPC_SSL_LIBRARIES}
2348 ${_gRPC_PROTOBUF_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002349 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01002350 grpc
2351)
2352
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002353foreach(_hdr
2354 include/grpc++/alarm.h
2355 include/grpc++/channel.h
2356 include/grpc++/client_context.h
2357 include/grpc++/completion_queue.h
2358 include/grpc++/create_channel.h
2359 include/grpc++/create_channel_posix.h
yang-g04981242016-12-01 11:53:08 -08002360 include/grpc++/ext/health_check_service_server_builder_option.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002361 include/grpc++/generic/async_generic_service.h
2362 include/grpc++/generic/generic_stub.h
2363 include/grpc++/grpc++.h
yang-g1accb122016-12-28 10:38:04 -08002364 include/grpc++/health_check_service_interface.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002365 include/grpc++/impl/call.h
Craig Tiller4751c282017-01-10 14:29:00 -08002366 include/grpc++/impl/channel_argument_option.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002367 include/grpc++/impl/client_unary_call.h
2368 include/grpc++/impl/codegen/core_codegen.h
2369 include/grpc++/impl/grpc_library.h
2370 include/grpc++/impl/method_handler_impl.h
2371 include/grpc++/impl/rpc_method.h
2372 include/grpc++/impl/rpc_service_method.h
2373 include/grpc++/impl/serialization_traits.h
2374 include/grpc++/impl/server_builder_option.h
2375 include/grpc++/impl/server_builder_plugin.h
2376 include/grpc++/impl/server_initializer.h
2377 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07002378 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002379 include/grpc++/security/auth_context.h
2380 include/grpc++/security/auth_metadata_processor.h
2381 include/grpc++/security/credentials.h
2382 include/grpc++/security/server_credentials.h
2383 include/grpc++/server.h
2384 include/grpc++/server_builder.h
2385 include/grpc++/server_context.h
2386 include/grpc++/server_posix.h
2387 include/grpc++/support/async_stream.h
2388 include/grpc++/support/async_unary_call.h
2389 include/grpc++/support/byte_buffer.h
2390 include/grpc++/support/channel_arguments.h
2391 include/grpc++/support/config.h
2392 include/grpc++/support/slice.h
2393 include/grpc++/support/status.h
2394 include/grpc++/support/status_code_enum.h
2395 include/grpc++/support/string_ref.h
2396 include/grpc++/support/stub_options.h
2397 include/grpc++/support/sync_stream.h
2398 include/grpc++/support/time.h
2399 include/grpc++/impl/codegen/async_stream.h
2400 include/grpc++/impl/codegen/async_unary_call.h
2401 include/grpc++/impl/codegen/call.h
2402 include/grpc++/impl/codegen/call_hook.h
2403 include/grpc++/impl/codegen/channel_interface.h
2404 include/grpc++/impl/codegen/client_context.h
2405 include/grpc++/impl/codegen/client_unary_call.h
2406 include/grpc++/impl/codegen/completion_queue.h
2407 include/grpc++/impl/codegen/completion_queue_tag.h
2408 include/grpc++/impl/codegen/config.h
2409 include/grpc++/impl/codegen/core_codegen_interface.h
2410 include/grpc++/impl/codegen/create_auth_context.h
2411 include/grpc++/impl/codegen/grpc_library.h
yang-g988b47c2017-01-31 09:51:45 -08002412 include/grpc++/impl/codegen/metadata_map.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002413 include/grpc++/impl/codegen/method_handler_impl.h
2414 include/grpc++/impl/codegen/rpc_method.h
2415 include/grpc++/impl/codegen/rpc_service_method.h
2416 include/grpc++/impl/codegen/security/auth_context.h
2417 include/grpc++/impl/codegen/serialization_traits.h
2418 include/grpc++/impl/codegen/server_context.h
2419 include/grpc++/impl/codegen/server_interface.h
2420 include/grpc++/impl/codegen/service_type.h
Craig Tiller7c70b6c2017-01-23 07:48:42 -08002421 include/grpc++/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002422 include/grpc++/impl/codegen/status.h
2423 include/grpc++/impl/codegen/status_code_enum.h
2424 include/grpc++/impl/codegen/string_ref.h
2425 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002426 include/grpc++/impl/codegen/sync_stream.h
2427 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02002428 include/grpc/impl/codegen/byte_buffer_reader.h
2429 include/grpc/impl/codegen/compression_types.h
2430 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08002431 include/grpc/impl/codegen/exec_ctx_fwd.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02002432 include/grpc/impl/codegen/grpc_types.h
2433 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07002434 include/grpc/impl/codegen/slice.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02002435 include/grpc/impl/codegen/status.h
2436 include/grpc/impl/codegen/atm.h
2437 include/grpc/impl/codegen/atm_gcc_atomic.h
2438 include/grpc/impl/codegen/atm_gcc_sync.h
2439 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08002440 include/grpc/impl/codegen/gpr_slice.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02002441 include/grpc/impl/codegen/gpr_types.h
2442 include/grpc/impl/codegen/port_platform.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02002443 include/grpc/impl/codegen/sync.h
2444 include/grpc/impl/codegen/sync_generic.h
2445 include/grpc/impl/codegen/sync_posix.h
2446 include/grpc/impl/codegen/sync_windows.h
Piotr Pietraszkiewicza5fac1f2017-02-09 11:15:44 +01002447 include/grpc++/impl/codegen/proto_utils.h
2448 include/grpc++/impl/codegen/config_protobuf.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002449)
2450 string(REPLACE "include/" "" _path ${_hdr})
2451 get_filename_component(_path ${_path} PATH)
2452 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002453 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03002454 )
2455endforeach()
2456
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002457
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002458if (gRPC_INSTALL)
2459 install(TARGETS grpc++ EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002460 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
2461 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
2462 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03002463 )
2464endif()
2465
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002466
Garrett Casto931a26b2016-10-04 09:18:29 -07002467add_library(grpc++_cronet
2468 src/cpp/client/cronet_credentials.cc
2469 src/cpp/client/insecure_credentials.cc
2470 src/cpp/common/insecure_create_auth_context.cc
2471 src/cpp/server/insecure_server_credentials.cc
2472 src/cpp/client/channel_cc.cc
2473 src/cpp/client/client_context.cc
2474 src/cpp/client/create_channel.cc
2475 src/cpp/client/create_channel_internal.cc
2476 src/cpp/client/create_channel_posix.cc
2477 src/cpp/client/credentials_cc.cc
2478 src/cpp/client/generic_stub.cc
2479 src/cpp/common/channel_arguments.cc
2480 src/cpp/common/channel_filter.cc
2481 src/cpp/common/completion_queue_cc.cc
2482 src/cpp/common/core_codegen.cc
Craig Tiller3d357d92016-10-26 20:52:03 -07002483 src/cpp/common/resource_quota_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07002484 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07002485 src/cpp/common/version_cc.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07002486 src/cpp/server/async_generic_service.cc
Craig Tiller4751c282017-01-10 14:29:00 -08002487 src/cpp/server/channel_argument_option.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07002488 src/cpp/server/create_default_thread_pool.cc
2489 src/cpp/server/dynamic_thread_pool.cc
yang-gc3c475f2016-12-27 10:37:26 -08002490 src/cpp/server/health/default_health_check_service.cc
2491 src/cpp/server/health/health.pb.c
2492 src/cpp/server/health/health_check_service.cc
2493 src/cpp/server/health/health_check_service_server_builder_option.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07002494 src/cpp/server/server_builder.cc
2495 src/cpp/server/server_cc.cc
2496 src/cpp/server/server_context.cc
2497 src/cpp/server/server_credentials.cc
2498 src/cpp/server/server_posix.cc
Sree Kuchibhotla33d54942016-10-25 10:03:52 -07002499 src/cpp/thread_manager/thread_manager.cc
Garrett Casto931a26b2016-10-04 09:18:29 -07002500 src/cpp/util/byte_buffer_cc.cc
2501 src/cpp/util/slice_cc.cc
2502 src/cpp/util/status.cc
2503 src/cpp/util/string_ref.cc
2504 src/cpp/util/time_cc.cc
yang-g75ea6a22017-05-19 13:06:37 -07002505 third_party/nanopb/pb_common.c
2506 third_party/nanopb/pb_decode.c
2507 third_party/nanopb/pb_encode.c
2508 src/cpp/codegen/codegen_init.cc
2509 src/core/ext/transport/chttp2/client/insecure/channel_create.c
2510 src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c
2511 src/core/ext/transport/chttp2/client/chttp2_connector.c
2512 src/core/ext/transport/chttp2/transport/bin_decoder.c
2513 src/core/ext/transport/chttp2/transport/bin_encoder.c
2514 src/core/ext/transport/chttp2/transport/chttp2_plugin.c
2515 src/core/ext/transport/chttp2/transport/chttp2_transport.c
2516 src/core/ext/transport/chttp2/transport/frame_data.c
2517 src/core/ext/transport/chttp2/transport/frame_goaway.c
2518 src/core/ext/transport/chttp2/transport/frame_ping.c
2519 src/core/ext/transport/chttp2/transport/frame_rst_stream.c
2520 src/core/ext/transport/chttp2/transport/frame_settings.c
2521 src/core/ext/transport/chttp2/transport/frame_window_update.c
2522 src/core/ext/transport/chttp2/transport/hpack_encoder.c
2523 src/core/ext/transport/chttp2/transport/hpack_parser.c
2524 src/core/ext/transport/chttp2/transport/hpack_table.c
2525 src/core/ext/transport/chttp2/transport/http2_settings.c
2526 src/core/ext/transport/chttp2/transport/huffsyms.c
2527 src/core/ext/transport/chttp2/transport/incoming_metadata.c
2528 src/core/ext/transport/chttp2/transport/parsing.c
2529 src/core/ext/transport/chttp2/transport/stream_lists.c
2530 src/core/ext/transport/chttp2/transport/stream_map.c
2531 src/core/ext/transport/chttp2/transport/varint.c
2532 src/core/ext/transport/chttp2/transport/writing.c
ncteisen3770ac92016-11-28 11:02:41 -08002533 src/core/lib/channel/channel_args.c
2534 src/core/lib/channel/channel_stack.c
2535 src/core/lib/channel/channel_stack_builder.c
ncteisen3770ac92016-11-28 11:02:41 -08002536 src/core/lib/channel/connected_channel.c
ncteisen3770ac92016-11-28 11:02:41 -08002537 src/core/lib/channel/handshaker.c
Mark D. Roth1f0f23c2017-01-06 13:07:19 -08002538 src/core/lib/channel/handshaker_factory.c
2539 src/core/lib/channel/handshaker_registry.c
ncteisen3770ac92016-11-28 11:02:41 -08002540 src/core/lib/compression/compression.c
2541 src/core/lib/compression/message_compress.c
Muxi Yane87a7e12017-06-29 16:53:24 -07002542 src/core/lib/compression/stream_compression.c
ncteisen3770ac92016-11-28 11:02:41 -08002543 src/core/lib/http/format_request.c
2544 src/core/lib/http/httpcli.c
2545 src/core/lib/http/parser.c
2546 src/core/lib/iomgr/closure.c
2547 src/core/lib/iomgr/combiner.c
2548 src/core/lib/iomgr/endpoint.c
2549 src/core/lib/iomgr/endpoint_pair_posix.c
2550 src/core/lib/iomgr/endpoint_pair_uv.c
2551 src/core/lib/iomgr/endpoint_pair_windows.c
2552 src/core/lib/iomgr/error.c
Craig Tillerc67cc992017-04-27 10:15:51 -07002553 src/core/lib/iomgr/ev_epoll1_linux.c
Sree Kuchibhotla5a1a3b42017-05-05 13:14:45 -07002554 src/core/lib/iomgr/ev_epoll_limited_pollers_linux.c
Sree Kuchibhotlad4fc32e2017-05-02 14:15:12 -07002555 src/core/lib/iomgr/ev_epoll_thread_pool_linux.c
Craig Tillerf4360d72017-04-07 08:51:00 -07002556 src/core/lib/iomgr/ev_epollex_linux.c
Craig Tillerc67cc992017-04-27 10:15:51 -07002557 src/core/lib/iomgr/ev_epollsig_linux.c
ncteisen3770ac92016-11-28 11:02:41 -08002558 src/core/lib/iomgr/ev_poll_posix.c
2559 src/core/lib/iomgr/ev_posix.c
Jan Tattermuschde030a32017-05-16 18:20:26 +02002560 src/core/lib/iomgr/ev_windows.c
ncteisen3770ac92016-11-28 11:02:41 -08002561 src/core/lib/iomgr/exec_ctx.c
2562 src/core/lib/iomgr/executor.c
2563 src/core/lib/iomgr/iocp_windows.c
2564 src/core/lib/iomgr/iomgr.c
2565 src/core/lib/iomgr/iomgr_posix.c
2566 src/core/lib/iomgr/iomgr_uv.c
2567 src/core/lib/iomgr/iomgr_windows.c
Craig Tiller819cd882017-04-25 13:18:22 -07002568 src/core/lib/iomgr/is_epollexclusive_available.c
ncteisen3770ac92016-11-28 11:02:41 -08002569 src/core/lib/iomgr/load_file.c
Craig Tiller376887d2017-04-06 08:27:03 -07002570 src/core/lib/iomgr/lockfree_event.c
ncteisen3770ac92016-11-28 11:02:41 -08002571 src/core/lib/iomgr/network_status_tracker.c
2572 src/core/lib/iomgr/polling_entity.c
2573 src/core/lib/iomgr/pollset_set_uv.c
2574 src/core/lib/iomgr/pollset_set_windows.c
2575 src/core/lib/iomgr/pollset_uv.c
2576 src/core/lib/iomgr/pollset_windows.c
2577 src/core/lib/iomgr/resolve_address_posix.c
2578 src/core/lib/iomgr/resolve_address_uv.c
2579 src/core/lib/iomgr/resolve_address_windows.c
2580 src/core/lib/iomgr/resource_quota.c
2581 src/core/lib/iomgr/sockaddr_utils.c
Michael Warresc46b3eb2017-02-22 22:57:04 -05002582 src/core/lib/iomgr/socket_factory_posix.c
ncteisen3770ac92016-11-28 11:02:41 -08002583 src/core/lib/iomgr/socket_mutator.c
2584 src/core/lib/iomgr/socket_utils_common_posix.c
2585 src/core/lib/iomgr/socket_utils_linux.c
2586 src/core/lib/iomgr/socket_utils_posix.c
2587 src/core/lib/iomgr/socket_utils_uv.c
2588 src/core/lib/iomgr/socket_utils_windows.c
2589 src/core/lib/iomgr/socket_windows.c
2590 src/core/lib/iomgr/tcp_client_posix.c
2591 src/core/lib/iomgr/tcp_client_uv.c
2592 src/core/lib/iomgr/tcp_client_windows.c
2593 src/core/lib/iomgr/tcp_posix.c
2594 src/core/lib/iomgr/tcp_server_posix.c
Yuchen Zeng68745bb2017-03-14 17:51:07 -07002595 src/core/lib/iomgr/tcp_server_utils_posix_common.c
Yuchen Zeng47155ed2017-03-13 17:18:07 -07002596 src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c
2597 src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c
ncteisen3770ac92016-11-28 11:02:41 -08002598 src/core/lib/iomgr/tcp_server_uv.c
2599 src/core/lib/iomgr/tcp_server_windows.c
2600 src/core/lib/iomgr/tcp_uv.c
2601 src/core/lib/iomgr/tcp_windows.c
2602 src/core/lib/iomgr/time_averaged_stats.c
2603 src/core/lib/iomgr/timer_generic.c
2604 src/core/lib/iomgr/timer_heap.c
Craig Tillerc3571792017-05-02 12:33:38 -07002605 src/core/lib/iomgr/timer_manager.c
ncteisen3770ac92016-11-28 11:02:41 -08002606 src/core/lib/iomgr/timer_uv.c
2607 src/core/lib/iomgr/udp_server.c
2608 src/core/lib/iomgr/unix_sockets_posix.c
2609 src/core/lib/iomgr/unix_sockets_posix_noop.c
2610 src/core/lib/iomgr/wakeup_fd_cv.c
2611 src/core/lib/iomgr/wakeup_fd_eventfd.c
2612 src/core/lib/iomgr/wakeup_fd_nospecial.c
2613 src/core/lib/iomgr/wakeup_fd_pipe.c
2614 src/core/lib/iomgr/wakeup_fd_posix.c
ncteisen3770ac92016-11-28 11:02:41 -08002615 src/core/lib/json/json.c
2616 src/core/lib/json/json_reader.c
2617 src/core/lib/json/json_string.c
2618 src/core/lib/json/json_writer.c
Craig Tiller790f6af2017-03-30 12:39:24 -07002619 src/core/lib/slice/b64.c
ncteisen3770ac92016-11-28 11:02:41 -08002620 src/core/lib/slice/percent_encoding.c
2621 src/core/lib/slice/slice.c
2622 src/core/lib/slice/slice_buffer.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08002623 src/core/lib/slice/slice_hash_table.c
2624 src/core/lib/slice/slice_intern.c
ncteisen3770ac92016-11-28 11:02:41 -08002625 src/core/lib/slice/slice_string_helpers.c
2626 src/core/lib/surface/alarm.c
2627 src/core/lib/surface/api_trace.c
2628 src/core/lib/surface/byte_buffer.c
2629 src/core/lib/surface/byte_buffer_reader.c
2630 src/core/lib/surface/call.c
2631 src/core/lib/surface/call_details.c
2632 src/core/lib/surface/call_log_batch.c
2633 src/core/lib/surface/channel.c
2634 src/core/lib/surface/channel_init.c
2635 src/core/lib/surface/channel_ping.c
2636 src/core/lib/surface/channel_stack_type.c
2637 src/core/lib/surface/completion_queue.c
Sree Kuchibhotlabf184282017-03-21 15:18:58 -07002638 src/core/lib/surface/completion_queue_factory.c
ncteisen3770ac92016-11-28 11:02:41 -08002639 src/core/lib/surface/event_string.c
Craig Tiller8ebb5442017-04-07 16:01:55 -07002640 src/core/lib/surface/lame_client.cc
ncteisen3770ac92016-11-28 11:02:41 -08002641 src/core/lib/surface/metadata_array.c
2642 src/core/lib/surface/server.c
2643 src/core/lib/surface/validate_metadata.c
2644 src/core/lib/surface/version.c
Craig Tillerd4257122017-01-13 09:33:57 -08002645 src/core/lib/transport/bdp_estimator.c
ncteisen3770ac92016-11-28 11:02:41 -08002646 src/core/lib/transport/byte_stream.c
2647 src/core/lib/transport/connectivity_state.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08002648 src/core/lib/transport/error_utils.c
ncteisen3770ac92016-11-28 11:02:41 -08002649 src/core/lib/transport/metadata.c
2650 src/core/lib/transport/metadata_batch.c
2651 src/core/lib/transport/pid_controller.c
2652 src/core/lib/transport/service_config.c
2653 src/core/lib/transport/static_metadata.c
Craig Tiller7c70b6c2017-01-23 07:48:42 -08002654 src/core/lib/transport/status_conversion.c
ncteisen3770ac92016-11-28 11:02:41 -08002655 src/core/lib/transport/timeout_encoding.c
2656 src/core/lib/transport/transport.c
2657 src/core/lib/transport/transport_op_string.c
Craig Tiller1f477302017-05-05 11:01:25 -07002658 src/core/lib/debug/trace.c
ncteisen3770ac92016-11-28 11:02:41 -08002659 src/core/ext/transport/chttp2/alpn/alpn.c
Craig Tilleraf767432017-04-03 13:54:31 -07002660 src/core/ext/filters/http/client/http_client_filter.c
Craig Tilleraf767432017-04-03 13:54:31 -07002661 src/core/ext/filters/http/http_filters_plugin.c
Craig Tiller71d6ce62017-04-06 09:10:09 -07002662 src/core/ext/filters/http/message_compress/message_compress_filter.c
Craig Tilleraf767432017-04-03 13:54:31 -07002663 src/core/ext/filters/http/server/http_server_filter.c
Craig Tiller9eb0fde2017-03-31 16:59:30 -07002664 src/core/ext/filters/client_channel/channel_connectivity.c
2665 src/core/ext/filters/client_channel/client_channel.c
2666 src/core/ext/filters/client_channel/client_channel_factory.c
2667 src/core/ext/filters/client_channel/client_channel_plugin.c
2668 src/core/ext/filters/client_channel/connector.c
2669 src/core/ext/filters/client_channel/http_connect_handshaker.c
2670 src/core/ext/filters/client_channel/http_proxy.c
2671 src/core/ext/filters/client_channel/lb_policy.c
2672 src/core/ext/filters/client_channel/lb_policy_factory.c
2673 src/core/ext/filters/client_channel/lb_policy_registry.c
2674 src/core/ext/filters/client_channel/parse_address.c
2675 src/core/ext/filters/client_channel/proxy_mapper.c
2676 src/core/ext/filters/client_channel/proxy_mapper_registry.c
2677 src/core/ext/filters/client_channel/resolver.c
2678 src/core/ext/filters/client_channel/resolver_factory.c
2679 src/core/ext/filters/client_channel/resolver_registry.c
2680 src/core/ext/filters/client_channel/retry_throttle.c
2681 src/core/ext/filters/client_channel/subchannel.c
2682 src/core/ext/filters/client_channel/subchannel_index.c
2683 src/core/ext/filters/client_channel/uri_parser.c
Craig Tiller71d6ce62017-04-06 09:10:09 -07002684 src/core/ext/filters/deadline/deadline_filter.c
ncteisen3770ac92016-11-28 11:02:41 -08002685 src/core/ext/transport/chttp2/server/insecure/server_chttp2.c
2686 src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c
Mark D. Roth71403822016-12-02 10:51:39 -08002687 src/core/ext/transport/chttp2/server/chttp2_server.c
ncteisen3770ac92016-11-28 11:02:41 -08002688 src/core/ext/census/base_resources.c
2689 src/core/ext/census/context.c
2690 src/core/ext/census/gen/census.pb.c
2691 src/core/ext/census/gen/trace_context.pb.c
2692 src/core/ext/census/grpc_context.c
2693 src/core/ext/census/grpc_filter.c
2694 src/core/ext/census/grpc_plugin.c
2695 src/core/ext/census/initialize.c
Vizerai0359e122017-04-28 20:06:58 -07002696 src/core/ext/census/intrusive_hash_map.c
ncteisen3770ac92016-11-28 11:02:41 -08002697 src/core/ext/census/mlog.c
2698 src/core/ext/census/operation.c
2699 src/core/ext/census/placeholders.c
2700 src/core/ext/census/resource.c
2701 src/core/ext/census/trace_context.c
2702 src/core/ext/census/tracing.c
Garrett Casto931a26b2016-10-04 09:18:29 -07002703)
2704
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002705if(WIN32 AND MSVC)
2706 set_target_properties(grpc++_cronet PROPERTIES COMPILE_PDB_NAME "grpc++_cronet"
2707 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2708 )
2709 if (gRPC_INSTALL)
2710 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_cronet.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002711 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002712 )
2713 endif()
2714endif()
2715
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002716
Garrett Casto931a26b2016-10-04 09:18:29 -07002717target_include_directories(grpc++_cronet
Jan Tattermusch456b7132017-06-20 13:21:27 +02002718 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Garrett Casto931a26b2016-10-04 09:18:29 -07002719 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Garrett Casto931a26b2016-10-04 09:18:29 -07002720 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2721 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2722 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002723 PRIVATE ${BENCHMARK}/include
Garrett Casto931a26b2016-10-04 09:18:29 -07002724 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07002725 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengf1cd4492016-10-25 11:26:17 -07002726 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07002727 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07002728 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002729 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002730 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Garrett Casto931a26b2016-10-04 09:18:29 -07002731)
2732
2733target_link_libraries(grpc++_cronet
2734 ${_gRPC_BASELIB_LIBRARIES}
2735 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002736 ${_gRPC_PROTOBUF_LIBRARIES}
2737 ${_gRPC_ALLTARGETS_LIBRARIES}
Garrett Casto931a26b2016-10-04 09:18:29 -07002738 gpr
2739 grpc_cronet
yang-g75ea6a22017-05-19 13:06:37 -07002740 grpc
Garrett Casto931a26b2016-10-04 09:18:29 -07002741)
2742
2743foreach(_hdr
2744 include/grpc++/alarm.h
2745 include/grpc++/channel.h
2746 include/grpc++/client_context.h
2747 include/grpc++/completion_queue.h
2748 include/grpc++/create_channel.h
2749 include/grpc++/create_channel_posix.h
yang-g04981242016-12-01 11:53:08 -08002750 include/grpc++/ext/health_check_service_server_builder_option.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002751 include/grpc++/generic/async_generic_service.h
2752 include/grpc++/generic/generic_stub.h
2753 include/grpc++/grpc++.h
yang-g1accb122016-12-28 10:38:04 -08002754 include/grpc++/health_check_service_interface.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002755 include/grpc++/impl/call.h
Craig Tiller4751c282017-01-10 14:29:00 -08002756 include/grpc++/impl/channel_argument_option.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002757 include/grpc++/impl/client_unary_call.h
2758 include/grpc++/impl/codegen/core_codegen.h
2759 include/grpc++/impl/grpc_library.h
2760 include/grpc++/impl/method_handler_impl.h
2761 include/grpc++/impl/rpc_method.h
2762 include/grpc++/impl/rpc_service_method.h
2763 include/grpc++/impl/serialization_traits.h
2764 include/grpc++/impl/server_builder_option.h
2765 include/grpc++/impl/server_builder_plugin.h
2766 include/grpc++/impl/server_initializer.h
2767 include/grpc++/impl/service_type.h
Craig Tiller3d357d92016-10-26 20:52:03 -07002768 include/grpc++/resource_quota.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002769 include/grpc++/security/auth_context.h
2770 include/grpc++/security/auth_metadata_processor.h
2771 include/grpc++/security/credentials.h
2772 include/grpc++/security/server_credentials.h
2773 include/grpc++/server.h
2774 include/grpc++/server_builder.h
2775 include/grpc++/server_context.h
2776 include/grpc++/server_posix.h
2777 include/grpc++/support/async_stream.h
2778 include/grpc++/support/async_unary_call.h
2779 include/grpc++/support/byte_buffer.h
2780 include/grpc++/support/channel_arguments.h
2781 include/grpc++/support/config.h
2782 include/grpc++/support/slice.h
2783 include/grpc++/support/status.h
2784 include/grpc++/support/status_code_enum.h
2785 include/grpc++/support/string_ref.h
2786 include/grpc++/support/stub_options.h
2787 include/grpc++/support/sync_stream.h
2788 include/grpc++/support/time.h
2789 include/grpc++/impl/codegen/async_stream.h
2790 include/grpc++/impl/codegen/async_unary_call.h
2791 include/grpc++/impl/codegen/call.h
2792 include/grpc++/impl/codegen/call_hook.h
2793 include/grpc++/impl/codegen/channel_interface.h
2794 include/grpc++/impl/codegen/client_context.h
2795 include/grpc++/impl/codegen/client_unary_call.h
2796 include/grpc++/impl/codegen/completion_queue.h
2797 include/grpc++/impl/codegen/completion_queue_tag.h
2798 include/grpc++/impl/codegen/config.h
2799 include/grpc++/impl/codegen/core_codegen_interface.h
2800 include/grpc++/impl/codegen/create_auth_context.h
2801 include/grpc++/impl/codegen/grpc_library.h
yang-g988b47c2017-01-31 09:51:45 -08002802 include/grpc++/impl/codegen/metadata_map.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002803 include/grpc++/impl/codegen/method_handler_impl.h
2804 include/grpc++/impl/codegen/rpc_method.h
2805 include/grpc++/impl/codegen/rpc_service_method.h
2806 include/grpc++/impl/codegen/security/auth_context.h
2807 include/grpc++/impl/codegen/serialization_traits.h
2808 include/grpc++/impl/codegen/server_context.h
2809 include/grpc++/impl/codegen/server_interface.h
2810 include/grpc++/impl/codegen/service_type.h
Craig Tiller7c70b6c2017-01-23 07:48:42 -08002811 include/grpc++/impl/codegen/slice.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002812 include/grpc++/impl/codegen/status.h
2813 include/grpc++/impl/codegen/status_code_enum.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002814 include/grpc++/impl/codegen/string_ref.h
2815 include/grpc++/impl/codegen/stub_options.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002816 include/grpc++/impl/codegen/sync_stream.h
2817 include/grpc++/impl/codegen/time.h
2818 include/grpc/impl/codegen/byte_buffer_reader.h
2819 include/grpc/impl/codegen/compression_types.h
2820 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08002821 include/grpc/impl/codegen/exec_ctx_fwd.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002822 include/grpc/impl/codegen/grpc_types.h
2823 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07002824 include/grpc/impl/codegen/slice.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002825 include/grpc/impl/codegen/status.h
2826 include/grpc/impl/codegen/atm.h
2827 include/grpc/impl/codegen/atm_gcc_atomic.h
2828 include/grpc/impl/codegen/atm_gcc_sync.h
2829 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08002830 include/grpc/impl/codegen/gpr_slice.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002831 include/grpc/impl/codegen/gpr_types.h
2832 include/grpc/impl/codegen/port_platform.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002833 include/grpc/impl/codegen/sync.h
2834 include/grpc/impl/codegen/sync_generic.h
2835 include/grpc/impl/codegen/sync_posix.h
2836 include/grpc/impl/codegen/sync_windows.h
ncteisen3770ac92016-11-28 11:02:41 -08002837 include/grpc/byte_buffer.h
2838 include/grpc/byte_buffer_reader.h
2839 include/grpc/compression.h
2840 include/grpc/grpc.h
2841 include/grpc/grpc_posix.h
2842 include/grpc/grpc_security_constants.h
David Garcia Quintasf31f0962017-02-10 14:53:58 -08002843 include/grpc/load_reporting.h
ncteisen3770ac92016-11-28 11:02:41 -08002844 include/grpc/slice.h
2845 include/grpc/slice_buffer.h
2846 include/grpc/status.h
Muxi Yan1d3ce9a2017-05-15 16:01:17 -07002847 include/grpc/support/workaround_list.h
ncteisen3770ac92016-11-28 11:02:41 -08002848 include/grpc/census.h
Garrett Casto931a26b2016-10-04 09:18:29 -07002849)
2850 string(REPLACE "include/" "" _path ${_hdr})
2851 get_filename_component(_path ${_path} PATH)
2852 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002853 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Garrett Casto931a26b2016-10-04 09:18:29 -07002854 )
2855endforeach()
2856
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002857
Garrett Casto931a26b2016-10-04 09:18:29 -07002858if (gRPC_INSTALL)
2859 install(TARGETS grpc++_cronet EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002860 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
2861 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
2862 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Garrett Casto931a26b2016-10-04 09:18:29 -07002863 )
2864endif()
2865
yang-geceec8e2017-04-10 11:58:44 -07002866
2867add_library(grpc++_error_details
2868 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/status/status.pb.cc
2869 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/status/status.grpc.pb.cc
2870 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/status/status.pb.h
2871 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/status/status.grpc.pb.h
2872 src/cpp/util/error_details.cc
2873)
2874
2875if(WIN32 AND MSVC)
2876 set_target_properties(grpc++_error_details PROPERTIES COMPILE_PDB_NAME "grpc++_error_details"
2877 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2878 )
2879 if (gRPC_INSTALL)
2880 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_error_details.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002881 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
yang-geceec8e2017-04-10 11:58:44 -07002882 )
2883 endif()
2884endif()
2885
2886protobuf_generate_grpc_cpp(
2887 src/proto/grpc/status/status.proto
2888)
2889
2890target_include_directories(grpc++_error_details
Jan Tattermusch456b7132017-06-20 13:21:27 +02002891 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
yang-geceec8e2017-04-10 11:58:44 -07002892 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
yang-geceec8e2017-04-10 11:58:44 -07002893 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2894 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2895 PRIVATE ${ZLIB_INCLUDE_DIR}
2896 PRIVATE ${BENCHMARK}/include
2897 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
2898 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
2899 PRIVATE ${CARES_INCLUDE_DIR}
2900 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
2901 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
2902 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
2903 PRIVATE ${_gRPC_PROTO_GENS_DIR}
2904)
2905
2906target_link_libraries(grpc++_error_details
2907 ${_gRPC_BASELIB_LIBRARIES}
2908 ${_gRPC_PROTOBUF_LIBRARIES}
2909 ${_gRPC_ALLTARGETS_LIBRARIES}
2910 grpc++
2911)
2912
2913foreach(_hdr
2914 include/grpc++/support/error_details.h
2915)
2916 string(REPLACE "include/" "" _path ${_hdr})
2917 get_filename_component(_path ${_path} PATH)
2918 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002919 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
yang-geceec8e2017-04-10 11:58:44 -07002920 )
2921endforeach()
2922
2923
2924if (gRPC_INSTALL)
2925 install(TARGETS grpc++_error_details EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002926 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
2927 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
2928 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
yang-geceec8e2017-04-10 11:58:44 -07002929 )
2930endif()
2931
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002932if (gRPC_BUILD_TESTS)
2933
2934add_library(grpc++_proto_reflection_desc_db
2935 test/cpp/util/proto_reflection_descriptor_database.cc
2936 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.cc
2937 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.cc
2938 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.h
2939 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h
2940)
2941
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002942if(WIN32 AND MSVC)
2943 set_target_properties(grpc++_proto_reflection_desc_db PROPERTIES COMPILE_PDB_NAME "grpc++_proto_reflection_desc_db"
2944 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
2945 )
2946 if (gRPC_INSTALL)
2947 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_proto_reflection_desc_db.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002948 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01002949 )
2950 endif()
2951endif()
2952
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002953protobuf_generate_grpc_cpp(
2954 src/proto/grpc/reflection/v1alpha/reflection.proto
2955)
2956
2957target_include_directories(grpc++_proto_reflection_desc_db
Jan Tattermusch456b7132017-06-20 13:21:27 +02002958 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002959 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002960 PRIVATE ${BORINGSSL_ROOT_DIR}/include
2961 PRIVATE ${PROTOBUF_ROOT_DIR}/src
2962 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002963 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002964 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07002965 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08002966 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07002967 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07002968 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002969 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07002970 PRIVATE third_party/googletest/googletest/include
2971 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07002972 PRIVATE third_party/googletest/googlemock/include
2973 PRIVATE third_party/googletest/googlemock
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002974 PRIVATE ${_gRPC_PROTO_GENS_DIR}
2975)
2976
2977target_link_libraries(grpc++_proto_reflection_desc_db
Jan Tattermusch438c0b52017-01-23 11:24:53 +01002978 ${_gRPC_PROTOBUF_LIBRARIES}
2979 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002980 grpc++
Jan Tattermuschb77a20b2017-05-18 16:45:07 +02002981 grpc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002982)
2983
2984foreach(_hdr
2985 include/grpc++/impl/codegen/config_protobuf.h
2986)
2987 string(REPLACE "include/" "" _path ${_hdr})
2988 get_filename_component(_path ${_path} PATH)
2989 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02002990 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01002991 )
2992endforeach()
2993
2994endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01002995
2996add_library(grpc++_reflection
2997 src/cpp/ext/proto_server_reflection.cc
2998 src/cpp/ext/proto_server_reflection_plugin.cc
2999 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.cc
3000 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.cc
3001 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.h
3002 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h
3003)
3004
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003005if(WIN32 AND MSVC)
3006 set_target_properties(grpc++_reflection PROPERTIES COMPILE_PDB_NAME "grpc++_reflection"
3007 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3008 )
3009 if (gRPC_INSTALL)
3010 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_reflection.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003011 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003012 )
3013 endif()
3014endif()
3015
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003016protobuf_generate_grpc_cpp(
3017 src/proto/grpc/reflection/v1alpha/reflection.proto
3018)
3019
3020target_include_directories(grpc++_reflection
Jan Tattermusch456b7132017-06-20 13:21:27 +02003021 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003022 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003023 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3024 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3025 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003026 PRIVATE ${BENCHMARK}/include
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003027 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003028 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08003029 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003030 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003031 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003032 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003033 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3034)
3035
3036target_link_libraries(grpc++_reflection
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003037 ${_gRPC_PROTOBUF_LIBRARIES}
3038 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003039 grpc++
Jan Tattermuschb77a20b2017-05-18 16:45:07 +02003040 grpc
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003041)
3042
3043foreach(_hdr
3044 include/grpc++/ext/proto_server_reflection_plugin.h
3045)
3046 string(REPLACE "include/" "" _path ${_hdr})
3047 get_filename_component(_path ${_path} PATH)
3048 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003049 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003050 )
3051endforeach()
3052
3053
3054if (gRPC_INSTALL)
3055 install(TARGETS grpc++_reflection EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003056 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
3057 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
3058 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003059 )
3060endif()
3061
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003062if (gRPC_BUILD_TESTS)
3063
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003064add_library(grpc++_test_config
3065 test/cpp/util/test_config_cc.cc
3066)
3067
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003068if(WIN32 AND MSVC)
3069 set_target_properties(grpc++_test_config PROPERTIES COMPILE_PDB_NAME "grpc++_test_config"
3070 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3071 )
3072 if (gRPC_INSTALL)
3073 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_test_config.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003074 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003075 )
3076 endif()
3077endif()
3078
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003079
3080target_include_directories(grpc++_test_config
Jan Tattermusch456b7132017-06-20 13:21:27 +02003081 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003082 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003083 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3084 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3085 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003086 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003087 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003088 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08003089 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003090 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003091 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003092 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07003093 PRIVATE third_party/googletest/googletest/include
3094 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07003095 PRIVATE third_party/googletest/googlemock/include
3096 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003097 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003098)
3099
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003100target_link_libraries(grpc++_test_config
3101 ${_gRPC_PROTOBUF_LIBRARIES}
3102 ${_gRPC_ALLTARGETS_LIBRARIES}
3103)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003104
3105
3106endif (gRPC_BUILD_TESTS)
3107if (gRPC_BUILD_TESTS)
3108
3109add_library(grpc++_test_util
yang-ga7198022017-01-26 13:23:52 -08003110 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.pb.cc
3111 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.grpc.pb.cc
3112 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.pb.h
3113 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003114 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc
3115 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc
3116 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h
3117 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h
3118 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc
3119 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc
3120 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h
3121 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07003122 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_mock.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003123 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.pb.cc
3124 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.cc
3125 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.pb.h
3126 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.h
3127 test/cpp/end2end/test_service_impl.cc
3128 test/cpp/util/byte_buffer_proto_helper.cc
3129 test/cpp/util/create_test_channel.cc
3130 test/cpp/util/string_ref_helper.cc
3131 test/cpp/util/subprocess.cc
3132 test/cpp/util/test_credentials_provider.cc
3133 src/cpp/codegen/codegen_init.cc
3134)
3135
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003136if(WIN32 AND MSVC)
3137 set_target_properties(grpc++_test_util PROPERTIES COMPILE_PDB_NAME "grpc++_test_util"
3138 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3139 )
3140 if (gRPC_INSTALL)
3141 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_test_util.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003142 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003143 )
3144 endif()
3145endif()
3146
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003147protobuf_generate_grpc_cpp(
yang-ga7198022017-01-26 13:23:52 -08003148 src/proto/grpc/health/v1/health.proto
3149)
3150protobuf_generate_grpc_cpp(
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003151 src/proto/grpc/testing/echo_messages.proto
3152)
3153protobuf_generate_grpc_cpp(
3154 src/proto/grpc/testing/echo.proto
3155)
3156protobuf_generate_grpc_cpp(
3157 src/proto/grpc/testing/duplicate/echo_duplicate.proto
3158)
3159
3160target_include_directories(grpc++_test_util
Jan Tattermusch456b7132017-06-20 13:21:27 +02003161 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003162 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003163 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3164 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3165 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003166 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003167 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003168 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08003169 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003170 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003171 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003172 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07003173 PRIVATE third_party/googletest/googletest/include
3174 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07003175 PRIVATE third_party/googletest/googlemock/include
3176 PRIVATE third_party/googletest/googlemock
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003177 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3178)
3179
3180target_link_libraries(grpc++_test_util
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003181 ${_gRPC_PROTOBUF_LIBRARIES}
3182 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003183 grpc++
3184 grpc_test_util
Jan Tattermuschb77a20b2017-05-18 16:45:07 +02003185 grpc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003186)
3187
3188foreach(_hdr
3189 include/grpc++/impl/codegen/async_stream.h
3190 include/grpc++/impl/codegen/async_unary_call.h
3191 include/grpc++/impl/codegen/call.h
3192 include/grpc++/impl/codegen/call_hook.h
3193 include/grpc++/impl/codegen/channel_interface.h
3194 include/grpc++/impl/codegen/client_context.h
3195 include/grpc++/impl/codegen/client_unary_call.h
3196 include/grpc++/impl/codegen/completion_queue.h
3197 include/grpc++/impl/codegen/completion_queue_tag.h
3198 include/grpc++/impl/codegen/config.h
3199 include/grpc++/impl/codegen/core_codegen_interface.h
3200 include/grpc++/impl/codegen/create_auth_context.h
3201 include/grpc++/impl/codegen/grpc_library.h
yang-g988b47c2017-01-31 09:51:45 -08003202 include/grpc++/impl/codegen/metadata_map.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003203 include/grpc++/impl/codegen/method_handler_impl.h
3204 include/grpc++/impl/codegen/rpc_method.h
3205 include/grpc++/impl/codegen/rpc_service_method.h
3206 include/grpc++/impl/codegen/security/auth_context.h
3207 include/grpc++/impl/codegen/serialization_traits.h
3208 include/grpc++/impl/codegen/server_context.h
3209 include/grpc++/impl/codegen/server_interface.h
3210 include/grpc++/impl/codegen/service_type.h
Craig Tiller7c70b6c2017-01-23 07:48:42 -08003211 include/grpc++/impl/codegen/slice.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003212 include/grpc++/impl/codegen/status.h
3213 include/grpc++/impl/codegen/status_code_enum.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003214 include/grpc++/impl/codegen/string_ref.h
3215 include/grpc++/impl/codegen/stub_options.h
3216 include/grpc++/impl/codegen/sync_stream.h
3217 include/grpc++/impl/codegen/time.h
3218 include/grpc/impl/codegen/byte_buffer_reader.h
3219 include/grpc/impl/codegen/compression_types.h
3220 include/grpc/impl/codegen/connectivity_state.h
3221 include/grpc/impl/codegen/exec_ctx_fwd.h
3222 include/grpc/impl/codegen/grpc_types.h
3223 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07003224 include/grpc/impl/codegen/slice.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003225 include/grpc/impl/codegen/status.h
3226 include/grpc/impl/codegen/atm.h
3227 include/grpc/impl/codegen/atm_gcc_atomic.h
3228 include/grpc/impl/codegen/atm_gcc_sync.h
3229 include/grpc/impl/codegen/atm_windows.h
3230 include/grpc/impl/codegen/gpr_slice.h
3231 include/grpc/impl/codegen/gpr_types.h
3232 include/grpc/impl/codegen/port_platform.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003233 include/grpc/impl/codegen/sync.h
3234 include/grpc/impl/codegen/sync_generic.h
3235 include/grpc/impl/codegen/sync_posix.h
3236 include/grpc/impl/codegen/sync_windows.h
3237 include/grpc++/impl/codegen/proto_utils.h
3238 include/grpc++/impl/codegen/config_protobuf.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003239)
3240 string(REPLACE "include/" "" _path ${_hdr})
3241 get_filename_component(_path ${_path} PATH)
3242 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003243 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003244 )
3245endforeach()
3246
3247endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003248
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003249add_library(grpc++_unsecure
murgatroid991ca0f3e2016-08-26 14:58:49 -07003250 src/cpp/client/insecure_credentials.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003251 src/cpp/common/insecure_create_auth_context.cc
murgatroid991ca0f3e2016-08-26 14:58:49 -07003252 src/cpp/server/insecure_server_credentials.cc
Craig Tiller102fa962016-08-22 13:56:36 -07003253 src/cpp/client/channel_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003254 src/cpp/client/client_context.cc
3255 src/cpp/client/create_channel.cc
3256 src/cpp/client/create_channel_internal.cc
3257 src/cpp/client/create_channel_posix.cc
Craig Tiller102fa962016-08-22 13:56:36 -07003258 src/cpp/client/credentials_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003259 src/cpp/client/generic_stub.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003260 src/cpp/common/channel_arguments.cc
Mark D. Roth4004ac22016-08-02 10:08:27 -07003261 src/cpp/common/channel_filter.cc
Craig Tiller102fa962016-08-22 13:56:36 -07003262 src/cpp/common/completion_queue_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003263 src/cpp/common/core_codegen.cc
Craig Tiller20afa3d2016-10-17 14:52:14 -07003264 src/cpp/common/resource_quota_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003265 src/cpp/common/rpc_method.cc
Craig Tillered913242016-11-04 16:31:30 -07003266 src/cpp/common/version_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003267 src/cpp/server/async_generic_service.cc
Craig Tiller4751c282017-01-10 14:29:00 -08003268 src/cpp/server/channel_argument_option.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003269 src/cpp/server/create_default_thread_pool.cc
3270 src/cpp/server/dynamic_thread_pool.cc
yang-gc3c475f2016-12-27 10:37:26 -08003271 src/cpp/server/health/default_health_check_service.cc
3272 src/cpp/server/health/health.pb.c
3273 src/cpp/server/health/health_check_service.cc
3274 src/cpp/server/health/health_check_service_server_builder_option.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003275 src/cpp/server/server_builder.cc
Craig Tiller102fa962016-08-22 13:56:36 -07003276 src/cpp/server/server_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003277 src/cpp/server/server_context.cc
3278 src/cpp/server/server_credentials.cc
3279 src/cpp/server/server_posix.cc
Sree Kuchibhotla8f7739b2016-10-13 15:12:55 -07003280 src/cpp/thread_manager/thread_manager.cc
Craig Tiller102fa962016-08-22 13:56:36 -07003281 src/cpp/util/byte_buffer_cc.cc
3282 src/cpp/util/slice_cc.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003283 src/cpp/util/status.cc
3284 src/cpp/util/string_ref.cc
Craig Tiller102fa962016-08-22 13:56:36 -07003285 src/cpp/util/time_cc.cc
Craig Tiller790f6af2017-03-30 12:39:24 -07003286 third_party/nanopb/pb_common.c
3287 third_party/nanopb/pb_decode.c
3288 third_party/nanopb/pb_encode.c
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003289 src/cpp/codegen/codegen_init.cc
3290)
3291
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003292if(WIN32 AND MSVC)
3293 set_target_properties(grpc++_unsecure PROPERTIES COMPILE_PDB_NAME "grpc++_unsecure"
3294 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3295 )
3296 if (gRPC_INSTALL)
3297 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_unsecure.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003298 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003299 )
3300 endif()
3301endif()
3302
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003303
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003304target_include_directories(grpc++_unsecure
Jan Tattermusch456b7132017-06-20 13:21:27 +02003305 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003306 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003307 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3308 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03003309 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003310 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003311 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003312 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zeng8076d2b2016-08-25 13:23:13 -07003313 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003314 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003315 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003316 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003317 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003318)
3319
3320target_link_libraries(grpc++_unsecure
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03003321 ${_gRPC_BASELIB_LIBRARIES}
3322 ${_gRPC_PROTOBUF_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003323 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003324 gpr
3325 grpc_unsecure
yang-g75ea6a22017-05-19 13:06:37 -07003326 grpc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003327)
3328
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003329foreach(_hdr
3330 include/grpc++/alarm.h
3331 include/grpc++/channel.h
3332 include/grpc++/client_context.h
3333 include/grpc++/completion_queue.h
3334 include/grpc++/create_channel.h
3335 include/grpc++/create_channel_posix.h
yang-g04981242016-12-01 11:53:08 -08003336 include/grpc++/ext/health_check_service_server_builder_option.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003337 include/grpc++/generic/async_generic_service.h
3338 include/grpc++/generic/generic_stub.h
3339 include/grpc++/grpc++.h
yang-g1accb122016-12-28 10:38:04 -08003340 include/grpc++/health_check_service_interface.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003341 include/grpc++/impl/call.h
Craig Tiller4751c282017-01-10 14:29:00 -08003342 include/grpc++/impl/channel_argument_option.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003343 include/grpc++/impl/client_unary_call.h
3344 include/grpc++/impl/codegen/core_codegen.h
3345 include/grpc++/impl/grpc_library.h
3346 include/grpc++/impl/method_handler_impl.h
3347 include/grpc++/impl/rpc_method.h
3348 include/grpc++/impl/rpc_service_method.h
3349 include/grpc++/impl/serialization_traits.h
3350 include/grpc++/impl/server_builder_option.h
3351 include/grpc++/impl/server_builder_plugin.h
3352 include/grpc++/impl/server_initializer.h
3353 include/grpc++/impl/service_type.h
Craig Tiller20afa3d2016-10-17 14:52:14 -07003354 include/grpc++/resource_quota.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003355 include/grpc++/security/auth_context.h
3356 include/grpc++/security/auth_metadata_processor.h
3357 include/grpc++/security/credentials.h
3358 include/grpc++/security/server_credentials.h
3359 include/grpc++/server.h
3360 include/grpc++/server_builder.h
3361 include/grpc++/server_context.h
3362 include/grpc++/server_posix.h
3363 include/grpc++/support/async_stream.h
3364 include/grpc++/support/async_unary_call.h
3365 include/grpc++/support/byte_buffer.h
3366 include/grpc++/support/channel_arguments.h
3367 include/grpc++/support/config.h
3368 include/grpc++/support/slice.h
3369 include/grpc++/support/status.h
3370 include/grpc++/support/status_code_enum.h
3371 include/grpc++/support/string_ref.h
3372 include/grpc++/support/stub_options.h
3373 include/grpc++/support/sync_stream.h
3374 include/grpc++/support/time.h
3375 include/grpc++/impl/codegen/async_stream.h
3376 include/grpc++/impl/codegen/async_unary_call.h
3377 include/grpc++/impl/codegen/call.h
3378 include/grpc++/impl/codegen/call_hook.h
3379 include/grpc++/impl/codegen/channel_interface.h
3380 include/grpc++/impl/codegen/client_context.h
3381 include/grpc++/impl/codegen/client_unary_call.h
3382 include/grpc++/impl/codegen/completion_queue.h
3383 include/grpc++/impl/codegen/completion_queue_tag.h
3384 include/grpc++/impl/codegen/config.h
3385 include/grpc++/impl/codegen/core_codegen_interface.h
3386 include/grpc++/impl/codegen/create_auth_context.h
3387 include/grpc++/impl/codegen/grpc_library.h
yang-g988b47c2017-01-31 09:51:45 -08003388 include/grpc++/impl/codegen/metadata_map.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003389 include/grpc++/impl/codegen/method_handler_impl.h
3390 include/grpc++/impl/codegen/rpc_method.h
3391 include/grpc++/impl/codegen/rpc_service_method.h
3392 include/grpc++/impl/codegen/security/auth_context.h
3393 include/grpc++/impl/codegen/serialization_traits.h
3394 include/grpc++/impl/codegen/server_context.h
3395 include/grpc++/impl/codegen/server_interface.h
3396 include/grpc++/impl/codegen/service_type.h
Craig Tiller7c70b6c2017-01-23 07:48:42 -08003397 include/grpc++/impl/codegen/slice.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003398 include/grpc++/impl/codegen/status.h
3399 include/grpc++/impl/codegen/status_code_enum.h
3400 include/grpc++/impl/codegen/string_ref.h
3401 include/grpc++/impl/codegen/stub_options.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003402 include/grpc++/impl/codegen/sync_stream.h
3403 include/grpc++/impl/codegen/time.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02003404 include/grpc/impl/codegen/byte_buffer_reader.h
3405 include/grpc/impl/codegen/compression_types.h
3406 include/grpc/impl/codegen/connectivity_state.h
Craig Tillerb995e8b2016-12-12 06:36:43 -08003407 include/grpc/impl/codegen/exec_ctx_fwd.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02003408 include/grpc/impl/codegen/grpc_types.h
3409 include/grpc/impl/codegen/propagation_bits.h
Craig Tiller790f6af2017-03-30 12:39:24 -07003410 include/grpc/impl/codegen/slice.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02003411 include/grpc/impl/codegen/status.h
3412 include/grpc/impl/codegen/atm.h
3413 include/grpc/impl/codegen/atm_gcc_atomic.h
3414 include/grpc/impl/codegen/atm_gcc_sync.h
3415 include/grpc/impl/codegen/atm_windows.h
Mark D. Roth4d2ea022016-12-12 07:12:27 -08003416 include/grpc/impl/codegen/gpr_slice.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02003417 include/grpc/impl/codegen/gpr_types.h
3418 include/grpc/impl/codegen/port_platform.h
Nicolas "Pixel" Noble87a10812016-09-29 01:31:54 +02003419 include/grpc/impl/codegen/sync.h
3420 include/grpc/impl/codegen/sync_generic.h
3421 include/grpc/impl/codegen/sync_posix.h
3422 include/grpc/impl/codegen/sync_windows.h
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003423)
3424 string(REPLACE "include/" "" _path ${_hdr})
3425 get_filename_component(_path ${_path} PATH)
3426 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003427 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003428 )
3429endforeach()
3430
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003431
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03003432if (gRPC_INSTALL)
3433 install(TARGETS grpc++_unsecure EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003434 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
3435 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
3436 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03003437 )
3438endif()
3439
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003440if (gRPC_BUILD_TESTS)
3441
Craig Tiller5e321532017-03-03 08:50:25 -08003442add_library(grpc_benchmark
Craig Tillerf09ec592017-03-03 16:52:37 -08003443 test/cpp/microbenchmarks/helpers.cc
Craig Tiller5e321532017-03-03 08:50:25 -08003444)
3445
3446if(WIN32 AND MSVC)
3447 set_target_properties(grpc_benchmark PROPERTIES COMPILE_PDB_NAME "grpc_benchmark"
3448 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3449 )
3450 if (gRPC_INSTALL)
3451 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_benchmark.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003452 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Craig Tiller5e321532017-03-03 08:50:25 -08003453 )
3454 endif()
3455endif()
3456
3457
3458target_include_directories(grpc_benchmark
Jan Tattermusch456b7132017-06-20 13:21:27 +02003459 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Craig Tiller5e321532017-03-03 08:50:25 -08003460 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Craig Tiller5e321532017-03-03 08:50:25 -08003461 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3462 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3463 PRIVATE ${ZLIB_INCLUDE_DIR}
3464 PRIVATE ${BENCHMARK}/include
3465 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003466 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zeng9bc0d822017-03-17 13:02:03 -07003467 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003468 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003469 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller5e321532017-03-03 08:50:25 -08003470 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07003471 PRIVATE third_party/googletest/googletest/include
3472 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07003473 PRIVATE third_party/googletest/googlemock/include
3474 PRIVATE third_party/googletest/googlemock
Craig Tiller5e321532017-03-03 08:50:25 -08003475 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3476)
3477
3478target_link_libraries(grpc_benchmark
3479 ${_gRPC_PROTOBUF_LIBRARIES}
3480 ${_gRPC_ALLTARGETS_LIBRARIES}
3481 benchmark
3482 grpc++
Craig Tillere067b6e2017-03-06 14:46:37 -08003483 grpc_test_util
Craig Tiller5e321532017-03-03 08:50:25 -08003484 grpc
3485 ${_gRPC_GFLAGS_LIBRARIES}
3486)
3487
3488
3489endif (gRPC_BUILD_TESTS)
3490if (gRPC_BUILD_TESTS)
3491
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003492add_library(grpc_cli_libs
3493 test/cpp/util/cli_call.cc
3494 test/cpp/util/cli_credentials.cc
3495 test/cpp/util/grpc_tool.cc
3496 test/cpp/util/proto_file_parser.cc
3497 test/cpp/util/service_describer.cc
3498 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.cc
3499 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.cc
3500 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.h
3501 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h
3502)
3503
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003504if(WIN32 AND MSVC)
3505 set_target_properties(grpc_cli_libs PROPERTIES COMPILE_PDB_NAME "grpc_cli_libs"
3506 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3507 )
3508 if (gRPC_INSTALL)
3509 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_cli_libs.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003510 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003511 )
3512 endif()
3513endif()
3514
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003515protobuf_generate_grpc_cpp(
3516 src/proto/grpc/reflection/v1alpha/reflection.proto
3517)
3518
3519target_include_directories(grpc_cli_libs
Jan Tattermusch456b7132017-06-20 13:21:27 +02003520 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003521 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003522 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3523 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3524 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003525 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003526 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003527 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08003528 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003529 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003530 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003531 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07003532 PRIVATE third_party/googletest/googletest/include
3533 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07003534 PRIVATE third_party/googletest/googlemock/include
3535 PRIVATE third_party/googletest/googlemock
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003536 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3537)
3538
3539target_link_libraries(grpc_cli_libs
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003540 ${_gRPC_PROTOBUF_LIBRARIES}
3541 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003542 grpc++_proto_reflection_desc_db
3543 grpc++
Jan Tattermuschb77a20b2017-05-18 16:45:07 +02003544 grpc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003545)
3546
3547foreach(_hdr
3548 include/grpc++/impl/codegen/config_protobuf.h
3549)
3550 string(REPLACE "include/" "" _path ${_hdr})
3551 get_filename_component(_path ${_path} PATH)
3552 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003553 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003554 )
3555endforeach()
3556
3557endif (gRPC_BUILD_TESTS)
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003558
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003559add_library(grpc_plugin_support
3560 src/compiler/cpp_generator.cc
3561 src/compiler/csharp_generator.cc
3562 src/compiler/node_generator.cc
3563 src/compiler/objective_c_generator.cc
Stanley Cheung857a1302016-09-29 17:26:29 -07003564 src/compiler/php_generator.cc
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003565 src/compiler/python_generator.cc
3566 src/compiler/ruby_generator.cc
3567)
3568
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003569if(WIN32 AND MSVC)
3570 set_target_properties(grpc_plugin_support PROPERTIES COMPILE_PDB_NAME "grpc_plugin_support"
3571 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3572 )
3573 if (gRPC_INSTALL)
3574 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_plugin_support.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003575 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003576 )
3577 endif()
3578endif()
3579
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003580
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003581target_include_directories(grpc_plugin_support
Jan Tattermusch456b7132017-06-20 13:21:27 +02003582 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003583 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003584 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3585 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03003586 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003587 PRIVATE ${BENCHMARK}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003588 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003589 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zeng8076d2b2016-08-25 13:23:13 -07003590 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003591 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003592 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003593 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003594 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003595)
3596
3597target_link_libraries(grpc_plugin_support
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03003598 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003599 ${_gRPC_PROTOBUF_LIBRARIES}
3600 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01003601)
3602
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003603foreach(_hdr
3604 include/grpc++/impl/codegen/config_protobuf.h
3605)
3606 string(REPLACE "include/" "" _path ${_hdr})
3607 get_filename_component(_path ${_path} PATH)
3608 install(FILES ${_hdr}
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003609 DESTINATION "${gRPC_INSTALL_INCLUDEDIR}/${_path}"
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003610 )
3611endforeach()
3612
Jan Tattermusch54492aa2017-01-17 11:53:33 +01003613
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03003614if (gRPC_INSTALL)
3615 install(TARGETS grpc_plugin_support EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003616 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
3617 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
3618 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03003619 )
3620endif()
3621
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003622if (gRPC_BUILD_TESTS)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03003623
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003624add_library(http2_client_main
3625 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
3626 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
3627 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
3628 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
3629 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
3630 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
3631 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
3632 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
3633 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
3634 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
3635 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
3636 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
3637 test/cpp/interop/http2_client.cc
3638)
3639
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003640if(WIN32 AND MSVC)
3641 set_target_properties(http2_client_main PROPERTIES COMPILE_PDB_NAME "http2_client_main"
3642 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3643 )
3644 if (gRPC_INSTALL)
3645 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/http2_client_main.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003646 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003647 )
3648 endif()
3649endif()
3650
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003651protobuf_generate_grpc_cpp(
3652 src/proto/grpc/testing/empty.proto
3653)
3654protobuf_generate_grpc_cpp(
3655 src/proto/grpc/testing/messages.proto
3656)
3657protobuf_generate_grpc_cpp(
3658 src/proto/grpc/testing/test.proto
3659)
3660
3661target_include_directories(http2_client_main
Jan Tattermusch456b7132017-06-20 13:21:27 +02003662 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003663 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003664 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3665 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3666 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003667 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003668 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003669 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08003670 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003671 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003672 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003673 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07003674 PRIVATE third_party/googletest/googletest/include
3675 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07003676 PRIVATE third_party/googletest/googlemock/include
3677 PRIVATE third_party/googletest/googlemock
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003678 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3679)
3680
3681target_link_libraries(http2_client_main
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003682 ${_gRPC_PROTOBUF_LIBRARIES}
3683 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003684 grpc++_test_util
3685 grpc_test_util
3686 grpc++
3687 grpc
3688 grpc++_test_config
3689)
3690
3691
3692endif (gRPC_BUILD_TESTS)
3693if (gRPC_BUILD_TESTS)
3694
3695add_library(interop_client_helper
3696 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
3697 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
3698 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
3699 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
3700 test/cpp/interop/client_helper.cc
3701)
3702
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003703if(WIN32 AND MSVC)
3704 set_target_properties(interop_client_helper PROPERTIES COMPILE_PDB_NAME "interop_client_helper"
3705 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3706 )
3707 if (gRPC_INSTALL)
3708 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_client_helper.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003709 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003710 )
3711 endif()
3712endif()
3713
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003714protobuf_generate_grpc_cpp(
3715 src/proto/grpc/testing/messages.proto
3716)
3717
3718target_include_directories(interop_client_helper
Jan Tattermusch456b7132017-06-20 13:21:27 +02003719 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003720 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003721 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3722 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3723 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003724 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003725 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003726 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08003727 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003728 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003729 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003730 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07003731 PRIVATE third_party/googletest/googletest/include
3732 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07003733 PRIVATE third_party/googletest/googlemock/include
3734 PRIVATE third_party/googletest/googlemock
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003735 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3736)
3737
3738target_link_libraries(interop_client_helper
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003739 ${_gRPC_PROTOBUF_LIBRARIES}
3740 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003741 grpc++_test_util
3742 grpc_test_util
3743 grpc++
3744 grpc
3745 gpr
3746)
3747
3748
3749endif (gRPC_BUILD_TESTS)
3750if (gRPC_BUILD_TESTS)
3751
3752add_library(interop_client_main
3753 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
3754 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
3755 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
3756 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
3757 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
3758 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
3759 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
3760 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
3761 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
3762 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
3763 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
3764 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
3765 test/cpp/interop/client.cc
3766 test/cpp/interop/interop_client.cc
3767)
3768
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003769if(WIN32 AND MSVC)
3770 set_target_properties(interop_client_main PROPERTIES COMPILE_PDB_NAME "interop_client_main"
3771 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3772 )
3773 if (gRPC_INSTALL)
3774 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_client_main.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003775 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003776 )
3777 endif()
3778endif()
3779
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003780protobuf_generate_grpc_cpp(
3781 src/proto/grpc/testing/empty.proto
3782)
3783protobuf_generate_grpc_cpp(
3784 src/proto/grpc/testing/messages.proto
3785)
3786protobuf_generate_grpc_cpp(
3787 src/proto/grpc/testing/test.proto
3788)
3789
3790target_include_directories(interop_client_main
Jan Tattermusch456b7132017-06-20 13:21:27 +02003791 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003792 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003793 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3794 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3795 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003796 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003797 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003798 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08003799 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003800 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003801 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003802 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07003803 PRIVATE third_party/googletest/googletest/include
3804 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07003805 PRIVATE third_party/googletest/googlemock/include
3806 PRIVATE third_party/googletest/googlemock
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003807 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3808)
3809
3810target_link_libraries(interop_client_main
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003811 ${_gRPC_PROTOBUF_LIBRARIES}
3812 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003813 interop_client_helper
3814 grpc++_test_util
3815 grpc_test_util
3816 grpc++
3817 grpc
3818 gpr_test_util
3819 gpr
3820 grpc++_test_config
3821)
3822
3823
3824endif (gRPC_BUILD_TESTS)
3825if (gRPC_BUILD_TESTS)
3826
3827add_library(interop_server_helper
3828 test/cpp/interop/server_helper.cc
3829)
3830
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003831if(WIN32 AND MSVC)
3832 set_target_properties(interop_server_helper PROPERTIES COMPILE_PDB_NAME "interop_server_helper"
3833 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3834 )
3835 if (gRPC_INSTALL)
3836 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_server_helper.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003837 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003838 )
3839 endif()
3840endif()
3841
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003842
3843target_include_directories(interop_server_helper
Jan Tattermusch456b7132017-06-20 13:21:27 +02003844 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003845 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003846 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3847 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3848 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003849 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003850 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003851 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08003852 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003853 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003854 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003855 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07003856 PRIVATE third_party/googletest/googletest/include
3857 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07003858 PRIVATE third_party/googletest/googlemock/include
3859 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003860 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003861)
3862
3863target_link_libraries(interop_server_helper
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003864 ${_gRPC_PROTOBUF_LIBRARIES}
3865 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003866 grpc++_test_util
3867 grpc_test_util
3868 grpc++
3869 grpc
3870 gpr
3871)
3872
3873
3874endif (gRPC_BUILD_TESTS)
3875if (gRPC_BUILD_TESTS)
3876
3877add_library(interop_server_lib
3878 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
3879 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
3880 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
3881 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
3882 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
3883 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
3884 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
3885 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
3886 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
3887 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
3888 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
3889 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
3890 test/cpp/interop/interop_server.cc
3891)
3892
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003893if(WIN32 AND MSVC)
3894 set_target_properties(interop_server_lib PROPERTIES COMPILE_PDB_NAME "interop_server_lib"
3895 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3896 )
3897 if (gRPC_INSTALL)
3898 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_server_lib.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003899 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003900 )
3901 endif()
3902endif()
3903
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003904protobuf_generate_grpc_cpp(
3905 src/proto/grpc/testing/empty.proto
3906)
3907protobuf_generate_grpc_cpp(
3908 src/proto/grpc/testing/messages.proto
3909)
3910protobuf_generate_grpc_cpp(
3911 src/proto/grpc/testing/test.proto
3912)
3913
3914target_include_directories(interop_server_lib
Jan Tattermusch456b7132017-06-20 13:21:27 +02003915 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003916 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003917 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3918 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3919 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003920 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003921 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003922 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08003923 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003924 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003925 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003926 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07003927 PRIVATE third_party/googletest/googletest/include
3928 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07003929 PRIVATE third_party/googletest/googlemock/include
3930 PRIVATE third_party/googletest/googlemock
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003931 PRIVATE ${_gRPC_PROTO_GENS_DIR}
3932)
3933
3934target_link_libraries(interop_server_lib
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003935 ${_gRPC_PROTOBUF_LIBRARIES}
3936 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003937 interop_server_helper
3938 grpc++_test_util
3939 grpc_test_util
3940 grpc++
3941 grpc
3942 gpr_test_util
3943 gpr
3944 grpc++_test_config
3945)
3946
3947
3948endif (gRPC_BUILD_TESTS)
3949if (gRPC_BUILD_TESTS)
3950
3951add_library(interop_server_main
3952 test/cpp/interop/interop_server_bootstrap.cc
3953)
3954
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003955if(WIN32 AND MSVC)
3956 set_target_properties(interop_server_main PROPERTIES COMPILE_PDB_NAME "interop_server_main"
3957 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
3958 )
3959 if (gRPC_INSTALL)
3960 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_server_main.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02003961 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01003962 )
3963 endif()
3964endif()
3965
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003966
3967target_include_directories(interop_server_main
Jan Tattermusch456b7132017-06-20 13:21:27 +02003968 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003969 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003970 PRIVATE ${BORINGSSL_ROOT_DIR}/include
3971 PRIVATE ${PROTOBUF_ROOT_DIR}/src
3972 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003973 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003974 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07003975 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08003976 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07003977 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07003978 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003979 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07003980 PRIVATE third_party/googletest/googletest/include
3981 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07003982 PRIVATE third_party/googletest/googlemock/include
3983 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003984 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003985)
3986
3987target_link_libraries(interop_server_main
Jan Tattermusch438c0b52017-01-23 11:24:53 +01003988 ${_gRPC_PROTOBUF_LIBRARIES}
3989 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01003990 interop_server_lib
3991)
3992
3993
3994endif (gRPC_BUILD_TESTS)
3995if (gRPC_BUILD_TESTS)
3996
3997add_library(qps
3998 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
3999 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
4000 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
4001 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
4002 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.cc
4003 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.cc
4004 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.h
4005 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.h
4006 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.cc
4007 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.cc
4008 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.h
4009 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.h
4010 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.cc
4011 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.cc
4012 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.h
4013 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.h
4014 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.cc
4015 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.cc
4016 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.h
4017 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.h
Nicolas "Pixel" Nobleb02dd012017-03-24 18:45:22 +01004018 test/cpp/qps/benchmark_config.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004019 test/cpp/qps/client_async.cc
4020 test/cpp/qps/client_sync.cc
4021 test/cpp/qps/driver.cc
4022 test/cpp/qps/parse_json.cc
4023 test/cpp/qps/qps_worker.cc
4024 test/cpp/qps/report.cc
4025 test/cpp/qps/server_async.cc
4026 test/cpp/qps/server_sync.cc
4027 test/cpp/qps/usage_timer.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004028)
4029
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004030if(WIN32 AND MSVC)
4031 set_target_properties(qps PROPERTIES COMPILE_PDB_NAME "qps"
4032 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4033 )
4034 if (gRPC_INSTALL)
4035 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/qps.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004036 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004037 )
4038 endif()
4039endif()
4040
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004041protobuf_generate_grpc_cpp(
4042 src/proto/grpc/testing/messages.proto
4043)
4044protobuf_generate_grpc_cpp(
4045 src/proto/grpc/testing/payloads.proto
4046)
4047protobuf_generate_grpc_cpp(
4048 src/proto/grpc/testing/stats.proto
4049)
4050protobuf_generate_grpc_cpp(
4051 src/proto/grpc/testing/control.proto
4052)
4053protobuf_generate_grpc_cpp(
4054 src/proto/grpc/testing/services.proto
4055)
4056
4057target_include_directories(qps
Jan Tattermusch456b7132017-06-20 13:21:27 +02004058 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004059 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004060 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4061 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4062 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004063 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004064 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004065 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004066 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004067 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07004068 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004069 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07004070 PRIVATE third_party/googletest/googletest/include
4071 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07004072 PRIVATE third_party/googletest/googlemock/include
4073 PRIVATE third_party/googletest/googlemock
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004074 PRIVATE ${_gRPC_PROTO_GENS_DIR}
4075)
4076
4077target_link_libraries(qps
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004078 ${_gRPC_PROTOBUF_LIBRARIES}
4079 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004080 grpc_test_util
4081 grpc++_test_util
4082 grpc++
Jan Tattermuschb77a20b2017-05-18 16:45:07 +02004083 grpc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004084)
4085
4086
4087endif (gRPC_BUILD_TESTS)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004088
Jan Tattermuschc09656c2017-01-27 13:36:24 +01004089add_library(grpc_csharp_ext SHARED
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004090 src/csharp/ext/grpc_csharp_ext.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004091)
4092
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004093if(WIN32 AND MSVC)
4094 set_target_properties(grpc_csharp_ext PROPERTIES COMPILE_PDB_NAME "grpc_csharp_ext"
4095 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4096 )
4097 if (gRPC_INSTALL)
4098 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_csharp_ext.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004099 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004100 )
4101 endif()
4102endif()
4103
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004104
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004105target_include_directories(grpc_csharp_ext
Jan Tattermusch456b7132017-06-20 13:21:27 +02004106 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004107 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004108 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4109 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4110 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004111 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004112 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004113 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004114 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004115 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07004116 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004117 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4118)
4119
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004120target_link_libraries(grpc_csharp_ext
4121 ${_gRPC_ALLTARGETS_LIBRARIES}
4122 grpc
4123 gpr
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004124)
4125
4126
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004127
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004128if (gRPC_INSTALL)
4129 install(TARGETS grpc_csharp_ext EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004130 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
4131 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
4132 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004133 )
4134endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004135
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004136if (gRPC_BUILD_TESTS)
4137
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004138add_library(ares
Yuchen Zeng6694bb02017-01-23 17:09:51 -08004139 third_party/cares/cares/ares__close_sockets.c
4140 third_party/cares/cares/ares__get_hostent.c
4141 third_party/cares/cares/ares__read_line.c
4142 third_party/cares/cares/ares__timeval.c
4143 third_party/cares/cares/ares_cancel.c
4144 third_party/cares/cares/ares_create_query.c
4145 third_party/cares/cares/ares_data.c
4146 third_party/cares/cares/ares_destroy.c
4147 third_party/cares/cares/ares_expand_name.c
4148 third_party/cares/cares/ares_expand_string.c
4149 third_party/cares/cares/ares_fds.c
4150 third_party/cares/cares/ares_free_hostent.c
4151 third_party/cares/cares/ares_free_string.c
4152 third_party/cares/cares/ares_getenv.c
4153 third_party/cares/cares/ares_gethostbyaddr.c
4154 third_party/cares/cares/ares_gethostbyname.c
4155 third_party/cares/cares/ares_getnameinfo.c
4156 third_party/cares/cares/ares_getopt.c
4157 third_party/cares/cares/ares_getsock.c
4158 third_party/cares/cares/ares_init.c
4159 third_party/cares/cares/ares_library_init.c
4160 third_party/cares/cares/ares_llist.c
4161 third_party/cares/cares/ares_mkquery.c
4162 third_party/cares/cares/ares_nowarn.c
4163 third_party/cares/cares/ares_options.c
4164 third_party/cares/cares/ares_parse_a_reply.c
4165 third_party/cares/cares/ares_parse_aaaa_reply.c
4166 third_party/cares/cares/ares_parse_mx_reply.c
4167 third_party/cares/cares/ares_parse_naptr_reply.c
4168 third_party/cares/cares/ares_parse_ns_reply.c
4169 third_party/cares/cares/ares_parse_ptr_reply.c
4170 third_party/cares/cares/ares_parse_soa_reply.c
4171 third_party/cares/cares/ares_parse_srv_reply.c
4172 third_party/cares/cares/ares_parse_txt_reply.c
4173 third_party/cares/cares/ares_platform.c
4174 third_party/cares/cares/ares_process.c
4175 third_party/cares/cares/ares_query.c
4176 third_party/cares/cares/ares_search.c
4177 third_party/cares/cares/ares_send.c
4178 third_party/cares/cares/ares_strcasecmp.c
4179 third_party/cares/cares/ares_strdup.c
4180 third_party/cares/cares/ares_strerror.c
4181 third_party/cares/cares/ares_timeout.c
4182 third_party/cares/cares/ares_version.c
4183 third_party/cares/cares/ares_writev.c
4184 third_party/cares/cares/bitncmp.c
4185 third_party/cares/cares/inet_net_pton.c
4186 third_party/cares/cares/inet_ntop.c
4187 third_party/cares/cares/windows_port.c
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004188)
4189
Yuchen Zeng2c977082017-02-27 13:35:41 -08004190if(WIN32 AND MSVC)
4191 set_target_properties(ares PROPERTIES COMPILE_PDB_NAME "ares"
4192 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4193 )
4194 if (gRPC_INSTALL)
4195 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ares.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004196 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Yuchen Zeng2c977082017-02-27 13:35:41 -08004197 )
4198 endif()
4199endif()
4200
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004201
4202target_include_directories(ares
Jan Tattermusch456b7132017-06-20 13:21:27 +02004203 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004204 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004205 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4206 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4207 PRIVATE ${ZLIB_INCLUDE_DIR}
Yuchen Zeng1492f6c2017-02-02 12:42:54 -08004208 PRIVATE ${BENCHMARK}/include
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004209 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004210 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004211 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004212 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07004213 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004214 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4215)
4216
4217target_link_libraries(ares
4218 ${_gRPC_SSL_LIBRARIES}
Yuchen Zeng1492f6c2017-02-02 12:42:54 -08004219 ${_gRPC_ALLTARGETS_LIBRARIES}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004220)
4221
4222
4223endif (gRPC_BUILD_TESTS)
4224if (gRPC_BUILD_TESTS)
4225
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004226add_library(bad_client_test
4227 test/core/bad_client/bad_client.c
4228)
4229
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004230if(WIN32 AND MSVC)
4231 set_target_properties(bad_client_test PROPERTIES COMPILE_PDB_NAME "bad_client_test"
4232 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4233 )
4234 if (gRPC_INSTALL)
4235 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/bad_client_test.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004236 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004237 )
4238 endif()
4239endif()
4240
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004241
4242target_include_directories(bad_client_test
Jan Tattermusch456b7132017-06-20 13:21:27 +02004243 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004244 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004245 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4246 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4247 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004248 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004249 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004250 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004251 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004252 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07004253 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004254 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4255)
4256
4257target_link_libraries(bad_client_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004258 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004259 grpc_test_util_unsecure
4260 grpc_unsecure
4261 gpr_test_util
4262 gpr
4263)
4264
4265
4266endif (gRPC_BUILD_TESTS)
4267if (gRPC_BUILD_TESTS)
4268
4269add_library(bad_ssl_test_server
4270 test/core/bad_ssl/server_common.c
4271)
4272
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004273if(WIN32 AND MSVC)
4274 set_target_properties(bad_ssl_test_server PROPERTIES COMPILE_PDB_NAME "bad_ssl_test_server"
4275 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4276 )
4277 if (gRPC_INSTALL)
4278 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/bad_ssl_test_server.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004279 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004280 )
4281 endif()
4282endif()
4283
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004284
4285target_include_directories(bad_ssl_test_server
Jan Tattermusch456b7132017-06-20 13:21:27 +02004286 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004287 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004288 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4289 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4290 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004291 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004292 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004293 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004294 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004295 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07004296 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004297 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4298)
4299
4300target_link_libraries(bad_ssl_test_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004301 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004302 grpc_test_util
4303 grpc
4304 gpr_test_util
4305 gpr
4306)
4307
4308
4309endif (gRPC_BUILD_TESTS)
4310if (gRPC_BUILD_TESTS)
4311
4312add_library(end2end_tests
4313 test/core/end2end/end2end_tests.c
4314 test/core/end2end/end2end_test_utils.c
4315 test/core/end2end/tests/authority_not_supported.c
4316 test/core/end2end/tests/bad_hostname.c
Yuchen Zengaf5c5052017-02-28 16:24:00 -08004317 test/core/end2end/tests/bad_ping.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004318 test/core/end2end/tests/binary_metadata.c
4319 test/core/end2end/tests/call_creds.c
4320 test/core/end2end/tests/cancel_after_accept.c
4321 test/core/end2end/tests/cancel_after_client_done.c
4322 test/core/end2end/tests/cancel_after_invoke.c
Muxi Yand19c1122017-06-23 17:00:20 -07004323 test/core/end2end/tests/cancel_after_round_trip.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004324 test/core/end2end/tests/cancel_before_invoke.c
4325 test/core/end2end/tests/cancel_in_a_vacuum.c
4326 test/core/end2end/tests/cancel_with_status.c
4327 test/core/end2end/tests/compressed_payload.c
4328 test/core/end2end/tests/connectivity.c
4329 test/core/end2end/tests/default_host.c
4330 test/core/end2end/tests/disappearing_server.c
4331 test/core/end2end/tests/empty_batch.c
4332 test/core/end2end/tests/filter_call_init_fails.c
4333 test/core/end2end/tests/filter_causes_close.c
4334 test/core/end2end/tests/filter_latency.c
4335 test/core/end2end/tests/graceful_server_shutdown.c
4336 test/core/end2end/tests/high_initial_seqno.c
4337 test/core/end2end/tests/hpack_size.c
4338 test/core/end2end/tests/idempotent_request.c
4339 test/core/end2end/tests/invoke_large_request.c
Yuchen Zeng990d9fe2017-02-26 16:54:18 -08004340 test/core/end2end/tests/keepalive_timeout.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004341 test/core/end2end/tests/large_metadata.c
4342 test/core/end2end/tests/load_reporting_hook.c
4343 test/core/end2end/tests/max_concurrent_streams.c
Yuchen Zeng22321fc2017-03-28 19:10:09 -07004344 test/core/end2end/tests/max_connection_age.c
Yuchen Zengb2caafc2017-03-29 01:54:08 -07004345 test/core/end2end/tests/max_connection_idle.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004346 test/core/end2end/tests/max_message_length.c
4347 test/core/end2end/tests/negative_deadline.c
4348 test/core/end2end/tests/network_status_change.c
4349 test/core/end2end/tests/no_logging.c
4350 test/core/end2end/tests/no_op.c
4351 test/core/end2end/tests/payload.c
4352 test/core/end2end/tests/ping.c
4353 test/core/end2end/tests/ping_pong_streaming.c
4354 test/core/end2end/tests/registered_call.c
4355 test/core/end2end/tests/request_with_flags.c
4356 test/core/end2end/tests/request_with_payload.c
4357 test/core/end2end/tests/resource_quota_server.c
4358 test/core/end2end/tests/server_finishes_request.c
4359 test/core/end2end/tests/shutdown_finishes_calls.c
4360 test/core/end2end/tests/shutdown_finishes_tags.c
4361 test/core/end2end/tests/simple_cacheable_request.c
4362 test/core/end2end/tests/simple_delayed_request.c
4363 test/core/end2end/tests/simple_metadata.c
4364 test/core/end2end/tests/simple_request.c
4365 test/core/end2end/tests/streaming_error_response.c
4366 test/core/end2end/tests/trailing_metadata.c
Muxi Yan29ff4662017-05-15 10:27:55 -07004367 test/core/end2end/tests/workaround_cronet_compression.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004368 test/core/end2end/tests/write_buffering.c
4369 test/core/end2end/tests/write_buffering_at_end.c
4370)
4371
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004372if(WIN32 AND MSVC)
4373 set_target_properties(end2end_tests PROPERTIES COMPILE_PDB_NAME "end2end_tests"
4374 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4375 )
4376 if (gRPC_INSTALL)
4377 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/end2end_tests.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004378 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004379 )
4380 endif()
4381endif()
4382
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004383
4384target_include_directories(end2end_tests
Jan Tattermusch456b7132017-06-20 13:21:27 +02004385 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004386 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004387 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4388 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4389 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004390 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004391 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004392 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004393 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004394 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07004395 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004396 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4397)
4398
4399target_link_libraries(end2end_tests
4400 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004401 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004402 grpc_test_util
4403 grpc
4404 gpr_test_util
4405 gpr
4406)
4407
4408
4409endif (gRPC_BUILD_TESTS)
4410if (gRPC_BUILD_TESTS)
4411
4412add_library(end2end_nosec_tests
4413 test/core/end2end/end2end_nosec_tests.c
4414 test/core/end2end/end2end_test_utils.c
4415 test/core/end2end/tests/authority_not_supported.c
4416 test/core/end2end/tests/bad_hostname.c
Yuchen Zengaf5c5052017-02-28 16:24:00 -08004417 test/core/end2end/tests/bad_ping.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004418 test/core/end2end/tests/binary_metadata.c
4419 test/core/end2end/tests/cancel_after_accept.c
4420 test/core/end2end/tests/cancel_after_client_done.c
4421 test/core/end2end/tests/cancel_after_invoke.c
Muxi Yand19c1122017-06-23 17:00:20 -07004422 test/core/end2end/tests/cancel_after_round_trip.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004423 test/core/end2end/tests/cancel_before_invoke.c
4424 test/core/end2end/tests/cancel_in_a_vacuum.c
4425 test/core/end2end/tests/cancel_with_status.c
4426 test/core/end2end/tests/compressed_payload.c
4427 test/core/end2end/tests/connectivity.c
4428 test/core/end2end/tests/default_host.c
4429 test/core/end2end/tests/disappearing_server.c
4430 test/core/end2end/tests/empty_batch.c
4431 test/core/end2end/tests/filter_call_init_fails.c
4432 test/core/end2end/tests/filter_causes_close.c
4433 test/core/end2end/tests/filter_latency.c
4434 test/core/end2end/tests/graceful_server_shutdown.c
4435 test/core/end2end/tests/high_initial_seqno.c
4436 test/core/end2end/tests/hpack_size.c
4437 test/core/end2end/tests/idempotent_request.c
4438 test/core/end2end/tests/invoke_large_request.c
Yuchen Zeng990d9fe2017-02-26 16:54:18 -08004439 test/core/end2end/tests/keepalive_timeout.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004440 test/core/end2end/tests/large_metadata.c
4441 test/core/end2end/tests/load_reporting_hook.c
4442 test/core/end2end/tests/max_concurrent_streams.c
Yuchen Zeng22321fc2017-03-28 19:10:09 -07004443 test/core/end2end/tests/max_connection_age.c
Yuchen Zengb2caafc2017-03-29 01:54:08 -07004444 test/core/end2end/tests/max_connection_idle.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004445 test/core/end2end/tests/max_message_length.c
4446 test/core/end2end/tests/negative_deadline.c
4447 test/core/end2end/tests/network_status_change.c
4448 test/core/end2end/tests/no_logging.c
4449 test/core/end2end/tests/no_op.c
4450 test/core/end2end/tests/payload.c
4451 test/core/end2end/tests/ping.c
4452 test/core/end2end/tests/ping_pong_streaming.c
4453 test/core/end2end/tests/registered_call.c
4454 test/core/end2end/tests/request_with_flags.c
4455 test/core/end2end/tests/request_with_payload.c
4456 test/core/end2end/tests/resource_quota_server.c
4457 test/core/end2end/tests/server_finishes_request.c
4458 test/core/end2end/tests/shutdown_finishes_calls.c
4459 test/core/end2end/tests/shutdown_finishes_tags.c
4460 test/core/end2end/tests/simple_cacheable_request.c
4461 test/core/end2end/tests/simple_delayed_request.c
4462 test/core/end2end/tests/simple_metadata.c
4463 test/core/end2end/tests/simple_request.c
4464 test/core/end2end/tests/streaming_error_response.c
4465 test/core/end2end/tests/trailing_metadata.c
Muxi Yan29ff4662017-05-15 10:27:55 -07004466 test/core/end2end/tests/workaround_cronet_compression.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004467 test/core/end2end/tests/write_buffering.c
4468 test/core/end2end/tests/write_buffering_at_end.c
4469)
4470
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004471if(WIN32 AND MSVC)
4472 set_target_properties(end2end_nosec_tests PROPERTIES COMPILE_PDB_NAME "end2end_nosec_tests"
4473 COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
4474 )
4475 if (gRPC_INSTALL)
4476 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/end2end_nosec_tests.pdb
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004477 DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
Piotr Pietraszkiewicz7aff5832017-02-09 11:12:33 +01004478 )
4479 endif()
4480endif()
4481
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004482
4483target_include_directories(end2end_nosec_tests
Jan Tattermusch456b7132017-06-20 13:21:27 +02004484 PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004485 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004486 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4487 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4488 PRIVATE ${ZLIB_INCLUDE_DIR}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004489 PRIVATE ${BENCHMARK}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004490 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004491 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zenge02cbeb2017-01-19 16:33:30 -08004492 PRIVATE ${CARES_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004493 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
Yuchen Zengd6b49852017-03-20 01:44:27 -07004494 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004495 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4496)
4497
4498target_link_libraries(end2end_nosec_tests
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004499 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004500 grpc_test_util_unsecure
4501 grpc_unsecure
4502 gpr_test_util
4503 gpr
4504)
4505
4506
4507endif (gRPC_BUILD_TESTS)
4508
4509if (gRPC_BUILD_TESTS)
4510
4511add_executable(alarm_test
4512 test/core/surface/alarm_test.c
4513)
4514
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004515
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004516target_include_directories(alarm_test
4517 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4518 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4519 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4520 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004521 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004522 PRIVATE ${ZLIB_ROOT_DIR}
4523 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004524 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004525 PRIVATE ${CARES_INCLUDE_DIR}
4526 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4527 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004528 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4529)
4530
4531target_link_libraries(alarm_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004532 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004533 grpc_test_util
4534 grpc
4535 gpr_test_util
4536 gpr
4537)
4538
4539endif (gRPC_BUILD_TESTS)
4540if (gRPC_BUILD_TESTS)
4541
4542add_executable(algorithm_test
4543 test/core/compression/algorithm_test.c
4544)
4545
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004546
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004547target_include_directories(algorithm_test
4548 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4549 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4550 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4551 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004552 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004553 PRIVATE ${ZLIB_ROOT_DIR}
4554 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004555 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004556 PRIVATE ${CARES_INCLUDE_DIR}
4557 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4558 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004559 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4560)
4561
4562target_link_libraries(algorithm_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004563 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004564 grpc_test_util
4565 grpc
4566 gpr_test_util
4567 gpr
4568)
4569
4570endif (gRPC_BUILD_TESTS)
4571if (gRPC_BUILD_TESTS)
4572
4573add_executable(alloc_test
4574 test/core/support/alloc_test.c
4575)
4576
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004577
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004578target_include_directories(alloc_test
4579 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4580 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4581 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4582 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004583 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004584 PRIVATE ${ZLIB_ROOT_DIR}
4585 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004586 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004587 PRIVATE ${CARES_INCLUDE_DIR}
4588 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4589 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004590 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4591)
4592
4593target_link_libraries(alloc_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004594 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004595 gpr_test_util
4596 gpr
4597)
4598
4599endif (gRPC_BUILD_TESTS)
4600if (gRPC_BUILD_TESTS)
4601
4602add_executable(alpn_test
4603 test/core/transport/chttp2/alpn_test.c
4604)
4605
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004606
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004607target_include_directories(alpn_test
4608 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4609 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4610 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4611 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004612 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004613 PRIVATE ${ZLIB_ROOT_DIR}
4614 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004615 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004616 PRIVATE ${CARES_INCLUDE_DIR}
4617 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4618 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004619 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4620)
4621
4622target_link_libraries(alpn_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004623 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004624 grpc_test_util
4625 grpc
4626 gpr_test_util
4627 gpr
4628)
4629
4630endif (gRPC_BUILD_TESTS)
4631if (gRPC_BUILD_TESTS)
4632
Craig Tiller9202b3f2017-03-12 22:30:38 -07004633add_executable(arena_test
4634 test/core/support/arena_test.c
4635)
4636
4637
4638target_include_directories(arena_test
4639 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4640 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4641 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4642 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4643 PRIVATE ${BENCHMARK_ROOT_DIR}/include
4644 PRIVATE ${ZLIB_ROOT_DIR}
4645 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004646 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004647 PRIVATE ${CARES_INCLUDE_DIR}
4648 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4649 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller9202b3f2017-03-12 22:30:38 -07004650 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4651)
4652
4653target_link_libraries(arena_test
4654 ${_gRPC_ALLTARGETS_LIBRARIES}
4655 gpr_test_util
4656 gpr
4657)
4658
4659endif (gRPC_BUILD_TESTS)
4660if (gRPC_BUILD_TESTS)
4661
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004662add_executable(bad_server_response_test
4663 test/core/end2end/bad_server_response_test.c
4664)
4665
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004666
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004667target_include_directories(bad_server_response_test
4668 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4669 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4670 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4671 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004672 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004673 PRIVATE ${ZLIB_ROOT_DIR}
4674 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004675 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004676 PRIVATE ${CARES_INCLUDE_DIR}
4677 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4678 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004679 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4680)
4681
4682target_link_libraries(bad_server_response_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004683 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004684 test_tcp_server
4685 grpc_test_util
4686 grpc
4687 gpr_test_util
4688 gpr
4689)
4690
4691endif (gRPC_BUILD_TESTS)
4692if (gRPC_BUILD_TESTS)
4693
Craig Tillerff1f1602017-01-20 13:55:35 -08004694add_executable(bdp_estimator_test
4695 test/core/transport/bdp_estimator_test.c
4696)
4697
Craig Tiller5395aba2017-02-02 10:29:04 -08004698
Craig Tillerff1f1602017-01-20 13:55:35 -08004699target_include_directories(bdp_estimator_test
4700 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4701 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4702 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4703 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Craig Tiller5395aba2017-02-02 10:29:04 -08004704 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Craig Tillerff1f1602017-01-20 13:55:35 -08004705 PRIVATE ${ZLIB_ROOT_DIR}
4706 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004707 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004708 PRIVATE ${CARES_INCLUDE_DIR}
4709 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4710 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tillerff1f1602017-01-20 13:55:35 -08004711 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4712)
4713
4714target_link_libraries(bdp_estimator_test
Craig Tiller5395aba2017-02-02 10:29:04 -08004715 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tillerff1f1602017-01-20 13:55:35 -08004716 grpc_test_util
4717 grpc
4718 gpr_test_util
4719 gpr
4720)
4721
4722endif (gRPC_BUILD_TESTS)
4723if (gRPC_BUILD_TESTS)
4724
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004725add_executable(bin_decoder_test
4726 test/core/transport/chttp2/bin_decoder_test.c
4727)
4728
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004729
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004730target_include_directories(bin_decoder_test
4731 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4732 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4733 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4734 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004735 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004736 PRIVATE ${ZLIB_ROOT_DIR}
4737 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004738 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004739 PRIVATE ${CARES_INCLUDE_DIR}
4740 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4741 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004742 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4743)
4744
4745target_link_libraries(bin_decoder_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004746 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004747 grpc_test_util
4748 grpc
4749)
4750
4751endif (gRPC_BUILD_TESTS)
4752if (gRPC_BUILD_TESTS)
4753
4754add_executable(bin_encoder_test
4755 test/core/transport/chttp2/bin_encoder_test.c
4756)
4757
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004758
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004759target_include_directories(bin_encoder_test
4760 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4761 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4762 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4763 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004764 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004765 PRIVATE ${ZLIB_ROOT_DIR}
4766 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004767 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004768 PRIVATE ${CARES_INCLUDE_DIR}
4769 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4770 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004771 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4772)
4773
4774target_link_libraries(bin_encoder_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004775 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004776 grpc_test_util
4777 grpc
4778)
4779
4780endif (gRPC_BUILD_TESTS)
4781if (gRPC_BUILD_TESTS)
4782
4783add_executable(census_context_test
4784 test/core/census/context_test.c
4785)
4786
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004787
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004788target_include_directories(census_context_test
4789 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4790 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4791 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4792 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004793 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004794 PRIVATE ${ZLIB_ROOT_DIR}
4795 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004796 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004797 PRIVATE ${CARES_INCLUDE_DIR}
4798 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4799 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004800 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4801)
4802
4803target_link_libraries(census_context_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004804 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004805 grpc_test_util
4806 grpc
4807 gpr_test_util
4808 gpr
4809)
4810
4811endif (gRPC_BUILD_TESTS)
4812if (gRPC_BUILD_TESTS)
4813
Vizerai0359e122017-04-28 20:06:58 -07004814add_executable(census_intrusive_hash_map_test
4815 test/core/census/intrusive_hash_map_test.c
4816)
4817
4818
4819target_include_directories(census_intrusive_hash_map_test
4820 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4821 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4822 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4823 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4824 PRIVATE ${BENCHMARK_ROOT_DIR}/include
4825 PRIVATE ${ZLIB_ROOT_DIR}
4826 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4827 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
4828 PRIVATE ${CARES_INCLUDE_DIR}
4829 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4830 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
4831 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4832)
4833
4834target_link_libraries(census_intrusive_hash_map_test
4835 ${_gRPC_ALLTARGETS_LIBRARIES}
4836 grpc_test_util
4837 grpc
4838 gpr_test_util
4839 gpr
4840)
4841
4842endif (gRPC_BUILD_TESTS)
4843if (gRPC_BUILD_TESTS)
4844
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004845add_executable(census_resource_test
4846 test/core/census/resource_test.c
4847)
4848
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004849
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004850target_include_directories(census_resource_test
4851 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4852 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4853 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4854 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004855 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004856 PRIVATE ${ZLIB_ROOT_DIR}
4857 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004858 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004859 PRIVATE ${CARES_INCLUDE_DIR}
4860 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4861 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004862 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4863)
4864
4865target_link_libraries(census_resource_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004866 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004867 grpc_test_util
4868 grpc
4869 gpr_test_util
4870 gpr
4871)
4872
4873endif (gRPC_BUILD_TESTS)
4874if (gRPC_BUILD_TESTS)
4875
4876add_executable(census_trace_context_test
4877 test/core/census/trace_context_test.c
4878)
4879
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004880
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004881target_include_directories(census_trace_context_test
4882 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4883 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4884 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4885 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004886 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004887 PRIVATE ${ZLIB_ROOT_DIR}
4888 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004889 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004890 PRIVATE ${CARES_INCLUDE_DIR}
4891 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4892 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004893 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4894)
4895
4896target_link_libraries(census_trace_context_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004897 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004898 grpc_test_util
4899 grpc
4900 gpr_test_util
4901 gpr
4902)
4903
4904endif (gRPC_BUILD_TESTS)
4905if (gRPC_BUILD_TESTS)
4906
4907add_executable(channel_create_test
4908 test/core/surface/channel_create_test.c
4909)
4910
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004911
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004912target_include_directories(channel_create_test
4913 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4914 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4915 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4916 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004917 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004918 PRIVATE ${ZLIB_ROOT_DIR}
4919 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004920 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004921 PRIVATE ${CARES_INCLUDE_DIR}
4922 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4923 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004924 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4925)
4926
4927target_link_libraries(channel_create_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004928 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004929 grpc_test_util
4930 grpc
4931 gpr_test_util
4932 gpr
4933)
4934
4935endif (gRPC_BUILD_TESTS)
Craig Tiller819cd882017-04-25 13:18:22 -07004936
4937add_executable(check_epollexclusive
4938 test/build/check_epollexclusive.c
4939)
4940
4941
4942target_include_directories(check_epollexclusive
4943 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4944 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4945 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4946 PRIVATE ${PROTOBUF_ROOT_DIR}/src
4947 PRIVATE ${BENCHMARK_ROOT_DIR}/include
4948 PRIVATE ${ZLIB_ROOT_DIR}
4949 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
4950 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
4951 PRIVATE ${CARES_INCLUDE_DIR}
4952 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4953 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
4954 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4955)
4956
4957target_link_libraries(check_epollexclusive
4958 ${_gRPC_ALLTARGETS_LIBRARIES}
4959 grpc
4960 gpr
4961)
4962
4963
4964if (gRPC_INSTALL)
4965 install(TARGETS check_epollexclusive EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02004966 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
4967 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
4968 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Craig Tiller819cd882017-04-25 13:18:22 -07004969 )
4970endif()
4971
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004972if (gRPC_BUILD_TESTS)
4973
4974add_executable(chttp2_hpack_encoder_test
4975 test/core/transport/chttp2/hpack_encoder_test.c
4976)
4977
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004978
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004979target_include_directories(chttp2_hpack_encoder_test
4980 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
4981 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
4982 PRIVATE ${BORINGSSL_ROOT_DIR}/include
4983 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004984 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004985 PRIVATE ${ZLIB_ROOT_DIR}
4986 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07004987 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07004988 PRIVATE ${CARES_INCLUDE_DIR}
4989 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
4990 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004991 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
4992)
4993
4994target_link_libraries(chttp2_hpack_encoder_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01004995 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01004996 grpc_test_util
4997 grpc
4998 gpr_test_util
4999 gpr
5000)
5001
5002endif (gRPC_BUILD_TESTS)
5003if (gRPC_BUILD_TESTS)
5004
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005005add_executable(chttp2_stream_map_test
5006 test/core/transport/chttp2/stream_map_test.c
5007)
5008
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005009
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005010target_include_directories(chttp2_stream_map_test
5011 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5012 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5013 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5014 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005015 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005016 PRIVATE ${ZLIB_ROOT_DIR}
5017 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005018 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005019 PRIVATE ${CARES_INCLUDE_DIR}
5020 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5021 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005022 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5023)
5024
5025target_link_libraries(chttp2_stream_map_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005026 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005027 grpc_test_util
5028 grpc
5029 gpr_test_util
5030 gpr
5031)
5032
5033endif (gRPC_BUILD_TESTS)
5034if (gRPC_BUILD_TESTS)
5035
5036add_executable(chttp2_varint_test
5037 test/core/transport/chttp2/varint_test.c
5038)
5039
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005040
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005041target_include_directories(chttp2_varint_test
5042 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5043 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5044 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5045 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005046 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005047 PRIVATE ${ZLIB_ROOT_DIR}
5048 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005049 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005050 PRIVATE ${CARES_INCLUDE_DIR}
5051 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5052 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005053 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5054)
5055
5056target_link_libraries(chttp2_varint_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005057 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005058 grpc_test_util
5059 grpc
5060 gpr_test_util
5061 gpr
5062)
5063
5064endif (gRPC_BUILD_TESTS)
5065if (gRPC_BUILD_TESTS)
5066
5067add_executable(combiner_test
5068 test/core/iomgr/combiner_test.c
5069)
5070
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005071
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005072target_include_directories(combiner_test
5073 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5074 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5075 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5076 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005077 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005078 PRIVATE ${ZLIB_ROOT_DIR}
5079 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005080 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005081 PRIVATE ${CARES_INCLUDE_DIR}
5082 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5083 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005084 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5085)
5086
5087target_link_libraries(combiner_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005088 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005089 grpc_test_util
5090 grpc
5091 gpr_test_util
5092 gpr
5093)
5094
5095endif (gRPC_BUILD_TESTS)
5096if (gRPC_BUILD_TESTS)
5097
5098add_executable(compression_test
5099 test/core/compression/compression_test.c
5100)
5101
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005102
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005103target_include_directories(compression_test
5104 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5105 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5106 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5107 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005108 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005109 PRIVATE ${ZLIB_ROOT_DIR}
5110 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005111 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005112 PRIVATE ${CARES_INCLUDE_DIR}
5113 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5114 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005115 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5116)
5117
5118target_link_libraries(compression_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005119 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005120 grpc_test_util
5121 grpc
5122 gpr_test_util
5123 gpr
5124)
5125
5126endif (gRPC_BUILD_TESTS)
5127if (gRPC_BUILD_TESTS)
5128
5129add_executable(concurrent_connectivity_test
5130 test/core/surface/concurrent_connectivity_test.c
5131)
5132
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005133
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005134target_include_directories(concurrent_connectivity_test
5135 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5136 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5137 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5138 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005139 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005140 PRIVATE ${ZLIB_ROOT_DIR}
5141 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005142 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005143 PRIVATE ${CARES_INCLUDE_DIR}
5144 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5145 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005146 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5147)
5148
5149target_link_libraries(concurrent_connectivity_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005150 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005151 grpc_test_util
5152 grpc
5153 gpr_test_util
5154 gpr
5155)
5156
5157endif (gRPC_BUILD_TESTS)
5158if (gRPC_BUILD_TESTS)
5159
5160add_executable(connection_refused_test
5161 test/core/end2end/connection_refused_test.c
5162)
5163
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005164
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005165target_include_directories(connection_refused_test
5166 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5167 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5168 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5169 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005170 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005171 PRIVATE ${ZLIB_ROOT_DIR}
5172 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005173 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005174 PRIVATE ${CARES_INCLUDE_DIR}
5175 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5176 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005177 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5178)
5179
5180target_link_libraries(connection_refused_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005181 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005182 grpc_test_util
5183 grpc
5184 gpr_test_util
5185 gpr
5186)
5187
5188endif (gRPC_BUILD_TESTS)
5189if (gRPC_BUILD_TESTS)
5190
5191add_executable(dns_resolver_connectivity_test
5192 test/core/client_channel/resolvers/dns_resolver_connectivity_test.c
5193)
5194
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005195
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005196target_include_directories(dns_resolver_connectivity_test
5197 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5198 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5199 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5200 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005201 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005202 PRIVATE ${ZLIB_ROOT_DIR}
5203 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005204 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005205 PRIVATE ${CARES_INCLUDE_DIR}
5206 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5207 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005208 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5209)
5210
5211target_link_libraries(dns_resolver_connectivity_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005212 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005213 grpc_test_util
5214 grpc
5215 gpr_test_util
5216 gpr
5217)
5218
5219endif (gRPC_BUILD_TESTS)
5220if (gRPC_BUILD_TESTS)
5221
5222add_executable(dns_resolver_test
5223 test/core/client_channel/resolvers/dns_resolver_test.c
5224)
5225
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005226
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005227target_include_directories(dns_resolver_test
5228 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5229 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5230 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5231 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005232 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005233 PRIVATE ${ZLIB_ROOT_DIR}
5234 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005235 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005236 PRIVATE ${CARES_INCLUDE_DIR}
5237 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5238 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005239 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5240)
5241
5242target_link_libraries(dns_resolver_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005243 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005244 grpc_test_util
5245 grpc
5246 gpr_test_util
5247 gpr
5248)
5249
5250endif (gRPC_BUILD_TESTS)
5251if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005252if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005253
5254add_executable(dualstack_socket_test
5255 test/core/end2end/dualstack_socket_test.c
5256)
5257
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005258
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005259target_include_directories(dualstack_socket_test
5260 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5261 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5262 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5263 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005264 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005265 PRIVATE ${ZLIB_ROOT_DIR}
5266 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005267 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005268 PRIVATE ${CARES_INCLUDE_DIR}
5269 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5270 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005271 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5272)
5273
5274target_link_libraries(dualstack_socket_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005275 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005276 grpc_test_util
5277 grpc
5278 gpr_test_util
5279 gpr
5280)
5281
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005282endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005283endif (gRPC_BUILD_TESTS)
5284if (gRPC_BUILD_TESTS)
5285
5286add_executable(endpoint_pair_test
5287 test/core/iomgr/endpoint_pair_test.c
5288)
5289
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005290
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005291target_include_directories(endpoint_pair_test
5292 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5293 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5294 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5295 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005296 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005297 PRIVATE ${ZLIB_ROOT_DIR}
5298 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005299 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005300 PRIVATE ${CARES_INCLUDE_DIR}
5301 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5302 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005303 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5304)
5305
5306target_link_libraries(endpoint_pair_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005307 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005308 grpc_test_util
5309 grpc
5310 gpr_test_util
5311 gpr
5312)
5313
5314endif (gRPC_BUILD_TESTS)
5315if (gRPC_BUILD_TESTS)
ncteisen3da3ce32017-02-17 09:51:25 -08005316
5317add_executable(error_test
5318 test/core/iomgr/error_test.c
5319)
5320
5321
5322target_include_directories(error_test
5323 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5324 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5325 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5326 PRIVATE ${PROTOBUF_ROOT_DIR}/src
5327 PRIVATE ${BENCHMARK_ROOT_DIR}/include
5328 PRIVATE ${ZLIB_ROOT_DIR}
5329 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005330 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005331 PRIVATE ${CARES_INCLUDE_DIR}
5332 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5333 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
ncteisen3da3ce32017-02-17 09:51:25 -08005334 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5335)
5336
5337target_link_libraries(error_test
5338 ${_gRPC_ALLTARGETS_LIBRARIES}
5339 grpc_test_util
5340 grpc
5341 gpr_test_util
5342 gpr
5343)
5344
5345endif (gRPC_BUILD_TESTS)
5346if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005347if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005348
Craig Tiller6a85ee02017-04-27 19:17:11 +00005349add_executable(ev_epollsig_linux_test
5350 test/core/iomgr/ev_epollsig_linux_test.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005351)
5352
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005353
Craig Tiller6a85ee02017-04-27 19:17:11 +00005354target_include_directories(ev_epollsig_linux_test
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005355 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5356 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5357 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5358 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005359 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005360 PRIVATE ${ZLIB_ROOT_DIR}
5361 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005362 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005363 PRIVATE ${CARES_INCLUDE_DIR}
5364 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5365 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005366 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5367)
5368
Craig Tiller6a85ee02017-04-27 19:17:11 +00005369target_link_libraries(ev_epollsig_linux_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005370 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005371 grpc_test_util
5372 grpc
5373 gpr_test_util
5374 gpr
5375)
5376
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005377endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005378endif (gRPC_BUILD_TESTS)
5379if (gRPC_BUILD_TESTS)
David Garcia Quintas53af23c2017-04-15 10:29:46 -07005380
5381add_executable(fake_resolver_test
5382 test/core/client_channel/resolvers/fake_resolver_test.c
5383)
5384
5385
5386target_include_directories(fake_resolver_test
5387 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5388 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5389 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5390 PRIVATE ${PROTOBUF_ROOT_DIR}/src
5391 PRIVATE ${BENCHMARK_ROOT_DIR}/include
5392 PRIVATE ${ZLIB_ROOT_DIR}
5393 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
5394 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
5395 PRIVATE ${CARES_INCLUDE_DIR}
5396 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5397 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
5398 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5399)
5400
5401target_link_libraries(fake_resolver_test
5402 ${_gRPC_ALLTARGETS_LIBRARIES}
5403 grpc_test_util
5404 grpc
5405 gpr_test_util
5406 gpr
5407)
5408
5409endif (gRPC_BUILD_TESTS)
5410if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005411if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005412
5413add_executable(fd_conservation_posix_test
5414 test/core/iomgr/fd_conservation_posix_test.c
5415)
5416
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005417
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005418target_include_directories(fd_conservation_posix_test
5419 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5420 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5421 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5422 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005423 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005424 PRIVATE ${ZLIB_ROOT_DIR}
5425 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005426 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005427 PRIVATE ${CARES_INCLUDE_DIR}
5428 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5429 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005430 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5431)
5432
5433target_link_libraries(fd_conservation_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005434 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005435 grpc_test_util
5436 grpc
5437 gpr_test_util
5438 gpr
5439)
5440
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005441endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005442endif (gRPC_BUILD_TESTS)
5443if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005444if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005445
5446add_executable(fd_posix_test
5447 test/core/iomgr/fd_posix_test.c
5448)
5449
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005450
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005451target_include_directories(fd_posix_test
5452 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5453 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5454 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5455 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005456 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005457 PRIVATE ${ZLIB_ROOT_DIR}
5458 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005459 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005460 PRIVATE ${CARES_INCLUDE_DIR}
5461 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5462 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005463 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5464)
5465
5466target_link_libraries(fd_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005467 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005468 grpc_test_util
5469 grpc
5470 gpr_test_util
5471 gpr
5472)
5473
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005474endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005475endif (gRPC_BUILD_TESTS)
5476if (gRPC_BUILD_TESTS)
5477
5478add_executable(fling_client
5479 test/core/fling/client.c
5480)
5481
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005482
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005483target_include_directories(fling_client
5484 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5485 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5486 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5487 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005488 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005489 PRIVATE ${ZLIB_ROOT_DIR}
5490 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005491 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005492 PRIVATE ${CARES_INCLUDE_DIR}
5493 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5494 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005495 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5496)
5497
5498target_link_libraries(fling_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005499 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005500 grpc_test_util
5501 grpc
5502 gpr_test_util
5503 gpr
5504)
5505
5506endif (gRPC_BUILD_TESTS)
5507if (gRPC_BUILD_TESTS)
5508
5509add_executable(fling_server
5510 test/core/fling/server.c
5511)
5512
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005513
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005514target_include_directories(fling_server
5515 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5516 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5517 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5518 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005519 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005520 PRIVATE ${ZLIB_ROOT_DIR}
5521 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005522 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005523 PRIVATE ${CARES_INCLUDE_DIR}
5524 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5525 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005526 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5527)
5528
5529target_link_libraries(fling_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005530 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005531 grpc_test_util
5532 grpc
5533 gpr_test_util
5534 gpr
5535)
5536
5537endif (gRPC_BUILD_TESTS)
5538if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005539if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005540
5541add_executable(fling_stream_test
5542 test/core/fling/fling_stream_test.c
5543)
5544
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005545
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005546target_include_directories(fling_stream_test
5547 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5548 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5549 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5550 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005551 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005552 PRIVATE ${ZLIB_ROOT_DIR}
5553 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005554 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005555 PRIVATE ${CARES_INCLUDE_DIR}
5556 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5557 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005558 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5559)
5560
5561target_link_libraries(fling_stream_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005562 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005563 grpc_test_util
5564 grpc
5565 gpr_test_util
5566 gpr
5567)
5568
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005569endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005570endif (gRPC_BUILD_TESTS)
5571if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005572if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005573
5574add_executable(fling_test
5575 test/core/fling/fling_test.c
5576)
5577
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005578
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005579target_include_directories(fling_test
5580 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5581 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5582 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5583 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005584 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005585 PRIVATE ${ZLIB_ROOT_DIR}
5586 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005587 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005588 PRIVATE ${CARES_INCLUDE_DIR}
5589 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5590 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005591 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5592)
5593
5594target_link_libraries(fling_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005595 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005596 grpc_test_util
5597 grpc
5598 gpr_test_util
5599 gpr
5600)
5601
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005602endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005603endif (gRPC_BUILD_TESTS)
Tamas Berghammerd798a7d2016-06-21 13:58:18 +01005604
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005605add_executable(gen_hpack_tables
5606 tools/codegen/core/gen_hpack_tables.c
5607)
5608
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005609
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005610target_include_directories(gen_hpack_tables
5611 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5612 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5613 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5614 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005615 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005616 PRIVATE ${ZLIB_ROOT_DIR}
5617 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005618 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005619 PRIVATE ${CARES_INCLUDE_DIR}
5620 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5621 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005622 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005623)
5624
5625target_link_libraries(gen_hpack_tables
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005626 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005627 gpr
5628 grpc
5629)
5630
5631
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03005632if (gRPC_INSTALL)
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02005633 install(TARGETS gen_hpack_tables EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02005634 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
5635 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
5636 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +02005637 )
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03005638endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03005639
5640
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005641add_executable(gen_legal_metadata_characters
5642 tools/codegen/core/gen_legal_metadata_characters.c
5643)
5644
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005645
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005646target_include_directories(gen_legal_metadata_characters
5647 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5648 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5649 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5650 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005651 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005652 PRIVATE ${ZLIB_ROOT_DIR}
5653 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005654 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005655 PRIVATE ${CARES_INCLUDE_DIR}
5656 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5657 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005658 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005659)
5660
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005661target_link_libraries(gen_legal_metadata_characters
5662 ${_gRPC_ALLTARGETS_LIBRARIES}
5663)
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01005664
5665
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03005666if (gRPC_INSTALL)
5667 install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02005668 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
5669 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
5670 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03005671 )
5672endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03005673
5674
Craig Tiller1c7a8422016-08-18 11:13:11 -07005675add_executable(gen_percent_encoding_tables
5676 tools/codegen/core/gen_percent_encoding_tables.c
5677)
5678
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005679
Craig Tiller1c7a8422016-08-18 11:13:11 -07005680target_include_directories(gen_percent_encoding_tables
5681 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5682 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5683 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5684 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005685 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Craig Tiller1c7a8422016-08-18 11:13:11 -07005686 PRIVATE ${ZLIB_ROOT_DIR}
5687 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005688 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005689 PRIVATE ${CARES_INCLUDE_DIR}
5690 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5691 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005692 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Craig Tiller1c7a8422016-08-18 11:13:11 -07005693)
5694
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005695target_link_libraries(gen_percent_encoding_tables
5696 ${_gRPC_ALLTARGETS_LIBRARIES}
5697)
Craig Tiller1c7a8422016-08-18 11:13:11 -07005698
5699
Craig Tiller426dcde2016-09-07 15:43:10 -07005700if (gRPC_INSTALL)
5701 install(TARGETS gen_percent_encoding_tables EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02005702 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
5703 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
5704 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Craig Tiller426dcde2016-09-07 15:43:10 -07005705 )
5706endif()
Craig Tiller1c7a8422016-08-18 11:13:11 -07005707
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005708if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005709if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005710
5711add_executable(goaway_server_test
5712 test/core/end2end/goaway_server_test.c
5713)
5714
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005715
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005716target_include_directories(goaway_server_test
5717 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
5718 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
5719 PRIVATE ${BORINGSSL_ROOT_DIR}/include
5720 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005721 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005722 PRIVATE ${ZLIB_ROOT_DIR}
5723 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07005724 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07005725 PRIVATE ${CARES_INCLUDE_DIR}
5726 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
5727 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005728 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5729)
5730
5731target_link_libraries(goaway_server_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005732 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005733 grpc_test_util
5734 grpc
5735 gpr_test_util
5736 gpr
5737)
5738
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005739endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005740endif (gRPC_BUILD_TESTS)
5741if (gRPC_BUILD_TESTS)
5742
5743add_executable(gpr_avl_test
5744 test/core/support/avl_test.c
5745)
5746
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005747
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005748target_include_directories(gpr_avl_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_avl_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_backoff_test
5773 test/core/support/backoff_test.c
5774)
5775
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005776
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005777target_include_directories(gpr_backoff_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_backoff_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_cmdline_test
5802 test/core/support/cmdline_test.c
5803)
5804
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005805
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005806target_include_directories(gpr_cmdline_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_cmdline_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_cpu_test
5831 test/core/support/cpu_test.c
5832)
5833
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005834
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005835target_include_directories(gpr_cpu_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_cpu_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_env_test
5860 test/core/support/env_test.c
5861)
5862
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005863
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005864target_include_directories(gpr_env_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_env_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_histogram_test
5889 test/core/support/histogram_test.c
5890)
5891
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005892
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005893target_include_directories(gpr_histogram_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_histogram_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_host_port_test
5918 test/core/support/host_port_test.c
5919)
5920
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005921
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005922target_include_directories(gpr_host_port_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_host_port_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_log_test
5947 test/core/support/log_test.c
5948)
5949
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005950
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005951target_include_directories(gpr_log_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_log_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
5975add_executable(gpr_mpscq_test
5976 test/core/support/mpscq_test.c
5977)
5978
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005979
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005980target_include_directories(gpr_mpscq_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
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005985 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005986 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
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005992 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
5993)
5994
5995target_link_libraries(gpr_mpscq_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01005996 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01005997 gpr_test_util
5998 gpr
5999)
6000
6001endif (gRPC_BUILD_TESTS)
6002if (gRPC_BUILD_TESTS)
6003
Craig Tilleredbf2b92017-02-27 07:24:00 -08006004add_executable(gpr_spinlock_test
6005 test/core/support/spinlock_test.c
6006)
6007
6008
6009target_include_directories(gpr_spinlock_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
6014 PRIVATE ${BENCHMARK_ROOT_DIR}/include
6015 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
Craig Tilleredbf2b92017-02-27 07:24:00 -08006021 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6022)
6023
6024target_link_libraries(gpr_spinlock_test
6025 ${_gRPC_ALLTARGETS_LIBRARIES}
6026 gpr_test_util
6027 gpr
6028)
6029
6030endif (gRPC_BUILD_TESTS)
6031if (gRPC_BUILD_TESTS)
6032
Ken Paysona4710a02017-07-10 16:49:59 -07006033add_executable(gpr_stack_lockfree_test
6034 test/core/support/stack_lockfree_test.c
6035)
6036
6037
6038target_include_directories(gpr_stack_lockfree_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
6043 PRIVATE ${BENCHMARK_ROOT_DIR}/include
6044 PRIVATE ${ZLIB_ROOT_DIR}
6045 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
6046 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
6047 PRIVATE ${CARES_INCLUDE_DIR}
6048 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6049 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
6050 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6051)
6052
6053target_link_libraries(gpr_stack_lockfree_test
6054 ${_gRPC_ALLTARGETS_LIBRARIES}
6055 gpr_test_util
6056 gpr
6057)
6058
6059endif (gRPC_BUILD_TESTS)
6060if (gRPC_BUILD_TESTS)
6061
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006062add_executable(gpr_string_test
6063 test/core/support/string_test.c
6064)
6065
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006066
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006067target_include_directories(gpr_string_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_string_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_sync_test
6092 test/core/support/sync_test.c
6093)
6094
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006095
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006096target_include_directories(gpr_sync_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_sync_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_thd_test
6121 test/core/support/thd_test.c
6122)
6123
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006124
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006125target_include_directories(gpr_thd_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_thd_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_time_test
6150 test/core/support/time_test.c
6151)
6152
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006153
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006154target_include_directories(gpr_time_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_time_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_tls_test
6179 test/core/support/tls_test.c
6180)
6181
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006182
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006183target_include_directories(gpr_tls_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_tls_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(gpr_useful_test
6208 test/core/support/useful_test.c
6209)
6210
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006211
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006212target_include_directories(gpr_useful_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(gpr_useful_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006228 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006229 gpr_test_util
6230 gpr
6231)
6232
6233endif (gRPC_BUILD_TESTS)
6234if (gRPC_BUILD_TESTS)
6235
6236add_executable(grpc_auth_context_test
6237 test/core/security/auth_context_test.c
6238)
6239
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006240
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006241target_include_directories(grpc_auth_context_test
6242 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6243 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6244 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6245 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006246 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006247 PRIVATE ${ZLIB_ROOT_DIR}
6248 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006249 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006250 PRIVATE ${CARES_INCLUDE_DIR}
6251 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6252 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006253 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6254)
6255
6256target_link_libraries(grpc_auth_context_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006257 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006258 grpc_test_util
6259 grpc
6260 gpr_test_util
6261 gpr
6262)
6263
6264endif (gRPC_BUILD_TESTS)
6265if (gRPC_BUILD_TESTS)
6266
6267add_executable(grpc_b64_test
Craig Tiller790f6af2017-03-30 12:39:24 -07006268 test/core/slice/b64_test.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006269)
6270
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006271
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006272target_include_directories(grpc_b64_test
6273 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6274 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6275 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6276 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006277 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006278 PRIVATE ${ZLIB_ROOT_DIR}
6279 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006280 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006281 PRIVATE ${CARES_INCLUDE_DIR}
6282 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6283 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006284 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6285)
6286
6287target_link_libraries(grpc_b64_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006288 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006289 grpc_test_util
6290 grpc
6291 gpr_test_util
6292 gpr
6293)
6294
6295endif (gRPC_BUILD_TESTS)
6296if (gRPC_BUILD_TESTS)
6297
6298add_executable(grpc_byte_buffer_reader_test
6299 test/core/surface/byte_buffer_reader_test.c
6300)
6301
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006302
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006303target_include_directories(grpc_byte_buffer_reader_test
6304 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6305 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6306 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6307 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006308 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006309 PRIVATE ${ZLIB_ROOT_DIR}
6310 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006311 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006312 PRIVATE ${CARES_INCLUDE_DIR}
6313 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6314 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006315 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6316)
6317
6318target_link_libraries(grpc_byte_buffer_reader_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006319 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006320 grpc_test_util
6321 grpc
6322 gpr_test_util
6323 gpr
6324)
6325
6326endif (gRPC_BUILD_TESTS)
6327if (gRPC_BUILD_TESTS)
6328
6329add_executable(grpc_channel_args_test
6330 test/core/channel/channel_args_test.c
6331)
6332
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006333
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006334target_include_directories(grpc_channel_args_test
6335 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6336 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6337 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6338 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006339 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006340 PRIVATE ${ZLIB_ROOT_DIR}
6341 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006342 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006343 PRIVATE ${CARES_INCLUDE_DIR}
6344 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6345 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006346 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6347)
6348
6349target_link_libraries(grpc_channel_args_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006350 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006351 grpc_test_util
6352 grpc
6353 gpr_test_util
6354 gpr
6355)
6356
6357endif (gRPC_BUILD_TESTS)
6358if (gRPC_BUILD_TESTS)
6359
6360add_executable(grpc_channel_stack_test
6361 test/core/channel/channel_stack_test.c
6362)
6363
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006364
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006365target_include_directories(grpc_channel_stack_test
6366 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6367 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6368 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6369 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006370 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006371 PRIVATE ${ZLIB_ROOT_DIR}
6372 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006373 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006374 PRIVATE ${CARES_INCLUDE_DIR}
6375 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6376 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006377 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6378)
6379
6380target_link_libraries(grpc_channel_stack_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006381 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006382 grpc_test_util
6383 grpc
6384 gpr_test_util
6385 gpr
6386)
6387
6388endif (gRPC_BUILD_TESTS)
6389if (gRPC_BUILD_TESTS)
6390
6391add_executable(grpc_completion_queue_test
6392 test/core/surface/completion_queue_test.c
6393)
6394
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006395
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006396target_include_directories(grpc_completion_queue_test
6397 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6398 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6399 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6400 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006401 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006402 PRIVATE ${ZLIB_ROOT_DIR}
6403 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006404 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006405 PRIVATE ${CARES_INCLUDE_DIR}
6406 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6407 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006408 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6409)
6410
6411target_link_libraries(grpc_completion_queue_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006412 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006413 grpc_test_util
6414 grpc
6415 gpr_test_util
6416 gpr
6417)
6418
6419endif (gRPC_BUILD_TESTS)
murgatroid991191b722017-02-08 11:56:52 -08006420if (gRPC_BUILD_TESTS)
6421
6422add_executable(grpc_completion_queue_threading_test
6423 test/core/surface/completion_queue_threading_test.c
6424)
6425
murgatroid9998cdf3b2017-02-23 14:59:45 -08006426
murgatroid991191b722017-02-08 11:56:52 -08006427target_include_directories(grpc_completion_queue_threading_test
6428 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6429 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6430 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6431 PRIVATE ${PROTOBUF_ROOT_DIR}/src
murgatroid9998cdf3b2017-02-23 14:59:45 -08006432 PRIVATE ${BENCHMARK_ROOT_DIR}/include
murgatroid991191b722017-02-08 11:56:52 -08006433 PRIVATE ${ZLIB_ROOT_DIR}
6434 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006435 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006436 PRIVATE ${CARES_INCLUDE_DIR}
6437 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6438 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
murgatroid991191b722017-02-08 11:56:52 -08006439 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6440)
6441
6442target_link_libraries(grpc_completion_queue_threading_test
murgatroid9998cdf3b2017-02-23 14:59:45 -08006443 ${_gRPC_ALLTARGETS_LIBRARIES}
murgatroid991191b722017-02-08 11:56:52 -08006444 grpc_test_util
6445 grpc
6446 gpr_test_util
6447 gpr
6448)
6449
6450endif (gRPC_BUILD_TESTS)
Craig Tiller1c7a8422016-08-18 11:13:11 -07006451
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006452add_executable(grpc_create_jwt
6453 test/core/security/create_jwt.c
6454)
6455
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006456
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006457target_include_directories(grpc_create_jwt
6458 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6459 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6460 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6461 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006462 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006463 PRIVATE ${ZLIB_ROOT_DIR}
6464 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006465 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006466 PRIVATE ${CARES_INCLUDE_DIR}
6467 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6468 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006469 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006470)
6471
6472target_link_libraries(grpc_create_jwt
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +03006473 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006474 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006475 grpc
6476 gpr
6477)
6478
6479
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03006480if (gRPC_INSTALL)
6481 install(TARGETS grpc_create_jwt EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02006482 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
6483 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
6484 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03006485 )
6486endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03006487
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006488if (gRPC_BUILD_TESTS)
6489
6490add_executable(grpc_credentials_test
6491 test/core/security/credentials_test.c
6492)
6493
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006494
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006495target_include_directories(grpc_credentials_test
6496 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6497 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6498 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6499 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006500 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006501 PRIVATE ${ZLIB_ROOT_DIR}
6502 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006503 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006504 PRIVATE ${CARES_INCLUDE_DIR}
6505 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6506 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006507 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6508)
6509
6510target_link_libraries(grpc_credentials_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006511 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006512 grpc_test_util
6513 grpc
6514 gpr_test_util
6515 gpr
6516)
6517
6518endif (gRPC_BUILD_TESTS)
6519if (gRPC_BUILD_TESTS)
6520
6521add_executable(grpc_fetch_oauth2
6522 test/core/security/fetch_oauth2.c
6523)
6524
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006525
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006526target_include_directories(grpc_fetch_oauth2
6527 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6528 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6529 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6530 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006531 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006532 PRIVATE ${ZLIB_ROOT_DIR}
6533 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006534 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006535 PRIVATE ${CARES_INCLUDE_DIR}
6536 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6537 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006538 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6539)
6540
6541target_link_libraries(grpc_fetch_oauth2
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006542 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006543 grpc_test_util
6544 grpc
6545 gpr_test_util
6546 gpr
6547)
6548
6549endif (gRPC_BUILD_TESTS)
6550if (gRPC_BUILD_TESTS)
6551
6552add_executable(grpc_invalid_channel_args_test
6553 test/core/surface/invalid_channel_args_test.c
6554)
6555
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006556
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006557target_include_directories(grpc_invalid_channel_args_test
6558 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6559 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6560 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6561 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006562 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006563 PRIVATE ${ZLIB_ROOT_DIR}
6564 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006565 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006566 PRIVATE ${CARES_INCLUDE_DIR}
6567 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6568 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006569 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6570)
6571
6572target_link_libraries(grpc_invalid_channel_args_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006573 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006574 grpc_test_util
6575 grpc
6576 gpr_test_util
6577 gpr
6578)
6579
6580endif (gRPC_BUILD_TESTS)
6581if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006582if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006583
6584add_executable(grpc_json_token_test
6585 test/core/security/json_token_test.c
6586)
6587
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006588
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006589target_include_directories(grpc_json_token_test
6590 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6591 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6592 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6593 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006594 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006595 PRIVATE ${ZLIB_ROOT_DIR}
6596 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006597 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006598 PRIVATE ${CARES_INCLUDE_DIR}
6599 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6600 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006601 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6602)
6603
6604target_link_libraries(grpc_json_token_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006605 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006606 grpc_test_util
6607 grpc
6608 gpr_test_util
6609 gpr
6610)
6611
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006612endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006613endif (gRPC_BUILD_TESTS)
6614if (gRPC_BUILD_TESTS)
6615
6616add_executable(grpc_jwt_verifier_test
6617 test/core/security/jwt_verifier_test.c
6618)
6619
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006620
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006621target_include_directories(grpc_jwt_verifier_test
6622 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6623 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6624 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6625 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006626 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006627 PRIVATE ${ZLIB_ROOT_DIR}
6628 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006629 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006630 PRIVATE ${CARES_INCLUDE_DIR}
6631 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6632 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006633 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6634)
6635
6636target_link_libraries(grpc_jwt_verifier_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006637 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006638 grpc_test_util
6639 grpc
6640 gpr_test_util
6641 gpr
6642)
6643
6644endif (gRPC_BUILD_TESTS)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03006645
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006646add_executable(grpc_print_google_default_creds_token
6647 test/core/security/print_google_default_creds_token.c
6648)
6649
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006650
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006651target_include_directories(grpc_print_google_default_creds_token
6652 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6653 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6654 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6655 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006656 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006657 PRIVATE ${ZLIB_ROOT_DIR}
6658 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006659 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006660 PRIVATE ${CARES_INCLUDE_DIR}
6661 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6662 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006663 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006664)
6665
6666target_link_libraries(grpc_print_google_default_creds_token
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006667 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006668 grpc
6669 gpr
6670)
6671
6672
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03006673if (gRPC_INSTALL)
6674 install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02006675 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
6676 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
6677 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03006678 )
6679endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03006680
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006681if (gRPC_BUILD_TESTS)
6682
6683add_executable(grpc_security_connector_test
6684 test/core/security/security_connector_test.c
6685)
6686
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006687
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006688target_include_directories(grpc_security_connector_test
6689 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6690 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6691 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6692 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006693 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006694 PRIVATE ${ZLIB_ROOT_DIR}
6695 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006696 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006697 PRIVATE ${CARES_INCLUDE_DIR}
6698 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6699 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006700 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6701)
6702
6703target_link_libraries(grpc_security_connector_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006704 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006705 grpc_test_util
6706 grpc
6707 gpr_test_util
6708 gpr
6709)
6710
6711endif (gRPC_BUILD_TESTS)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03006712
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006713add_executable(grpc_verify_jwt
6714 test/core/security/verify_jwt.c
6715)
6716
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006717
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006718target_include_directories(grpc_verify_jwt
6719 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6720 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6721 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6722 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006723 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006724 PRIVATE ${ZLIB_ROOT_DIR}
6725 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006726 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006727 PRIVATE ${CARES_INCLUDE_DIR}
6728 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6729 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006730 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006731)
6732
6733target_link_libraries(grpc_verify_jwt
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006734 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerdf6a44c2016-06-22 13:38:55 +01006735 grpc
6736 gpr
6737)
6738
6739
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03006740if (gRPC_INSTALL)
6741 install(TARGETS grpc_verify_jwt EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +02006742 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
6743 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
6744 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +03006745 )
6746endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +03006747
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006748if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006749if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006750
6751add_executable(handshake_client
6752 test/core/handshake/client_ssl.c
6753)
6754
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006755
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006756target_include_directories(handshake_client
6757 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6758 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6759 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6760 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006761 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006762 PRIVATE ${ZLIB_ROOT_DIR}
6763 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006764 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006765 PRIVATE ${CARES_INCLUDE_DIR}
6766 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6767 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006768 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6769)
6770
6771target_link_libraries(handshake_client
6772 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006773 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006774 grpc_test_util
6775 grpc
6776 gpr_test_util
6777 gpr
6778)
6779
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006780endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006781endif (gRPC_BUILD_TESTS)
6782if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006783if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006784
6785add_executable(handshake_server
6786 test/core/handshake/server_ssl.c
6787)
6788
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006789
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006790target_include_directories(handshake_server
6791 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6792 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6793 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6794 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006795 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006796 PRIVATE ${ZLIB_ROOT_DIR}
6797 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006798 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006799 PRIVATE ${CARES_INCLUDE_DIR}
6800 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6801 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006802 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6803)
6804
6805target_link_libraries(handshake_server
6806 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006807 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006808 grpc_test_util
6809 grpc
6810 gpr_test_util
6811 gpr
6812)
6813
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006814endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006815endif (gRPC_BUILD_TESTS)
6816if (gRPC_BUILD_TESTS)
6817
6818add_executable(hpack_parser_test
6819 test/core/transport/chttp2/hpack_parser_test.c
6820)
6821
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006822
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006823target_include_directories(hpack_parser_test
6824 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6825 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6826 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6827 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006828 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006829 PRIVATE ${ZLIB_ROOT_DIR}
6830 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006831 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006832 PRIVATE ${CARES_INCLUDE_DIR}
6833 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6834 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006835 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6836)
6837
6838target_link_libraries(hpack_parser_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006839 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006840 grpc_test_util
6841 grpc
6842 gpr_test_util
6843 gpr
6844)
6845
6846endif (gRPC_BUILD_TESTS)
6847if (gRPC_BUILD_TESTS)
6848
6849add_executable(hpack_table_test
6850 test/core/transport/chttp2/hpack_table_test.c
6851)
6852
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006853
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006854target_include_directories(hpack_table_test
6855 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6856 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6857 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6858 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006859 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006860 PRIVATE ${ZLIB_ROOT_DIR}
6861 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006862 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006863 PRIVATE ${CARES_INCLUDE_DIR}
6864 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6865 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006866 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6867)
6868
6869target_link_libraries(hpack_table_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006870 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006871 grpc_test_util
6872 grpc
6873 gpr_test_util
6874 gpr
6875)
6876
6877endif (gRPC_BUILD_TESTS)
6878if (gRPC_BUILD_TESTS)
6879
6880add_executable(http_parser_test
6881 test/core/http/parser_test.c
6882)
6883
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006884
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006885target_include_directories(http_parser_test
6886 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6887 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6888 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6889 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006890 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006891 PRIVATE ${ZLIB_ROOT_DIR}
6892 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006893 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006894 PRIVATE ${CARES_INCLUDE_DIR}
6895 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6896 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006897 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6898)
6899
6900target_link_libraries(http_parser_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006901 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006902 grpc_test_util
6903 grpc
6904 gpr_test_util
6905 gpr
6906)
6907
6908endif (gRPC_BUILD_TESTS)
6909if (gRPC_BUILD_TESTS)
6910
6911add_executable(httpcli_format_request_test
6912 test/core/http/format_request_test.c
6913)
6914
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006915
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006916target_include_directories(httpcli_format_request_test
6917 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6918 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6919 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6920 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006921 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006922 PRIVATE ${ZLIB_ROOT_DIR}
6923 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006924 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006925 PRIVATE ${CARES_INCLUDE_DIR}
6926 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6927 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006928 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6929)
6930
6931target_link_libraries(httpcli_format_request_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006932 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006933 grpc_test_util
6934 grpc
6935 gpr_test_util
6936 gpr
6937)
6938
6939endif (gRPC_BUILD_TESTS)
6940if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006941if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006942
6943add_executable(httpcli_test
6944 test/core/http/httpcli_test.c
6945)
6946
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006947
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006948target_include_directories(httpcli_test
6949 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6950 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6951 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6952 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006953 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006954 PRIVATE ${ZLIB_ROOT_DIR}
6955 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006956 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006957 PRIVATE ${CARES_INCLUDE_DIR}
6958 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6959 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006960 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6961)
6962
6963target_link_libraries(httpcli_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006964 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006965 grpc_test_util
6966 grpc
6967 gpr_test_util
6968 gpr
6969)
6970
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006971endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006972endif (gRPC_BUILD_TESTS)
6973if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006974if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006975
6976add_executable(httpscli_test
6977 test/core/http/httpscli_test.c
6978)
6979
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006980
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006981target_include_directories(httpscli_test
6982 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
6983 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
6984 PRIVATE ${BORINGSSL_ROOT_DIR}/include
6985 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006986 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006987 PRIVATE ${ZLIB_ROOT_DIR}
6988 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07006989 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07006990 PRIVATE ${CARES_INCLUDE_DIR}
6991 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
6992 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006993 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
6994)
6995
6996target_link_libraries(httpscli_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01006997 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01006998 grpc_test_util
6999 grpc
7000 gpr_test_util
7001 gpr
7002)
7003
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007004endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007005endif (gRPC_BUILD_TESTS)
7006if (gRPC_BUILD_TESTS)
7007
7008add_executable(init_test
7009 test/core/surface/init_test.c
7010)
7011
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007012
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007013target_include_directories(init_test
7014 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7015 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7016 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7017 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007018 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007019 PRIVATE ${ZLIB_ROOT_DIR}
7020 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007021 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007022 PRIVATE ${CARES_INCLUDE_DIR}
7023 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7024 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007025 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7026)
7027
7028target_link_libraries(init_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007029 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007030 grpc_test_util
7031 grpc
7032 gpr_test_util
7033 gpr
7034)
7035
7036endif (gRPC_BUILD_TESTS)
7037if (gRPC_BUILD_TESTS)
7038
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007039add_executable(invalid_call_argument_test
7040 test/core/end2end/invalid_call_argument_test.c
7041)
7042
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007043
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007044target_include_directories(invalid_call_argument_test
7045 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7046 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7047 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7048 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007049 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007050 PRIVATE ${ZLIB_ROOT_DIR}
7051 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007052 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007053 PRIVATE ${CARES_INCLUDE_DIR}
7054 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7055 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007056 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7057)
7058
7059target_link_libraries(invalid_call_argument_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007060 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007061 grpc_test_util
7062 grpc
7063 gpr_test_util
7064 gpr
7065)
7066
7067endif (gRPC_BUILD_TESTS)
7068if (gRPC_BUILD_TESTS)
7069
7070add_executable(json_rewrite
7071 test/core/json/json_rewrite.c
7072)
7073
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007074
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007075target_include_directories(json_rewrite
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
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007091 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007092 grpc
7093 gpr
7094)
7095
7096endif (gRPC_BUILD_TESTS)
7097if (gRPC_BUILD_TESTS)
7098
7099add_executable(json_rewrite_test
7100 test/core/json/json_rewrite_test.c
7101)
7102
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007103
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007104target_include_directories(json_rewrite_test
7105 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7106 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7107 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7108 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007109 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007110 PRIVATE ${ZLIB_ROOT_DIR}
7111 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007112 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007113 PRIVATE ${CARES_INCLUDE_DIR}
7114 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7115 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007116 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7117)
7118
7119target_link_libraries(json_rewrite_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007120 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007121 grpc_test_util
7122 grpc
7123 gpr_test_util
7124 gpr
7125)
7126
7127endif (gRPC_BUILD_TESTS)
7128if (gRPC_BUILD_TESTS)
7129
7130add_executable(json_stream_error_test
7131 test/core/json/json_stream_error_test.c
7132)
7133
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007134
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007135target_include_directories(json_stream_error_test
7136 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7137 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7138 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7139 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007140 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007141 PRIVATE ${ZLIB_ROOT_DIR}
7142 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007143 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007144 PRIVATE ${CARES_INCLUDE_DIR}
7145 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7146 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007147 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7148)
7149
7150target_link_libraries(json_stream_error_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007151 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007152 grpc_test_util
7153 grpc
7154 gpr_test_util
7155 gpr
7156)
7157
7158endif (gRPC_BUILD_TESTS)
7159if (gRPC_BUILD_TESTS)
7160
7161add_executable(json_test
7162 test/core/json/json_test.c
7163)
7164
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007165
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007166target_include_directories(json_test
7167 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7168 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7169 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7170 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007171 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007172 PRIVATE ${ZLIB_ROOT_DIR}
7173 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007174 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007175 PRIVATE ${CARES_INCLUDE_DIR}
7176 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7177 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007178 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7179)
7180
7181target_link_libraries(json_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007182 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007183 grpc_test_util
7184 grpc
7185 gpr_test_util
7186 gpr
7187)
7188
7189endif (gRPC_BUILD_TESTS)
7190if (gRPC_BUILD_TESTS)
7191
7192add_executable(lame_client_test
7193 test/core/surface/lame_client_test.c
7194)
7195
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007196
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007197target_include_directories(lame_client_test
7198 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7199 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7200 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7201 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007202 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007203 PRIVATE ${ZLIB_ROOT_DIR}
7204 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007205 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007206 PRIVATE ${CARES_INCLUDE_DIR}
7207 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7208 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007209 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7210)
7211
7212target_link_libraries(lame_client_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007213 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007214 grpc_test_util
7215 grpc
7216 gpr_test_util
7217 gpr
7218)
7219
7220endif (gRPC_BUILD_TESTS)
7221if (gRPC_BUILD_TESTS)
7222
7223add_executable(lb_policies_test
7224 test/core/client_channel/lb_policies_test.c
7225)
7226
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007227
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007228target_include_directories(lb_policies_test
7229 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7230 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7231 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7232 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007233 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007234 PRIVATE ${ZLIB_ROOT_DIR}
7235 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007236 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007237 PRIVATE ${CARES_INCLUDE_DIR}
7238 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7239 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007240 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7241)
7242
7243target_link_libraries(lb_policies_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007244 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007245 grpc_test_util
7246 grpc
7247 gpr_test_util
7248 gpr
7249)
7250
7251endif (gRPC_BUILD_TESTS)
7252if (gRPC_BUILD_TESTS)
7253
7254add_executable(load_file_test
7255 test/core/iomgr/load_file_test.c
7256)
7257
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007258
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007259target_include_directories(load_file_test
7260 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7261 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7262 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7263 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007264 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007265 PRIVATE ${ZLIB_ROOT_DIR}
7266 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007267 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007268 PRIVATE ${CARES_INCLUDE_DIR}
7269 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7270 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007271 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7272)
7273
7274target_link_libraries(load_file_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007275 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007276 grpc_test_util
7277 grpc
7278 gpr_test_util
7279 gpr
7280)
7281
7282endif (gRPC_BUILD_TESTS)
7283if (gRPC_BUILD_TESTS)
7284
7285add_executable(memory_profile_client
7286 test/core/memory_usage/client.c
7287)
7288
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007289
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007290target_include_directories(memory_profile_client
7291 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7292 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7293 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7294 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007295 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007296 PRIVATE ${ZLIB_ROOT_DIR}
7297 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007298 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007299 PRIVATE ${CARES_INCLUDE_DIR}
7300 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7301 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007302 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7303)
7304
7305target_link_libraries(memory_profile_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007306 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007307 grpc_test_util
7308 grpc
7309 gpr_test_util
7310 gpr
7311)
7312
7313endif (gRPC_BUILD_TESTS)
7314if (gRPC_BUILD_TESTS)
7315
7316add_executable(memory_profile_server
7317 test/core/memory_usage/server.c
7318)
7319
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007320
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007321target_include_directories(memory_profile_server
7322 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7323 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7324 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7325 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007326 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007327 PRIVATE ${ZLIB_ROOT_DIR}
7328 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007329 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007330 PRIVATE ${CARES_INCLUDE_DIR}
7331 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7332 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007333 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7334)
7335
7336target_link_libraries(memory_profile_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007337 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007338 grpc_test_util
7339 grpc
7340 gpr_test_util
7341 gpr
7342)
7343
7344endif (gRPC_BUILD_TESTS)
7345if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007346if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007347
7348add_executable(memory_profile_test
7349 test/core/memory_usage/memory_usage_test.c
7350)
7351
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007352
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007353target_include_directories(memory_profile_test
7354 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7355 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7356 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7357 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007358 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007359 PRIVATE ${ZLIB_ROOT_DIR}
7360 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007361 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007362 PRIVATE ${CARES_INCLUDE_DIR}
7363 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7364 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007365 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7366)
7367
7368target_link_libraries(memory_profile_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007369 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007370 grpc_test_util
7371 grpc
7372 gpr_test_util
7373 gpr
7374)
7375
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007376endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007377endif (gRPC_BUILD_TESTS)
7378if (gRPC_BUILD_TESTS)
7379
7380add_executable(message_compress_test
7381 test/core/compression/message_compress_test.c
7382)
7383
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007384
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007385target_include_directories(message_compress_test
7386 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7387 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7388 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7389 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007390 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007391 PRIVATE ${ZLIB_ROOT_DIR}
7392 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007393 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007394 PRIVATE ${CARES_INCLUDE_DIR}
7395 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7396 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007397 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7398)
7399
7400target_link_libraries(message_compress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007401 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007402 grpc_test_util
7403 grpc
7404 gpr_test_util
7405 gpr
7406)
7407
7408endif (gRPC_BUILD_TESTS)
7409if (gRPC_BUILD_TESTS)
7410
Craig Tiller494e72d2017-04-03 08:43:22 -07007411add_executable(minimal_stack_is_minimal_test
7412 test/core/channel/minimal_stack_is_minimal_test.c
7413)
7414
7415
7416target_include_directories(minimal_stack_is_minimal_test
7417 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7418 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7419 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7420 PRIVATE ${PROTOBUF_ROOT_DIR}/src
7421 PRIVATE ${BENCHMARK_ROOT_DIR}/include
7422 PRIVATE ${ZLIB_ROOT_DIR}
7423 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7424 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
7425 PRIVATE ${CARES_INCLUDE_DIR}
7426 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7427 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
7428 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7429)
7430
7431target_link_libraries(minimal_stack_is_minimal_test
7432 ${_gRPC_ALLTARGETS_LIBRARIES}
7433 grpc_test_util
7434 grpc
7435 gpr_test_util
7436 gpr
7437)
7438
7439endif (gRPC_BUILD_TESTS)
7440if (gRPC_BUILD_TESTS)
7441
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007442add_executable(mlog_test
7443 test/core/census/mlog_test.c
7444)
7445
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007446
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007447target_include_directories(mlog_test
7448 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7449 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7450 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7451 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007452 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007453 PRIVATE ${ZLIB_ROOT_DIR}
7454 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007455 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007456 PRIVATE ${CARES_INCLUDE_DIR}
7457 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7458 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007459 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7460)
7461
7462target_link_libraries(mlog_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007463 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007464 grpc_test_util
7465 grpc
7466 gpr_test_util
7467 gpr
7468)
7469
7470endif (gRPC_BUILD_TESTS)
7471if (gRPC_BUILD_TESTS)
7472
7473add_executable(multiple_server_queues_test
7474 test/core/end2end/multiple_server_queues_test.c
7475)
7476
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007477
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007478target_include_directories(multiple_server_queues_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(multiple_server_queues_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
7504add_executable(murmur_hash_test
7505 test/core/support/murmur_hash_test.c
7506)
7507
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007508
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007509target_include_directories(murmur_hash_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
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007514 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007515 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
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007521 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7522)
7523
7524target_link_libraries(murmur_hash_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007525 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007526 gpr_test_util
7527 gpr
7528)
7529
7530endif (gRPC_BUILD_TESTS)
7531if (gRPC_BUILD_TESTS)
7532
7533add_executable(no_server_test
7534 test/core/end2end/no_server_test.c
7535)
7536
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007537
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007538target_include_directories(no_server_test
7539 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7540 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7541 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7542 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007543 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007544 PRIVATE ${ZLIB_ROOT_DIR}
7545 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007546 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007547 PRIVATE ${CARES_INCLUDE_DIR}
7548 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7549 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007550 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7551)
7552
7553target_link_libraries(no_server_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007554 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007555 grpc_test_util
7556 grpc
7557 gpr_test_util
7558 gpr
7559)
7560
7561endif (gRPC_BUILD_TESTS)
7562if (gRPC_BUILD_TESTS)
7563
Alexander Polcync3b1f182017-04-18 13:51:36 -07007564add_executable(num_external_connectivity_watchers_test
7565 test/core/surface/num_external_connectivity_watchers_test.c
7566)
7567
7568
7569target_include_directories(num_external_connectivity_watchers_test
7570 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7571 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7572 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7573 PRIVATE ${PROTOBUF_ROOT_DIR}/src
7574 PRIVATE ${BENCHMARK_ROOT_DIR}/include
7575 PRIVATE ${ZLIB_ROOT_DIR}
7576 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7577 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
7578 PRIVATE ${CARES_INCLUDE_DIR}
7579 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7580 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
7581 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7582)
7583
7584target_link_libraries(num_external_connectivity_watchers_test
7585 ${_gRPC_ALLTARGETS_LIBRARIES}
7586 grpc_test_util
7587 grpc
7588 gpr_test_util
7589 gpr
7590)
7591
7592endif (gRPC_BUILD_TESTS)
7593if (gRPC_BUILD_TESTS)
7594
Yuchen Zenga9d8a152017-02-15 15:27:44 -08007595add_executable(parse_address_test
7596 test/core/client_channel/parse_address_test.c
7597)
7598
David Garcia Quintas8a0ec882017-03-03 16:53:54 -08007599
Yuchen Zenga9d8a152017-02-15 15:27:44 -08007600target_include_directories(parse_address_test
7601 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7602 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7603 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7604 PRIVATE ${PROTOBUF_ROOT_DIR}/src
David Garcia Quintas8a0ec882017-03-03 16:53:54 -08007605 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Yuchen Zenga9d8a152017-02-15 15:27:44 -08007606 PRIVATE ${ZLIB_ROOT_DIR}
7607 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007608 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007609 PRIVATE ${CARES_INCLUDE_DIR}
7610 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7611 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Yuchen Zenga9d8a152017-02-15 15:27:44 -08007612 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7613)
7614
7615target_link_libraries(parse_address_test
David Garcia Quintas8a0ec882017-03-03 16:53:54 -08007616 ${_gRPC_ALLTARGETS_LIBRARIES}
Yuchen Zenga9d8a152017-02-15 15:27:44 -08007617 grpc_test_util
7618 grpc
7619 gpr_test_util
7620 gpr
7621)
7622
7623endif (gRPC_BUILD_TESTS)
7624if (gRPC_BUILD_TESTS)
7625
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007626add_executable(percent_encoding_test
7627 test/core/slice/percent_encoding_test.c
7628)
7629
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007630
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007631target_include_directories(percent_encoding_test
7632 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7633 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7634 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7635 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007636 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007637 PRIVATE ${ZLIB_ROOT_DIR}
7638 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007639 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007640 PRIVATE ${CARES_INCLUDE_DIR}
7641 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7642 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007643 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7644)
7645
7646target_link_libraries(percent_encoding_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007647 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007648 grpc_test_util
7649 grpc
7650 gpr_test_util
7651 gpr
7652)
7653
7654endif (gRPC_BUILD_TESTS)
7655if (gRPC_BUILD_TESTS)
Sree Kuchibhotla66131682017-02-02 09:39:07 -08007656if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007657
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08007658add_executable(pollset_set_test
7659 test/core/iomgr/pollset_set_test.c
7660)
7661
Sree Kuchibhotla66131682017-02-02 09:39:07 -08007662
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08007663target_include_directories(pollset_set_test
7664 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7665 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7666 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7667 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Sree Kuchibhotla66131682017-02-02 09:39:07 -08007668 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08007669 PRIVATE ${ZLIB_ROOT_DIR}
7670 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007671 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007672 PRIVATE ${CARES_INCLUDE_DIR}
7673 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7674 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08007675 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7676)
7677
7678target_link_libraries(pollset_set_test
Sree Kuchibhotla66131682017-02-02 09:39:07 -08007679 ${_gRPC_ALLTARGETS_LIBRARIES}
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08007680 grpc_test_util
7681 grpc
7682 gpr_test_util
7683 gpr
7684)
7685
Sree Kuchibhotla66131682017-02-02 09:39:07 -08007686endif()
Sree Kuchibhotla7e87c322017-01-23 14:11:23 -08007687endif (gRPC_BUILD_TESTS)
7688if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007689if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007690
Stanley Cheung16952182017-01-27 20:09:31 -08007691add_executable(resolve_address_posix_test
7692 test/core/iomgr/resolve_address_posix_test.c
7693)
7694
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007695
Stanley Cheung16952182017-01-27 20:09:31 -08007696target_include_directories(resolve_address_posix_test
7697 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7698 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7699 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7700 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007701 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Stanley Cheung16952182017-01-27 20:09:31 -08007702 PRIVATE ${ZLIB_ROOT_DIR}
7703 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007704 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007705 PRIVATE ${CARES_INCLUDE_DIR}
7706 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7707 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Stanley Cheung16952182017-01-27 20:09:31 -08007708 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7709)
7710
7711target_link_libraries(resolve_address_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007712 ${_gRPC_ALLTARGETS_LIBRARIES}
Stanley Cheung16952182017-01-27 20:09:31 -08007713 grpc_test_util
7714 grpc
7715 gpr_test_util
7716 gpr
7717)
7718
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007719endif()
Stanley Cheung16952182017-01-27 20:09:31 -08007720endif (gRPC_BUILD_TESTS)
7721if (gRPC_BUILD_TESTS)
7722
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007723add_executable(resolve_address_test
7724 test/core/iomgr/resolve_address_test.c
7725)
7726
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007727
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007728target_include_directories(resolve_address_test
7729 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7730 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7731 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7732 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007733 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007734 PRIVATE ${ZLIB_ROOT_DIR}
7735 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007736 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007737 PRIVATE ${CARES_INCLUDE_DIR}
7738 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7739 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007740 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7741)
7742
7743target_link_libraries(resolve_address_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007744 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007745 grpc_test_util
7746 grpc
7747 gpr_test_util
7748 gpr
7749)
7750
7751endif (gRPC_BUILD_TESTS)
7752if (gRPC_BUILD_TESTS)
7753
7754add_executable(resource_quota_test
7755 test/core/iomgr/resource_quota_test.c
7756)
7757
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007758
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007759target_include_directories(resource_quota_test
7760 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7761 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7762 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7763 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007764 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007765 PRIVATE ${ZLIB_ROOT_DIR}
7766 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007767 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007768 PRIVATE ${CARES_INCLUDE_DIR}
7769 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7770 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007771 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7772)
7773
7774target_link_libraries(resource_quota_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007775 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007776 grpc_test_util
7777 grpc
7778 gpr_test_util
7779 gpr
7780)
7781
7782endif (gRPC_BUILD_TESTS)
7783if (gRPC_BUILD_TESTS)
7784
7785add_executable(secure_channel_create_test
7786 test/core/surface/secure_channel_create_test.c
7787)
7788
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007789
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007790target_include_directories(secure_channel_create_test
7791 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7792 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7793 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7794 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007795 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007796 PRIVATE ${ZLIB_ROOT_DIR}
7797 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007798 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007799 PRIVATE ${CARES_INCLUDE_DIR}
7800 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7801 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007802 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7803)
7804
7805target_link_libraries(secure_channel_create_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007806 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007807 grpc_test_util
7808 grpc
7809 gpr_test_util
7810 gpr
7811)
7812
7813endif (gRPC_BUILD_TESTS)
7814if (gRPC_BUILD_TESTS)
7815
7816add_executable(secure_endpoint_test
7817 test/core/security/secure_endpoint_test.c
7818)
7819
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007820
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007821target_include_directories(secure_endpoint_test
7822 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7823 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7824 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7825 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007826 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007827 PRIVATE ${ZLIB_ROOT_DIR}
7828 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007829 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007830 PRIVATE ${CARES_INCLUDE_DIR}
7831 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7832 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007833 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7834)
7835
7836target_link_libraries(secure_endpoint_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007837 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007838 grpc_test_util
7839 grpc
7840 gpr_test_util
7841 gpr
7842)
7843
7844endif (gRPC_BUILD_TESTS)
7845if (gRPC_BUILD_TESTS)
7846
7847add_executable(sequential_connectivity_test
7848 test/core/surface/sequential_connectivity_test.c
7849)
7850
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007851
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007852target_include_directories(sequential_connectivity_test
7853 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7854 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7855 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7856 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007857 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007858 PRIVATE ${ZLIB_ROOT_DIR}
7859 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007860 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007861 PRIVATE ${CARES_INCLUDE_DIR}
7862 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7863 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007864 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7865)
7866
7867target_link_libraries(sequential_connectivity_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007868 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007869 grpc_test_util
7870 grpc
7871 gpr_test_util
7872 gpr
7873)
7874
7875endif (gRPC_BUILD_TESTS)
7876if (gRPC_BUILD_TESTS)
7877
7878add_executable(server_chttp2_test
7879 test/core/surface/server_chttp2_test.c
7880)
7881
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007882
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007883target_include_directories(server_chttp2_test
7884 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7885 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7886 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7887 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007888 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007889 PRIVATE ${ZLIB_ROOT_DIR}
7890 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007891 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007892 PRIVATE ${CARES_INCLUDE_DIR}
7893 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7894 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007895 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7896)
7897
7898target_link_libraries(server_chttp2_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007899 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007900 grpc_test_util
7901 grpc
7902 gpr_test_util
7903 gpr
7904)
7905
7906endif (gRPC_BUILD_TESTS)
7907if (gRPC_BUILD_TESTS)
7908
7909add_executable(server_test
7910 test/core/surface/server_test.c
7911)
7912
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007913
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007914target_include_directories(server_test
7915 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7916 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7917 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7918 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007919 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007920 PRIVATE ${ZLIB_ROOT_DIR}
7921 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007922 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007923 PRIVATE ${CARES_INCLUDE_DIR}
7924 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7925 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007926 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7927)
7928
7929target_link_libraries(server_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007930 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007931 grpc_test_util
7932 grpc
7933 gpr_test_util
7934 gpr
7935)
7936
7937endif (gRPC_BUILD_TESTS)
7938if (gRPC_BUILD_TESTS)
7939
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007940add_executable(slice_buffer_test
7941 test/core/slice/slice_buffer_test.c
7942)
7943
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007944
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007945target_include_directories(slice_buffer_test
7946 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7947 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7948 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7949 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007950 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007951 PRIVATE ${ZLIB_ROOT_DIR}
7952 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07007953 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07007954 PRIVATE ${CARES_INCLUDE_DIR}
7955 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7956 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007957 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7958)
7959
7960target_link_libraries(slice_buffer_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01007961 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01007962 grpc_test_util
7963 grpc
7964 gpr_test_util
7965 gpr
7966)
7967
7968endif (gRPC_BUILD_TESTS)
7969if (gRPC_BUILD_TESTS)
7970
Mark D. Roth0c0b89a2017-04-19 13:28:24 -07007971add_executable(slice_hash_table_test
7972 test/core/slice/slice_hash_table_test.c
7973)
7974
7975
7976target_include_directories(slice_hash_table_test
7977 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
7978 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
7979 PRIVATE ${BORINGSSL_ROOT_DIR}/include
7980 PRIVATE ${PROTOBUF_ROOT_DIR}/src
7981 PRIVATE ${BENCHMARK_ROOT_DIR}/include
7982 PRIVATE ${ZLIB_ROOT_DIR}
7983 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
7984 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
7985 PRIVATE ${CARES_INCLUDE_DIR}
7986 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
7987 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
7988 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
7989)
7990
7991target_link_libraries(slice_hash_table_test
7992 ${_gRPC_ALLTARGETS_LIBRARIES}
7993 grpc_test_util
7994 grpc
7995 gpr_test_util
7996 gpr
7997)
7998
7999endif (gRPC_BUILD_TESTS)
8000if (gRPC_BUILD_TESTS)
8001
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008002add_executable(slice_string_helpers_test
8003 test/core/slice/slice_string_helpers_test.c
8004)
8005
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008006
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008007target_include_directories(slice_string_helpers_test
8008 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8009 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8010 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8011 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008012 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008013 PRIVATE ${ZLIB_ROOT_DIR}
8014 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008015 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008016 PRIVATE ${CARES_INCLUDE_DIR}
8017 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8018 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008019 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8020)
8021
8022target_link_libraries(slice_string_helpers_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008023 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008024 grpc_test_util
8025 grpc
8026 gpr_test_util
8027 gpr
8028)
8029
8030endif (gRPC_BUILD_TESTS)
8031if (gRPC_BUILD_TESTS)
8032
8033add_executable(slice_test
8034 test/core/slice/slice_test.c
8035)
8036
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008037
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008038target_include_directories(slice_test
8039 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8040 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8041 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8042 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008043 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008044 PRIVATE ${ZLIB_ROOT_DIR}
8045 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008046 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008047 PRIVATE ${CARES_INCLUDE_DIR}
8048 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8049 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008050 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8051)
8052
8053target_link_libraries(slice_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008054 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008055 grpc_test_util
8056 grpc
8057 gpr_test_util
8058 gpr
8059)
8060
8061endif (gRPC_BUILD_TESTS)
8062if (gRPC_BUILD_TESTS)
8063
8064add_executable(sockaddr_resolver_test
8065 test/core/client_channel/resolvers/sockaddr_resolver_test.c
8066)
8067
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008068
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008069target_include_directories(sockaddr_resolver_test
8070 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8071 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8072 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8073 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008074 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008075 PRIVATE ${ZLIB_ROOT_DIR}
8076 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008077 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008078 PRIVATE ${CARES_INCLUDE_DIR}
8079 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8080 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008081 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8082)
8083
8084target_link_libraries(sockaddr_resolver_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008085 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008086 grpc_test_util
8087 grpc
8088 gpr_test_util
8089 gpr
8090)
8091
8092endif (gRPC_BUILD_TESTS)
8093if (gRPC_BUILD_TESTS)
8094
8095add_executable(sockaddr_utils_test
8096 test/core/iomgr/sockaddr_utils_test.c
8097)
8098
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008099
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008100target_include_directories(sockaddr_utils_test
8101 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8102 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8103 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8104 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008105 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008106 PRIVATE ${ZLIB_ROOT_DIR}
8107 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008108 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008109 PRIVATE ${CARES_INCLUDE_DIR}
8110 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8111 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008112 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8113)
8114
8115target_link_libraries(sockaddr_utils_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008116 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008117 grpc_test_util
8118 grpc
8119 gpr_test_util
8120 gpr
8121)
8122
8123endif (gRPC_BUILD_TESTS)
8124if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008125if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008126
8127add_executable(socket_utils_test
8128 test/core/iomgr/socket_utils_test.c
8129)
8130
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008131
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008132target_include_directories(socket_utils_test
8133 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8134 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8135 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8136 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008137 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008138 PRIVATE ${ZLIB_ROOT_DIR}
8139 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008140 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008141 PRIVATE ${CARES_INCLUDE_DIR}
8142 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8143 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008144 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8145)
8146
8147target_link_libraries(socket_utils_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008148 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008149 grpc_test_util
8150 grpc
8151 gpr_test_util
8152 gpr
8153)
8154
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008155endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008156endif (gRPC_BUILD_TESTS)
8157if (gRPC_BUILD_TESTS)
8158
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008159add_executable(status_conversion_test
8160 test/core/transport/status_conversion_test.c
8161)
8162
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008163
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008164target_include_directories(status_conversion_test
8165 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8166 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8167 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8168 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008169 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008170 PRIVATE ${ZLIB_ROOT_DIR}
8171 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008172 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008173 PRIVATE ${CARES_INCLUDE_DIR}
8174 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8175 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008176 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8177)
8178
8179target_link_libraries(status_conversion_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008180 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008181 grpc_test_util
8182 grpc
8183 gpr_test_util
8184 gpr
8185)
8186
8187endif (gRPC_BUILD_TESTS)
8188if (gRPC_BUILD_TESTS)
Craig Tiller295df6d2017-03-01 11:28:24 -08008189
Muxi Yanc1f837c2017-05-04 18:17:13 -07008190add_executable(stream_compression_test
8191 test/core/compression/stream_compression_test.c
8192)
8193
8194
8195target_include_directories(stream_compression_test
8196 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8197 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8198 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8199 PRIVATE ${PROTOBUF_ROOT_DIR}/src
8200 PRIVATE ${BENCHMARK_ROOT_DIR}/include
8201 PRIVATE ${ZLIB_ROOT_DIR}
8202 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
8203 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
8204 PRIVATE ${CARES_INCLUDE_DIR}
8205 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8206 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
8207 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8208)
8209
8210target_link_libraries(stream_compression_test
8211 ${_gRPC_ALLTARGETS_LIBRARIES}
8212 grpc_test_util
8213 grpc
8214 gpr_test_util
8215 gpr
8216)
8217
8218endif (gRPC_BUILD_TESTS)
8219if (gRPC_BUILD_TESTS)
8220
Craig Tiller295df6d2017-03-01 11:28:24 -08008221add_executable(stream_owned_slice_test
8222 test/core/transport/stream_owned_slice_test.c
8223)
8224
8225
8226target_include_directories(stream_owned_slice_test
8227 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8228 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8229 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8230 PRIVATE ${PROTOBUF_ROOT_DIR}/src
8231 PRIVATE ${BENCHMARK_ROOT_DIR}/include
8232 PRIVATE ${ZLIB_ROOT_DIR}
8233 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008234 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008235 PRIVATE ${CARES_INCLUDE_DIR}
8236 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8237 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller295df6d2017-03-01 11:28:24 -08008238 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8239)
8240
8241target_link_libraries(stream_owned_slice_test
8242 ${_gRPC_ALLTARGETS_LIBRARIES}
8243 grpc_test_util
8244 grpc
8245 gpr_test_util
8246 gpr
8247)
8248
8249endif (gRPC_BUILD_TESTS)
8250if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008251if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Craig Tiller7c70b6c2017-01-23 07:48:42 -08008252
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008253add_executable(tcp_client_posix_test
8254 test/core/iomgr/tcp_client_posix_test.c
8255)
8256
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008257
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008258target_include_directories(tcp_client_posix_test
8259 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8260 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8261 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8262 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008263 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008264 PRIVATE ${ZLIB_ROOT_DIR}
8265 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008266 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008267 PRIVATE ${CARES_INCLUDE_DIR}
8268 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8269 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008270 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8271)
8272
8273target_link_libraries(tcp_client_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008274 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008275 grpc_test_util
8276 grpc
8277 gpr_test_util
8278 gpr
8279)
8280
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008281endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008282endif (gRPC_BUILD_TESTS)
8283if (gRPC_BUILD_TESTS)
8284
murgatroid991191b722017-02-08 11:56:52 -08008285add_executable(tcp_client_uv_test
8286 test/core/iomgr/tcp_client_uv_test.c
8287)
8288
murgatroid9998cdf3b2017-02-23 14:59:45 -08008289
murgatroid991191b722017-02-08 11:56:52 -08008290target_include_directories(tcp_client_uv_test
8291 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8292 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8293 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8294 PRIVATE ${PROTOBUF_ROOT_DIR}/src
murgatroid9998cdf3b2017-02-23 14:59:45 -08008295 PRIVATE ${BENCHMARK_ROOT_DIR}/include
murgatroid991191b722017-02-08 11:56:52 -08008296 PRIVATE ${ZLIB_ROOT_DIR}
8297 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008298 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008299 PRIVATE ${CARES_INCLUDE_DIR}
8300 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8301 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
murgatroid991191b722017-02-08 11:56:52 -08008302 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8303)
8304
8305target_link_libraries(tcp_client_uv_test
murgatroid9998cdf3b2017-02-23 14:59:45 -08008306 ${_gRPC_ALLTARGETS_LIBRARIES}
murgatroid991191b722017-02-08 11:56:52 -08008307 grpc_test_util
8308 grpc
8309 gpr_test_util
8310 gpr
8311)
8312
8313endif (gRPC_BUILD_TESTS)
8314if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008315if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008316
8317add_executable(tcp_posix_test
8318 test/core/iomgr/tcp_posix_test.c
8319)
8320
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008321
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008322target_include_directories(tcp_posix_test
8323 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8324 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8325 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8326 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008327 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008328 PRIVATE ${ZLIB_ROOT_DIR}
8329 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008330 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008331 PRIVATE ${CARES_INCLUDE_DIR}
8332 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8333 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008334 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8335)
8336
8337target_link_libraries(tcp_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008338 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008339 grpc_test_util
8340 grpc
8341 gpr_test_util
8342 gpr
8343)
8344
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008345endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008346endif (gRPC_BUILD_TESTS)
8347if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008348if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008349
8350add_executable(tcp_server_posix_test
8351 test/core/iomgr/tcp_server_posix_test.c
8352)
8353
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008354
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008355target_include_directories(tcp_server_posix_test
8356 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8357 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8358 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8359 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008360 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008361 PRIVATE ${ZLIB_ROOT_DIR}
8362 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008363 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008364 PRIVATE ${CARES_INCLUDE_DIR}
8365 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8366 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008367 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8368)
8369
8370target_link_libraries(tcp_server_posix_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008371 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008372 grpc_test_util
8373 grpc
8374 gpr_test_util
8375 gpr
8376)
8377
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008378endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008379endif (gRPC_BUILD_TESTS)
8380if (gRPC_BUILD_TESTS)
8381
murgatroid991191b722017-02-08 11:56:52 -08008382add_executable(tcp_server_uv_test
8383 test/core/iomgr/tcp_server_uv_test.c
8384)
8385
murgatroid9998cdf3b2017-02-23 14:59:45 -08008386
murgatroid991191b722017-02-08 11:56:52 -08008387target_include_directories(tcp_server_uv_test
8388 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8389 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8390 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8391 PRIVATE ${PROTOBUF_ROOT_DIR}/src
murgatroid9998cdf3b2017-02-23 14:59:45 -08008392 PRIVATE ${BENCHMARK_ROOT_DIR}/include
murgatroid991191b722017-02-08 11:56:52 -08008393 PRIVATE ${ZLIB_ROOT_DIR}
8394 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008395 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008396 PRIVATE ${CARES_INCLUDE_DIR}
8397 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8398 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
murgatroid991191b722017-02-08 11:56:52 -08008399 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8400)
8401
8402target_link_libraries(tcp_server_uv_test
murgatroid9998cdf3b2017-02-23 14:59:45 -08008403 ${_gRPC_ALLTARGETS_LIBRARIES}
murgatroid991191b722017-02-08 11:56:52 -08008404 grpc_test_util
8405 grpc
8406 gpr_test_util
8407 gpr
8408)
8409
8410endif (gRPC_BUILD_TESTS)
8411if (gRPC_BUILD_TESTS)
8412
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008413add_executable(time_averaged_stats_test
8414 test/core/iomgr/time_averaged_stats_test.c
8415)
8416
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008417
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008418target_include_directories(time_averaged_stats_test
8419 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8420 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8421 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8422 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008423 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008424 PRIVATE ${ZLIB_ROOT_DIR}
8425 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008426 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008427 PRIVATE ${CARES_INCLUDE_DIR}
8428 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8429 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008430 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8431)
8432
8433target_link_libraries(time_averaged_stats_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008434 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008435 grpc_test_util
8436 grpc
8437 gpr_test_util
8438 gpr
8439)
8440
8441endif (gRPC_BUILD_TESTS)
8442if (gRPC_BUILD_TESTS)
8443
8444add_executable(timeout_encoding_test
8445 test/core/transport/timeout_encoding_test.c
8446)
8447
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008448
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008449target_include_directories(timeout_encoding_test
8450 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8451 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8452 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8453 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008454 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008455 PRIVATE ${ZLIB_ROOT_DIR}
8456 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008457 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008458 PRIVATE ${CARES_INCLUDE_DIR}
8459 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8460 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008461 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8462)
8463
8464target_link_libraries(timeout_encoding_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008465 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008466 grpc_test_util
8467 grpc
8468 gpr_test_util
8469 gpr
8470)
8471
8472endif (gRPC_BUILD_TESTS)
8473if (gRPC_BUILD_TESTS)
8474
8475add_executable(timer_heap_test
8476 test/core/iomgr/timer_heap_test.c
8477)
8478
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008479
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008480target_include_directories(timer_heap_test
8481 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8482 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8483 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8484 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008485 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008486 PRIVATE ${ZLIB_ROOT_DIR}
8487 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008488 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008489 PRIVATE ${CARES_INCLUDE_DIR}
8490 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8491 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008492 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8493)
8494
8495target_link_libraries(timer_heap_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008496 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008497 grpc_test_util
8498 grpc
8499 gpr_test_util
8500 gpr
8501)
8502
8503endif (gRPC_BUILD_TESTS)
8504if (gRPC_BUILD_TESTS)
8505
8506add_executable(timer_list_test
8507 test/core/iomgr/timer_list_test.c
8508)
8509
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008510
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008511target_include_directories(timer_list_test
8512 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8513 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8514 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8515 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008516 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008517 PRIVATE ${ZLIB_ROOT_DIR}
8518 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008519 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008520 PRIVATE ${CARES_INCLUDE_DIR}
8521 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8522 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008523 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8524)
8525
8526target_link_libraries(timer_list_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008527 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008528 grpc_test_util
8529 grpc
8530 gpr_test_util
8531 gpr
8532)
8533
8534endif (gRPC_BUILD_TESTS)
8535if (gRPC_BUILD_TESTS)
8536
8537add_executable(transport_connectivity_state_test
8538 test/core/transport/connectivity_state_test.c
8539)
8540
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008541
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008542target_include_directories(transport_connectivity_state_test
8543 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8544 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8545 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8546 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008547 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008548 PRIVATE ${ZLIB_ROOT_DIR}
8549 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008550 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008551 PRIVATE ${CARES_INCLUDE_DIR}
8552 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8553 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008554 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8555)
8556
8557target_link_libraries(transport_connectivity_state_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008558 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008559 grpc_test_util
8560 grpc
8561 gpr_test_util
8562 gpr
8563)
8564
8565endif (gRPC_BUILD_TESTS)
8566if (gRPC_BUILD_TESTS)
8567
8568add_executable(transport_metadata_test
8569 test/core/transport/metadata_test.c
8570)
8571
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008572
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008573target_include_directories(transport_metadata_test
8574 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8575 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8576 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8577 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008578 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008579 PRIVATE ${ZLIB_ROOT_DIR}
8580 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008581 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008582 PRIVATE ${CARES_INCLUDE_DIR}
8583 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8584 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008585 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8586)
8587
8588target_link_libraries(transport_metadata_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008589 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008590 grpc_test_util
8591 grpc
8592 gpr_test_util
8593 gpr
8594)
8595
8596endif (gRPC_BUILD_TESTS)
8597if (gRPC_BUILD_TESTS)
8598
8599add_executable(transport_pid_controller_test
8600 test/core/transport/pid_controller_test.c
8601)
8602
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008603
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008604target_include_directories(transport_pid_controller_test
8605 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8606 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8607 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8608 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008609 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008610 PRIVATE ${ZLIB_ROOT_DIR}
8611 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008612 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008613 PRIVATE ${CARES_INCLUDE_DIR}
8614 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8615 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008616 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8617)
8618
8619target_link_libraries(transport_pid_controller_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008620 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008621 grpc_test_util
8622 grpc
8623 gpr_test_util
8624 gpr
8625)
8626
8627endif (gRPC_BUILD_TESTS)
8628if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008629if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008630
8631add_executable(transport_security_test
8632 test/core/tsi/transport_security_test.c
8633)
8634
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008635
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008636target_include_directories(transport_security_test
8637 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8638 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8639 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8640 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008641 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008642 PRIVATE ${ZLIB_ROOT_DIR}
8643 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008644 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008645 PRIVATE ${CARES_INCLUDE_DIR}
8646 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8647 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008648 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8649)
8650
8651target_link_libraries(transport_security_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008652 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008653 grpc_test_util
8654 grpc
8655 gpr_test_util
8656 gpr
8657)
8658
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008659endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008660endif (gRPC_BUILD_TESTS)
8661if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008662if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008663
8664add_executable(udp_server_test
8665 test/core/iomgr/udp_server_test.c
8666)
8667
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008668
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008669target_include_directories(udp_server_test
8670 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8671 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8672 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8673 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008674 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008675 PRIVATE ${ZLIB_ROOT_DIR}
8676 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008677 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008678 PRIVATE ${CARES_INCLUDE_DIR}
8679 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8680 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008681 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8682)
8683
8684target_link_libraries(udp_server_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008685 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008686 grpc_test_util
8687 grpc
8688 gpr_test_util
8689 gpr
8690)
8691
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008692endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008693endif (gRPC_BUILD_TESTS)
8694if (gRPC_BUILD_TESTS)
8695
8696add_executable(uri_parser_test
8697 test/core/client_channel/uri_parser_test.c
8698)
8699
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008700
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008701target_include_directories(uri_parser_test
8702 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8703 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8704 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8705 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008706 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008707 PRIVATE ${ZLIB_ROOT_DIR}
8708 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008709 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008710 PRIVATE ${CARES_INCLUDE_DIR}
8711 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8712 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008713 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8714)
8715
8716target_link_libraries(uri_parser_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008717 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008718 grpc_test_util
8719 grpc
8720 gpr_test_util
8721 gpr
8722)
8723
8724endif (gRPC_BUILD_TESTS)
8725if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008726if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008727
8728add_executable(wakeup_fd_cv_test
8729 test/core/iomgr/wakeup_fd_cv_test.c
8730)
8731
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008732
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008733target_include_directories(wakeup_fd_cv_test
8734 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8735 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8736 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8737 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008738 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008739 PRIVATE ${ZLIB_ROOT_DIR}
8740 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008741 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008742 PRIVATE ${CARES_INCLUDE_DIR}
8743 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8744 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008745 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
8746)
8747
8748target_link_libraries(wakeup_fd_cv_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008749 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008750 grpc_test_util
8751 grpc
8752 gpr_test_util
8753 gpr
8754)
8755
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008756endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008757endif (gRPC_BUILD_TESTS)
8758if (gRPC_BUILD_TESTS)
8759
8760add_executable(alarm_cpp_test
8761 test/cpp/common/alarm_cpp_test.cc
Ken Payson975b5102017-03-30 17:38:40 -07008762 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07008763 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008764)
8765
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008766
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008767target_include_directories(alarm_cpp_test
8768 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8769 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8770 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8771 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008772 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008773 PRIVATE ${ZLIB_ROOT_DIR}
8774 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008775 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008776 PRIVATE ${CARES_INCLUDE_DIR}
8777 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8778 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008779 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07008780 PRIVATE third_party/googletest/googletest/include
8781 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07008782 PRIVATE third_party/googletest/googlemock/include
8783 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008784 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008785)
8786
8787target_link_libraries(alarm_cpp_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008788 ${_gRPC_PROTOBUF_LIBRARIES}
8789 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008790 grpc++_test_util
8791 grpc_test_util
8792 grpc++
8793 grpc
8794 gpr_test_util
8795 gpr
8796 ${_gRPC_GFLAGS_LIBRARIES}
8797)
8798
8799endif (gRPC_BUILD_TESTS)
8800if (gRPC_BUILD_TESTS)
8801
8802add_executable(async_end2end_test
8803 test/cpp/end2end/async_end2end_test.cc
Ken Payson975b5102017-03-30 17:38:40 -07008804 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07008805 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008806)
8807
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008808
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008809target_include_directories(async_end2end_test
8810 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8811 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8812 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8813 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008814 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008815 PRIVATE ${ZLIB_ROOT_DIR}
8816 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008817 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008818 PRIVATE ${CARES_INCLUDE_DIR}
8819 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8820 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008821 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07008822 PRIVATE third_party/googletest/googletest/include
8823 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07008824 PRIVATE third_party/googletest/googlemock/include
8825 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008826 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008827)
8828
8829target_link_libraries(async_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008830 ${_gRPC_PROTOBUF_LIBRARIES}
8831 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008832 grpc++_test_util
8833 grpc_test_util
8834 grpc++
8835 grpc
8836 gpr_test_util
8837 gpr
8838 ${_gRPC_GFLAGS_LIBRARIES}
8839)
8840
8841endif (gRPC_BUILD_TESTS)
8842if (gRPC_BUILD_TESTS)
8843
8844add_executable(auth_property_iterator_test
8845 test/cpp/common/auth_property_iterator_test.cc
Ken Payson975b5102017-03-30 17:38:40 -07008846 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07008847 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008848)
8849
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008850
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008851target_include_directories(auth_property_iterator_test
8852 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8853 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8854 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8855 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008856 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008857 PRIVATE ${ZLIB_ROOT_DIR}
8858 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008859 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008860 PRIVATE ${CARES_INCLUDE_DIR}
8861 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8862 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008863 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07008864 PRIVATE third_party/googletest/googletest/include
8865 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07008866 PRIVATE third_party/googletest/googlemock/include
8867 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008868 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008869)
8870
8871target_link_libraries(auth_property_iterator_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008872 ${_gRPC_PROTOBUF_LIBRARIES}
8873 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008874 grpc++_test_util
8875 grpc_test_util
8876 grpc++
8877 grpc
8878 gpr_test_util
8879 gpr
8880 ${_gRPC_GFLAGS_LIBRARIES}
8881)
8882
8883endif (gRPC_BUILD_TESTS)
8884if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01008885if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01008886
Craig Tiller9202b3f2017-03-12 22:30:38 -07008887add_executable(bm_arena
8888 test/cpp/microbenchmarks/bm_arena.cc
Ken Payson975b5102017-03-30 17:38:40 -07008889 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07008890 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller9202b3f2017-03-12 22:30:38 -07008891)
8892
8893
8894target_include_directories(bm_arena
8895 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8896 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8897 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8898 PRIVATE ${PROTOBUF_ROOT_DIR}/src
8899 PRIVATE ${BENCHMARK_ROOT_DIR}/include
8900 PRIVATE ${ZLIB_ROOT_DIR}
8901 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008902 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008903 PRIVATE ${CARES_INCLUDE_DIR}
8904 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8905 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller9202b3f2017-03-12 22:30:38 -07008906 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07008907 PRIVATE third_party/googletest/googletest/include
8908 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07008909 PRIVATE third_party/googletest/googlemock/include
8910 PRIVATE third_party/googletest/googlemock
Craig Tiller9202b3f2017-03-12 22:30:38 -07008911 PRIVATE ${_gRPC_PROTO_GENS_DIR}
8912)
8913
8914target_link_libraries(bm_arena
8915 ${_gRPC_PROTOBUF_LIBRARIES}
8916 ${_gRPC_ALLTARGETS_LIBRARIES}
8917 grpc_benchmark
8918 benchmark
8919 grpc++_test_util
8920 grpc_test_util
8921 grpc++
8922 grpc
8923 gpr_test_util
8924 gpr
8925 ${_gRPC_GFLAGS_LIBRARIES}
8926)
8927
8928endif()
8929endif (gRPC_BUILD_TESTS)
8930if (gRPC_BUILD_TESTS)
8931if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
8932
Craig Tillerfd044b82017-02-15 16:15:48 -08008933add_executable(bm_call_create
8934 test/cpp/microbenchmarks/bm_call_create.cc
Ken Payson975b5102017-03-30 17:38:40 -07008935 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07008936 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tillerfd044b82017-02-15 16:15:48 -08008937)
8938
8939
8940target_include_directories(bm_call_create
8941 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8942 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8943 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8944 PRIVATE ${PROTOBUF_ROOT_DIR}/src
8945 PRIVATE ${BENCHMARK_ROOT_DIR}/include
8946 PRIVATE ${ZLIB_ROOT_DIR}
8947 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008948 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008949 PRIVATE ${CARES_INCLUDE_DIR}
8950 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8951 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tillerfd044b82017-02-15 16:15:48 -08008952 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07008953 PRIVATE third_party/googletest/googletest/include
8954 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07008955 PRIVATE third_party/googletest/googlemock/include
8956 PRIVATE third_party/googletest/googlemock
Craig Tillerfd044b82017-02-15 16:15:48 -08008957 PRIVATE ${_gRPC_PROTO_GENS_DIR}
8958)
8959
8960target_link_libraries(bm_call_create
8961 ${_gRPC_PROTOBUF_LIBRARIES}
8962 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08008963 grpc_benchmark
Craig Tillerfd044b82017-02-15 16:15:48 -08008964 benchmark
8965 grpc++_test_util
8966 grpc_test_util
8967 grpc++
8968 grpc
8969 gpr_test_util
8970 gpr
8971 ${_gRPC_GFLAGS_LIBRARIES}
8972)
8973
8974endif()
8975endif (gRPC_BUILD_TESTS)
8976if (gRPC_BUILD_TESTS)
8977if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
8978
Craig Tiller523d54b2017-02-23 08:52:38 -08008979add_executable(bm_chttp2_hpack
8980 test/cpp/microbenchmarks/bm_chttp2_hpack.cc
Ken Payson975b5102017-03-30 17:38:40 -07008981 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07008982 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller2f792d92017-02-22 16:26:33 -08008983)
8984
8985
Craig Tiller523d54b2017-02-23 08:52:38 -08008986target_include_directories(bm_chttp2_hpack
Craig Tiller2f792d92017-02-22 16:26:33 -08008987 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
8988 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
8989 PRIVATE ${BORINGSSL_ROOT_DIR}/include
8990 PRIVATE ${PROTOBUF_ROOT_DIR}/src
8991 PRIVATE ${BENCHMARK_ROOT_DIR}/include
8992 PRIVATE ${ZLIB_ROOT_DIR}
8993 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07008994 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07008995 PRIVATE ${CARES_INCLUDE_DIR}
8996 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
8997 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller2f792d92017-02-22 16:26:33 -08008998 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07008999 PRIVATE third_party/googletest/googletest/include
9000 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009001 PRIVATE third_party/googletest/googlemock/include
9002 PRIVATE third_party/googletest/googlemock
Craig Tiller2f792d92017-02-22 16:26:33 -08009003 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9004)
9005
Craig Tiller523d54b2017-02-23 08:52:38 -08009006target_link_libraries(bm_chttp2_hpack
Craig Tiller2f792d92017-02-22 16:26:33 -08009007 ${_gRPC_PROTOBUF_LIBRARIES}
9008 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08009009 grpc_benchmark
Craig Tiller2f792d92017-02-22 16:26:33 -08009010 benchmark
9011 grpc++_test_util
9012 grpc_test_util
9013 grpc++
9014 grpc
9015 gpr_test_util
9016 gpr
9017 ${_gRPC_GFLAGS_LIBRARIES}
9018)
9019
9020endif()
9021endif (gRPC_BUILD_TESTS)
9022if (gRPC_BUILD_TESTS)
9023if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9024
Craig Tiller18f09a02017-02-23 17:10:04 -08009025add_executable(bm_chttp2_transport
9026 test/cpp/microbenchmarks/bm_chttp2_transport.cc
Ken Payson975b5102017-03-30 17:38:40 -07009027 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009028 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller18f09a02017-02-23 17:10:04 -08009029)
9030
9031
9032target_include_directories(bm_chttp2_transport
9033 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9034 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9035 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9036 PRIVATE ${PROTOBUF_ROOT_DIR}/src
9037 PRIVATE ${BENCHMARK_ROOT_DIR}/include
9038 PRIVATE ${ZLIB_ROOT_DIR}
9039 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng937302b2017-03-22 10:54:31 -07009040 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
9041 PRIVATE ${CARES_INCLUDE_DIR}
9042 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9043 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller18f09a02017-02-23 17:10:04 -08009044 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009045 PRIVATE third_party/googletest/googletest/include
9046 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009047 PRIVATE third_party/googletest/googlemock/include
9048 PRIVATE third_party/googletest/googlemock
Craig Tiller18f09a02017-02-23 17:10:04 -08009049 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9050)
9051
9052target_link_libraries(bm_chttp2_transport
9053 ${_gRPC_PROTOBUF_LIBRARIES}
9054 ${_gRPC_ALLTARGETS_LIBRARIES}
9055 grpc_benchmark
9056 benchmark
9057 grpc++_test_util
9058 grpc_test_util
9059 grpc++
9060 grpc
9061 gpr_test_util
9062 gpr
9063 ${_gRPC_GFLAGS_LIBRARIES}
9064)
9065
9066endif()
9067endif (gRPC_BUILD_TESTS)
9068if (gRPC_BUILD_TESTS)
9069if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9070
Craig Tillerb3f34b62017-02-13 10:29:33 -08009071add_executable(bm_closure
9072 test/cpp/microbenchmarks/bm_closure.cc
Ken Payson975b5102017-03-30 17:38:40 -07009073 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009074 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tillerb3f34b62017-02-13 10:29:33 -08009075)
9076
9077
9078target_include_directories(bm_closure
9079 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9080 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9081 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9082 PRIVATE ${PROTOBUF_ROOT_DIR}/src
9083 PRIVATE ${BENCHMARK_ROOT_DIR}/include
9084 PRIVATE ${ZLIB_ROOT_DIR}
9085 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009086 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009087 PRIVATE ${CARES_INCLUDE_DIR}
9088 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9089 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tillerb3f34b62017-02-13 10:29:33 -08009090 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009091 PRIVATE third_party/googletest/googletest/include
9092 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009093 PRIVATE third_party/googletest/googlemock/include
9094 PRIVATE third_party/googletest/googlemock
Craig Tillerb3f34b62017-02-13 10:29:33 -08009095 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9096)
9097
9098target_link_libraries(bm_closure
9099 ${_gRPC_PROTOBUF_LIBRARIES}
9100 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08009101 grpc_benchmark
Craig Tillerb3f34b62017-02-13 10:29:33 -08009102 benchmark
Craig Tiller510f38a2017-02-24 17:00:19 -08009103 grpc++_test_util
Craig Tillerb3f34b62017-02-13 10:29:33 -08009104 grpc_test_util
Craig Tiller510f38a2017-02-24 17:00:19 -08009105 grpc++
Craig Tillerb3f34b62017-02-13 10:29:33 -08009106 grpc
9107 gpr_test_util
9108 gpr
9109 ${_gRPC_GFLAGS_LIBRARIES}
9110)
9111
9112endif()
9113endif (gRPC_BUILD_TESTS)
9114if (gRPC_BUILD_TESTS)
9115if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9116
Craig Tiller14ae5382017-02-14 12:43:50 -08009117add_executable(bm_cq
9118 test/cpp/microbenchmarks/bm_cq.cc
Ken Payson975b5102017-03-30 17:38:40 -07009119 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009120 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller14ae5382017-02-14 12:43:50 -08009121)
9122
9123
9124target_include_directories(bm_cq
9125 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9126 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9127 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9128 PRIVATE ${PROTOBUF_ROOT_DIR}/src
9129 PRIVATE ${BENCHMARK_ROOT_DIR}/include
9130 PRIVATE ${ZLIB_ROOT_DIR}
9131 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009132 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009133 PRIVATE ${CARES_INCLUDE_DIR}
9134 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9135 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller14ae5382017-02-14 12:43:50 -08009136 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009137 PRIVATE third_party/googletest/googletest/include
9138 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009139 PRIVATE third_party/googletest/googlemock/include
9140 PRIVATE third_party/googletest/googlemock
Craig Tiller14ae5382017-02-14 12:43:50 -08009141 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9142)
9143
9144target_link_libraries(bm_cq
9145 ${_gRPC_PROTOBUF_LIBRARIES}
9146 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08009147 grpc_benchmark
Craig Tiller14ae5382017-02-14 12:43:50 -08009148 benchmark
9149 grpc++_test_util
9150 grpc_test_util
9151 grpc++
9152 grpc
9153 gpr_test_util
9154 gpr
9155 ${_gRPC_GFLAGS_LIBRARIES}
9156)
9157
9158endif()
9159endif (gRPC_BUILD_TESTS)
9160if (gRPC_BUILD_TESTS)
9161if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9162
Sree Kuchibhotla3c754e42017-04-04 13:49:08 -07009163add_executable(bm_cq_multiple_threads
9164 test/cpp/microbenchmarks/bm_cq_multiple_threads.cc
Craig Tiller2d111bd2017-04-11 09:18:14 -07009165 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009166 third_party/googletest/googlemock/src/gmock-all.cc
Sree Kuchibhotla3c754e42017-04-04 13:49:08 -07009167)
9168
9169
9170target_include_directories(bm_cq_multiple_threads
9171 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9172 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9173 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9174 PRIVATE ${PROTOBUF_ROOT_DIR}/src
9175 PRIVATE ${BENCHMARK_ROOT_DIR}/include
9176 PRIVATE ${ZLIB_ROOT_DIR}
9177 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9178 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
9179 PRIVATE ${CARES_INCLUDE_DIR}
9180 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9181 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
9182 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Craig Tiller2d111bd2017-04-11 09:18:14 -07009183 PRIVATE third_party/googletest/googletest/include
9184 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009185 PRIVATE third_party/googletest/googlemock/include
9186 PRIVATE third_party/googletest/googlemock
Sree Kuchibhotla3c754e42017-04-04 13:49:08 -07009187 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9188)
9189
9190target_link_libraries(bm_cq_multiple_threads
9191 ${_gRPC_PROTOBUF_LIBRARIES}
9192 ${_gRPC_ALLTARGETS_LIBRARIES}
9193 grpc_benchmark
9194 benchmark
9195 grpc++_test_util
9196 grpc_test_util
9197 grpc++
9198 grpc
9199 gpr_test_util
9200 gpr
9201 ${_gRPC_GFLAGS_LIBRARIES}
9202)
9203
9204endif()
9205endif (gRPC_BUILD_TESTS)
9206if (gRPC_BUILD_TESTS)
9207if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9208
Craig Tiller264307f2017-02-16 09:07:45 -08009209add_executable(bm_error
9210 test/cpp/microbenchmarks/bm_error.cc
Ken Payson975b5102017-03-30 17:38:40 -07009211 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009212 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller264307f2017-02-16 09:07:45 -08009213)
9214
9215
9216target_include_directories(bm_error
9217 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9218 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9219 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9220 PRIVATE ${PROTOBUF_ROOT_DIR}/src
9221 PRIVATE ${BENCHMARK_ROOT_DIR}/include
9222 PRIVATE ${ZLIB_ROOT_DIR}
9223 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009224 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009225 PRIVATE ${CARES_INCLUDE_DIR}
9226 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9227 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller264307f2017-02-16 09:07:45 -08009228 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009229 PRIVATE third_party/googletest/googletest/include
9230 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009231 PRIVATE third_party/googletest/googlemock/include
9232 PRIVATE third_party/googletest/googlemock
Craig Tiller264307f2017-02-16 09:07:45 -08009233 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9234)
9235
9236target_link_libraries(bm_error
9237 ${_gRPC_PROTOBUF_LIBRARIES}
9238 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08009239 grpc_benchmark
Craig Tiller264307f2017-02-16 09:07:45 -08009240 benchmark
9241 grpc++_test_util
9242 grpc_test_util
9243 grpc++
9244 grpc
9245 gpr_test_util
9246 gpr
9247 ${_gRPC_GFLAGS_LIBRARIES}
9248)
9249
9250endif()
9251endif (gRPC_BUILD_TESTS)
9252if (gRPC_BUILD_TESTS)
9253if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9254
Craig Tiller12d22e42017-03-03 10:14:20 -08009255add_executable(bm_fullstack_streaming_ping_pong
9256 test/cpp/microbenchmarks/bm_fullstack_streaming_ping_pong.cc
Ken Payson975b5102017-03-30 17:38:40 -07009257 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009258 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009259)
9260
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009261
Craig Tiller12d22e42017-03-03 10:14:20 -08009262target_include_directories(bm_fullstack_streaming_ping_pong
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009263 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9264 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9265 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9266 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009267 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009268 PRIVATE ${ZLIB_ROOT_DIR}
9269 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009270 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009271 PRIVATE ${CARES_INCLUDE_DIR}
9272 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9273 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009274 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009275 PRIVATE third_party/googletest/googletest/include
9276 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009277 PRIVATE third_party/googletest/googlemock/include
9278 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009279 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009280)
9281
Craig Tiller12d22e42017-03-03 10:14:20 -08009282target_link_libraries(bm_fullstack_streaming_ping_pong
9283 ${_gRPC_PROTOBUF_LIBRARIES}
9284 ${_gRPC_ALLTARGETS_LIBRARIES}
9285 grpc_benchmark
9286 benchmark
9287 grpc++_test_util
9288 grpc_test_util
9289 grpc++
9290 grpc
9291 gpr_test_util
9292 gpr
9293 ${_gRPC_GFLAGS_LIBRARIES}
9294)
9295
9296endif()
9297endif (gRPC_BUILD_TESTS)
9298if (gRPC_BUILD_TESTS)
9299if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9300
9301add_executable(bm_fullstack_streaming_pump
9302 test/cpp/microbenchmarks/bm_fullstack_streaming_pump.cc
Ken Payson975b5102017-03-30 17:38:40 -07009303 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009304 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller12d22e42017-03-03 10:14:20 -08009305)
9306
9307
9308target_include_directories(bm_fullstack_streaming_pump
9309 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9310 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9311 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9312 PRIVATE ${PROTOBUF_ROOT_DIR}/src
9313 PRIVATE ${BENCHMARK_ROOT_DIR}/include
9314 PRIVATE ${ZLIB_ROOT_DIR}
9315 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009316 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009317 PRIVATE ${CARES_INCLUDE_DIR}
9318 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9319 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller12d22e42017-03-03 10:14:20 -08009320 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009321 PRIVATE third_party/googletest/googletest/include
9322 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009323 PRIVATE third_party/googletest/googlemock/include
9324 PRIVATE third_party/googletest/googlemock
Craig Tiller12d22e42017-03-03 10:14:20 -08009325 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9326)
9327
9328target_link_libraries(bm_fullstack_streaming_pump
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009329 ${_gRPC_PROTOBUF_LIBRARIES}
9330 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08009331 grpc_benchmark
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009332 benchmark
9333 grpc++_test_util
9334 grpc_test_util
9335 grpc++
9336 grpc
9337 gpr_test_util
9338 gpr
9339 ${_gRPC_GFLAGS_LIBRARIES}
9340)
9341
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009342endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009343endif (gRPC_BUILD_TESTS)
9344if (gRPC_BUILD_TESTS)
Craig Tillerb8e2bca2017-02-16 16:26:51 -08009345if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9346
Craig Tiller52bd4412017-03-03 10:52:22 -08009347add_executable(bm_fullstack_trickle
9348 test/cpp/microbenchmarks/bm_fullstack_trickle.cc
Ken Payson975b5102017-03-30 17:38:40 -07009349 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009350 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller52bd4412017-03-03 10:52:22 -08009351)
9352
9353
9354target_include_directories(bm_fullstack_trickle
9355 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9356 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9357 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9358 PRIVATE ${PROTOBUF_ROOT_DIR}/src
9359 PRIVATE ${BENCHMARK_ROOT_DIR}/include
9360 PRIVATE ${ZLIB_ROOT_DIR}
9361 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009362 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009363 PRIVATE ${CARES_INCLUDE_DIR}
9364 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9365 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller52bd4412017-03-03 10:52:22 -08009366 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009367 PRIVATE third_party/googletest/googletest/include
9368 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009369 PRIVATE third_party/googletest/googlemock/include
9370 PRIVATE third_party/googletest/googlemock
Craig Tiller52bd4412017-03-03 10:52:22 -08009371 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9372)
9373
9374target_link_libraries(bm_fullstack_trickle
9375 ${_gRPC_PROTOBUF_LIBRARIES}
9376 ${_gRPC_ALLTARGETS_LIBRARIES}
9377 grpc_benchmark
9378 benchmark
9379 grpc++_test_util
9380 grpc_test_util
9381 grpc++
9382 grpc
9383 gpr_test_util
9384 gpr
9385 ${_gRPC_GFLAGS_LIBRARIES}
9386)
9387
9388endif()
9389endif (gRPC_BUILD_TESTS)
9390if (gRPC_BUILD_TESTS)
9391if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9392
Craig Tiller62ac65b2017-03-03 09:57:43 -08009393add_executable(bm_fullstack_unary_ping_pong
9394 test/cpp/microbenchmarks/bm_fullstack_unary_ping_pong.cc
Ken Payson975b5102017-03-30 17:38:40 -07009395 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009396 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller62ac65b2017-03-03 09:57:43 -08009397)
9398
9399
9400target_include_directories(bm_fullstack_unary_ping_pong
9401 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9402 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9403 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9404 PRIVATE ${PROTOBUF_ROOT_DIR}/src
9405 PRIVATE ${BENCHMARK_ROOT_DIR}/include
9406 PRIVATE ${ZLIB_ROOT_DIR}
9407 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009408 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009409 PRIVATE ${CARES_INCLUDE_DIR}
9410 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9411 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller62ac65b2017-03-03 09:57:43 -08009412 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009413 PRIVATE third_party/googletest/googletest/include
9414 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009415 PRIVATE third_party/googletest/googlemock/include
9416 PRIVATE third_party/googletest/googlemock
Craig Tiller62ac65b2017-03-03 09:57:43 -08009417 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9418)
9419
9420target_link_libraries(bm_fullstack_unary_ping_pong
9421 ${_gRPC_PROTOBUF_LIBRARIES}
9422 ${_gRPC_ALLTARGETS_LIBRARIES}
9423 grpc_benchmark
9424 benchmark
9425 grpc++_test_util
9426 grpc_test_util
9427 grpc++
9428 grpc
9429 gpr_test_util
9430 gpr
9431 ${_gRPC_GFLAGS_LIBRARIES}
9432)
9433
9434endif()
9435endif (gRPC_BUILD_TESTS)
9436if (gRPC_BUILD_TESTS)
9437if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9438
Craig Tillerb8e2bca2017-02-16 16:26:51 -08009439add_executable(bm_metadata
9440 test/cpp/microbenchmarks/bm_metadata.cc
Ken Payson975b5102017-03-30 17:38:40 -07009441 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009442 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tillerb8e2bca2017-02-16 16:26:51 -08009443)
9444
9445
9446target_include_directories(bm_metadata
9447 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9448 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9449 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9450 PRIVATE ${PROTOBUF_ROOT_DIR}/src
9451 PRIVATE ${BENCHMARK_ROOT_DIR}/include
9452 PRIVATE ${ZLIB_ROOT_DIR}
9453 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009454 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009455 PRIVATE ${CARES_INCLUDE_DIR}
9456 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9457 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tillerb8e2bca2017-02-16 16:26:51 -08009458 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009459 PRIVATE third_party/googletest/googletest/include
9460 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009461 PRIVATE third_party/googletest/googlemock/include
9462 PRIVATE third_party/googletest/googlemock
Craig Tillerb8e2bca2017-02-16 16:26:51 -08009463 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9464)
9465
9466target_link_libraries(bm_metadata
9467 ${_gRPC_PROTOBUF_LIBRARIES}
9468 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller5e321532017-03-03 08:50:25 -08009469 grpc_benchmark
Craig Tillerb8e2bca2017-02-16 16:26:51 -08009470 benchmark
Craig Tillerad14bce2017-03-09 08:32:01 -08009471 grpc++_test_util
Craig Tillerb8e2bca2017-02-16 16:26:51 -08009472 grpc_test_util
Craig Tillerad14bce2017-03-09 08:32:01 -08009473 grpc++
Craig Tillerb8e2bca2017-02-16 16:26:51 -08009474 grpc
9475 gpr_test_util
9476 gpr
9477 ${_gRPC_GFLAGS_LIBRARIES}
9478)
9479
9480endif()
9481endif (gRPC_BUILD_TESTS)
9482if (gRPC_BUILD_TESTS)
Craig Tiller1128d462017-03-03 16:46:54 -08009483if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
9484
9485add_executable(bm_pollset
9486 test/cpp/microbenchmarks/bm_pollset.cc
Ken Payson975b5102017-03-30 17:38:40 -07009487 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009488 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller1128d462017-03-03 16:46:54 -08009489)
9490
9491
9492target_include_directories(bm_pollset
9493 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9494 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9495 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9496 PRIVATE ${PROTOBUF_ROOT_DIR}/src
9497 PRIVATE ${BENCHMARK_ROOT_DIR}/include
9498 PRIVATE ${ZLIB_ROOT_DIR}
9499 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009500 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009501 PRIVATE ${CARES_INCLUDE_DIR}
9502 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9503 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller1128d462017-03-03 16:46:54 -08009504 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009505 PRIVATE third_party/googletest/googletest/include
9506 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009507 PRIVATE third_party/googletest/googlemock/include
9508 PRIVATE third_party/googletest/googlemock
Craig Tiller1128d462017-03-03 16:46:54 -08009509 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9510)
9511
9512target_link_libraries(bm_pollset
9513 ${_gRPC_PROTOBUF_LIBRARIES}
9514 ${_gRPC_ALLTARGETS_LIBRARIES}
9515 grpc_benchmark
9516 benchmark
Craig Tiller3a351892017-03-10 07:39:26 -08009517 grpc++_test_util
Craig Tiller1128d462017-03-03 16:46:54 -08009518 grpc_test_util
Craig Tiller3a351892017-03-10 07:39:26 -08009519 grpc++
Craig Tiller1128d462017-03-03 16:46:54 -08009520 grpc
9521 gpr_test_util
9522 gpr
9523 ${_gRPC_GFLAGS_LIBRARIES}
9524)
9525
9526endif()
9527endif (gRPC_BUILD_TESTS)
9528if (gRPC_BUILD_TESTS)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009529
9530add_executable(channel_arguments_test
9531 test/cpp/common/channel_arguments_test.cc
Ken Payson975b5102017-03-30 17:38:40 -07009532 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009533 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009534)
9535
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009536
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009537target_include_directories(channel_arguments_test
9538 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9539 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9540 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9541 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009542 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009543 PRIVATE ${ZLIB_ROOT_DIR}
9544 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009545 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009546 PRIVATE ${CARES_INCLUDE_DIR}
9547 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9548 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009549 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009550 PRIVATE third_party/googletest/googletest/include
9551 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009552 PRIVATE third_party/googletest/googlemock/include
9553 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009554 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009555)
9556
9557target_link_libraries(channel_arguments_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009558 ${_gRPC_PROTOBUF_LIBRARIES}
9559 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009560 grpc++
9561 grpc
9562 gpr
9563 ${_gRPC_GFLAGS_LIBRARIES}
9564)
9565
9566endif (gRPC_BUILD_TESTS)
9567if (gRPC_BUILD_TESTS)
9568
9569add_executable(channel_filter_test
9570 test/cpp/common/channel_filter_test.cc
Ken Payson975b5102017-03-30 17:38:40 -07009571 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009572 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009573)
9574
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009575
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009576target_include_directories(channel_filter_test
9577 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9578 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9579 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9580 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009581 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009582 PRIVATE ${ZLIB_ROOT_DIR}
9583 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009584 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009585 PRIVATE ${CARES_INCLUDE_DIR}
9586 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9587 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009588 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009589 PRIVATE third_party/googletest/googletest/include
9590 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009591 PRIVATE third_party/googletest/googlemock/include
9592 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009593 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009594)
9595
9596target_link_libraries(channel_filter_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009597 ${_gRPC_PROTOBUF_LIBRARIES}
9598 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009599 grpc++
9600 grpc
9601 gpr
9602 ${_gRPC_GFLAGS_LIBRARIES}
9603)
9604
9605endif (gRPC_BUILD_TESTS)
9606if (gRPC_BUILD_TESTS)
9607
9608add_executable(cli_call_test
9609 test/cpp/util/cli_call_test.cc
Ken Payson975b5102017-03-30 17:38:40 -07009610 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009611 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009612)
9613
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009614
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009615target_include_directories(cli_call_test
9616 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9617 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9618 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9619 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009620 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009621 PRIVATE ${ZLIB_ROOT_DIR}
9622 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009623 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009624 PRIVATE ${CARES_INCLUDE_DIR}
9625 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9626 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009627 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009628 PRIVATE third_party/googletest/googletest/include
9629 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009630 PRIVATE third_party/googletest/googlemock/include
9631 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009632 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009633)
9634
9635target_link_libraries(cli_call_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009636 ${_gRPC_PROTOBUF_LIBRARIES}
9637 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009638 grpc_cli_libs
9639 grpc++_test_util
9640 grpc_test_util
9641 grpc++
9642 grpc
9643 gpr_test_util
9644 gpr
9645 ${_gRPC_GFLAGS_LIBRARIES}
9646)
9647
9648endif (gRPC_BUILD_TESTS)
9649if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009650if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009651
9652add_executable(client_crash_test
9653 test/cpp/end2end/client_crash_test.cc
Ken Payson975b5102017-03-30 17:38:40 -07009654 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009655 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009656)
9657
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009658
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009659target_include_directories(client_crash_test
9660 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9661 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9662 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9663 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009664 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009665 PRIVATE ${ZLIB_ROOT_DIR}
9666 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009667 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009668 PRIVATE ${CARES_INCLUDE_DIR}
9669 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9670 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009671 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009672 PRIVATE third_party/googletest/googletest/include
9673 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009674 PRIVATE third_party/googletest/googlemock/include
9675 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009676 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009677)
9678
9679target_link_libraries(client_crash_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009680 ${_gRPC_PROTOBUF_LIBRARIES}
9681 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009682 grpc++_test_util
9683 grpc_test_util
9684 grpc++
9685 grpc
9686 gpr_test_util
9687 gpr
9688 ${_gRPC_GFLAGS_LIBRARIES}
9689)
9690
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009691endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009692endif (gRPC_BUILD_TESTS)
9693if (gRPC_BUILD_TESTS)
9694
9695add_executable(client_crash_test_server
9696 test/cpp/end2end/client_crash_test_server.cc
Ken Payson975b5102017-03-30 17:38:40 -07009697 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009698 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009699)
9700
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009701
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009702target_include_directories(client_crash_test_server
9703 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9704 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9705 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9706 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009707 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009708 PRIVATE ${ZLIB_ROOT_DIR}
9709 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009710 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009711 PRIVATE ${CARES_INCLUDE_DIR}
9712 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9713 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009714 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009715 PRIVATE third_party/googletest/googletest/include
9716 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009717 PRIVATE third_party/googletest/googlemock/include
9718 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009719 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009720)
9721
9722target_link_libraries(client_crash_test_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009723 ${_gRPC_PROTOBUF_LIBRARIES}
9724 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009725 grpc++_test_util
9726 grpc_test_util
9727 grpc++
9728 grpc
9729 gpr_test_util
9730 gpr
9731 ${_gRPC_GFLAGS_LIBRARIES}
9732)
9733
9734endif (gRPC_BUILD_TESTS)
9735if (gRPC_BUILD_TESTS)
9736
David Garcia Quintas87d5a312017-06-06 19:45:58 -07009737add_executable(client_lb_end2end_test
9738 test/cpp/end2end/client_lb_end2end_test.cc
9739 third_party/googletest/googletest/src/gtest-all.cc
9740 third_party/googletest/googlemock/src/gmock-all.cc
9741)
9742
9743
9744target_include_directories(client_lb_end2end_test
9745 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9746 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9747 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9748 PRIVATE ${PROTOBUF_ROOT_DIR}/src
9749 PRIVATE ${BENCHMARK_ROOT_DIR}/include
9750 PRIVATE ${ZLIB_ROOT_DIR}
9751 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
9752 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
9753 PRIVATE ${CARES_INCLUDE_DIR}
9754 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9755 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
9756 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
9757 PRIVATE third_party/googletest/googletest/include
9758 PRIVATE third_party/googletest/googletest
9759 PRIVATE third_party/googletest/googlemock/include
9760 PRIVATE third_party/googletest/googlemock
9761 PRIVATE ${_gRPC_PROTO_GENS_DIR}
9762)
9763
9764target_link_libraries(client_lb_end2end_test
9765 ${_gRPC_PROTOBUF_LIBRARIES}
9766 ${_gRPC_ALLTARGETS_LIBRARIES}
9767 grpc++_test_util
9768 grpc_test_util
9769 grpc++
9770 grpc
9771 gpr_test_util
9772 gpr
9773 ${_gRPC_GFLAGS_LIBRARIES}
9774)
9775
9776endif (gRPC_BUILD_TESTS)
9777if (gRPC_BUILD_TESTS)
9778
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009779add_executable(codegen_test_full
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009780 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.cc
9781 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.cc
9782 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.h
9783 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.h
9784 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
9785 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
9786 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
9787 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
9788 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.cc
9789 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.cc
9790 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.h
9791 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.h
9792 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.cc
9793 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.cc
9794 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.h
9795 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.h
9796 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.cc
9797 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.cc
9798 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.h
9799 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009800 test/cpp/codegen/codegen_test_full.cc
Ken Payson975b5102017-03-30 17:38:40 -07009801 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009802 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009803)
9804
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009805protobuf_generate_grpc_cpp(
9806 src/proto/grpc/testing/control.proto
9807)
9808protobuf_generate_grpc_cpp(
9809 src/proto/grpc/testing/messages.proto
9810)
9811protobuf_generate_grpc_cpp(
9812 src/proto/grpc/testing/payloads.proto
9813)
9814protobuf_generate_grpc_cpp(
9815 src/proto/grpc/testing/services.proto
9816)
9817protobuf_generate_grpc_cpp(
9818 src/proto/grpc/testing/stats.proto
9819)
9820
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009821target_include_directories(codegen_test_full
9822 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9823 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9824 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9825 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009826 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009827 PRIVATE ${ZLIB_ROOT_DIR}
9828 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009829 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009830 PRIVATE ${CARES_INCLUDE_DIR}
9831 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9832 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009833 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009834 PRIVATE third_party/googletest/googletest/include
9835 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009836 PRIVATE third_party/googletest/googlemock/include
9837 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009838 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009839)
9840
9841target_link_libraries(codegen_test_full
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009842 ${_gRPC_PROTOBUF_LIBRARIES}
9843 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009844 grpc++
9845 grpc
9846 gpr
9847 ${_gRPC_GFLAGS_LIBRARIES}
9848)
9849
9850endif (gRPC_BUILD_TESTS)
9851if (gRPC_BUILD_TESTS)
9852
9853add_executable(codegen_test_minimal
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009854 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.cc
9855 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.cc
9856 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.h
9857 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.h
9858 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
9859 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
9860 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
9861 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
9862 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.cc
9863 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.cc
9864 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.h
9865 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.h
9866 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.cc
9867 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.cc
9868 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.h
9869 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.h
9870 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.cc
9871 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.cc
9872 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.h
9873 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009874 test/cpp/codegen/codegen_test_minimal.cc
9875 src/cpp/codegen/codegen_init.cc
Ken Payson975b5102017-03-30 17:38:40 -07009876 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009877 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009878)
9879
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009880protobuf_generate_grpc_cpp(
9881 src/proto/grpc/testing/control.proto
9882)
9883protobuf_generate_grpc_cpp(
9884 src/proto/grpc/testing/messages.proto
9885)
9886protobuf_generate_grpc_cpp(
9887 src/proto/grpc/testing/payloads.proto
9888)
9889protobuf_generate_grpc_cpp(
9890 src/proto/grpc/testing/services.proto
9891)
9892protobuf_generate_grpc_cpp(
9893 src/proto/grpc/testing/stats.proto
9894)
9895
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009896target_include_directories(codegen_test_minimal
9897 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9898 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9899 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9900 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009901 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009902 PRIVATE ${ZLIB_ROOT_DIR}
9903 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009904 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009905 PRIVATE ${CARES_INCLUDE_DIR}
9906 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9907 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009908 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009909 PRIVATE third_party/googletest/googletest/include
9910 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009911 PRIVATE third_party/googletest/googlemock/include
9912 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009913 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009914)
9915
9916target_link_libraries(codegen_test_minimal
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009917 ${_gRPC_PROTOBUF_LIBRARIES}
9918 ${_gRPC_ALLTARGETS_LIBRARIES}
Vijay Paic0e67012017-03-17 20:00:55 -07009919 grpc
9920 gpr
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009921 ${_gRPC_GFLAGS_LIBRARIES}
9922)
9923
9924endif (gRPC_BUILD_TESTS)
9925if (gRPC_BUILD_TESTS)
9926
9927add_executable(credentials_test
9928 test/cpp/client/credentials_test.cc
Ken Payson975b5102017-03-30 17:38:40 -07009929 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009930 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009931)
9932
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009933
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009934target_include_directories(credentials_test
9935 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9936 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9937 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9938 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009939 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009940 PRIVATE ${ZLIB_ROOT_DIR}
9941 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009942 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009943 PRIVATE ${CARES_INCLUDE_DIR}
9944 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9945 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009946 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009947 PRIVATE third_party/googletest/googletest/include
9948 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009949 PRIVATE third_party/googletest/googlemock/include
9950 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009951 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009952)
9953
9954target_link_libraries(credentials_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009955 ${_gRPC_PROTOBUF_LIBRARIES}
9956 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009957 grpc++
9958 grpc
9959 gpr
9960 ${_gRPC_GFLAGS_LIBRARIES}
9961)
9962
9963endif (gRPC_BUILD_TESTS)
9964if (gRPC_BUILD_TESTS)
9965
9966add_executable(cxx_byte_buffer_test
9967 test/cpp/util/byte_buffer_test.cc
Ken Payson975b5102017-03-30 17:38:40 -07009968 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009969 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009970)
9971
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009972
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009973target_include_directories(cxx_byte_buffer_test
9974 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
9975 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
9976 PRIVATE ${BORINGSSL_ROOT_DIR}/include
9977 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009978 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009979 PRIVATE ${ZLIB_ROOT_DIR}
9980 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -07009981 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -07009982 PRIVATE ${CARES_INCLUDE_DIR}
9983 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
9984 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009985 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -07009986 PRIVATE third_party/googletest/googletest/include
9987 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -07009988 PRIVATE third_party/googletest/googlemock/include
9989 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009990 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009991)
9992
9993target_link_libraries(cxx_byte_buffer_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +01009994 ${_gRPC_PROTOBUF_LIBRARIES}
9995 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +01009996 grpc_test_util
9997 grpc++
9998 grpc
9999 gpr_test_util
10000 gpr
10001 ${_gRPC_GFLAGS_LIBRARIES}
10002)
10003
10004endif (gRPC_BUILD_TESTS)
10005if (gRPC_BUILD_TESTS)
10006
10007add_executable(cxx_slice_test
10008 test/cpp/util/slice_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070010009 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010010 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010011)
10012
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010013
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010014target_include_directories(cxx_slice_test
10015 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10016 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10017 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10018 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010019 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010020 PRIVATE ${ZLIB_ROOT_DIR}
10021 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010022 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010023 PRIVATE ${CARES_INCLUDE_DIR}
10024 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10025 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010026 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070010027 PRIVATE third_party/googletest/googletest/include
10028 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010029 PRIVATE third_party/googletest/googlemock/include
10030 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010031 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010032)
10033
10034target_link_libraries(cxx_slice_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010035 ${_gRPC_PROTOBUF_LIBRARIES}
10036 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010037 grpc_test_util
10038 grpc++
10039 grpc
10040 gpr_test_util
10041 gpr
10042 ${_gRPC_GFLAGS_LIBRARIES}
10043)
10044
10045endif (gRPC_BUILD_TESTS)
10046if (gRPC_BUILD_TESTS)
10047
10048add_executable(cxx_string_ref_test
10049 test/cpp/util/string_ref_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070010050 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010051 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010052)
10053
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010054
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010055target_include_directories(cxx_string_ref_test
10056 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10057 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10058 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10059 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010060 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010061 PRIVATE ${ZLIB_ROOT_DIR}
10062 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010063 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010064 PRIVATE ${CARES_INCLUDE_DIR}
10065 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10066 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010067 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070010068 PRIVATE third_party/googletest/googletest/include
10069 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010070 PRIVATE third_party/googletest/googlemock/include
10071 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010072 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010073)
10074
10075target_link_libraries(cxx_string_ref_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010076 ${_gRPC_PROTOBUF_LIBRARIES}
10077 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010078 grpc++
Jan Tattermuschb77a20b2017-05-18 16:45:07 +020010079 grpc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010080 ${_gRPC_GFLAGS_LIBRARIES}
10081)
10082
10083endif (gRPC_BUILD_TESTS)
10084if (gRPC_BUILD_TESTS)
10085
10086add_executable(cxx_time_test
10087 test/cpp/util/time_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070010088 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010089 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010090)
10091
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010092
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010093target_include_directories(cxx_time_test
10094 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10095 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10096 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10097 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010098 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010099 PRIVATE ${ZLIB_ROOT_DIR}
10100 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010101 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010102 PRIVATE ${CARES_INCLUDE_DIR}
10103 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10104 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010105 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070010106 PRIVATE third_party/googletest/googletest/include
10107 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010108 PRIVATE third_party/googletest/googlemock/include
10109 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010110 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010111)
10112
10113target_link_libraries(cxx_time_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010114 ${_gRPC_PROTOBUF_LIBRARIES}
10115 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010116 grpc_test_util
10117 grpc++
10118 grpc
10119 gpr_test_util
10120 gpr
10121 ${_gRPC_GFLAGS_LIBRARIES}
10122)
10123
10124endif (gRPC_BUILD_TESTS)
10125if (gRPC_BUILD_TESTS)
10126
10127add_executable(end2end_test
10128 test/cpp/end2end/end2end_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070010129 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010130 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010131)
10132
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010133
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010134target_include_directories(end2end_test
10135 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10136 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10137 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10138 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010139 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010140 PRIVATE ${ZLIB_ROOT_DIR}
10141 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010142 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010143 PRIVATE ${CARES_INCLUDE_DIR}
10144 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10145 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010146 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070010147 PRIVATE third_party/googletest/googletest/include
10148 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010149 PRIVATE third_party/googletest/googlemock/include
10150 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010151 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010152)
10153
10154target_link_libraries(end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010155 ${_gRPC_PROTOBUF_LIBRARIES}
10156 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010157 grpc++_test_util
10158 grpc_test_util
10159 grpc++
10160 grpc
10161 gpr_test_util
10162 gpr
10163 ${_gRPC_GFLAGS_LIBRARIES}
10164)
10165
10166endif (gRPC_BUILD_TESTS)
10167if (gRPC_BUILD_TESTS)
10168
yang-geceec8e2017-04-10 11:58:44 -070010169add_executable(error_details_test
10170 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc
10171 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc
10172 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h
10173 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h
10174 test/cpp/util/error_details_test.cc
10175 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010176 third_party/googletest/googlemock/src/gmock-all.cc
yang-geceec8e2017-04-10 11:58:44 -070010177)
10178
10179protobuf_generate_grpc_cpp(
10180 src/proto/grpc/testing/echo_messages.proto
10181)
10182
10183target_include_directories(error_details_test
10184 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10185 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10186 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10187 PRIVATE ${PROTOBUF_ROOT_DIR}/src
10188 PRIVATE ${BENCHMARK_ROOT_DIR}/include
10189 PRIVATE ${ZLIB_ROOT_DIR}
10190 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10191 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
10192 PRIVATE ${CARES_INCLUDE_DIR}
10193 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10194 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
10195 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10196 PRIVATE third_party/googletest/googletest/include
10197 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010198 PRIVATE third_party/googletest/googlemock/include
10199 PRIVATE third_party/googletest/googlemock
yang-geceec8e2017-04-10 11:58:44 -070010200 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10201)
10202
10203target_link_libraries(error_details_test
10204 ${_gRPC_PROTOBUF_LIBRARIES}
10205 ${_gRPC_ALLTARGETS_LIBRARIES}
10206 grpc++_error_details
10207 grpc++
10208 ${_gRPC_GFLAGS_LIBRARIES}
10209)
10210
10211endif (gRPC_BUILD_TESTS)
10212if (gRPC_BUILD_TESTS)
10213
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010214add_executable(filter_end2end_test
10215 test/cpp/end2end/filter_end2end_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070010216 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010217 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010218)
10219
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010220
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010221target_include_directories(filter_end2end_test
10222 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10223 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10224 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10225 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010226 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010227 PRIVATE ${ZLIB_ROOT_DIR}
10228 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010229 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010230 PRIVATE ${CARES_INCLUDE_DIR}
10231 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10232 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010233 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070010234 PRIVATE third_party/googletest/googletest/include
10235 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010236 PRIVATE third_party/googletest/googlemock/include
10237 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010238 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010239)
10240
10241target_link_libraries(filter_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010242 ${_gRPC_PROTOBUF_LIBRARIES}
10243 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010244 grpc++_test_util
10245 grpc_test_util
10246 grpc++
10247 grpc
10248 gpr_test_util
10249 gpr
10250 ${_gRPC_GFLAGS_LIBRARIES}
10251)
10252
10253endif (gRPC_BUILD_TESTS)
10254if (gRPC_BUILD_TESTS)
10255
10256add_executable(generic_end2end_test
10257 test/cpp/end2end/generic_end2end_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070010258 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010259 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010260)
10261
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010262
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010263target_include_directories(generic_end2end_test
10264 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10265 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10266 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10267 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010268 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010269 PRIVATE ${ZLIB_ROOT_DIR}
10270 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010271 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010272 PRIVATE ${CARES_INCLUDE_DIR}
10273 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10274 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010275 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070010276 PRIVATE third_party/googletest/googletest/include
10277 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010278 PRIVATE third_party/googletest/googlemock/include
10279 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010280 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010281)
10282
10283target_link_libraries(generic_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010284 ${_gRPC_PROTOBUF_LIBRARIES}
10285 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010286 grpc++_test_util
10287 grpc_test_util
10288 grpc++
10289 grpc
10290 gpr_test_util
10291 gpr
10292 ${_gRPC_GFLAGS_LIBRARIES}
10293)
10294
10295endif (gRPC_BUILD_TESTS)
10296if (gRPC_BUILD_TESTS)
10297
10298add_executable(golden_file_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010299 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.pb.cc
10300 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.grpc.pb.cc
10301 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.pb.h
10302 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010303 test/cpp/codegen/golden_file_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070010304 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010305 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010306)
10307
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010308protobuf_generate_grpc_cpp(
10309 src/proto/grpc/testing/compiler_test.proto
10310)
10311
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010312target_include_directories(golden_file_test
10313 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10314 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10315 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10316 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010317 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010318 PRIVATE ${ZLIB_ROOT_DIR}
10319 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010320 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010321 PRIVATE ${CARES_INCLUDE_DIR}
10322 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10323 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010324 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070010325 PRIVATE third_party/googletest/googletest/include
10326 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010327 PRIVATE third_party/googletest/googlemock/include
10328 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010329 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010330)
10331
10332target_link_libraries(golden_file_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010333 ${_gRPC_PROTOBUF_LIBRARIES}
10334 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010335 grpc++
10336 grpc
10337 gpr
10338 ${_gRPC_GFLAGS_LIBRARIES}
10339)
10340
10341endif (gRPC_BUILD_TESTS)
10342if (gRPC_BUILD_TESTS)
10343
10344add_executable(grpc_cli
10345 test/cpp/util/grpc_cli.cc
Ken Payson975b5102017-03-30 17:38:40 -070010346 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010347 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010348)
10349
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010350
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010351target_include_directories(grpc_cli
10352 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10353 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10354 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10355 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010356 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010357 PRIVATE ${ZLIB_ROOT_DIR}
10358 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010359 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010360 PRIVATE ${CARES_INCLUDE_DIR}
10361 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10362 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010363 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070010364 PRIVATE third_party/googletest/googletest/include
10365 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010366 PRIVATE third_party/googletest/googlemock/include
10367 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010368 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010369)
10370
10371target_link_libraries(grpc_cli
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010372 ${_gRPC_PROTOBUF_LIBRARIES}
10373 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010374 grpc_cli_libs
10375 grpc++_proto_reflection_desc_db
10376 grpc++
10377 grpc
10378 gpr
10379 grpc++_test_config
10380 ${_gRPC_GFLAGS_LIBRARIES}
10381)
10382
10383endif (gRPC_BUILD_TESTS)
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030010384
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010385add_executable(grpc_cpp_plugin
10386 src/compiler/cpp_plugin.cc
10387)
10388
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010389
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010390target_include_directories(grpc_cpp_plugin
10391 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10392 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10393 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10394 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010395 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010396 PRIVATE ${ZLIB_ROOT_DIR}
10397 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010398 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010399 PRIVATE ${CARES_INCLUDE_DIR}
10400 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10401 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010402 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010403 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010404)
10405
10406target_link_libraries(grpc_cpp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030010407 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010408 ${_gRPC_PROTOBUF_LIBRARIES}
10409 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010410 grpc_plugin_support
10411)
10412
10413
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010414if (gRPC_INSTALL)
10415 install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +020010416 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
10417 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
10418 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010419 )
10420endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030010421
10422
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010423add_executable(grpc_csharp_plugin
10424 src/compiler/csharp_plugin.cc
10425)
10426
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010427
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010428target_include_directories(grpc_csharp_plugin
10429 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10430 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10431 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10432 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010433 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010434 PRIVATE ${ZLIB_ROOT_DIR}
10435 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010436 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010437 PRIVATE ${CARES_INCLUDE_DIR}
10438 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10439 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010440 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010441 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010442)
10443
10444target_link_libraries(grpc_csharp_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030010445 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010446 ${_gRPC_PROTOBUF_LIBRARIES}
10447 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010448 grpc_plugin_support
10449)
10450
10451
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010452if (gRPC_INSTALL)
10453 install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +020010454 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
10455 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
10456 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010457 )
10458endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030010459
10460
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010461add_executable(grpc_node_plugin
10462 src/compiler/node_plugin.cc
10463)
10464
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010465
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010466target_include_directories(grpc_node_plugin
10467 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10468 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10469 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10470 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010471 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010472 PRIVATE ${ZLIB_ROOT_DIR}
10473 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010474 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010475 PRIVATE ${CARES_INCLUDE_DIR}
10476 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10477 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010478 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010479 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010480)
10481
10482target_link_libraries(grpc_node_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030010483 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010484 ${_gRPC_PROTOBUF_LIBRARIES}
10485 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010486 grpc_plugin_support
10487)
10488
10489
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010490if (gRPC_INSTALL)
10491 install(TARGETS grpc_node_plugin EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +020010492 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
10493 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
10494 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010495 )
10496endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030010497
10498
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010499add_executable(grpc_objective_c_plugin
10500 src/compiler/objective_c_plugin.cc
10501)
10502
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010503
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010504target_include_directories(grpc_objective_c_plugin
10505 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10506 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10507 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10508 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010509 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010510 PRIVATE ${ZLIB_ROOT_DIR}
10511 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010512 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010513 PRIVATE ${CARES_INCLUDE_DIR}
10514 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10515 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010516 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010517 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010518)
10519
10520target_link_libraries(grpc_objective_c_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030010521 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010522 ${_gRPC_PROTOBUF_LIBRARIES}
10523 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010524 grpc_plugin_support
10525)
10526
10527
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010528if (gRPC_INSTALL)
10529 install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +020010530 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
10531 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
10532 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010533 )
10534endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030010535
10536
Stanley Cheung857a1302016-09-29 17:26:29 -070010537add_executable(grpc_php_plugin
10538 src/compiler/php_plugin.cc
10539)
10540
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010541
Stanley Cheung857a1302016-09-29 17:26:29 -070010542target_include_directories(grpc_php_plugin
10543 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10544 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10545 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10546 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010547 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Stanley Cheung857a1302016-09-29 17:26:29 -070010548 PRIVATE ${ZLIB_ROOT_DIR}
10549 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010550 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010551 PRIVATE ${CARES_INCLUDE_DIR}
10552 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10553 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010554 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010555 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Stanley Cheung857a1302016-09-29 17:26:29 -070010556)
10557
10558target_link_libraries(grpc_php_plugin
10559 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010560 ${_gRPC_PROTOBUF_LIBRARIES}
10561 ${_gRPC_ALLTARGETS_LIBRARIES}
Stanley Cheung857a1302016-09-29 17:26:29 -070010562 grpc_plugin_support
10563)
10564
10565
10566if (gRPC_INSTALL)
10567 install(TARGETS grpc_php_plugin EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +020010568 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
10569 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
10570 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Stanley Cheung857a1302016-09-29 17:26:29 -070010571 )
10572endif()
10573
10574
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010575add_executable(grpc_python_plugin
10576 src/compiler/python_plugin.cc
10577)
10578
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010579
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010580target_include_directories(grpc_python_plugin
10581 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10582 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10583 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10584 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010585 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010586 PRIVATE ${ZLIB_ROOT_DIR}
10587 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010588 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010589 PRIVATE ${CARES_INCLUDE_DIR}
10590 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10591 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010592 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010593 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010594)
10595
10596target_link_libraries(grpc_python_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030010597 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010598 ${_gRPC_PROTOBUF_LIBRARIES}
10599 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010600 grpc_plugin_support
10601)
10602
10603
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010604if (gRPC_INSTALL)
10605 install(TARGETS grpc_python_plugin EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +020010606 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
10607 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
10608 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010609 )
10610endif()
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030010611
10612
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010613add_executable(grpc_ruby_plugin
10614 src/compiler/ruby_plugin.cc
10615)
10616
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010617
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010618target_include_directories(grpc_ruby_plugin
10619 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10620 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10621 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10622 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010623 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010624 PRIVATE ${ZLIB_ROOT_DIR}
10625 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010626 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010627 PRIVATE ${CARES_INCLUDE_DIR}
10628 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10629 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010630 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010631 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010632)
10633
10634target_link_libraries(grpc_ruby_plugin
Konstantin Podsvirov5baf7252016-07-27 16:25:37 +030010635 ${_gRPC_PROTOBUF_PROTOC_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010636 ${_gRPC_PROTOBUF_LIBRARIES}
10637 ${_gRPC_ALLTARGETS_LIBRARIES}
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010638 grpc_plugin_support
10639)
10640
10641
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010642if (gRPC_INSTALL)
10643 install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +020010644 RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
10645 LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
10646 ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
Arkadiy Shapkin40beb372016-08-17 14:42:36 +030010647 )
10648endif()
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010010649
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010650if (gRPC_BUILD_TESTS)
10651
10652add_executable(grpc_tool_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010653 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc
10654 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc
10655 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h
10656 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h
10657 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc
10658 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc
10659 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h
10660 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010661 test/cpp/util/grpc_tool_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070010662 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010663 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010664)
10665
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010666protobuf_generate_grpc_cpp(
10667 src/proto/grpc/testing/echo.proto
10668)
10669protobuf_generate_grpc_cpp(
10670 src/proto/grpc/testing/echo_messages.proto
10671)
10672
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010673target_include_directories(grpc_tool_test
10674 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10675 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10676 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10677 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010678 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010679 PRIVATE ${ZLIB_ROOT_DIR}
10680 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010681 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010682 PRIVATE ${CARES_INCLUDE_DIR}
10683 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10684 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010685 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070010686 PRIVATE third_party/googletest/googletest/include
10687 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010688 PRIVATE third_party/googletest/googlemock/include
10689 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010690 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010691)
10692
10693target_link_libraries(grpc_tool_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010694 ${_gRPC_PROTOBUF_LIBRARIES}
10695 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010696 grpc_cli_libs
10697 grpc++_proto_reflection_desc_db
10698 grpc++_reflection
10699 grpc++_test_util
10700 grpc_test_util
10701 grpc++
10702 grpc
10703 gpr_test_util
10704 gpr
10705 ${_gRPC_GFLAGS_LIBRARIES}
10706)
10707
10708endif (gRPC_BUILD_TESTS)
10709if (gRPC_BUILD_TESTS)
10710
10711add_executable(grpclb_api_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010712 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.cc
10713 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.cc
10714 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.h
10715 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010716 test/cpp/grpclb/grpclb_api_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070010717 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010718 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010719)
10720
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010721protobuf_generate_grpc_cpp(
10722 src/proto/grpc/lb/v1/load_balancer.proto
10723)
10724
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010725target_include_directories(grpclb_api_test
10726 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10727 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10728 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10729 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010730 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010731 PRIVATE ${ZLIB_ROOT_DIR}
10732 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010733 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010734 PRIVATE ${CARES_INCLUDE_DIR}
10735 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10736 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010737 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070010738 PRIVATE third_party/googletest/googletest/include
10739 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010740 PRIVATE third_party/googletest/googlemock/include
10741 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010742 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010743)
10744
10745target_link_libraries(grpclb_api_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010746 ${_gRPC_PROTOBUF_LIBRARIES}
10747 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010748 grpc++_test_util
10749 grpc_test_util
10750 grpc++
10751 grpc
10752 ${_gRPC_GFLAGS_LIBRARIES}
10753)
10754
10755endif (gRPC_BUILD_TESTS)
10756if (gRPC_BUILD_TESTS)
10757
David Garcia Quintas04911ca2017-04-27 16:31:14 -070010758add_executable(grpclb_end2end_test
10759 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.cc
10760 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.cc
10761 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.h
10762 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.h
10763 test/cpp/end2end/grpclb_end2end_test.cc
10764 third_party/googletest/googletest/src/gtest-all.cc
10765 third_party/googletest/googlemock/src/gmock-all.cc
10766)
10767
10768protobuf_generate_grpc_cpp(
10769 src/proto/grpc/lb/v1/load_balancer.proto
10770)
10771
10772target_include_directories(grpclb_end2end_test
10773 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10774 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10775 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10776 PRIVATE ${PROTOBUF_ROOT_DIR}/src
10777 PRIVATE ${BENCHMARK_ROOT_DIR}/include
10778 PRIVATE ${ZLIB_ROOT_DIR}
10779 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
10780 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
10781 PRIVATE ${CARES_INCLUDE_DIR}
10782 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10783 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
10784 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
10785 PRIVATE third_party/googletest/googletest/include
10786 PRIVATE third_party/googletest/googletest
10787 PRIVATE third_party/googletest/googlemock/include
10788 PRIVATE third_party/googletest/googlemock
10789 PRIVATE ${_gRPC_PROTO_GENS_DIR}
10790)
10791
10792target_link_libraries(grpclb_end2end_test
10793 ${_gRPC_PROTOBUF_LIBRARIES}
10794 ${_gRPC_ALLTARGETS_LIBRARIES}
10795 grpc++_test_util
10796 grpc_test_util
10797 grpc++
10798 grpc
10799 gpr_test_util
10800 gpr
10801 ${_gRPC_GFLAGS_LIBRARIES}
10802)
10803
10804endif (gRPC_BUILD_TESTS)
10805if (gRPC_BUILD_TESTS)
10806
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010807add_executable(grpclb_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010808 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.cc
10809 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.cc
10810 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.h
10811 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010812 test/cpp/grpclb/grpclb_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070010813 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010814 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010815)
10816
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010817protobuf_generate_grpc_cpp(
10818 src/proto/grpc/lb/v1/load_balancer.proto
10819)
10820
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010821target_include_directories(grpclb_test
10822 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10823 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10824 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10825 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010826 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010827 PRIVATE ${ZLIB_ROOT_DIR}
10828 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010829 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010830 PRIVATE ${CARES_INCLUDE_DIR}
10831 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10832 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010833 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070010834 PRIVATE third_party/googletest/googletest/include
10835 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010836 PRIVATE third_party/googletest/googlemock/include
10837 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010838 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010839)
10840
10841target_link_libraries(grpclb_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010842 ${_gRPC_PROTOBUF_LIBRARIES}
10843 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010844 grpc++_test_util
10845 grpc_test_util
Jan Tattermusch1c6a1442017-01-13 14:17:40 +010010846 grpc++
10847 grpc
10848 gpr_test_util
10849 gpr
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010850 ${_gRPC_GFLAGS_LIBRARIES}
10851)
10852
10853endif (gRPC_BUILD_TESTS)
10854if (gRPC_BUILD_TESTS)
10855
yang-ga7198022017-01-26 13:23:52 -080010856add_executable(health_service_end2end_test
10857 test/cpp/end2end/health_service_end2end_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070010858 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010859 third_party/googletest/googlemock/src/gmock-all.cc
yang-ga7198022017-01-26 13:23:52 -080010860)
10861
yang-g13a537b2017-02-07 13:13:20 -080010862
yang-ga7198022017-01-26 13:23:52 -080010863target_include_directories(health_service_end2end_test
10864 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10865 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10866 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10867 PRIVATE ${PROTOBUF_ROOT_DIR}/src
yang-g13a537b2017-02-07 13:13:20 -080010868 PRIVATE ${BENCHMARK_ROOT_DIR}/include
yang-ga7198022017-01-26 13:23:52 -080010869 PRIVATE ${ZLIB_ROOT_DIR}
10870 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010871 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010872 PRIVATE ${CARES_INCLUDE_DIR}
10873 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10874 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
yang-ga7198022017-01-26 13:23:52 -080010875 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070010876 PRIVATE third_party/googletest/googletest/include
10877 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010878 PRIVATE third_party/googletest/googlemock/include
10879 PRIVATE third_party/googletest/googlemock
yang-g13a537b2017-02-07 13:13:20 -080010880 PRIVATE ${_gRPC_PROTO_GENS_DIR}
yang-ga7198022017-01-26 13:23:52 -080010881)
10882
10883target_link_libraries(health_service_end2end_test
yang-g13a537b2017-02-07 13:13:20 -080010884 ${_gRPC_PROTOBUF_LIBRARIES}
10885 ${_gRPC_ALLTARGETS_LIBRARIES}
yang-ga7198022017-01-26 13:23:52 -080010886 grpc++_test_util
10887 grpc_test_util
10888 grpc++
10889 grpc
10890 gpr_test_util
10891 gpr
10892 ${_gRPC_GFLAGS_LIBRARIES}
10893)
10894
10895endif (gRPC_BUILD_TESTS)
10896if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010897if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010898
10899add_executable(http2_client
Ken Payson975b5102017-03-30 17:38:40 -070010900 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010901 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010902)
10903
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010904
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010905target_include_directories(http2_client
10906 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10907 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10908 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10909 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010910 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010911 PRIVATE ${ZLIB_ROOT_DIR}
10912 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010913 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010914 PRIVATE ${CARES_INCLUDE_DIR}
10915 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10916 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010917 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070010918 PRIVATE third_party/googletest/googletest/include
10919 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010920 PRIVATE third_party/googletest/googlemock/include
10921 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010922 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010923)
10924
10925target_link_libraries(http2_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010926 ${_gRPC_PROTOBUF_LIBRARIES}
10927 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010928 http2_client_main
10929 grpc++_test_util
10930 grpc_test_util
10931 grpc++
10932 grpc
10933 grpc++_test_config
10934 ${_gRPC_GFLAGS_LIBRARIES}
10935)
10936
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010937endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010938endif (gRPC_BUILD_TESTS)
10939if (gRPC_BUILD_TESTS)
10940
10941add_executable(hybrid_end2end_test
10942 test/cpp/end2end/hybrid_end2end_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070010943 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010944 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010945)
10946
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010947
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010948target_include_directories(hybrid_end2end_test
10949 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10950 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10951 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10952 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010953 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010954 PRIVATE ${ZLIB_ROOT_DIR}
10955 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010956 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010957 PRIVATE ${CARES_INCLUDE_DIR}
10958 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
10959 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010960 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070010961 PRIVATE third_party/googletest/googletest/include
10962 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010963 PRIVATE third_party/googletest/googlemock/include
10964 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010965 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010966)
10967
10968target_link_libraries(hybrid_end2end_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010969 ${_gRPC_PROTOBUF_LIBRARIES}
10970 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010971 grpc++_test_util
10972 grpc_test_util
10973 grpc++
10974 grpc
10975 gpr_test_util
10976 gpr
10977 ${_gRPC_GFLAGS_LIBRARIES}
10978)
10979
10980endif (gRPC_BUILD_TESTS)
10981if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010982if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010983
10984add_executable(interop_client
Ken Payson975b5102017-03-30 17:38:40 -070010985 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070010986 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010987)
10988
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010989
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010990target_include_directories(interop_client
10991 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
10992 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
10993 PRIVATE ${BORINGSSL_ROOT_DIR}/include
10994 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010010995 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010010996 PRIVATE ${ZLIB_ROOT_DIR}
10997 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070010998 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070010999 PRIVATE ${CARES_INCLUDE_DIR}
11000 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11001 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011002 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011003 PRIVATE third_party/googletest/googletest/include
11004 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011005 PRIVATE third_party/googletest/googlemock/include
11006 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011007 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011008)
11009
11010target_link_libraries(interop_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011011 ${_gRPC_PROTOBUF_LIBRARIES}
11012 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011013 interop_client_main
11014 interop_client_helper
11015 grpc++_test_util
11016 grpc_test_util
11017 grpc++
11018 grpc
11019 gpr_test_util
11020 gpr
11021 grpc++_test_config
11022 ${_gRPC_GFLAGS_LIBRARIES}
11023)
11024
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011025endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011026endif (gRPC_BUILD_TESTS)
11027if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011028if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011029
11030add_executable(interop_server
Ken Payson975b5102017-03-30 17:38:40 -070011031 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011032 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011033)
11034
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011035
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011036target_include_directories(interop_server
11037 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11038 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11039 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11040 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011041 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011042 PRIVATE ${ZLIB_ROOT_DIR}
11043 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011044 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011045 PRIVATE ${CARES_INCLUDE_DIR}
11046 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11047 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011048 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011049 PRIVATE third_party/googletest/googletest/include
11050 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011051 PRIVATE third_party/googletest/googlemock/include
11052 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011053 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011054)
11055
11056target_link_libraries(interop_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011057 ${_gRPC_PROTOBUF_LIBRARIES}
11058 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011059 interop_server_main
11060 interop_server_helper
11061 interop_server_lib
11062 grpc++_test_util
11063 grpc_test_util
11064 grpc++
11065 grpc
11066 gpr_test_util
11067 gpr
11068 grpc++_test_config
11069 ${_gRPC_GFLAGS_LIBRARIES}
11070)
11071
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011072endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011073endif (gRPC_BUILD_TESTS)
11074if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011075if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011076
11077add_executable(interop_test
11078 test/cpp/interop/interop_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011079 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011080 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011081)
11082
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011083
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011084target_include_directories(interop_test
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
Ken Payson975b5102017-03-30 17:38:40 -070011097 PRIVATE third_party/googletest/googletest/include
11098 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011099 PRIVATE third_party/googletest/googlemock/include
11100 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011101 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011102)
11103
11104target_link_libraries(interop_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011105 ${_gRPC_PROTOBUF_LIBRARIES}
11106 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011107 grpc_test_util
11108 grpc
11109 gpr_test_util
11110 gpr
11111 grpc++_test_config
11112 ${_gRPC_GFLAGS_LIBRARIES}
11113)
11114
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011115endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011116endif (gRPC_BUILD_TESTS)
11117if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011118if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011119
11120add_executable(json_run_localhost
11121 test/cpp/qps/json_run_localhost.cc
Ken Payson975b5102017-03-30 17:38:40 -070011122 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011123 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011124)
11125
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011126
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011127target_include_directories(json_run_localhost
11128 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11129 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11130 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11131 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011132 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011133 PRIVATE ${ZLIB_ROOT_DIR}
11134 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011135 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011136 PRIVATE ${CARES_INCLUDE_DIR}
11137 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11138 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011139 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011140 PRIVATE third_party/googletest/googletest/include
11141 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011142 PRIVATE third_party/googletest/googlemock/include
11143 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011144 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011145)
11146
11147target_link_libraries(json_run_localhost
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011148 ${_gRPC_PROTOBUF_LIBRARIES}
11149 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011150 grpc++_test_util
11151 grpc_test_util
11152 grpc++
11153 grpc
11154 gpr_test_util
11155 gpr
11156 grpc++_test_config
11157 ${_gRPC_GFLAGS_LIBRARIES}
11158)
11159
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011160endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011161endif (gRPC_BUILD_TESTS)
11162if (gRPC_BUILD_TESTS)
11163
Craig Tillerb3d70102017-03-31 14:17:09 -070011164add_executable(memory_test
11165 test/core/support/memory_test.cc
Craig Tiller2d111bd2017-04-11 09:18:14 -070011166 third_party/googletest/googletest/src/gtest-all.cc
Vizerai0359e122017-04-28 20:06:58 -070011167 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tillerb3d70102017-03-31 14:17:09 -070011168)
11169
11170
11171target_include_directories(memory_test
11172 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11173 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11174 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11175 PRIVATE ${PROTOBUF_ROOT_DIR}/src
11176 PRIVATE ${BENCHMARK_ROOT_DIR}/include
11177 PRIVATE ${ZLIB_ROOT_DIR}
11178 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
11179 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
11180 PRIVATE ${CARES_INCLUDE_DIR}
11181 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11182 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
11183 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Craig Tiller2d111bd2017-04-11 09:18:14 -070011184 PRIVATE third_party/googletest/googletest/include
11185 PRIVATE third_party/googletest/googletest
Vizerai0359e122017-04-28 20:06:58 -070011186 PRIVATE third_party/googletest/googlemock/include
11187 PRIVATE third_party/googletest/googlemock
Craig Tillerb3d70102017-03-31 14:17:09 -070011188 PRIVATE ${_gRPC_PROTO_GENS_DIR}
11189)
11190
11191target_link_libraries(memory_test
11192 ${_gRPC_PROTOBUF_LIBRARIES}
11193 ${_gRPC_ALLTARGETS_LIBRARIES}
11194 grpc_test_util
11195 grpc++
11196 grpc
11197 gpr_test_util
11198 gpr
11199 ${_gRPC_GFLAGS_LIBRARIES}
11200)
11201
11202endif (gRPC_BUILD_TESTS)
11203if (gRPC_BUILD_TESTS)
11204
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011205add_executable(metrics_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011206 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.cc
11207 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.cc
11208 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.h
11209 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011210 test/cpp/interop/metrics_client.cc
Ken Payson975b5102017-03-30 17:38:40 -070011211 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011212 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011213)
11214
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011215protobuf_generate_grpc_cpp(
11216 src/proto/grpc/testing/metrics.proto
11217)
11218
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011219target_include_directories(metrics_client
11220 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11221 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11222 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11223 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011224 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011225 PRIVATE ${ZLIB_ROOT_DIR}
11226 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011227 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011228 PRIVATE ${CARES_INCLUDE_DIR}
11229 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11230 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011231 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011232 PRIVATE third_party/googletest/googletest/include
11233 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011234 PRIVATE third_party/googletest/googlemock/include
11235 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011236 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011237)
11238
11239target_link_libraries(metrics_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011240 ${_gRPC_PROTOBUF_LIBRARIES}
11241 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011242 grpc++
11243 grpc
11244 gpr
11245 grpc++_test_config
11246 ${_gRPC_GFLAGS_LIBRARIES}
11247)
11248
11249endif (gRPC_BUILD_TESTS)
11250if (gRPC_BUILD_TESTS)
11251
11252add_executable(mock_test
11253 test/cpp/end2end/mock_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011254 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011255 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011256)
11257
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011258
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011259target_include_directories(mock_test
11260 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11261 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11262 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11263 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011264 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011265 PRIVATE ${ZLIB_ROOT_DIR}
11266 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011267 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011268 PRIVATE ${CARES_INCLUDE_DIR}
11269 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11270 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011271 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011272 PRIVATE third_party/googletest/googletest/include
11273 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011274 PRIVATE third_party/googletest/googlemock/include
11275 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011276 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011277)
11278
11279target_link_libraries(mock_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011280 ${_gRPC_PROTOBUF_LIBRARIES}
11281 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011282 grpc++_test_util
11283 grpc_test_util
11284 grpc++
11285 grpc
11286 gpr_test_util
11287 gpr
11288 ${_gRPC_GFLAGS_LIBRARIES}
11289)
11290
11291endif (gRPC_BUILD_TESTS)
11292if (gRPC_BUILD_TESTS)
11293
11294add_executable(noop-benchmark
11295 test/cpp/microbenchmarks/noop-benchmark.cc
Ken Payson975b5102017-03-30 17:38:40 -070011296 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011297 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011298)
11299
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011300
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011301target_include_directories(noop-benchmark
11302 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11303 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11304 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11305 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011306 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011307 PRIVATE ${ZLIB_ROOT_DIR}
11308 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011309 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011310 PRIVATE ${CARES_INCLUDE_DIR}
11311 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11312 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011313 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011314 PRIVATE third_party/googletest/googletest/include
11315 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011316 PRIVATE third_party/googletest/googlemock/include
11317 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011318 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011319)
11320
11321target_link_libraries(noop-benchmark
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011322 ${_gRPC_PROTOBUF_LIBRARIES}
11323 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011324 benchmark
11325 ${_gRPC_GFLAGS_LIBRARIES}
11326)
11327
11328endif (gRPC_BUILD_TESTS)
11329if (gRPC_BUILD_TESTS)
11330
11331add_executable(proto_server_reflection_test
11332 test/cpp/end2end/proto_server_reflection_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011333 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011334 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011335)
11336
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011337
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011338target_include_directories(proto_server_reflection_test
11339 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11340 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11341 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11342 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011343 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011344 PRIVATE ${ZLIB_ROOT_DIR}
11345 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011346 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011347 PRIVATE ${CARES_INCLUDE_DIR}
11348 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11349 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011350 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011351 PRIVATE third_party/googletest/googletest/include
11352 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011353 PRIVATE third_party/googletest/googlemock/include
11354 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011355 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011356)
11357
11358target_link_libraries(proto_server_reflection_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011359 ${_gRPC_PROTOBUF_LIBRARIES}
11360 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011361 grpc++_proto_reflection_desc_db
11362 grpc++_reflection
11363 grpc++_test_util
11364 grpc_test_util
11365 grpc++
11366 grpc
11367 gpr_test_util
11368 gpr
11369 ${_gRPC_GFLAGS_LIBRARIES}
11370)
11371
11372endif (gRPC_BUILD_TESTS)
11373if (gRPC_BUILD_TESTS)
Harvey Tuch5f3cfe92017-01-20 11:02:11 -050011374
11375add_executable(proto_utils_test
11376 test/cpp/codegen/proto_utils_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011377 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011378 third_party/googletest/googlemock/src/gmock-all.cc
Harvey Tuch5f3cfe92017-01-20 11:02:11 -050011379)
11380
11381
11382target_include_directories(proto_utils_test
11383 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11384 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11385 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11386 PRIVATE ${PROTOBUF_ROOT_DIR}/src
11387 PRIVATE ${BENCHMARK_ROOT_DIR}/include
11388 PRIVATE ${ZLIB_ROOT_DIR}
11389 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011390 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011391 PRIVATE ${CARES_INCLUDE_DIR}
11392 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11393 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Harvey Tuch5f3cfe92017-01-20 11:02:11 -050011394 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011395 PRIVATE third_party/googletest/googletest/include
11396 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011397 PRIVATE third_party/googletest/googlemock/include
11398 PRIVATE third_party/googletest/googlemock
Harvey Tuch5f3cfe92017-01-20 11:02:11 -050011399 PRIVATE ${_gRPC_PROTO_GENS_DIR}
11400)
11401
11402target_link_libraries(proto_utils_test
11403 ${_gRPC_PROTOBUF_LIBRARIES}
11404 ${_gRPC_ALLTARGETS_LIBRARIES}
11405 grpc++
11406 grpc
11407 ${_gRPC_GFLAGS_LIBRARIES}
11408)
11409
11410endif (gRPC_BUILD_TESTS)
11411if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011412if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011413
11414add_executable(qps_interarrival_test
11415 test/cpp/qps/qps_interarrival_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011416 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011417 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011418)
11419
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011420
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011421target_include_directories(qps_interarrival_test
11422 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11423 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11424 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11425 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011426 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011427 PRIVATE ${ZLIB_ROOT_DIR}
11428 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011429 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011430 PRIVATE ${CARES_INCLUDE_DIR}
11431 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11432 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011433 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011434 PRIVATE third_party/googletest/googletest/include
11435 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011436 PRIVATE third_party/googletest/googlemock/include
11437 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011438 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011439)
11440
11441target_link_libraries(qps_interarrival_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011442 ${_gRPC_PROTOBUF_LIBRARIES}
11443 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011444 qps
11445 grpc++_test_util
11446 grpc_test_util
11447 grpc++
11448 grpc
11449 gpr_test_util
11450 gpr
yang-gfdcb7742017-07-13 10:25:42 -070011451 grpc++_test_config
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011452 ${_gRPC_GFLAGS_LIBRARIES}
11453)
11454
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011455endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011456endif (gRPC_BUILD_TESTS)
11457if (gRPC_BUILD_TESTS)
11458
11459add_executable(qps_json_driver
11460 test/cpp/qps/qps_json_driver.cc
Ken Payson975b5102017-03-30 17:38:40 -070011461 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011462 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011463)
11464
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011465
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011466target_include_directories(qps_json_driver
11467 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11468 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11469 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11470 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011471 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011472 PRIVATE ${ZLIB_ROOT_DIR}
11473 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011474 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011475 PRIVATE ${CARES_INCLUDE_DIR}
11476 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11477 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011478 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011479 PRIVATE third_party/googletest/googletest/include
11480 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011481 PRIVATE third_party/googletest/googlemock/include
11482 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011483 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011484)
11485
11486target_link_libraries(qps_json_driver
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011487 ${_gRPC_PROTOBUF_LIBRARIES}
11488 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011489 qps
11490 grpc++_test_util
11491 grpc_test_util
11492 grpc++
11493 grpc
11494 gpr_test_util
11495 gpr
11496 grpc++_test_config
11497 ${_gRPC_GFLAGS_LIBRARIES}
11498)
11499
11500endif (gRPC_BUILD_TESTS)
11501if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011502if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011503
11504add_executable(qps_openloop_test
11505 test/cpp/qps/qps_openloop_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011506 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011507 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011508)
11509
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011510
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011511target_include_directories(qps_openloop_test
11512 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11513 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11514 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11515 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011516 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011517 PRIVATE ${ZLIB_ROOT_DIR}
11518 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011519 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011520 PRIVATE ${CARES_INCLUDE_DIR}
11521 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11522 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011523 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011524 PRIVATE third_party/googletest/googletest/include
11525 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011526 PRIVATE third_party/googletest/googlemock/include
11527 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011528 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011529)
11530
11531target_link_libraries(qps_openloop_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011532 ${_gRPC_PROTOBUF_LIBRARIES}
11533 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011534 qps
11535 grpc++_test_util
11536 grpc_test_util
11537 grpc++
11538 grpc
11539 gpr_test_util
11540 gpr
11541 grpc++_test_config
11542 ${_gRPC_GFLAGS_LIBRARIES}
11543)
11544
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011545endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011546endif (gRPC_BUILD_TESTS)
11547if (gRPC_BUILD_TESTS)
11548
11549add_executable(qps_worker
11550 test/cpp/qps/worker.cc
Ken Payson975b5102017-03-30 17:38:40 -070011551 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011552 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011553)
11554
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011555
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011556target_include_directories(qps_worker
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
Ken Payson975b5102017-03-30 17:38:40 -070011569 PRIVATE third_party/googletest/googletest/include
11570 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011571 PRIVATE third_party/googletest/googlemock/include
11572 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011573 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011574)
11575
11576target_link_libraries(qps_worker
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011577 ${_gRPC_PROTOBUF_LIBRARIES}
11578 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011579 qps
11580 grpc++_test_util
11581 grpc_test_util
11582 grpc++
11583 grpc
11584 gpr_test_util
11585 gpr
11586 grpc++_test_config
11587 ${_gRPC_GFLAGS_LIBRARIES}
11588)
11589
11590endif (gRPC_BUILD_TESTS)
11591if (gRPC_BUILD_TESTS)
11592
11593add_executable(reconnect_interop_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011594 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
11595 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
11596 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
11597 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
11598 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
11599 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
11600 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
11601 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
11602 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
11603 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
11604 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
11605 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011606 test/cpp/interop/reconnect_interop_client.cc
Ken Payson975b5102017-03-30 17:38:40 -070011607 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011608 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011609)
11610
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011611protobuf_generate_grpc_cpp(
11612 src/proto/grpc/testing/empty.proto
11613)
11614protobuf_generate_grpc_cpp(
11615 src/proto/grpc/testing/messages.proto
11616)
11617protobuf_generate_grpc_cpp(
11618 src/proto/grpc/testing/test.proto
11619)
11620
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011621target_include_directories(reconnect_interop_client
11622 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11623 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11624 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11625 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011626 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011627 PRIVATE ${ZLIB_ROOT_DIR}
11628 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011629 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011630 PRIVATE ${CARES_INCLUDE_DIR}
11631 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11632 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011633 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011634 PRIVATE third_party/googletest/googletest/include
11635 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011636 PRIVATE third_party/googletest/googlemock/include
11637 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011638 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011639)
11640
11641target_link_libraries(reconnect_interop_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011642 ${_gRPC_PROTOBUF_LIBRARIES}
11643 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011644 grpc++_test_util
11645 grpc_test_util
11646 grpc++
11647 grpc
11648 gpr_test_util
11649 gpr
11650 grpc++_test_config
11651 ${_gRPC_GFLAGS_LIBRARIES}
11652)
11653
11654endif (gRPC_BUILD_TESTS)
11655if (gRPC_BUILD_TESTS)
11656
11657add_executable(reconnect_interop_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011658 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
11659 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
11660 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
11661 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
11662 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
11663 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
11664 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
11665 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
11666 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
11667 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
11668 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
11669 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011670 test/cpp/interop/reconnect_interop_server.cc
Ken Payson975b5102017-03-30 17:38:40 -070011671 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011672 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011673)
11674
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011675protobuf_generate_grpc_cpp(
11676 src/proto/grpc/testing/empty.proto
11677)
11678protobuf_generate_grpc_cpp(
11679 src/proto/grpc/testing/messages.proto
11680)
11681protobuf_generate_grpc_cpp(
11682 src/proto/grpc/testing/test.proto
11683)
11684
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011685target_include_directories(reconnect_interop_server
11686 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11687 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11688 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11689 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011690 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011691 PRIVATE ${ZLIB_ROOT_DIR}
11692 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011693 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011694 PRIVATE ${CARES_INCLUDE_DIR}
11695 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11696 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011697 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011698 PRIVATE third_party/googletest/googletest/include
11699 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011700 PRIVATE third_party/googletest/googlemock/include
11701 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011702 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011703)
11704
11705target_link_libraries(reconnect_interop_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011706 ${_gRPC_PROTOBUF_LIBRARIES}
11707 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011708 reconnect_server
11709 test_tcp_server
11710 grpc++_test_util
11711 grpc_test_util
11712 grpc++
11713 grpc
11714 gpr_test_util
11715 gpr
11716 grpc++_test_config
11717 ${_gRPC_GFLAGS_LIBRARIES}
11718)
11719
11720endif (gRPC_BUILD_TESTS)
11721if (gRPC_BUILD_TESTS)
11722
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011723add_executable(secure_auth_context_test
11724 test/cpp/common/secure_auth_context_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011725 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011726 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011727)
11728
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011729
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011730target_include_directories(secure_auth_context_test
11731 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11732 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11733 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11734 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011735 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011736 PRIVATE ${ZLIB_ROOT_DIR}
11737 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011738 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011739 PRIVATE ${CARES_INCLUDE_DIR}
11740 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11741 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011742 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011743 PRIVATE third_party/googletest/googletest/include
11744 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011745 PRIVATE third_party/googletest/googlemock/include
11746 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011747 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011748)
11749
11750target_link_libraries(secure_auth_context_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011751 ${_gRPC_PROTOBUF_LIBRARIES}
11752 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011753 grpc++_test_util
11754 grpc_test_util
11755 grpc++
11756 grpc
11757 gpr_test_util
11758 gpr
11759 ${_gRPC_GFLAGS_LIBRARIES}
11760)
11761
11762endif (gRPC_BUILD_TESTS)
11763if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011764if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011765
11766add_executable(secure_sync_unary_ping_pong_test
11767 test/cpp/qps/secure_sync_unary_ping_pong_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011768 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011769 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011770)
11771
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011772
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011773target_include_directories(secure_sync_unary_ping_pong_test
11774 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11775 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11776 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11777 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011778 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011779 PRIVATE ${ZLIB_ROOT_DIR}
11780 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011781 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011782 PRIVATE ${CARES_INCLUDE_DIR}
11783 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11784 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011785 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011786 PRIVATE third_party/googletest/googletest/include
11787 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011788 PRIVATE third_party/googletest/googlemock/include
11789 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011790 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011791)
11792
11793target_link_libraries(secure_sync_unary_ping_pong_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011794 ${_gRPC_PROTOBUF_LIBRARIES}
11795 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011796 qps
11797 grpc++_test_util
11798 grpc_test_util
11799 grpc++
11800 grpc
11801 gpr_test_util
11802 gpr
yang-gfdcb7742017-07-13 10:25:42 -070011803 grpc++_test_config
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011804 ${_gRPC_GFLAGS_LIBRARIES}
11805)
11806
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011807endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011808endif (gRPC_BUILD_TESTS)
11809if (gRPC_BUILD_TESTS)
11810
11811add_executable(server_builder_plugin_test
11812 test/cpp/end2end/server_builder_plugin_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011813 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011814 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011815)
11816
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011817
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011818target_include_directories(server_builder_plugin_test
11819 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11820 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11821 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11822 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011823 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011824 PRIVATE ${ZLIB_ROOT_DIR}
11825 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011826 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011827 PRIVATE ${CARES_INCLUDE_DIR}
11828 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11829 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011830 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011831 PRIVATE third_party/googletest/googletest/include
11832 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011833 PRIVATE third_party/googletest/googlemock/include
11834 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011835 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011836)
11837
11838target_link_libraries(server_builder_plugin_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011839 ${_gRPC_PROTOBUF_LIBRARIES}
11840 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011841 grpc++_test_util
11842 grpc_test_util
11843 grpc++
11844 grpc
11845 gpr_test_util
11846 gpr
11847 ${_gRPC_GFLAGS_LIBRARIES}
11848)
11849
11850endif (gRPC_BUILD_TESTS)
11851if (gRPC_BUILD_TESTS)
11852
Craig Tiller332bcc32017-03-08 12:47:46 -080011853add_executable(server_builder_test
11854 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc
11855 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc
11856 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h
11857 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h
11858 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc
11859 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc
11860 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h
11861 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h
11862 test/cpp/server/server_builder_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011863 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011864 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller332bcc32017-03-08 12:47:46 -080011865)
11866
11867protobuf_generate_grpc_cpp(
11868 src/proto/grpc/testing/echo_messages.proto
11869)
11870protobuf_generate_grpc_cpp(
11871 src/proto/grpc/testing/echo.proto
11872)
11873
11874target_include_directories(server_builder_test
11875 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11876 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11877 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11878 PRIVATE ${PROTOBUF_ROOT_DIR}/src
11879 PRIVATE ${BENCHMARK_ROOT_DIR}/include
11880 PRIVATE ${ZLIB_ROOT_DIR}
11881 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011882 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011883 PRIVATE ${CARES_INCLUDE_DIR}
11884 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11885 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller332bcc32017-03-08 12:47:46 -080011886 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011887 PRIVATE third_party/googletest/googletest/include
11888 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011889 PRIVATE third_party/googletest/googlemock/include
11890 PRIVATE third_party/googletest/googlemock
Craig Tiller332bcc32017-03-08 12:47:46 -080011891 PRIVATE ${_gRPC_PROTO_GENS_DIR}
11892)
11893
11894target_link_libraries(server_builder_test
11895 ${_gRPC_PROTOBUF_LIBRARIES}
11896 ${_gRPC_ALLTARGETS_LIBRARIES}
11897 grpc++_test_util
11898 grpc_test_util
11899 gpr_test_util
11900 grpc++
11901 grpc
11902 gpr
11903 ${_gRPC_GFLAGS_LIBRARIES}
11904)
11905
11906endif (gRPC_BUILD_TESTS)
11907if (gRPC_BUILD_TESTS)
11908
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011909add_executable(server_context_test_spouse_test
11910 test/cpp/test/server_context_test_spouse_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011911 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011912 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011913)
11914
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011915
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011916target_include_directories(server_context_test_spouse_test
11917 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11918 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11919 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11920 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011921 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011922 PRIVATE ${ZLIB_ROOT_DIR}
11923 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011924 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011925 PRIVATE ${CARES_INCLUDE_DIR}
11926 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11927 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011928 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011929 PRIVATE third_party/googletest/googletest/include
11930 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011931 PRIVATE third_party/googletest/googlemock/include
11932 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011933 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011934)
11935
11936target_link_libraries(server_context_test_spouse_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011937 ${_gRPC_PROTOBUF_LIBRARIES}
11938 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011939 grpc_test_util
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011940 grpc++
11941 grpc
11942 gpr_test_util
11943 gpr
11944 ${_gRPC_GFLAGS_LIBRARIES}
11945)
11946
11947endif (gRPC_BUILD_TESTS)
11948if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011949if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011950
11951add_executable(server_crash_test
11952 test/cpp/end2end/server_crash_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070011953 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011954 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011955)
11956
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011957
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011958target_include_directories(server_crash_test
11959 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
11960 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
11961 PRIVATE ${BORINGSSL_ROOT_DIR}/include
11962 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011963 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011964 PRIVATE ${ZLIB_ROOT_DIR}
11965 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070011966 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070011967 PRIVATE ${CARES_INCLUDE_DIR}
11968 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
11969 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011970 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070011971 PRIVATE third_party/googletest/googletest/include
11972 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011973 PRIVATE third_party/googletest/googlemock/include
11974 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011975 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011976)
11977
11978target_link_libraries(server_crash_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011979 ${_gRPC_PROTOBUF_LIBRARIES}
11980 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011981 grpc++_test_util
11982 grpc_test_util
11983 grpc++
11984 grpc
11985 gpr_test_util
11986 gpr
11987 ${_gRPC_GFLAGS_LIBRARIES}
11988)
11989
Jan Tattermusch438c0b52017-01-23 11:24:53 +010011990endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011991endif (gRPC_BUILD_TESTS)
11992if (gRPC_BUILD_TESTS)
11993
11994add_executable(server_crash_test_client
11995 test/cpp/end2end/server_crash_test_client.cc
Ken Payson975b5102017-03-30 17:38:40 -070011996 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070011997 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010011998)
11999
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012000
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012001target_include_directories(server_crash_test_client
12002 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12003 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12004 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12005 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012006 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012007 PRIVATE ${ZLIB_ROOT_DIR}
12008 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012009 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012010 PRIVATE ${CARES_INCLUDE_DIR}
12011 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12012 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012013 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070012014 PRIVATE third_party/googletest/googletest/include
12015 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012016 PRIVATE third_party/googletest/googlemock/include
12017 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012018 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012019)
12020
12021target_link_libraries(server_crash_test_client
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012022 ${_gRPC_PROTOBUF_LIBRARIES}
12023 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012024 grpc++_test_util
12025 grpc_test_util
12026 grpc++
12027 grpc
12028 gpr_test_util
12029 gpr
12030 ${_gRPC_GFLAGS_LIBRARIES}
12031)
12032
12033endif (gRPC_BUILD_TESTS)
12034if (gRPC_BUILD_TESTS)
12035
12036add_executable(shutdown_test
12037 test/cpp/end2end/shutdown_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070012038 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012039 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012040)
12041
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012042
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012043target_include_directories(shutdown_test
12044 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12045 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12046 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12047 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012048 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012049 PRIVATE ${ZLIB_ROOT_DIR}
12050 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012051 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012052 PRIVATE ${CARES_INCLUDE_DIR}
12053 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12054 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012055 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070012056 PRIVATE third_party/googletest/googletest/include
12057 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012058 PRIVATE third_party/googletest/googlemock/include
12059 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012060 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012061)
12062
12063target_link_libraries(shutdown_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012064 ${_gRPC_PROTOBUF_LIBRARIES}
12065 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012066 grpc++_test_util
12067 grpc_test_util
12068 grpc++
12069 grpc
12070 gpr_test_util
12071 gpr
12072 ${_gRPC_GFLAGS_LIBRARIES}
12073)
12074
12075endif (gRPC_BUILD_TESTS)
12076if (gRPC_BUILD_TESTS)
12077
12078add_executable(status_test
12079 test/cpp/util/status_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070012080 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012081 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012082)
12083
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012084
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012085target_include_directories(status_test
12086 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12087 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12088 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12089 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012090 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012091 PRIVATE ${ZLIB_ROOT_DIR}
12092 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012093 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012094 PRIVATE ${CARES_INCLUDE_DIR}
12095 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12096 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012097 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070012098 PRIVATE third_party/googletest/googletest/include
12099 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012100 PRIVATE third_party/googletest/googlemock/include
12101 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012102 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012103)
12104
12105target_link_libraries(status_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012106 ${_gRPC_PROTOBUF_LIBRARIES}
12107 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012108 grpc_test_util
12109 grpc++
12110 grpc
12111 gpr_test_util
12112 gpr
12113 ${_gRPC_GFLAGS_LIBRARIES}
12114)
12115
12116endif (gRPC_BUILD_TESTS)
12117if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012118if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012119
12120add_executable(streaming_throughput_test
12121 test/cpp/end2end/streaming_throughput_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070012122 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012123 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012124)
12125
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012126
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012127target_include_directories(streaming_throughput_test
12128 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12129 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12130 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12131 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012132 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012133 PRIVATE ${ZLIB_ROOT_DIR}
12134 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012135 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012136 PRIVATE ${CARES_INCLUDE_DIR}
12137 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12138 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012139 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070012140 PRIVATE third_party/googletest/googletest/include
12141 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012142 PRIVATE third_party/googletest/googlemock/include
12143 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012144 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012145)
12146
12147target_link_libraries(streaming_throughput_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012148 ${_gRPC_PROTOBUF_LIBRARIES}
12149 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012150 grpc++_test_util
12151 grpc_test_util
12152 grpc++
12153 grpc
12154 gpr_test_util
12155 gpr
12156 ${_gRPC_GFLAGS_LIBRARIES}
12157)
12158
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012159endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012160endif (gRPC_BUILD_TESTS)
12161if (gRPC_BUILD_TESTS)
12162
12163add_executable(stress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012164 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc
12165 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc
12166 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h
12167 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h
12168 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc
12169 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc
12170 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h
12171 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h
12172 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.cc
12173 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.cc
12174 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.h
12175 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.h
12176 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc
12177 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc
12178 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h
12179 ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012180 test/cpp/interop/interop_client.cc
12181 test/cpp/interop/stress_interop_client.cc
12182 test/cpp/interop/stress_test.cc
12183 test/cpp/util/metrics_server.cc
Ken Payson975b5102017-03-30 17:38:40 -070012184 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012185 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012186)
12187
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012188protobuf_generate_grpc_cpp(
12189 src/proto/grpc/testing/empty.proto
12190)
12191protobuf_generate_grpc_cpp(
12192 src/proto/grpc/testing/messages.proto
12193)
12194protobuf_generate_grpc_cpp(
12195 src/proto/grpc/testing/metrics.proto
12196)
12197protobuf_generate_grpc_cpp(
12198 src/proto/grpc/testing/test.proto
12199)
12200
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012201target_include_directories(stress_test
12202 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12203 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12204 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12205 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012206 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012207 PRIVATE ${ZLIB_ROOT_DIR}
12208 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012209 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012210 PRIVATE ${CARES_INCLUDE_DIR}
12211 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12212 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012213 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070012214 PRIVATE third_party/googletest/googletest/include
12215 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012216 PRIVATE third_party/googletest/googlemock/include
12217 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012218 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012219)
12220
12221target_link_libraries(stress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012222 ${_gRPC_PROTOBUF_LIBRARIES}
12223 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012224 grpc++_test_util
12225 grpc_test_util
12226 grpc++
12227 grpc
12228 gpr_test_util
12229 gpr
12230 grpc++_test_config
12231 ${_gRPC_GFLAGS_LIBRARIES}
12232)
12233
12234endif (gRPC_BUILD_TESTS)
12235if (gRPC_BUILD_TESTS)
12236
12237add_executable(thread_manager_test
12238 test/cpp/thread_manager/thread_manager_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070012239 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012240 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012241)
12242
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012243
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012244target_include_directories(thread_manager_test
12245 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12246 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12247 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12248 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012249 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012250 PRIVATE ${ZLIB_ROOT_DIR}
12251 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012252 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012253 PRIVATE ${CARES_INCLUDE_DIR}
12254 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12255 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012256 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070012257 PRIVATE third_party/googletest/googletest/include
12258 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012259 PRIVATE third_party/googletest/googlemock/include
12260 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012261 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012262)
12263
12264target_link_libraries(thread_manager_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012265 ${_gRPC_PROTOBUF_LIBRARIES}
12266 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012267 grpc++
12268 grpc
12269 gpr
12270 grpc++_test_config
12271 ${_gRPC_GFLAGS_LIBRARIES}
12272)
12273
12274endif (gRPC_BUILD_TESTS)
12275if (gRPC_BUILD_TESTS)
12276
12277add_executable(thread_stress_test
12278 test/cpp/end2end/thread_stress_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070012279 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012280 third_party/googletest/googlemock/src/gmock-all.cc
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012281)
12282
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012283
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012284target_include_directories(thread_stress_test
12285 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12286 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12287 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12288 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012289 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012290 PRIVATE ${ZLIB_ROOT_DIR}
12291 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012292 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012293 PRIVATE ${CARES_INCLUDE_DIR}
12294 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12295 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012296 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070012297 PRIVATE third_party/googletest/googletest/include
12298 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012299 PRIVATE third_party/googletest/googlemock/include
12300 PRIVATE third_party/googletest/googlemock
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012301 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012302)
12303
12304target_link_libraries(thread_stress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012305 ${_gRPC_PROTOBUF_LIBRARIES}
12306 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012307 grpc++_test_util
12308 grpc_test_util
12309 grpc++
12310 grpc
12311 gpr_test_util
12312 gpr
12313 ${_gRPC_GFLAGS_LIBRARIES}
12314)
12315
12316endif (gRPC_BUILD_TESTS)
12317if (gRPC_BUILD_TESTS)
Craig Tiller1bb53712017-02-04 15:39:27 -080012318if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012319
Craig Tiller9a3997c2017-01-30 13:22:33 -080012320add_executable(writes_per_rpc_test
12321 test/cpp/performance/writes_per_rpc_test.cc
Ken Payson975b5102017-03-30 17:38:40 -070012322 third_party/googletest/googletest/src/gtest-all.cc
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012323 third_party/googletest/googlemock/src/gmock-all.cc
Craig Tiller9a3997c2017-01-30 13:22:33 -080012324)
12325
Craig Tillerc40b3472017-02-03 11:54:26 -080012326
Craig Tiller9a3997c2017-01-30 13:22:33 -080012327target_include_directories(writes_per_rpc_test
12328 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12329 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12330 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12331 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Craig Tillerc40b3472017-02-03 11:54:26 -080012332 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Craig Tiller9a3997c2017-01-30 13:22:33 -080012333 PRIVATE ${ZLIB_ROOT_DIR}
12334 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012335 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012336 PRIVATE ${CARES_INCLUDE_DIR}
12337 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12338 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Craig Tiller9a3997c2017-01-30 13:22:33 -080012339 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Ken Payson975b5102017-03-30 17:38:40 -070012340 PRIVATE third_party/googletest/googletest/include
12341 PRIVATE third_party/googletest/googletest
Mahak Mukhi78ca0d12017-04-26 13:39:46 -070012342 PRIVATE third_party/googletest/googlemock/include
12343 PRIVATE third_party/googletest/googlemock
Craig Tillerc40b3472017-02-03 11:54:26 -080012344 PRIVATE ${_gRPC_PROTO_GENS_DIR}
Craig Tiller9a3997c2017-01-30 13:22:33 -080012345)
12346
12347target_link_libraries(writes_per_rpc_test
Craig Tillerc40b3472017-02-03 11:54:26 -080012348 ${_gRPC_PROTOBUF_LIBRARIES}
12349 ${_gRPC_ALLTARGETS_LIBRARIES}
Craig Tiller9a3997c2017-01-30 13:22:33 -080012350 grpc++_test_util
12351 grpc_test_util
12352 grpc++
12353 grpc
12354 gpr_test_util
12355 gpr
12356 ${_gRPC_GFLAGS_LIBRARIES}
12357)
12358
Craig Tiller1bb53712017-02-04 15:39:27 -080012359endif()
Craig Tiller9a3997c2017-01-30 13:22:33 -080012360endif (gRPC_BUILD_TESTS)
12361if (gRPC_BUILD_TESTS)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012362
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012363add_executable(public_headers_must_be_c89
12364 test/core/surface/public_headers_must_be_c89.c
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012365)
12366
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012367
12368target_include_directories(public_headers_must_be_c89
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012369 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12370 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12371 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12372 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012373 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012374 PRIVATE ${ZLIB_ROOT_DIR}
12375 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012376 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012377 PRIVATE ${CARES_INCLUDE_DIR}
12378 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12379 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012380 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012381)
12382
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012383target_link_libraries(public_headers_must_be_c89
12384 ${_gRPC_ALLTARGETS_LIBRARIES}
12385 grpc
12386 gpr
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012387)
12388
12389endif (gRPC_BUILD_TESTS)
12390if (gRPC_BUILD_TESTS)
12391
12392add_executable(badreq_bad_client_test
12393 test/core/bad_client/tests/badreq.c
12394)
12395
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012396
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012397target_include_directories(badreq_bad_client_test
12398 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12399 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12400 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12401 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012402 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012403 PRIVATE ${ZLIB_ROOT_DIR}
12404 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012405 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012406 PRIVATE ${CARES_INCLUDE_DIR}
12407 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12408 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012409 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12410)
12411
12412target_link_libraries(badreq_bad_client_test
12413 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012414 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012415 bad_client_test
12416 grpc_test_util_unsecure
12417 grpc_unsecure
12418 gpr_test_util
12419 gpr
12420)
12421
12422endif (gRPC_BUILD_TESTS)
12423if (gRPC_BUILD_TESTS)
12424
12425add_executable(connection_prefix_bad_client_test
12426 test/core/bad_client/tests/connection_prefix.c
12427)
12428
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012429
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012430target_include_directories(connection_prefix_bad_client_test
12431 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12432 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12433 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12434 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012435 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012436 PRIVATE ${ZLIB_ROOT_DIR}
12437 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012438 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012439 PRIVATE ${CARES_INCLUDE_DIR}
12440 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12441 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012442 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12443)
12444
12445target_link_libraries(connection_prefix_bad_client_test
12446 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012447 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012448 bad_client_test
12449 grpc_test_util_unsecure
12450 grpc_unsecure
12451 gpr_test_util
12452 gpr
12453)
12454
12455endif (gRPC_BUILD_TESTS)
12456if (gRPC_BUILD_TESTS)
12457
12458add_executable(head_of_line_blocking_bad_client_test
12459 test/core/bad_client/tests/head_of_line_blocking.c
12460)
12461
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012462
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012463target_include_directories(head_of_line_blocking_bad_client_test
12464 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12465 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12466 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12467 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012468 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012469 PRIVATE ${ZLIB_ROOT_DIR}
12470 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012471 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012472 PRIVATE ${CARES_INCLUDE_DIR}
12473 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12474 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012475 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12476)
12477
12478target_link_libraries(head_of_line_blocking_bad_client_test
12479 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012480 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012481 bad_client_test
12482 grpc_test_util_unsecure
12483 grpc_unsecure
12484 gpr_test_util
12485 gpr
12486)
12487
12488endif (gRPC_BUILD_TESTS)
12489if (gRPC_BUILD_TESTS)
12490
12491add_executable(headers_bad_client_test
12492 test/core/bad_client/tests/headers.c
12493)
12494
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012495
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012496target_include_directories(headers_bad_client_test
12497 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12498 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12499 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12500 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012501 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012502 PRIVATE ${ZLIB_ROOT_DIR}
12503 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012504 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012505 PRIVATE ${CARES_INCLUDE_DIR}
12506 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12507 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012508 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12509)
12510
12511target_link_libraries(headers_bad_client_test
12512 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012513 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012514 bad_client_test
12515 grpc_test_util_unsecure
12516 grpc_unsecure
12517 gpr_test_util
12518 gpr
12519)
12520
12521endif (gRPC_BUILD_TESTS)
12522if (gRPC_BUILD_TESTS)
12523
12524add_executable(initial_settings_frame_bad_client_test
12525 test/core/bad_client/tests/initial_settings_frame.c
12526)
12527
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012528
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012529target_include_directories(initial_settings_frame_bad_client_test
12530 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12531 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12532 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12533 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012534 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012535 PRIVATE ${ZLIB_ROOT_DIR}
12536 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012537 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012538 PRIVATE ${CARES_INCLUDE_DIR}
12539 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12540 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012541 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12542)
12543
12544target_link_libraries(initial_settings_frame_bad_client_test
12545 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012546 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012547 bad_client_test
12548 grpc_test_util_unsecure
12549 grpc_unsecure
12550 gpr_test_util
12551 gpr
12552)
12553
12554endif (gRPC_BUILD_TESTS)
12555if (gRPC_BUILD_TESTS)
12556
12557add_executable(large_metadata_bad_client_test
12558 test/core/bad_client/tests/large_metadata.c
12559)
12560
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012561
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012562target_include_directories(large_metadata_bad_client_test
12563 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12564 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12565 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12566 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012567 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012568 PRIVATE ${ZLIB_ROOT_DIR}
12569 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012570 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012571 PRIVATE ${CARES_INCLUDE_DIR}
12572 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12573 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012574 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12575)
12576
12577target_link_libraries(large_metadata_bad_client_test
12578 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012579 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012580 bad_client_test
12581 grpc_test_util_unsecure
12582 grpc_unsecure
12583 gpr_test_util
12584 gpr
12585)
12586
12587endif (gRPC_BUILD_TESTS)
12588if (gRPC_BUILD_TESTS)
12589
12590add_executable(server_registered_method_bad_client_test
12591 test/core/bad_client/tests/server_registered_method.c
12592)
12593
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012594
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012595target_include_directories(server_registered_method_bad_client_test
12596 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12597 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12598 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12599 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012600 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012601 PRIVATE ${ZLIB_ROOT_DIR}
12602 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012603 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012604 PRIVATE ${CARES_INCLUDE_DIR}
12605 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12606 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012607 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12608)
12609
12610target_link_libraries(server_registered_method_bad_client_test
12611 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012612 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012613 bad_client_test
12614 grpc_test_util_unsecure
12615 grpc_unsecure
12616 gpr_test_util
12617 gpr
12618)
12619
12620endif (gRPC_BUILD_TESTS)
12621if (gRPC_BUILD_TESTS)
12622
12623add_executable(simple_request_bad_client_test
12624 test/core/bad_client/tests/simple_request.c
12625)
12626
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012627
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012628target_include_directories(simple_request_bad_client_test
12629 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12630 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12631 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12632 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012633 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012634 PRIVATE ${ZLIB_ROOT_DIR}
12635 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012636 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012637 PRIVATE ${CARES_INCLUDE_DIR}
12638 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12639 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012640 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12641)
12642
12643target_link_libraries(simple_request_bad_client_test
12644 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012645 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012646 bad_client_test
12647 grpc_test_util_unsecure
12648 grpc_unsecure
12649 gpr_test_util
12650 gpr
12651)
12652
12653endif (gRPC_BUILD_TESTS)
12654if (gRPC_BUILD_TESTS)
12655
12656add_executable(unknown_frame_bad_client_test
12657 test/core/bad_client/tests/unknown_frame.c
12658)
12659
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012660
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012661target_include_directories(unknown_frame_bad_client_test
12662 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12663 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12664 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12665 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012666 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012667 PRIVATE ${ZLIB_ROOT_DIR}
12668 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012669 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012670 PRIVATE ${CARES_INCLUDE_DIR}
12671 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12672 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012673 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12674)
12675
12676target_link_libraries(unknown_frame_bad_client_test
12677 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012678 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012679 bad_client_test
12680 grpc_test_util_unsecure
12681 grpc_unsecure
12682 gpr_test_util
12683 gpr
12684)
12685
12686endif (gRPC_BUILD_TESTS)
12687if (gRPC_BUILD_TESTS)
12688
12689add_executable(window_overflow_bad_client_test
12690 test/core/bad_client/tests/window_overflow.c
12691)
12692
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012693
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012694target_include_directories(window_overflow_bad_client_test
12695 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12696 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12697 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12698 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012699 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012700 PRIVATE ${ZLIB_ROOT_DIR}
12701 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012702 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012703 PRIVATE ${CARES_INCLUDE_DIR}
12704 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12705 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012706 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12707)
12708
12709target_link_libraries(window_overflow_bad_client_test
12710 ${_gRPC_SSL_LIBRARIES}
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012711 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012712 bad_client_test
12713 grpc_test_util_unsecure
12714 grpc_unsecure
12715 gpr_test_util
12716 gpr
12717)
12718
12719endif (gRPC_BUILD_TESTS)
12720if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012721if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012722
12723add_executable(bad_ssl_cert_server
12724 test/core/bad_ssl/servers/cert.c
12725)
12726
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012727
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012728target_include_directories(bad_ssl_cert_server
12729 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12730 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12731 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12732 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012733 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012734 PRIVATE ${ZLIB_ROOT_DIR}
12735 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012736 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012737 PRIVATE ${CARES_INCLUDE_DIR}
12738 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12739 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012740 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12741)
12742
12743target_link_libraries(bad_ssl_cert_server
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012744 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012745 bad_ssl_test_server
12746 grpc_test_util
12747 grpc
12748 gpr_test_util
12749 gpr
12750)
12751
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012752endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012753endif (gRPC_BUILD_TESTS)
12754if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012755if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012756
12757add_executable(bad_ssl_cert_test
12758 test/core/bad_ssl/bad_ssl_test.c
12759)
12760
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012761
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012762target_include_directories(bad_ssl_cert_test
12763 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12764 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12765 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12766 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012767 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012768 PRIVATE ${ZLIB_ROOT_DIR}
12769 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012770 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012771 PRIVATE ${CARES_INCLUDE_DIR}
12772 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12773 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012774 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12775)
12776
12777target_link_libraries(bad_ssl_cert_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012778 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012779 grpc_test_util
12780 grpc
12781 gpr_test_util
12782 gpr
12783)
12784
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012785endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012786endif (gRPC_BUILD_TESTS)
12787if (gRPC_BUILD_TESTS)
12788
12789add_executable(h2_census_test
12790 test/core/end2end/fixtures/h2_census.c
12791)
12792
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012793
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012794target_include_directories(h2_census_test
12795 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12796 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12797 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12798 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012799 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012800 PRIVATE ${ZLIB_ROOT_DIR}
12801 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012802 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012803 PRIVATE ${CARES_INCLUDE_DIR}
12804 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12805 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012806 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12807)
12808
12809target_link_libraries(h2_census_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012810 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012811 end2end_tests
12812 grpc_test_util
12813 grpc
12814 gpr_test_util
12815 gpr
12816)
12817
12818endif (gRPC_BUILD_TESTS)
12819if (gRPC_BUILD_TESTS)
12820
12821add_executable(h2_compress_test
12822 test/core/end2end/fixtures/h2_compress.c
12823)
12824
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012825
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012826target_include_directories(h2_compress_test
12827 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12828 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12829 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12830 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012831 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012832 PRIVATE ${ZLIB_ROOT_DIR}
12833 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012834 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012835 PRIVATE ${CARES_INCLUDE_DIR}
12836 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12837 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012838 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12839)
12840
12841target_link_libraries(h2_compress_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012842 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012843 end2end_tests
12844 grpc_test_util
12845 grpc
12846 gpr_test_util
12847 gpr
12848)
12849
12850endif (gRPC_BUILD_TESTS)
12851if (gRPC_BUILD_TESTS)
12852
12853add_executable(h2_fakesec_test
12854 test/core/end2end/fixtures/h2_fakesec.c
12855)
12856
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012857
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012858target_include_directories(h2_fakesec_test
12859 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12860 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12861 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12862 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012863 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012864 PRIVATE ${ZLIB_ROOT_DIR}
12865 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012866 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012867 PRIVATE ${CARES_INCLUDE_DIR}
12868 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12869 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012870 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12871)
12872
12873target_link_libraries(h2_fakesec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012874 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012875 end2end_tests
12876 grpc_test_util
12877 grpc
12878 gpr_test_util
12879 gpr
12880)
12881
12882endif (gRPC_BUILD_TESTS)
12883if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012884if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012885
12886add_executable(h2_fd_test
12887 test/core/end2end/fixtures/h2_fd.c
12888)
12889
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012890
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012891target_include_directories(h2_fd_test
12892 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12893 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12894 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12895 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012896 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012897 PRIVATE ${ZLIB_ROOT_DIR}
12898 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012899 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012900 PRIVATE ${CARES_INCLUDE_DIR}
12901 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12902 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012903 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12904)
12905
12906target_link_libraries(h2_fd_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012907 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012908 end2end_tests
12909 grpc_test_util
12910 grpc
12911 gpr_test_util
12912 gpr
12913)
12914
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012915endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012916endif (gRPC_BUILD_TESTS)
12917if (gRPC_BUILD_TESTS)
12918
12919add_executable(h2_full_test
12920 test/core/end2end/fixtures/h2_full.c
12921)
12922
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012923
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012924target_include_directories(h2_full_test
12925 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12926 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12927 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12928 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012929 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012930 PRIVATE ${ZLIB_ROOT_DIR}
12931 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012932 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012933 PRIVATE ${CARES_INCLUDE_DIR}
12934 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12935 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012936 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12937)
12938
12939target_link_libraries(h2_full_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012940 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012941 end2end_tests
12942 grpc_test_util
12943 grpc
12944 gpr_test_util
12945 gpr
12946)
12947
12948endif (gRPC_BUILD_TESTS)
12949if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012950if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012951
12952add_executable(h2_full+pipe_test
12953 test/core/end2end/fixtures/h2_full+pipe.c
12954)
12955
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012956
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012957target_include_directories(h2_full+pipe_test
12958 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12959 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12960 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12961 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012962 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012963 PRIVATE ${ZLIB_ROOT_DIR}
12964 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012965 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012966 PRIVATE ${CARES_INCLUDE_DIR}
12967 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
12968 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012969 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
12970)
12971
12972target_link_libraries(h2_full+pipe_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012973 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012974 end2end_tests
12975 grpc_test_util
12976 grpc
12977 gpr_test_util
12978 gpr
12979)
12980
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012981endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012982endif (gRPC_BUILD_TESTS)
12983if (gRPC_BUILD_TESTS)
12984
12985add_executable(h2_full+trace_test
12986 test/core/end2end/fixtures/h2_full+trace.c
12987)
12988
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012989
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012990target_include_directories(h2_full+trace_test
12991 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
12992 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
12993 PRIVATE ${BORINGSSL_ROOT_DIR}/include
12994 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010012995 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010012996 PRIVATE ${ZLIB_ROOT_DIR}
12997 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070012998 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070012999 PRIVATE ${CARES_INCLUDE_DIR}
13000 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13001 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013002 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13003)
13004
13005target_link_libraries(h2_full+trace_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013006 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013007 end2end_tests
13008 grpc_test_util
13009 grpc
13010 gpr_test_util
13011 gpr
13012)
13013
13014endif (gRPC_BUILD_TESTS)
13015if (gRPC_BUILD_TESTS)
13016
Muxi Yan29ff4662017-05-15 10:27:55 -070013017add_executable(h2_full+workarounds_test
13018 test/core/end2end/fixtures/h2_full+workarounds.c
13019)
13020
13021
13022target_include_directories(h2_full+workarounds_test
13023 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13024 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13025 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13026 PRIVATE ${PROTOBUF_ROOT_DIR}/src
13027 PRIVATE ${BENCHMARK_ROOT_DIR}/include
13028 PRIVATE ${ZLIB_ROOT_DIR}
13029 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
13030 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
13031 PRIVATE ${CARES_INCLUDE_DIR}
13032 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13033 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
13034 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13035)
13036
13037target_link_libraries(h2_full+workarounds_test
13038 ${_gRPC_ALLTARGETS_LIBRARIES}
13039 end2end_tests
13040 grpc_test_util
13041 grpc
13042 gpr_test_util
13043 gpr
13044)
13045
13046endif (gRPC_BUILD_TESTS)
13047if (gRPC_BUILD_TESTS)
13048
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013049add_executable(h2_http_proxy_test
13050 test/core/end2end/fixtures/h2_http_proxy.c
13051)
13052
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013053
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013054target_include_directories(h2_http_proxy_test
13055 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13056 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13057 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13058 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013059 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013060 PRIVATE ${ZLIB_ROOT_DIR}
13061 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013062 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013063 PRIVATE ${CARES_INCLUDE_DIR}
13064 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13065 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013066 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13067)
13068
13069target_link_libraries(h2_http_proxy_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013070 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013071 end2end_tests
13072 grpc_test_util
13073 grpc
13074 gpr_test_util
13075 gpr
13076)
13077
13078endif (gRPC_BUILD_TESTS)
13079if (gRPC_BUILD_TESTS)
13080
13081add_executable(h2_load_reporting_test
13082 test/core/end2end/fixtures/h2_load_reporting.c
13083)
13084
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013085
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013086target_include_directories(h2_load_reporting_test
13087 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13088 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13089 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13090 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013091 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013092 PRIVATE ${ZLIB_ROOT_DIR}
13093 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013094 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013095 PRIVATE ${CARES_INCLUDE_DIR}
13096 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13097 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013098 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13099)
13100
13101target_link_libraries(h2_load_reporting_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013102 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013103 end2end_tests
13104 grpc_test_util
13105 grpc
13106 gpr_test_util
13107 gpr
13108)
13109
13110endif (gRPC_BUILD_TESTS)
13111if (gRPC_BUILD_TESTS)
13112
13113add_executable(h2_oauth2_test
13114 test/core/end2end/fixtures/h2_oauth2.c
13115)
13116
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013117
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013118target_include_directories(h2_oauth2_test
13119 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13120 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13121 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13122 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013123 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013124 PRIVATE ${ZLIB_ROOT_DIR}
13125 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013126 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013127 PRIVATE ${CARES_INCLUDE_DIR}
13128 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13129 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013130 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13131)
13132
13133target_link_libraries(h2_oauth2_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013134 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013135 end2end_tests
13136 grpc_test_util
13137 grpc
13138 gpr_test_util
13139 gpr
13140)
13141
13142endif (gRPC_BUILD_TESTS)
13143if (gRPC_BUILD_TESTS)
13144
13145add_executable(h2_proxy_test
13146 test/core/end2end/fixtures/h2_proxy.c
13147)
13148
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013149
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013150target_include_directories(h2_proxy_test
13151 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13152 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13153 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13154 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013155 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013156 PRIVATE ${ZLIB_ROOT_DIR}
13157 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013158 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013159 PRIVATE ${CARES_INCLUDE_DIR}
13160 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13161 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013162 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13163)
13164
13165target_link_libraries(h2_proxy_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013166 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013167 end2end_tests
13168 grpc_test_util
13169 grpc
13170 gpr_test_util
13171 gpr
13172)
13173
13174endif (gRPC_BUILD_TESTS)
13175if (gRPC_BUILD_TESTS)
13176
13177add_executable(h2_sockpair_test
13178 test/core/end2end/fixtures/h2_sockpair.c
13179)
13180
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013181
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013182target_include_directories(h2_sockpair_test
13183 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13184 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13185 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13186 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013187 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013188 PRIVATE ${ZLIB_ROOT_DIR}
13189 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013190 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013191 PRIVATE ${CARES_INCLUDE_DIR}
13192 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13193 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013194 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13195)
13196
13197target_link_libraries(h2_sockpair_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013198 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013199 end2end_tests
13200 grpc_test_util
13201 grpc
13202 gpr_test_util
13203 gpr
13204)
13205
13206endif (gRPC_BUILD_TESTS)
13207if (gRPC_BUILD_TESTS)
13208
13209add_executable(h2_sockpair+trace_test
13210 test/core/end2end/fixtures/h2_sockpair+trace.c
13211)
13212
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013213
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013214target_include_directories(h2_sockpair+trace_test
13215 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13216 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13217 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13218 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013219 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013220 PRIVATE ${ZLIB_ROOT_DIR}
13221 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013222 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013223 PRIVATE ${CARES_INCLUDE_DIR}
13224 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13225 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013226 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13227)
13228
13229target_link_libraries(h2_sockpair+trace_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013230 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013231 end2end_tests
13232 grpc_test_util
13233 grpc
13234 gpr_test_util
13235 gpr
13236)
13237
13238endif (gRPC_BUILD_TESTS)
13239if (gRPC_BUILD_TESTS)
13240
13241add_executable(h2_sockpair_1byte_test
13242 test/core/end2end/fixtures/h2_sockpair_1byte.c
13243)
13244
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013245
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013246target_include_directories(h2_sockpair_1byte_test
13247 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13248 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13249 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13250 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013251 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013252 PRIVATE ${ZLIB_ROOT_DIR}
13253 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013254 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013255 PRIVATE ${CARES_INCLUDE_DIR}
13256 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13257 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013258 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13259)
13260
13261target_link_libraries(h2_sockpair_1byte_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013262 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013263 end2end_tests
13264 grpc_test_util
13265 grpc
13266 gpr_test_util
13267 gpr
13268)
13269
13270endif (gRPC_BUILD_TESTS)
13271if (gRPC_BUILD_TESTS)
13272
13273add_executable(h2_ssl_test
13274 test/core/end2end/fixtures/h2_ssl.c
13275)
13276
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013277
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013278target_include_directories(h2_ssl_test
13279 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13280 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13281 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13282 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013283 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013284 PRIVATE ${ZLIB_ROOT_DIR}
13285 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013286 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013287 PRIVATE ${CARES_INCLUDE_DIR}
13288 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13289 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013290 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13291)
13292
13293target_link_libraries(h2_ssl_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013294 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013295 end2end_tests
13296 grpc_test_util
13297 grpc
13298 gpr_test_util
13299 gpr
13300)
13301
13302endif (gRPC_BUILD_TESTS)
13303if (gRPC_BUILD_TESTS)
13304
13305add_executable(h2_ssl_cert_test
13306 test/core/end2end/fixtures/h2_ssl_cert.c
13307)
13308
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013309
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013310target_include_directories(h2_ssl_cert_test
13311 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13312 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13313 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13314 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013315 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013316 PRIVATE ${ZLIB_ROOT_DIR}
13317 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013318 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013319 PRIVATE ${CARES_INCLUDE_DIR}
13320 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13321 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013322 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13323)
13324
13325target_link_libraries(h2_ssl_cert_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013326 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013327 end2end_tests
13328 grpc_test_util
13329 grpc
13330 gpr_test_util
13331 gpr
13332)
13333
13334endif (gRPC_BUILD_TESTS)
13335if (gRPC_BUILD_TESTS)
13336
13337add_executable(h2_ssl_proxy_test
13338 test/core/end2end/fixtures/h2_ssl_proxy.c
13339)
13340
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013341
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013342target_include_directories(h2_ssl_proxy_test
13343 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13344 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13345 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13346 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013347 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013348 PRIVATE ${ZLIB_ROOT_DIR}
13349 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013350 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013351 PRIVATE ${CARES_INCLUDE_DIR}
13352 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13353 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013354 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13355)
13356
13357target_link_libraries(h2_ssl_proxy_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013358 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013359 end2end_tests
13360 grpc_test_util
13361 grpc
13362 gpr_test_util
13363 gpr
13364)
13365
13366endif (gRPC_BUILD_TESTS)
13367if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013368if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013369
13370add_executable(h2_uds_test
13371 test/core/end2end/fixtures/h2_uds.c
13372)
13373
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013374
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013375target_include_directories(h2_uds_test
13376 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13377 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13378 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13379 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013380 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013381 PRIVATE ${ZLIB_ROOT_DIR}
13382 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013383 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013384 PRIVATE ${CARES_INCLUDE_DIR}
13385 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13386 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013387 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13388)
13389
13390target_link_libraries(h2_uds_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013391 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013392 end2end_tests
13393 grpc_test_util
13394 grpc
13395 gpr_test_util
13396 gpr
13397)
13398
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013399endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013400endif (gRPC_BUILD_TESTS)
13401if (gRPC_BUILD_TESTS)
13402
Vijay Pai3d7d5f42017-05-04 10:02:24 -070013403add_executable(inproc_test
13404 test/core/end2end/fixtures/inproc.c
13405)
13406
13407
13408target_include_directories(inproc_test
13409 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13410 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13411 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13412 PRIVATE ${PROTOBUF_ROOT_DIR}/src
13413 PRIVATE ${BENCHMARK_ROOT_DIR}/include
13414 PRIVATE ${ZLIB_ROOT_DIR}
13415 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
13416 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
13417 PRIVATE ${CARES_INCLUDE_DIR}
13418 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13419 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
13420 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13421)
13422
13423target_link_libraries(inproc_test
13424 ${_gRPC_ALLTARGETS_LIBRARIES}
13425 end2end_tests
13426 grpc_test_util
13427 grpc
13428 gpr_test_util
13429 gpr
13430)
13431
13432endif (gRPC_BUILD_TESTS)
13433if (gRPC_BUILD_TESTS)
13434
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013435add_executable(h2_census_nosec_test
13436 test/core/end2end/fixtures/h2_census.c
13437)
13438
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013439
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013440target_include_directories(h2_census_nosec_test
13441 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13442 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13443 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13444 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013445 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013446 PRIVATE ${ZLIB_ROOT_DIR}
13447 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013448 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013449 PRIVATE ${CARES_INCLUDE_DIR}
13450 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13451 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013452 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13453)
13454
13455target_link_libraries(h2_census_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013456 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013457 end2end_nosec_tests
13458 grpc_test_util_unsecure
13459 grpc_unsecure
13460 gpr_test_util
13461 gpr
13462)
13463
13464endif (gRPC_BUILD_TESTS)
13465if (gRPC_BUILD_TESTS)
13466
13467add_executable(h2_compress_nosec_test
13468 test/core/end2end/fixtures/h2_compress.c
13469)
13470
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013471
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013472target_include_directories(h2_compress_nosec_test
13473 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13474 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13475 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13476 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013477 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013478 PRIVATE ${ZLIB_ROOT_DIR}
13479 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013480 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013481 PRIVATE ${CARES_INCLUDE_DIR}
13482 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13483 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013484 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13485)
13486
13487target_link_libraries(h2_compress_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013488 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013489 end2end_nosec_tests
13490 grpc_test_util_unsecure
13491 grpc_unsecure
13492 gpr_test_util
13493 gpr
13494)
13495
13496endif (gRPC_BUILD_TESTS)
13497if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013498if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013499
13500add_executable(h2_fd_nosec_test
13501 test/core/end2end/fixtures/h2_fd.c
13502)
13503
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013504
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013505target_include_directories(h2_fd_nosec_test
13506 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13507 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13508 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13509 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013510 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013511 PRIVATE ${ZLIB_ROOT_DIR}
13512 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013513 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013514 PRIVATE ${CARES_INCLUDE_DIR}
13515 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13516 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013517 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13518)
13519
13520target_link_libraries(h2_fd_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013521 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013522 end2end_nosec_tests
13523 grpc_test_util_unsecure
13524 grpc_unsecure
13525 gpr_test_util
13526 gpr
13527)
13528
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013529endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013530endif (gRPC_BUILD_TESTS)
13531if (gRPC_BUILD_TESTS)
13532
13533add_executable(h2_full_nosec_test
13534 test/core/end2end/fixtures/h2_full.c
13535)
13536
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013537
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013538target_include_directories(h2_full_nosec_test
13539 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13540 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13541 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13542 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013543 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013544 PRIVATE ${ZLIB_ROOT_DIR}
13545 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013546 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013547 PRIVATE ${CARES_INCLUDE_DIR}
13548 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13549 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013550 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13551)
13552
13553target_link_libraries(h2_full_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013554 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013555 end2end_nosec_tests
13556 grpc_test_util_unsecure
13557 grpc_unsecure
13558 gpr_test_util
13559 gpr
13560)
13561
13562endif (gRPC_BUILD_TESTS)
13563if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013564if(_gRPC_PLATFORM_LINUX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013565
13566add_executable(h2_full+pipe_nosec_test
13567 test/core/end2end/fixtures/h2_full+pipe.c
13568)
13569
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013570
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013571target_include_directories(h2_full+pipe_nosec_test
13572 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13573 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13574 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13575 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013576 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013577 PRIVATE ${ZLIB_ROOT_DIR}
13578 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013579 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013580 PRIVATE ${CARES_INCLUDE_DIR}
13581 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13582 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013583 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13584)
13585
13586target_link_libraries(h2_full+pipe_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013587 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013588 end2end_nosec_tests
13589 grpc_test_util_unsecure
13590 grpc_unsecure
13591 gpr_test_util
13592 gpr
13593)
13594
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013595endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013596endif (gRPC_BUILD_TESTS)
13597if (gRPC_BUILD_TESTS)
13598
13599add_executable(h2_full+trace_nosec_test
13600 test/core/end2end/fixtures/h2_full+trace.c
13601)
13602
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013603
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013604target_include_directories(h2_full+trace_nosec_test
13605 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13606 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13607 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13608 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013609 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013610 PRIVATE ${ZLIB_ROOT_DIR}
13611 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013612 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013613 PRIVATE ${CARES_INCLUDE_DIR}
13614 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13615 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013616 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13617)
13618
13619target_link_libraries(h2_full+trace_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013620 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013621 end2end_nosec_tests
13622 grpc_test_util_unsecure
13623 grpc_unsecure
13624 gpr_test_util
13625 gpr
13626)
13627
13628endif (gRPC_BUILD_TESTS)
13629if (gRPC_BUILD_TESTS)
13630
Muxi Yan29ff4662017-05-15 10:27:55 -070013631add_executable(h2_full+workarounds_nosec_test
13632 test/core/end2end/fixtures/h2_full+workarounds.c
13633)
13634
13635
13636target_include_directories(h2_full+workarounds_nosec_test
13637 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13638 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13639 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13640 PRIVATE ${PROTOBUF_ROOT_DIR}/src
13641 PRIVATE ${BENCHMARK_ROOT_DIR}/include
13642 PRIVATE ${ZLIB_ROOT_DIR}
13643 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
13644 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
13645 PRIVATE ${CARES_INCLUDE_DIR}
13646 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13647 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
13648 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13649)
13650
13651target_link_libraries(h2_full+workarounds_nosec_test
13652 ${_gRPC_ALLTARGETS_LIBRARIES}
13653 end2end_nosec_tests
13654 grpc_test_util_unsecure
13655 grpc_unsecure
13656 gpr_test_util
13657 gpr
13658)
13659
13660endif (gRPC_BUILD_TESTS)
13661if (gRPC_BUILD_TESTS)
13662
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013663add_executable(h2_http_proxy_nosec_test
13664 test/core/end2end/fixtures/h2_http_proxy.c
13665)
13666
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013667
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013668target_include_directories(h2_http_proxy_nosec_test
13669 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13670 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13671 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13672 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013673 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013674 PRIVATE ${ZLIB_ROOT_DIR}
13675 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013676 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013677 PRIVATE ${CARES_INCLUDE_DIR}
13678 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13679 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013680 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13681)
13682
13683target_link_libraries(h2_http_proxy_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013684 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013685 end2end_nosec_tests
13686 grpc_test_util_unsecure
13687 grpc_unsecure
13688 gpr_test_util
13689 gpr
13690)
13691
13692endif (gRPC_BUILD_TESTS)
13693if (gRPC_BUILD_TESTS)
13694
13695add_executable(h2_load_reporting_nosec_test
13696 test/core/end2end/fixtures/h2_load_reporting.c
13697)
13698
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013699
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013700target_include_directories(h2_load_reporting_nosec_test
13701 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13702 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13703 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13704 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013705 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013706 PRIVATE ${ZLIB_ROOT_DIR}
13707 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013708 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013709 PRIVATE ${CARES_INCLUDE_DIR}
13710 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13711 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013712 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13713)
13714
13715target_link_libraries(h2_load_reporting_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013716 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013717 end2end_nosec_tests
13718 grpc_test_util_unsecure
13719 grpc_unsecure
13720 gpr_test_util
13721 gpr
13722)
13723
13724endif (gRPC_BUILD_TESTS)
13725if (gRPC_BUILD_TESTS)
13726
13727add_executable(h2_proxy_nosec_test
13728 test/core/end2end/fixtures/h2_proxy.c
13729)
13730
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013731
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013732target_include_directories(h2_proxy_nosec_test
13733 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13734 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13735 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13736 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013737 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013738 PRIVATE ${ZLIB_ROOT_DIR}
13739 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013740 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013741 PRIVATE ${CARES_INCLUDE_DIR}
13742 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13743 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013744 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13745)
13746
13747target_link_libraries(h2_proxy_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013748 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013749 end2end_nosec_tests
13750 grpc_test_util_unsecure
13751 grpc_unsecure
13752 gpr_test_util
13753 gpr
13754)
13755
13756endif (gRPC_BUILD_TESTS)
13757if (gRPC_BUILD_TESTS)
13758
13759add_executable(h2_sockpair_nosec_test
13760 test/core/end2end/fixtures/h2_sockpair.c
13761)
13762
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013763
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013764target_include_directories(h2_sockpair_nosec_test
13765 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13766 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13767 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13768 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013769 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013770 PRIVATE ${ZLIB_ROOT_DIR}
13771 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013772 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013773 PRIVATE ${CARES_INCLUDE_DIR}
13774 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13775 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013776 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13777)
13778
13779target_link_libraries(h2_sockpair_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013780 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013781 end2end_nosec_tests
13782 grpc_test_util_unsecure
13783 grpc_unsecure
13784 gpr_test_util
13785 gpr
13786)
13787
13788endif (gRPC_BUILD_TESTS)
13789if (gRPC_BUILD_TESTS)
13790
13791add_executable(h2_sockpair+trace_nosec_test
13792 test/core/end2end/fixtures/h2_sockpair+trace.c
13793)
13794
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013795
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013796target_include_directories(h2_sockpair+trace_nosec_test
13797 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13798 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13799 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13800 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013801 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013802 PRIVATE ${ZLIB_ROOT_DIR}
13803 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013804 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013805 PRIVATE ${CARES_INCLUDE_DIR}
13806 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13807 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013808 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13809)
13810
13811target_link_libraries(h2_sockpair+trace_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013812 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013813 end2end_nosec_tests
13814 grpc_test_util_unsecure
13815 grpc_unsecure
13816 gpr_test_util
13817 gpr
13818)
13819
13820endif (gRPC_BUILD_TESTS)
13821if (gRPC_BUILD_TESTS)
13822
13823add_executable(h2_sockpair_1byte_nosec_test
13824 test/core/end2end/fixtures/h2_sockpair_1byte.c
13825)
13826
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013827
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013828target_include_directories(h2_sockpair_1byte_nosec_test
13829 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13830 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13831 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13832 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013833 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013834 PRIVATE ${ZLIB_ROOT_DIR}
13835 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013836 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013837 PRIVATE ${CARES_INCLUDE_DIR}
13838 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13839 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013840 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13841)
13842
13843target_link_libraries(h2_sockpair_1byte_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013844 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013845 end2end_nosec_tests
13846 grpc_test_util_unsecure
13847 grpc_unsecure
13848 gpr_test_util
13849 gpr
13850)
13851
13852endif (gRPC_BUILD_TESTS)
13853if (gRPC_BUILD_TESTS)
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013854if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX)
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013855
13856add_executable(h2_uds_nosec_test
13857 test/core/end2end/fixtures/h2_uds.c
13858)
13859
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013860
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013861target_include_directories(h2_uds_nosec_test
13862 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13863 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13864 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13865 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013866 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013867 PRIVATE ${ZLIB_ROOT_DIR}
13868 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013869 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013870 PRIVATE ${CARES_INCLUDE_DIR}
13871 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13872 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013873 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13874)
13875
13876target_link_libraries(h2_uds_nosec_test
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013877 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013878 end2end_nosec_tests
13879 grpc_test_util_unsecure
13880 grpc_unsecure
13881 gpr_test_util
13882 gpr
13883)
13884
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013885endif()
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013886endif (gRPC_BUILD_TESTS)
13887if (gRPC_BUILD_TESTS)
13888
Vijay Pai3d7d5f42017-05-04 10:02:24 -070013889add_executable(inproc_nosec_test
13890 test/core/end2end/fixtures/inproc.c
13891)
13892
13893
13894target_include_directories(inproc_nosec_test
13895 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13896 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13897 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13898 PRIVATE ${PROTOBUF_ROOT_DIR}/src
13899 PRIVATE ${BENCHMARK_ROOT_DIR}/include
13900 PRIVATE ${ZLIB_ROOT_DIR}
13901 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
13902 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
13903 PRIVATE ${CARES_INCLUDE_DIR}
13904 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13905 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
13906 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13907)
13908
13909target_link_libraries(inproc_nosec_test
13910 ${_gRPC_ALLTARGETS_LIBRARIES}
13911 end2end_nosec_tests
13912 grpc_test_util_unsecure
13913 grpc_unsecure
13914 gpr_test_util
13915 gpr
13916)
13917
13918endif (gRPC_BUILD_TESTS)
13919if (gRPC_BUILD_TESTS)
13920
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013921add_executable(api_fuzzer_one_entry
13922 test/core/end2end/fuzzers/api_fuzzer.c
13923 test/core/util/one_corpus_entry_fuzzer.c
13924)
13925
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013926
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013927target_include_directories(api_fuzzer_one_entry
13928 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13929 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13930 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13931 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013932 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013933 PRIVATE ${ZLIB_ROOT_DIR}
13934 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013935 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013936 PRIVATE ${CARES_INCLUDE_DIR}
13937 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13938 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013939 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13940)
13941
13942target_link_libraries(api_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013943 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013944 grpc_test_util
13945 grpc
13946 gpr_test_util
13947 gpr
13948)
13949
13950endif (gRPC_BUILD_TESTS)
13951if (gRPC_BUILD_TESTS)
13952
13953add_executable(client_fuzzer_one_entry
13954 test/core/end2end/fuzzers/client_fuzzer.c
13955 test/core/util/one_corpus_entry_fuzzer.c
13956)
13957
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013958
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013959target_include_directories(client_fuzzer_one_entry
13960 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13961 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13962 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13963 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013964 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013965 PRIVATE ${ZLIB_ROOT_DIR}
13966 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013967 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070013968 PRIVATE ${CARES_INCLUDE_DIR}
13969 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
13970 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013971 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
13972)
13973
13974target_link_libraries(client_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013975 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013976 grpc_test_util
13977 grpc
13978 gpr_test_util
13979 gpr
13980)
13981
13982endif (gRPC_BUILD_TESTS)
13983if (gRPC_BUILD_TESTS)
13984
13985add_executable(hpack_parser_fuzzer_test_one_entry
13986 test/core/transport/chttp2/hpack_parser_fuzzer_test.c
13987 test/core/util/one_corpus_entry_fuzzer.c
13988)
13989
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013990
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013991target_include_directories(hpack_parser_fuzzer_test_one_entry
13992 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
13993 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
13994 PRIVATE ${BORINGSSL_ROOT_DIR}/include
13995 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010013996 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010013997 PRIVATE ${ZLIB_ROOT_DIR}
13998 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070013999 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070014000 PRIVATE ${CARES_INCLUDE_DIR}
14001 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
14002 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014003 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
14004)
14005
14006target_link_libraries(hpack_parser_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014007 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014008 grpc_test_util
14009 grpc
14010 gpr_test_util
14011 gpr
14012)
14013
14014endif (gRPC_BUILD_TESTS)
14015if (gRPC_BUILD_TESTS)
14016
14017add_executable(http_request_fuzzer_test_one_entry
14018 test/core/http/request_fuzzer.c
14019 test/core/util/one_corpus_entry_fuzzer.c
14020)
14021
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014022
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014023target_include_directories(http_request_fuzzer_test_one_entry
14024 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14025 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
14026 PRIVATE ${BORINGSSL_ROOT_DIR}/include
14027 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014028 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014029 PRIVATE ${ZLIB_ROOT_DIR}
14030 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070014031 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070014032 PRIVATE ${CARES_INCLUDE_DIR}
14033 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
14034 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014035 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
14036)
14037
14038target_link_libraries(http_request_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014039 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014040 grpc_test_util
14041 grpc
14042 gpr_test_util
14043 gpr
14044)
14045
14046endif (gRPC_BUILD_TESTS)
14047if (gRPC_BUILD_TESTS)
14048
14049add_executable(http_response_fuzzer_test_one_entry
14050 test/core/http/response_fuzzer.c
14051 test/core/util/one_corpus_entry_fuzzer.c
14052)
14053
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014054
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014055target_include_directories(http_response_fuzzer_test_one_entry
14056 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14057 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
14058 PRIVATE ${BORINGSSL_ROOT_DIR}/include
14059 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014060 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014061 PRIVATE ${ZLIB_ROOT_DIR}
14062 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070014063 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070014064 PRIVATE ${CARES_INCLUDE_DIR}
14065 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
14066 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014067 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
14068)
14069
14070target_link_libraries(http_response_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014071 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014072 grpc_test_util
14073 grpc
14074 gpr_test_util
14075 gpr
14076)
14077
14078endif (gRPC_BUILD_TESTS)
14079if (gRPC_BUILD_TESTS)
14080
14081add_executable(json_fuzzer_test_one_entry
14082 test/core/json/fuzzer.c
14083 test/core/util/one_corpus_entry_fuzzer.c
14084)
14085
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014086
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014087target_include_directories(json_fuzzer_test_one_entry
14088 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14089 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
14090 PRIVATE ${BORINGSSL_ROOT_DIR}/include
14091 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014092 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014093 PRIVATE ${ZLIB_ROOT_DIR}
14094 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070014095 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070014096 PRIVATE ${CARES_INCLUDE_DIR}
14097 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
14098 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014099 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
14100)
14101
14102target_link_libraries(json_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014103 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014104 grpc_test_util
14105 grpc
14106 gpr_test_util
14107 gpr
14108)
14109
14110endif (gRPC_BUILD_TESTS)
14111if (gRPC_BUILD_TESTS)
14112
14113add_executable(nanopb_fuzzer_response_test_one_entry
14114 test/core/nanopb/fuzzer_response.c
14115 test/core/util/one_corpus_entry_fuzzer.c
14116)
14117
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014118
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014119target_include_directories(nanopb_fuzzer_response_test_one_entry
14120 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14121 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
14122 PRIVATE ${BORINGSSL_ROOT_DIR}/include
14123 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014124 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014125 PRIVATE ${ZLIB_ROOT_DIR}
14126 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070014127 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070014128 PRIVATE ${CARES_INCLUDE_DIR}
14129 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
14130 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014131 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
14132)
14133
14134target_link_libraries(nanopb_fuzzer_response_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014135 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014136 grpc_test_util
14137 grpc
14138 gpr_test_util
14139 gpr
14140)
14141
14142endif (gRPC_BUILD_TESTS)
14143if (gRPC_BUILD_TESTS)
14144
14145add_executable(nanopb_fuzzer_serverlist_test_one_entry
14146 test/core/nanopb/fuzzer_serverlist.c
14147 test/core/util/one_corpus_entry_fuzzer.c
14148)
14149
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014150
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014151target_include_directories(nanopb_fuzzer_serverlist_test_one_entry
14152 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14153 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
14154 PRIVATE ${BORINGSSL_ROOT_DIR}/include
14155 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014156 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014157 PRIVATE ${ZLIB_ROOT_DIR}
14158 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070014159 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070014160 PRIVATE ${CARES_INCLUDE_DIR}
14161 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
14162 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014163 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
14164)
14165
14166target_link_libraries(nanopb_fuzzer_serverlist_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014167 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014168 grpc_test_util
14169 grpc
14170 gpr_test_util
14171 gpr
14172)
14173
14174endif (gRPC_BUILD_TESTS)
14175if (gRPC_BUILD_TESTS)
14176
14177add_executable(percent_decode_fuzzer_one_entry
14178 test/core/slice/percent_decode_fuzzer.c
14179 test/core/util/one_corpus_entry_fuzzer.c
14180)
14181
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014182
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014183target_include_directories(percent_decode_fuzzer_one_entry
14184 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14185 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
14186 PRIVATE ${BORINGSSL_ROOT_DIR}/include
14187 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014188 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014189 PRIVATE ${ZLIB_ROOT_DIR}
14190 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070014191 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070014192 PRIVATE ${CARES_INCLUDE_DIR}
14193 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
14194 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014195 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
14196)
14197
14198target_link_libraries(percent_decode_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014199 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014200 grpc_test_util
14201 grpc
14202 gpr_test_util
14203 gpr
14204)
14205
14206endif (gRPC_BUILD_TESTS)
14207if (gRPC_BUILD_TESTS)
14208
14209add_executable(percent_encode_fuzzer_one_entry
14210 test/core/slice/percent_encode_fuzzer.c
14211 test/core/util/one_corpus_entry_fuzzer.c
14212)
14213
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014214
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014215target_include_directories(percent_encode_fuzzer_one_entry
14216 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14217 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
14218 PRIVATE ${BORINGSSL_ROOT_DIR}/include
14219 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014220 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014221 PRIVATE ${ZLIB_ROOT_DIR}
14222 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070014223 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070014224 PRIVATE ${CARES_INCLUDE_DIR}
14225 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
14226 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014227 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
14228)
14229
14230target_link_libraries(percent_encode_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014231 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014232 grpc_test_util
14233 grpc
14234 gpr_test_util
14235 gpr
14236)
14237
14238endif (gRPC_BUILD_TESTS)
14239if (gRPC_BUILD_TESTS)
14240
14241add_executable(server_fuzzer_one_entry
14242 test/core/end2end/fuzzers/server_fuzzer.c
14243 test/core/util/one_corpus_entry_fuzzer.c
14244)
14245
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014246
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014247target_include_directories(server_fuzzer_one_entry
14248 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14249 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
14250 PRIVATE ${BORINGSSL_ROOT_DIR}/include
14251 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014252 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014253 PRIVATE ${ZLIB_ROOT_DIR}
14254 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070014255 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070014256 PRIVATE ${CARES_INCLUDE_DIR}
14257 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
14258 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014259 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
14260)
14261
14262target_link_libraries(server_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014263 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014264 grpc_test_util
14265 grpc
14266 gpr_test_util
14267 gpr
14268)
14269
14270endif (gRPC_BUILD_TESTS)
14271if (gRPC_BUILD_TESTS)
14272
14273add_executable(ssl_server_fuzzer_one_entry
14274 test/core/security/ssl_server_fuzzer.c
14275 test/core/util/one_corpus_entry_fuzzer.c
14276)
14277
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014278
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014279target_include_directories(ssl_server_fuzzer_one_entry
14280 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14281 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
14282 PRIVATE ${BORINGSSL_ROOT_DIR}/include
14283 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014284 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014285 PRIVATE ${ZLIB_ROOT_DIR}
14286 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070014287 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070014288 PRIVATE ${CARES_INCLUDE_DIR}
14289 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
14290 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014291 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
14292)
14293
14294target_link_libraries(ssl_server_fuzzer_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014295 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014296 grpc_test_util
14297 grpc
14298 gpr_test_util
14299 gpr
14300)
14301
14302endif (gRPC_BUILD_TESTS)
14303if (gRPC_BUILD_TESTS)
14304
14305add_executable(uri_fuzzer_test_one_entry
14306 test/core/client_channel/uri_fuzzer_test.c
14307 test/core/util/one_corpus_entry_fuzzer.c
14308)
14309
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014310
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014311target_include_directories(uri_fuzzer_test_one_entry
14312 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
14313 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
14314 PRIVATE ${BORINGSSL_ROOT_DIR}/include
14315 PRIVATE ${PROTOBUF_ROOT_DIR}/src
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014316 PRIVATE ${BENCHMARK_ROOT_DIR}/include
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014317 PRIVATE ${ZLIB_ROOT_DIR}
14318 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib
Yuchen Zeng74962182017-03-20 15:39:47 -070014319 PRIVATE ${CARES_BUILD_INCLUDE_DIR}
Yuchen Zengc75bbf22017-03-20 12:35:20 -070014320 PRIVATE ${CARES_INCLUDE_DIR}
14321 PRIVATE ${CARES_PLATFORM_INCLUDE_DIR}
14322 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014323 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include
14324)
14325
14326target_link_libraries(uri_fuzzer_test_one_entry
Jan Tattermusch438c0b52017-01-23 11:24:53 +010014327 ${_gRPC_ALLTARGETS_LIBRARIES}
Jan Tattermusch36cda4c2017-01-17 20:00:12 +010014328 grpc_test_util
14329 grpc
14330 gpr_test_util
14331 gpr
14332)
14333
14334endif (gRPC_BUILD_TESTS)
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010014335
Tamas Berghammerd798a7d2016-06-21 13:58:18 +010014336
14337
14338
Nicolas "Pixel" Noble2069fbc2016-08-18 23:29:56 +020014339
14340
14341
Alex Merryb5984fa2017-05-15 21:04:16 +010014342if (gRPC_INSTALL)
14343 install(EXPORT gRPCTargets
Jan Tattermuschdca8d632017-06-23 15:52:40 +020014344 DESTINATION ${gRPC_INSTALL_CMAKEDIR}
Alex Merryb5984fa2017-05-15 21:04:16 +010014345 NAMESPACE gRPC::
14346 )
14347endif()
14348
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030014349foreach(_config gRPCConfig gRPCConfigVersion)
14350 configure_file(tools/cmake/${_config}.cmake.in
14351 ${_config}.cmake @ONLY)
14352 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake
Jan Tattermuschdca8d632017-06-23 15:52:40 +020014353 DESTINATION ${gRPC_INSTALL_CMAKEDIR}
Konstantin Podsvirovd2b88302016-07-27 23:43:47 +030014354 )
14355endforeach()