Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1 | # 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" Noble | b360c8a | 2016-07-02 00:54:28 +0200 | [diff] [blame] | 7 | # |
| 8 | # Additionally, this is currently very experimental, and unsupported. |
| 9 | # Further work will happen on that file. |
| 10 | # |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 11 | # Copyright 2015, Google Inc. |
| 12 | # All rights reserved. |
| 13 | # |
| 14 | # Redistribution and use in source and binary forms, with or without |
| 15 | # modification, are permitted provided that the following conditions are |
| 16 | # met: |
| 17 | # |
| 18 | # * Redistributions of source code must retain the above copyright |
| 19 | # notice, this list of conditions and the following disclaimer. |
| 20 | # * Redistributions in binary form must reproduce the above |
| 21 | # copyright notice, this list of conditions and the following disclaimer |
| 22 | # in the documentation and/or other materials provided with the |
| 23 | # distribution. |
| 24 | # * Neither the name of Google Inc. nor the names of its |
| 25 | # contributors may be used to endorse or promote products derived from |
| 26 | # this software without specific prior written permission. |
| 27 | # |
| 28 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 29 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 30 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 31 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 32 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 33 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 34 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 35 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 36 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 37 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 38 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 39 | |
| 40 | |
| 41 | |
| 42 | cmake_minimum_required(VERSION 2.8) |
| 43 | |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 44 | set(PACKAGE_NAME "grpc") |
David Garcia Quintas | 74cec10 | 2017-03-09 15:00:26 -0800 | [diff] [blame] | 45 | set(PACKAGE_VERSION "1.3.0-dev") |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 46 | set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}") |
| 47 | set(PACKAGE_TARNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}") |
| 48 | set(PACKAGE_BUGREPORT "https://github.com/grpc/grpc/issues/") |
| 49 | project(${PACKAGE_NAME} C CXX) |
| 50 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 51 | # Options |
| 52 | option(gRPC_BUILD_TESTS "Build tests" OFF) |
| 53 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 54 | if (NOT MSVC) |
| 55 | set(gRPC_INSTALL ON CACHE BOOL "Generate installation target") |
| 56 | else() |
| 57 | set(gRPC_INSTALL OFF CACHE BOOL "Generate installation target") |
| 58 | endif() |
| 59 | |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 60 | set(gRPC_ZLIB_PROVIDER "module" CACHE STRING "Provider of zlib library") |
| 61 | set_property(CACHE gRPC_ZLIB_PROVIDER PROPERTY STRINGS "module" "package") |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 62 | |
Yuchen Zeng | 8076d2b | 2016-08-25 13:23:13 -0700 | [diff] [blame] | 63 | set(gRPC_CARES_PROVIDER "module" CACHE STRING "Provider of c-ares library") |
| 64 | set_property(CACHE gRPC_CARES_PROVIDER PROPERTY STRINGS "module" "package") |
| 65 | |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 66 | set(gRPC_SSL_PROVIDER "module" CACHE STRING "Provider of ssl library") |
| 67 | set_property(CACHE gRPC_SSL_PROVIDER PROPERTY STRINGS "module" "package") |
Tamas Berghammer | a72712e | 2016-07-06 10:30:25 +0100 | [diff] [blame] | 68 | |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 69 | set(gRPC_PROTOBUF_PROVIDER "module" CACHE STRING "Provider of protobuf library") |
| 70 | set_property(CACHE gRPC_PROTOBUF_PROVIDER PROPERTY STRINGS "module" "package") |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 71 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 72 | set(gRPC_GFLAGS_PROVIDER "module" CACHE STRING "Provider of gflags library") |
| 73 | set_property(CACHE gRPC_GFLAGS_PROVIDER PROPERTY STRINGS "module" "package") |
| 74 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 75 | set(gRPC_BENCHMARK_PROVIDER "module" CACHE STRING "Provider of benchmark library") |
| 76 | set_property(CACHE gRPC_BENCHMARK_PROVIDER PROPERTY STRINGS "module" "package") |
| 77 | |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 78 | set(gRPC_USE_PROTO_LITE OFF CACHE BOOL "Use the protobuf-lite library") |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 79 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 80 | if(UNIX) |
| 81 | if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") |
| 82 | set(_gRPC_PLATFORM_LINUX ON) |
| 83 | elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") |
| 84 | set(_gRPC_PLATFORM_MAC ON) |
| 85 | else() |
| 86 | set(_gRPC_PLATFORM_POSIX ON) |
| 87 | endif() |
| 88 | endif() |
| 89 | if(WIN32) |
| 90 | set(_gRPC_PLATFORM_WINDOWS ON) |
| 91 | endif() |
| 92 | |
Jan Tattermusch | c09656c | 2017-01-27 13:36:24 +0100 | [diff] [blame] | 93 | set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) |
| 94 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 95 | if (MSVC) |
Jan Tattermusch | 5140791 | 2017-02-02 20:44:22 +0100 | [diff] [blame] | 96 | include(cmake/msvc_static_runtime.cmake) |
Jan Tattermusch | 3aab96f | 2017-01-11 16:12:46 +0100 | [diff] [blame] | 97 | add_definitions(-D_WIN32_WINNT=0x600 -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS) |
Jan Tattermusch | 3aab96f | 2017-01-11 16:12:46 +0100 | [diff] [blame] | 98 | # needed to compile protobuf |
| 99 | add_definitions(/wd4065 /wd4506) |
| 100 | # TODO(jtattermusch): revisit C4267 occurrences throughout the code |
| 101 | add_definitions(/wd4267) |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 102 | endif() |
| 103 | |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 104 | if (gRPC_USE_PROTO_LITE) |
| 105 | set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf-lite") |
Tamas Berghammer | 2391156 | 2016-07-27 15:24:05 +0100 | [diff] [blame] | 106 | add_definitions("-DGRPC_USE_PROTO_LITE") |
| 107 | else() |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 108 | set(_gRPC_PROTOBUF_LIBRARY_NAME "libprotobuf") |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 109 | endif() |
| 110 | |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 111 | if("${gRPC_ZLIB_PROVIDER}" STREQUAL "module") |
| 112 | if(NOT ZLIB_ROOT_DIR) |
| 113 | set(ZLIB_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zlib) |
| 114 | endif() |
| 115 | set(ZLIB_INCLUDE_DIR "${ZLIB_ROOT_DIR}") |
| 116 | if(EXISTS "${ZLIB_ROOT_DIR}/CMakeLists.txt") |
| 117 | add_subdirectory(${ZLIB_ROOT_DIR} third_party/zlib) |
| 118 | if(TARGET zlibstatic) |
| 119 | set(_gRPC_ZLIB_LIBRARIES zlibstatic) |
| 120 | endif() |
| 121 | else() |
| 122 | message(WARNING "gRPC_ZLIB_PROVIDER is \"module\" but ZLIB_ROOT_DIR is wrong") |
| 123 | endif() |
| 124 | elseif("${gRPC_ZLIB_PROVIDER}" STREQUAL "package") |
| 125 | find_package(ZLIB) |
| 126 | if(TARGET ZLIB::ZLIB) |
| 127 | set(_gRPC_ZLIB_LIBRARIES ZLIB::ZLIB) |
| 128 | endif() |
Konstantin Podsvirov | dd33148 | 2016-07-28 00:00:25 +0300 | [diff] [blame] | 129 | set(_gRPC_FIND_ZLIB "if(NOT ZLIB_FOUND)\n find_package(ZLIB)\nendif()") |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 130 | endif() |
| 131 | |
Yuchen Zeng | 8076d2b | 2016-08-25 13:23:13 -0700 | [diff] [blame] | 132 | if("${gRPC_CARES_PROVIDER}" STREQUAL "module") |
| 133 | if(NOT CARES_ROOT_DIR) |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 134 | set(CARES_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/c-ares) |
Yuchen Zeng | 8076d2b | 2016-08-25 13:23:13 -0700 | [diff] [blame] | 135 | endif() |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 136 | string(TOLOWER ${CMAKE_SYSTEM_NAME} CARES_SYSTEM_NAME) |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 137 | set(CARES_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/third_party/cares/cares") |
| 138 | set(CARES_BUILD_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/third_party/cares") |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 139 | set(CARES_PLATFORM_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/third_party/cares/config_${CARES_SYSTEM_NAME}") |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 140 | if(EXISTS "${CARES_ROOT_DIR}/CMakeLists.txt") |
| 141 | if("${CARES_SYSTEM_NAME}" MATCHES "windows") |
| 142 | add_definitions(-DCARES_STATICLIB=1) |
| 143 | add_definitions(-DWIN32_LEAN_AND_MEAN=1) |
| 144 | else() |
| 145 | add_definitions(-DHAVE_CONFIG_H=1) |
| 146 | add_definitions(-D_GNU_SOURCE=1) |
| 147 | endif() |
| 148 | add_subdirectory(src/c-ares third_party/cares) |
| 149 | if(TARGET cares) |
| 150 | set(_gRPC_CARES_LIBRARIES cares) |
| 151 | endif() |
Yuchen Zeng | 8076d2b | 2016-08-25 13:23:13 -0700 | [diff] [blame] | 152 | else() |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 153 | message(WARNING "gRPC_CARES_PROVIDER is \"module\" but CARES_ROOT_DIR is wrong") |
Yuchen Zeng | 8076d2b | 2016-08-25 13:23:13 -0700 | [diff] [blame] | 154 | endif() |
| 155 | elseif("${gRPC_CARES_PROVIDER}" STREQUAL "package") |
| 156 | find_package(CARES) |
| 157 | if(TARGET CARES::CARES) |
| 158 | set(_gRPC_CARES_LIBRARIES CARES::CARES) |
| 159 | endif() |
| 160 | set(_gRPC_FIND_CARES "if(NOT CARES_FOUND)\n find_package(CARES)\nendif()") |
| 161 | endif() |
| 162 | |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 163 | if("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "module") |
| 164 | # Building the protobuf tests require gmock what is not part of a standard protobuf checkout. |
| 165 | # Disable them unless they are explicitly requested from the cmake command line (when we assume |
| 166 | # gmock is downloaded to the right location inside protobuf). |
| 167 | if(NOT protobuf_BUILD_TESTS) |
| 168 | set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests") |
| 169 | endif() |
| 170 | if(NOT PROTOBUF_ROOT_DIR) |
| 171 | set(PROTOBUF_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/protobuf) |
| 172 | endif() |
| 173 | if(EXISTS "${PROTOBUF_ROOT_DIR}/cmake/CMakeLists.txt") |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 174 | set(protobuf_MSVC_STATIC_RUNTIME OFF CACHE BOOL "Link static runtime libraries") |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 175 | add_subdirectory(${PROTOBUF_ROOT_DIR}/cmake third_party/protobuf) |
| 176 | if(TARGET ${_gRPC_PROTOBUF_LIBRARY_NAME}) |
| 177 | set(_gRPC_PROTOBUF_LIBRARIES ${_gRPC_PROTOBUF_LIBRARY_NAME}) |
| 178 | endif() |
| 179 | if(TARGET libprotoc) |
| 180 | set(_gRPC_PROTOBUF_PROTOC_LIBRARIES libprotoc) |
| 181 | endif() |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 182 | if(TARGET protoc) |
| 183 | set(_gRPC_PROTOBUF_PROTOC protoc) |
| 184 | endif() |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 185 | else() |
| 186 | message(WARNING "gRPC_PROTOBUF_PROVIDER is \"module\" but PROTOBUF_ROOT_DIR is wrong") |
| 187 | endif() |
| 188 | elseif("${gRPC_PROTOBUF_PROVIDER}" STREQUAL "package") |
| 189 | find_package(protobuf CONFIG) |
| 190 | if(protobuf_FOUND) |
| 191 | if(TARGET protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME}) |
| 192 | set(_gRPC_PROTOBUF_LIBRARIES protobuf::${_gRPC_PROTOBUF_LIBRARY_NAME}) |
| 193 | endif() |
| 194 | if(TARGET protobuf::libprotoc) |
| 195 | set(_gRPC_PROTOBUF_PROTOC_LIBRARIES protobuf::libprotoc) |
| 196 | endif() |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 197 | if(TARGET protobuf::protoc) |
| 198 | set(_gRPC_PROTOBUF_PROTOC protobuf::protoc) |
| 199 | endif() |
Konstantin Podsvirov | dd33148 | 2016-07-28 00:00:25 +0300 | [diff] [blame] | 200 | set(_gRPC_FIND_PROTOBUF "if(NOT protobuf_FOUND)\n find_package(protobuf CONFIG)\nendif()") |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 201 | else() |
| 202 | find_package(Protobuf MODULE) |
Konstantin Podsvirov | dd33148 | 2016-07-28 00:00:25 +0300 | [diff] [blame] | 203 | set(_gRPC_FIND_PROTOBUF "if(NOT Protobuf_FOUND)\n find_package(Protobuf)\nendif()") |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 204 | endif() |
| 205 | endif() |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 206 | |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 207 | if("${gRPC_SSL_PROVIDER}" STREQUAL "module") |
| 208 | if(NOT BORINGSSL_ROOT_DIR) |
| 209 | set(BORINGSSL_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/boringssl) |
| 210 | endif() |
| 211 | if(EXISTS "${BORINGSSL_ROOT_DIR}/CMakeLists.txt") |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 212 | set(OPENSSL_NO_ASM ON) # make boringssl buildable with Visual Studio |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 213 | add_subdirectory(${BORINGSSL_ROOT_DIR} third_party/boringssl) |
| 214 | if(TARGET ssl) |
| 215 | set(_gRPC_SSL_LIBRARIES ssl) |
| 216 | endif() |
| 217 | else() |
| 218 | message(WARNING "gRPC_SSL_PROVIDER is \"module\" but BORINGSSL_ROOT_DIR is wrong") |
| 219 | endif() |
| 220 | elseif("${gRPC_SSL_PROVIDER}" STREQUAL "package") |
| 221 | find_package(OpenSSL) |
| 222 | if(TARGET OpenSSL::SSL) |
| 223 | set(_gRPC_SSL_LIBRARIES OpenSSL::SSL) |
| 224 | endif() |
Konstantin Podsvirov | dd33148 | 2016-07-28 00:00:25 +0300 | [diff] [blame] | 225 | set(_gRPC_FIND_SSL "if(NOT OpenSSL_FOUND)\n find_package(OpenSSL)\nendif()") |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 226 | endif() |
| 227 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 228 | if("${gRPC_GFLAGS_PROVIDER}" STREQUAL "module") |
| 229 | if(NOT GFLAGS_ROOT_DIR) |
| 230 | set(GFLAGS_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/gflags) |
| 231 | endif() |
| 232 | if(EXISTS "${GFLAGS_ROOT_DIR}/CMakeLists.txt") |
| 233 | add_subdirectory(${GFLAGS_ROOT_DIR} third_party/gflags) |
| 234 | if(TARGET gflags_static) |
| 235 | set(_gRPC_GFLAGS_LIBRARIES gflags_static) |
| 236 | endif() |
| 237 | else() |
| 238 | message(WARNING "gRPC_GFLAGS_PROVIDER is \"module\" but GFLAGS_ROOT_DIR is wrong") |
| 239 | endif() |
| 240 | elseif("${gRPC_GFLAGS_PROVIDER}" STREQUAL "package") |
| 241 | find_package(gflags) |
| 242 | if(TARGET gflags::gflags) |
| 243 | set(_gRPC_GFLAGS_LIBRARIES gflags::gflags) |
| 244 | endif() |
| 245 | set(_gRPC_FIND_GFLAGS "if(NOT gflags_FOUND)\n find_package(gflags)\nendif()") |
| 246 | endif() |
| 247 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 248 | if("${gRPC_BENCHMARK_PROVIDER}" STREQUAL "module") |
| 249 | if(NOT BENCHMARK_ROOT_DIR) |
| 250 | set(BENCHMARK_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/benchmark) |
| 251 | endif() |
| 252 | if(EXISTS "${BENCHMARK_ROOT_DIR}/CMakeLists.txt") |
| 253 | add_subdirectory(${BENCHMARK_ROOT_DIR} third_party/benchmark) |
| 254 | if(TARGET benchmark) |
| 255 | set(_gRPC_BENCHMARK_LIBRARIES benchmark) |
| 256 | endif() |
| 257 | else() |
| 258 | message(WARNING "gRPC_BENCHMARK_PROVIDER is \"module\" but BENCHMARK_ROOT_DIR is wrong") |
| 259 | endif() |
| 260 | elseif("${gRPC_BENCHMARK_PROVIDER}" STREQUAL "package") |
| 261 | find_package(benchmark) |
| 262 | if(TARGET benchmark::benchmark) |
| 263 | set(_gRPC_BENCHMARK_LIBRARIES benchmark::benchmark) |
| 264 | endif() |
| 265 | set(_gRPC_FIND_BENCHMARK "if(NOT benchmark_FOUND)\n find_package(benchmark)\nendif()") |
| 266 | endif() |
| 267 | |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 268 | if(NOT MSVC) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 269 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 270 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") |
| 271 | endif() |
| 272 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 273 | if(UNIX) |
| 274 | set(_gRPC_ALLTARGETS_LIBRARIES dl rt m pthread) |
| 275 | endif() |
| 276 | |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 277 | if(WIN32 AND MSVC) |
| 278 | set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32) |
Tamas Berghammer | 2391156 | 2016-07-27 15:24:05 +0100 | [diff] [blame] | 279 | endif() |
| 280 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 281 | include(GNUInstallDirs) |
| 282 | if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR) |
| 283 | set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/gRPC") |
| 284 | endif() |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 285 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 286 | # Create directory for generated .proto files |
| 287 | set(_gRPC_PROTO_GENS_DIR ${CMAKE_BINARY_DIR}/gens) |
| 288 | file(MAKE_DIRECTORY ${_gRPC_PROTO_GENS_DIR}) |
| 289 | |
| 290 | # protobuf_generate_grpc_cpp |
| 291 | # -------------------------- |
| 292 | # |
| 293 | # Add custom commands to process ``.proto`` files to C++ using protoc and |
| 294 | # GRPC plugin:: |
| 295 | # |
| 296 | # protobuf_generate_grpc_cpp [<ARGN>...] |
| 297 | # |
| 298 | # ``ARGN`` |
| 299 | # ``.proto`` files |
| 300 | # |
| 301 | function(protobuf_generate_grpc_cpp) |
| 302 | if(NOT ARGN) |
| 303 | message(SEND_ERROR "Error: PROTOBUF_GENERATE_GRPC_CPP() called without any proto files") |
| 304 | return() |
| 305 | endif() |
| 306 | |
| 307 | set(_protobuf_include_path -I .) |
| 308 | foreach(FIL ${ARGN}) |
| 309 | get_filename_component(ABS_FIL ${FIL} ABSOLUTE) |
| 310 | get_filename_component(FIL_WE ${FIL} NAME_WE) |
| 311 | file(RELATIVE_PATH REL_FIL ${CMAKE_SOURCE_DIR} ${ABS_FIL}) |
| 312 | get_filename_component(REL_DIR ${REL_FIL} DIRECTORY) |
| 313 | set(RELFIL_WE "${REL_DIR}/${FIL_WE}") |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 314 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 315 | add_custom_command( |
| 316 | OUTPUT "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.cc" |
| 317 | "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.h" |
| 318 | "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.cc" |
| 319 | "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.h" |
| 320 | COMMAND ${_gRPC_PROTOBUF_PROTOC} |
| 321 | ARGS --grpc_out=${_gRPC_PROTO_GENS_DIR} |
| 322 | --cpp_out=${_gRPC_PROTO_GENS_DIR} |
| 323 | --plugin=protoc-gen-grpc=$<TARGET_FILE:grpc_cpp_plugin> |
| 324 | ${_protobuf_include_path} |
| 325 | ${REL_FIL} |
| 326 | DEPENDS ${ABS_FIL} ${_gRPC_PROTOBUF_PROTOC} grpc_cpp_plugin |
| 327 | WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} |
| 328 | COMMENT "Running gRPC C++ protocol buffer compiler on ${FIL}" |
| 329 | VERBATIM) |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 330 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 331 | set_source_files_properties("${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.cc" "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.grpc.pb.h" "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.cc" "${_gRPC_PROTO_GENS_DIR}/${RELFIL_WE}.pb.h" PROPERTIES GENERATED TRUE) |
| 332 | endforeach() |
| 333 | endfunction() |
| 334 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 335 | add_custom_target(plugins |
| 336 | DEPENDS |
| 337 | grpc_cpp_plugin |
| 338 | grpc_csharp_plugin |
| 339 | grpc_node_plugin |
| 340 | grpc_objective_c_plugin |
| 341 | grpc_php_plugin |
| 342 | grpc_python_plugin |
| 343 | grpc_ruby_plugin |
| 344 | ) |
| 345 | |
| 346 | add_custom_target(tools_c |
| 347 | DEPENDS |
| 348 | gen_hpack_tables |
| 349 | gen_legal_metadata_characters |
| 350 | gen_percent_encoding_tables |
| 351 | grpc_create_jwt |
| 352 | grpc_print_google_default_creds_token |
| 353 | grpc_verify_jwt |
| 354 | ) |
| 355 | |
| 356 | add_custom_target(tools_cxx |
| 357 | DEPENDS |
| 358 | ) |
| 359 | |
| 360 | add_custom_target(tools |
| 361 | DEPENDS tools_c tools_cxx) |
| 362 | |
| 363 | if (gRPC_BUILD_TESTS) |
| 364 | add_custom_target(buildtests_c) |
| 365 | add_dependencies(buildtests_c alarm_test) |
| 366 | add_dependencies(buildtests_c algorithm_test) |
| 367 | add_dependencies(buildtests_c alloc_test) |
| 368 | add_dependencies(buildtests_c alpn_test) |
Craig Tiller | 9202b3f | 2017-03-12 22:30:38 -0700 | [diff] [blame] | 369 | add_dependencies(buildtests_c arena_test) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 370 | add_dependencies(buildtests_c bad_server_response_test) |
Craig Tiller | 5395aba | 2017-02-02 10:29:04 -0800 | [diff] [blame] | 371 | add_dependencies(buildtests_c bdp_estimator_test) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 372 | add_dependencies(buildtests_c bin_decoder_test) |
| 373 | add_dependencies(buildtests_c bin_encoder_test) |
| 374 | add_dependencies(buildtests_c census_context_test) |
| 375 | add_dependencies(buildtests_c census_resource_test) |
| 376 | add_dependencies(buildtests_c census_trace_context_test) |
| 377 | add_dependencies(buildtests_c channel_create_test) |
| 378 | add_dependencies(buildtests_c chttp2_hpack_encoder_test) |
| 379 | add_dependencies(buildtests_c chttp2_stream_map_test) |
| 380 | add_dependencies(buildtests_c chttp2_varint_test) |
| 381 | add_dependencies(buildtests_c combiner_test) |
| 382 | add_dependencies(buildtests_c compression_test) |
| 383 | add_dependencies(buildtests_c concurrent_connectivity_test) |
| 384 | add_dependencies(buildtests_c connection_refused_test) |
| 385 | add_dependencies(buildtests_c dns_resolver_connectivity_test) |
| 386 | add_dependencies(buildtests_c dns_resolver_test) |
| 387 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 388 | add_dependencies(buildtests_c dualstack_socket_test) |
| 389 | endif() |
| 390 | add_dependencies(buildtests_c endpoint_pair_test) |
ncteisen | 3da3ce3 | 2017-02-17 09:51:25 -0800 | [diff] [blame] | 391 | add_dependencies(buildtests_c error_test) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 392 | if(_gRPC_PLATFORM_LINUX) |
| 393 | add_dependencies(buildtests_c ev_epoll_linux_test) |
| 394 | endif() |
| 395 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 396 | add_dependencies(buildtests_c fd_conservation_posix_test) |
| 397 | endif() |
| 398 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 399 | add_dependencies(buildtests_c fd_posix_test) |
| 400 | endif() |
| 401 | add_dependencies(buildtests_c fling_client) |
| 402 | add_dependencies(buildtests_c fling_server) |
| 403 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 404 | add_dependencies(buildtests_c fling_stream_test) |
| 405 | endif() |
| 406 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 407 | add_dependencies(buildtests_c fling_test) |
| 408 | endif() |
| 409 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 410 | add_dependencies(buildtests_c goaway_server_test) |
| 411 | endif() |
| 412 | add_dependencies(buildtests_c gpr_avl_test) |
| 413 | add_dependencies(buildtests_c gpr_backoff_test) |
| 414 | add_dependencies(buildtests_c gpr_cmdline_test) |
| 415 | add_dependencies(buildtests_c gpr_cpu_test) |
| 416 | add_dependencies(buildtests_c gpr_env_test) |
| 417 | add_dependencies(buildtests_c gpr_histogram_test) |
| 418 | add_dependencies(buildtests_c gpr_host_port_test) |
| 419 | add_dependencies(buildtests_c gpr_log_test) |
| 420 | add_dependencies(buildtests_c gpr_mpscq_test) |
Craig Tiller | edbf2b9 | 2017-02-27 07:24:00 -0800 | [diff] [blame] | 421 | add_dependencies(buildtests_c gpr_spinlock_test) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 422 | add_dependencies(buildtests_c gpr_stack_lockfree_test) |
| 423 | add_dependencies(buildtests_c gpr_string_test) |
| 424 | add_dependencies(buildtests_c gpr_sync_test) |
| 425 | add_dependencies(buildtests_c gpr_thd_test) |
| 426 | add_dependencies(buildtests_c gpr_time_test) |
| 427 | add_dependencies(buildtests_c gpr_tls_test) |
| 428 | add_dependencies(buildtests_c gpr_useful_test) |
| 429 | add_dependencies(buildtests_c grpc_auth_context_test) |
| 430 | add_dependencies(buildtests_c grpc_b64_test) |
| 431 | add_dependencies(buildtests_c grpc_byte_buffer_reader_test) |
| 432 | add_dependencies(buildtests_c grpc_channel_args_test) |
| 433 | add_dependencies(buildtests_c grpc_channel_stack_test) |
| 434 | add_dependencies(buildtests_c grpc_completion_queue_test) |
murgatroid99 | 98cdf3b | 2017-02-23 14:59:45 -0800 | [diff] [blame] | 435 | add_dependencies(buildtests_c grpc_completion_queue_threading_test) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 436 | add_dependencies(buildtests_c grpc_credentials_test) |
| 437 | add_dependencies(buildtests_c grpc_fetch_oauth2) |
| 438 | add_dependencies(buildtests_c grpc_invalid_channel_args_test) |
| 439 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 440 | add_dependencies(buildtests_c grpc_json_token_test) |
| 441 | endif() |
| 442 | add_dependencies(buildtests_c grpc_jwt_verifier_test) |
| 443 | add_dependencies(buildtests_c grpc_security_connector_test) |
| 444 | if(_gRPC_PLATFORM_LINUX) |
| 445 | add_dependencies(buildtests_c handshake_client) |
| 446 | endif() |
| 447 | if(_gRPC_PLATFORM_LINUX) |
| 448 | add_dependencies(buildtests_c handshake_server) |
| 449 | endif() |
| 450 | add_dependencies(buildtests_c hpack_parser_test) |
| 451 | add_dependencies(buildtests_c hpack_table_test) |
| 452 | add_dependencies(buildtests_c http_parser_test) |
| 453 | add_dependencies(buildtests_c httpcli_format_request_test) |
| 454 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 455 | add_dependencies(buildtests_c httpcli_test) |
| 456 | endif() |
| 457 | if(_gRPC_PLATFORM_LINUX) |
| 458 | add_dependencies(buildtests_c httpscli_test) |
| 459 | endif() |
| 460 | add_dependencies(buildtests_c init_test) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 461 | add_dependencies(buildtests_c invalid_call_argument_test) |
| 462 | add_dependencies(buildtests_c json_rewrite) |
| 463 | add_dependencies(buildtests_c json_rewrite_test) |
| 464 | add_dependencies(buildtests_c json_stream_error_test) |
| 465 | add_dependencies(buildtests_c json_test) |
| 466 | add_dependencies(buildtests_c lame_client_test) |
| 467 | add_dependencies(buildtests_c lb_policies_test) |
| 468 | add_dependencies(buildtests_c load_file_test) |
| 469 | add_dependencies(buildtests_c memory_profile_client) |
| 470 | add_dependencies(buildtests_c memory_profile_server) |
| 471 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 472 | add_dependencies(buildtests_c memory_profile_test) |
| 473 | endif() |
| 474 | add_dependencies(buildtests_c message_compress_test) |
| 475 | add_dependencies(buildtests_c mlog_test) |
| 476 | add_dependencies(buildtests_c multiple_server_queues_test) |
| 477 | add_dependencies(buildtests_c murmur_hash_test) |
| 478 | add_dependencies(buildtests_c no_server_test) |
David Garcia Quintas | 8a0ec88 | 2017-03-03 16:53:54 -0800 | [diff] [blame] | 479 | add_dependencies(buildtests_c parse_address_test) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 480 | add_dependencies(buildtests_c percent_encoding_test) |
Sree Kuchibhotla | 6613168 | 2017-02-02 09:39:07 -0800 | [diff] [blame] | 481 | if(_gRPC_PLATFORM_LINUX) |
| 482 | add_dependencies(buildtests_c pollset_set_test) |
| 483 | endif() |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 484 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 485 | add_dependencies(buildtests_c resolve_address_posix_test) |
| 486 | endif() |
| 487 | add_dependencies(buildtests_c resolve_address_test) |
| 488 | add_dependencies(buildtests_c resource_quota_test) |
| 489 | add_dependencies(buildtests_c secure_channel_create_test) |
| 490 | add_dependencies(buildtests_c secure_endpoint_test) |
| 491 | add_dependencies(buildtests_c sequential_connectivity_test) |
| 492 | add_dependencies(buildtests_c server_chttp2_test) |
| 493 | add_dependencies(buildtests_c server_test) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 494 | add_dependencies(buildtests_c slice_buffer_test) |
| 495 | add_dependencies(buildtests_c slice_string_helpers_test) |
| 496 | add_dependencies(buildtests_c slice_test) |
| 497 | add_dependencies(buildtests_c sockaddr_resolver_test) |
| 498 | add_dependencies(buildtests_c sockaddr_utils_test) |
| 499 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 500 | add_dependencies(buildtests_c socket_utils_test) |
| 501 | endif() |
| 502 | add_dependencies(buildtests_c status_conversion_test) |
Craig Tiller | 295df6d | 2017-03-01 11:28:24 -0800 | [diff] [blame] | 503 | add_dependencies(buildtests_c stream_owned_slice_test) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 504 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 505 | add_dependencies(buildtests_c tcp_client_posix_test) |
| 506 | endif() |
murgatroid99 | 98cdf3b | 2017-02-23 14:59:45 -0800 | [diff] [blame] | 507 | add_dependencies(buildtests_c tcp_client_uv_test) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 508 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 509 | add_dependencies(buildtests_c tcp_posix_test) |
| 510 | endif() |
| 511 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 512 | add_dependencies(buildtests_c tcp_server_posix_test) |
| 513 | endif() |
murgatroid99 | 98cdf3b | 2017-02-23 14:59:45 -0800 | [diff] [blame] | 514 | add_dependencies(buildtests_c tcp_server_uv_test) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 515 | add_dependencies(buildtests_c time_averaged_stats_test) |
| 516 | add_dependencies(buildtests_c timeout_encoding_test) |
| 517 | add_dependencies(buildtests_c timer_heap_test) |
| 518 | add_dependencies(buildtests_c timer_list_test) |
| 519 | add_dependencies(buildtests_c transport_connectivity_state_test) |
| 520 | add_dependencies(buildtests_c transport_metadata_test) |
| 521 | add_dependencies(buildtests_c transport_pid_controller_test) |
| 522 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 523 | add_dependencies(buildtests_c transport_security_test) |
| 524 | endif() |
| 525 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 526 | add_dependencies(buildtests_c udp_server_test) |
| 527 | endif() |
| 528 | add_dependencies(buildtests_c uri_parser_test) |
| 529 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 530 | add_dependencies(buildtests_c wakeup_fd_cv_test) |
| 531 | endif() |
| 532 | add_dependencies(buildtests_c public_headers_must_be_c89) |
| 533 | add_dependencies(buildtests_c badreq_bad_client_test) |
| 534 | add_dependencies(buildtests_c connection_prefix_bad_client_test) |
| 535 | add_dependencies(buildtests_c head_of_line_blocking_bad_client_test) |
| 536 | add_dependencies(buildtests_c headers_bad_client_test) |
| 537 | add_dependencies(buildtests_c initial_settings_frame_bad_client_test) |
| 538 | add_dependencies(buildtests_c large_metadata_bad_client_test) |
| 539 | add_dependencies(buildtests_c server_registered_method_bad_client_test) |
| 540 | add_dependencies(buildtests_c simple_request_bad_client_test) |
| 541 | add_dependencies(buildtests_c unknown_frame_bad_client_test) |
| 542 | add_dependencies(buildtests_c window_overflow_bad_client_test) |
| 543 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 544 | add_dependencies(buildtests_c bad_ssl_cert_server) |
| 545 | endif() |
| 546 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 547 | add_dependencies(buildtests_c bad_ssl_cert_test) |
| 548 | endif() |
| 549 | add_dependencies(buildtests_c h2_census_test) |
| 550 | add_dependencies(buildtests_c h2_compress_test) |
| 551 | add_dependencies(buildtests_c h2_fakesec_test) |
| 552 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 553 | add_dependencies(buildtests_c h2_fd_test) |
| 554 | endif() |
| 555 | add_dependencies(buildtests_c h2_full_test) |
| 556 | if(_gRPC_PLATFORM_LINUX) |
| 557 | add_dependencies(buildtests_c h2_full+pipe_test) |
| 558 | endif() |
| 559 | add_dependencies(buildtests_c h2_full+trace_test) |
| 560 | add_dependencies(buildtests_c h2_http_proxy_test) |
| 561 | add_dependencies(buildtests_c h2_load_reporting_test) |
| 562 | add_dependencies(buildtests_c h2_oauth2_test) |
| 563 | add_dependencies(buildtests_c h2_proxy_test) |
| 564 | add_dependencies(buildtests_c h2_sockpair_test) |
| 565 | add_dependencies(buildtests_c h2_sockpair+trace_test) |
| 566 | add_dependencies(buildtests_c h2_sockpair_1byte_test) |
| 567 | add_dependencies(buildtests_c h2_ssl_test) |
| 568 | add_dependencies(buildtests_c h2_ssl_cert_test) |
| 569 | add_dependencies(buildtests_c h2_ssl_proxy_test) |
| 570 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 571 | add_dependencies(buildtests_c h2_uds_test) |
| 572 | endif() |
| 573 | add_dependencies(buildtests_c h2_census_nosec_test) |
| 574 | add_dependencies(buildtests_c h2_compress_nosec_test) |
| 575 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 576 | add_dependencies(buildtests_c h2_fd_nosec_test) |
| 577 | endif() |
| 578 | add_dependencies(buildtests_c h2_full_nosec_test) |
| 579 | if(_gRPC_PLATFORM_LINUX) |
| 580 | add_dependencies(buildtests_c h2_full+pipe_nosec_test) |
| 581 | endif() |
| 582 | add_dependencies(buildtests_c h2_full+trace_nosec_test) |
| 583 | add_dependencies(buildtests_c h2_http_proxy_nosec_test) |
| 584 | add_dependencies(buildtests_c h2_load_reporting_nosec_test) |
| 585 | add_dependencies(buildtests_c h2_proxy_nosec_test) |
| 586 | add_dependencies(buildtests_c h2_sockpair_nosec_test) |
| 587 | add_dependencies(buildtests_c h2_sockpair+trace_nosec_test) |
| 588 | add_dependencies(buildtests_c h2_sockpair_1byte_nosec_test) |
| 589 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 590 | add_dependencies(buildtests_c h2_uds_nosec_test) |
| 591 | endif() |
| 592 | add_dependencies(buildtests_c api_fuzzer_one_entry) |
| 593 | add_dependencies(buildtests_c client_fuzzer_one_entry) |
| 594 | add_dependencies(buildtests_c hpack_parser_fuzzer_test_one_entry) |
| 595 | add_dependencies(buildtests_c http_request_fuzzer_test_one_entry) |
| 596 | add_dependencies(buildtests_c http_response_fuzzer_test_one_entry) |
| 597 | add_dependencies(buildtests_c json_fuzzer_test_one_entry) |
| 598 | add_dependencies(buildtests_c nanopb_fuzzer_response_test_one_entry) |
| 599 | add_dependencies(buildtests_c nanopb_fuzzer_serverlist_test_one_entry) |
| 600 | add_dependencies(buildtests_c percent_decode_fuzzer_one_entry) |
| 601 | add_dependencies(buildtests_c percent_encode_fuzzer_one_entry) |
| 602 | add_dependencies(buildtests_c server_fuzzer_one_entry) |
| 603 | add_dependencies(buildtests_c ssl_server_fuzzer_one_entry) |
| 604 | add_dependencies(buildtests_c uri_fuzzer_test_one_entry) |
| 605 | |
| 606 | add_custom_target(buildtests_cxx) |
| 607 | add_dependencies(buildtests_cxx alarm_cpp_test) |
| 608 | add_dependencies(buildtests_cxx async_end2end_test) |
| 609 | add_dependencies(buildtests_cxx auth_property_iterator_test) |
| 610 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Craig Tiller | 9202b3f | 2017-03-12 22:30:38 -0700 | [diff] [blame] | 611 | add_dependencies(buildtests_cxx bm_arena) |
| 612 | endif() |
| 613 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Craig Tiller | fd044b8 | 2017-02-15 16:15:48 -0800 | [diff] [blame] | 614 | add_dependencies(buildtests_cxx bm_call_create) |
| 615 | endif() |
| 616 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Craig Tiller | 523d54b | 2017-02-23 08:52:38 -0800 | [diff] [blame] | 617 | add_dependencies(buildtests_cxx bm_chttp2_hpack) |
Craig Tiller | 2f792d9 | 2017-02-22 16:26:33 -0800 | [diff] [blame] | 618 | endif() |
| 619 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Craig Tiller | 18f09a0 | 2017-02-23 17:10:04 -0800 | [diff] [blame] | 620 | add_dependencies(buildtests_cxx bm_chttp2_transport) |
| 621 | endif() |
| 622 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Craig Tiller | b3f34b6 | 2017-02-13 10:29:33 -0800 | [diff] [blame] | 623 | add_dependencies(buildtests_cxx bm_closure) |
| 624 | endif() |
| 625 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Craig Tiller | 14ae538 | 2017-02-14 12:43:50 -0800 | [diff] [blame] | 626 | add_dependencies(buildtests_cxx bm_cq) |
| 627 | endif() |
| 628 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Craig Tiller | 264307f | 2017-02-16 09:07:45 -0800 | [diff] [blame] | 629 | add_dependencies(buildtests_cxx bm_error) |
| 630 | endif() |
| 631 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Craig Tiller | 12d22e4 | 2017-03-03 10:14:20 -0800 | [diff] [blame] | 632 | add_dependencies(buildtests_cxx bm_fullstack_streaming_ping_pong) |
| 633 | endif() |
| 634 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 635 | add_dependencies(buildtests_cxx bm_fullstack_streaming_pump) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 636 | endif() |
Craig Tiller | b8e2bca | 2017-02-16 16:26:51 -0800 | [diff] [blame] | 637 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Craig Tiller | 52bd441 | 2017-03-03 10:52:22 -0800 | [diff] [blame] | 638 | add_dependencies(buildtests_cxx bm_fullstack_trickle) |
| 639 | endif() |
| 640 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Craig Tiller | 62ac65b | 2017-03-03 09:57:43 -0800 | [diff] [blame] | 641 | add_dependencies(buildtests_cxx bm_fullstack_unary_ping_pong) |
| 642 | endif() |
| 643 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Craig Tiller | b8e2bca | 2017-02-16 16:26:51 -0800 | [diff] [blame] | 644 | add_dependencies(buildtests_cxx bm_metadata) |
| 645 | endif() |
Craig Tiller | 1128d46 | 2017-03-03 16:46:54 -0800 | [diff] [blame] | 646 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 647 | add_dependencies(buildtests_cxx bm_pollset) |
| 648 | endif() |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 649 | add_dependencies(buildtests_cxx channel_arguments_test) |
| 650 | add_dependencies(buildtests_cxx channel_filter_test) |
| 651 | add_dependencies(buildtests_cxx cli_call_test) |
| 652 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 653 | add_dependencies(buildtests_cxx client_crash_test) |
| 654 | endif() |
| 655 | add_dependencies(buildtests_cxx client_crash_test_server) |
| 656 | add_dependencies(buildtests_cxx codegen_test_full) |
| 657 | add_dependencies(buildtests_cxx codegen_test_minimal) |
| 658 | add_dependencies(buildtests_cxx credentials_test) |
| 659 | add_dependencies(buildtests_cxx cxx_byte_buffer_test) |
| 660 | add_dependencies(buildtests_cxx cxx_slice_test) |
| 661 | add_dependencies(buildtests_cxx cxx_string_ref_test) |
| 662 | add_dependencies(buildtests_cxx cxx_time_test) |
| 663 | add_dependencies(buildtests_cxx end2end_test) |
| 664 | add_dependencies(buildtests_cxx filter_end2end_test) |
| 665 | add_dependencies(buildtests_cxx generic_end2end_test) |
| 666 | add_dependencies(buildtests_cxx golden_file_test) |
| 667 | add_dependencies(buildtests_cxx grpc_cli) |
| 668 | add_dependencies(buildtests_cxx grpc_tool_test) |
| 669 | add_dependencies(buildtests_cxx grpclb_api_test) |
| 670 | add_dependencies(buildtests_cxx grpclb_test) |
yang-g | 13a537b | 2017-02-07 13:13:20 -0800 | [diff] [blame] | 671 | add_dependencies(buildtests_cxx health_service_end2end_test) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 672 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 673 | add_dependencies(buildtests_cxx http2_client) |
| 674 | endif() |
| 675 | add_dependencies(buildtests_cxx hybrid_end2end_test) |
| 676 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 677 | add_dependencies(buildtests_cxx interop_client) |
| 678 | endif() |
| 679 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 680 | add_dependencies(buildtests_cxx interop_server) |
| 681 | endif() |
| 682 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 683 | add_dependencies(buildtests_cxx interop_test) |
| 684 | endif() |
| 685 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 686 | add_dependencies(buildtests_cxx json_run_localhost) |
| 687 | endif() |
| 688 | add_dependencies(buildtests_cxx metrics_client) |
| 689 | add_dependencies(buildtests_cxx mock_test) |
| 690 | add_dependencies(buildtests_cxx noop-benchmark) |
| 691 | add_dependencies(buildtests_cxx proto_server_reflection_test) |
Harvey Tuch | 5f3cfe9 | 2017-01-20 11:02:11 -0500 | [diff] [blame] | 692 | add_dependencies(buildtests_cxx proto_utils_test) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 693 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 694 | add_dependencies(buildtests_cxx qps_interarrival_test) |
| 695 | endif() |
| 696 | add_dependencies(buildtests_cxx qps_json_driver) |
| 697 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 698 | add_dependencies(buildtests_cxx qps_openloop_test) |
| 699 | endif() |
| 700 | add_dependencies(buildtests_cxx qps_worker) |
| 701 | add_dependencies(buildtests_cxx reconnect_interop_client) |
| 702 | add_dependencies(buildtests_cxx reconnect_interop_server) |
| 703 | add_dependencies(buildtests_cxx round_robin_end2end_test) |
| 704 | add_dependencies(buildtests_cxx secure_auth_context_test) |
| 705 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 706 | add_dependencies(buildtests_cxx secure_sync_unary_ping_pong_test) |
| 707 | endif() |
| 708 | add_dependencies(buildtests_cxx server_builder_plugin_test) |
Craig Tiller | 332bcc3 | 2017-03-08 12:47:46 -0800 | [diff] [blame] | 709 | add_dependencies(buildtests_cxx server_builder_test) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 710 | add_dependencies(buildtests_cxx server_context_test_spouse_test) |
| 711 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 712 | add_dependencies(buildtests_cxx server_crash_test) |
| 713 | endif() |
| 714 | add_dependencies(buildtests_cxx server_crash_test_client) |
| 715 | add_dependencies(buildtests_cxx shutdown_test) |
| 716 | add_dependencies(buildtests_cxx status_test) |
| 717 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 718 | add_dependencies(buildtests_cxx streaming_throughput_test) |
| 719 | endif() |
| 720 | add_dependencies(buildtests_cxx stress_test) |
| 721 | add_dependencies(buildtests_cxx thread_manager_test) |
| 722 | add_dependencies(buildtests_cxx thread_stress_test) |
Craig Tiller | 1bb5371 | 2017-02-04 15:39:27 -0800 | [diff] [blame] | 723 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Craig Tiller | c40b347 | 2017-02-03 11:54:26 -0800 | [diff] [blame] | 724 | add_dependencies(buildtests_cxx writes_per_rpc_test) |
Craig Tiller | 1bb5371 | 2017-02-04 15:39:27 -0800 | [diff] [blame] | 725 | endif() |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 726 | |
| 727 | add_custom_target(buildtests |
| 728 | DEPENDS buildtests_c buildtests_cxx) |
| 729 | endif (gRPC_BUILD_TESTS) |
| 730 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 731 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 732 | add_library(gpr |
| 733 | src/core/lib/profiling/basic_timers.c |
| 734 | src/core/lib/profiling/stap_timers.c |
| 735 | src/core/lib/support/alloc.c |
Craig Tiller | 9202b3f | 2017-03-12 22:30:38 -0700 | [diff] [blame] | 736 | src/core/lib/support/arena.c |
Mark D. Roth | fecba53 | 2017-03-17 09:50:48 -0700 | [diff] [blame] | 737 | src/core/lib/support/atm.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 738 | src/core/lib/support/avl.c |
| 739 | src/core/lib/support/backoff.c |
| 740 | src/core/lib/support/cmdline.c |
| 741 | src/core/lib/support/cpu_iphone.c |
| 742 | src/core/lib/support/cpu_linux.c |
| 743 | src/core/lib/support/cpu_posix.c |
| 744 | src/core/lib/support/cpu_windows.c |
| 745 | src/core/lib/support/env_linux.c |
| 746 | src/core/lib/support/env_posix.c |
| 747 | src/core/lib/support/env_windows.c |
| 748 | src/core/lib/support/histogram.c |
| 749 | src/core/lib/support/host_port.c |
| 750 | src/core/lib/support/log.c |
| 751 | src/core/lib/support/log_android.c |
| 752 | src/core/lib/support/log_linux.c |
| 753 | src/core/lib/support/log_posix.c |
| 754 | src/core/lib/support/log_windows.c |
Craig Tiller | 57726ca | 2016-09-12 11:59:45 -0700 | [diff] [blame] | 755 | src/core/lib/support/mpscq.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 756 | src/core/lib/support/murmur_hash.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 757 | src/core/lib/support/stack_lockfree.c |
| 758 | src/core/lib/support/string.c |
| 759 | src/core/lib/support/string_posix.c |
| 760 | src/core/lib/support/string_util_windows.c |
| 761 | src/core/lib/support/string_windows.c |
| 762 | src/core/lib/support/subprocess_posix.c |
| 763 | src/core/lib/support/subprocess_windows.c |
| 764 | src/core/lib/support/sync.c |
| 765 | src/core/lib/support/sync_posix.c |
| 766 | src/core/lib/support/sync_windows.c |
| 767 | src/core/lib/support/thd.c |
| 768 | src/core/lib/support/thd_posix.c |
| 769 | src/core/lib/support/thd_windows.c |
| 770 | src/core/lib/support/time.c |
| 771 | src/core/lib/support/time_posix.c |
| 772 | src/core/lib/support/time_precise.c |
| 773 | src/core/lib/support/time_windows.c |
| 774 | src/core/lib/support/tls_pthread.c |
| 775 | src/core/lib/support/tmpfile_msys.c |
| 776 | src/core/lib/support/tmpfile_posix.c |
| 777 | src/core/lib/support/tmpfile_windows.c |
| 778 | src/core/lib/support/wrap_memcpy.c |
| 779 | ) |
| 780 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 781 | if(WIN32 AND MSVC) |
| 782 | set_target_properties(gpr PROPERTIES COMPILE_PDB_NAME "gpr" |
| 783 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 784 | ) |
| 785 | if (gRPC_INSTALL) |
| 786 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/gpr.pdb |
| 787 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 788 | ) |
| 789 | endif() |
| 790 | endif() |
| 791 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 792 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 793 | target_include_directories(gpr |
| 794 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 795 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 796 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 797 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 798 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 799 | PRIVATE ${BENCHMARK}/include |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 800 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 801 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | 8076d2b | 2016-08-25 13:23:13 -0700 | [diff] [blame] | 802 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 803 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 804 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 805 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 806 | ) |
| 807 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 808 | target_link_libraries(gpr |
| 809 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 810 | ) |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 811 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 812 | foreach(_hdr |
| 813 | include/grpc/support/alloc.h |
| 814 | include/grpc/support/atm.h |
| 815 | include/grpc/support/atm_gcc_atomic.h |
| 816 | include/grpc/support/atm_gcc_sync.h |
| 817 | include/grpc/support/atm_windows.h |
| 818 | include/grpc/support/avl.h |
| 819 | include/grpc/support/cmdline.h |
| 820 | include/grpc/support/cpu.h |
| 821 | include/grpc/support/histogram.h |
| 822 | include/grpc/support/host_port.h |
| 823 | include/grpc/support/log.h |
| 824 | include/grpc/support/log_windows.h |
| 825 | include/grpc/support/port_platform.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 826 | include/grpc/support/string_util.h |
| 827 | include/grpc/support/subprocess.h |
| 828 | include/grpc/support/sync.h |
| 829 | include/grpc/support/sync_generic.h |
| 830 | include/grpc/support/sync_posix.h |
| 831 | include/grpc/support/sync_windows.h |
| 832 | include/grpc/support/thd.h |
| 833 | include/grpc/support/time.h |
| 834 | include/grpc/support/tls.h |
| 835 | include/grpc/support/tls_gcc.h |
| 836 | include/grpc/support/tls_msvc.h |
| 837 | include/grpc/support/tls_pthread.h |
| 838 | include/grpc/support/useful.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 839 | include/grpc/impl/codegen/atm.h |
| 840 | include/grpc/impl/codegen/atm_gcc_atomic.h |
| 841 | include/grpc/impl/codegen/atm_gcc_sync.h |
| 842 | include/grpc/impl/codegen/atm_windows.h |
Mark D. Roth | 4d2ea02 | 2016-12-12 07:12:27 -0800 | [diff] [blame] | 843 | include/grpc/impl/codegen/gpr_slice.h |
David Garcia Quintas | 44cb6c9 | 2016-08-02 10:26:51 -0700 | [diff] [blame] | 844 | include/grpc/impl/codegen/gpr_types.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 845 | include/grpc/impl/codegen/port_platform.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 846 | include/grpc/impl/codegen/sync.h |
| 847 | include/grpc/impl/codegen/sync_generic.h |
| 848 | include/grpc/impl/codegen/sync_posix.h |
| 849 | include/grpc/impl/codegen/sync_windows.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 850 | ) |
| 851 | string(REPLACE "include/" "" _path ${_hdr}) |
| 852 | get_filename_component(_path ${_path} PATH) |
| 853 | install(FILES ${_hdr} |
| 854 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 855 | ) |
| 856 | endforeach() |
| 857 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 858 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 859 | if (gRPC_INSTALL) |
| 860 | install(TARGETS gpr EXPORT gRPCTargets |
| 861 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 862 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 863 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 864 | ) |
| 865 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 866 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 867 | if (gRPC_BUILD_TESTS) |
| 868 | |
| 869 | add_library(gpr_test_util |
| 870 | test/core/util/test_config.c |
| 871 | ) |
| 872 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 873 | if(WIN32 AND MSVC) |
| 874 | set_target_properties(gpr_test_util PROPERTIES COMPILE_PDB_NAME "gpr_test_util" |
| 875 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 876 | ) |
| 877 | if (gRPC_INSTALL) |
| 878 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/gpr_test_util.pdb |
| 879 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 880 | ) |
| 881 | endif() |
| 882 | endif() |
| 883 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 884 | |
| 885 | target_include_directories(gpr_test_util |
| 886 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 887 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 888 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 889 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 890 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 891 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 892 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 893 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 894 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 895 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 896 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 897 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 898 | ) |
| 899 | |
| 900 | target_link_libraries(gpr_test_util |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 901 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 902 | gpr |
| 903 | ) |
| 904 | |
| 905 | |
| 906 | endif (gRPC_BUILD_TESTS) |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 907 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 908 | add_library(grpc |
| 909 | src/core/lib/surface/init.c |
| 910 | src/core/lib/channel/channel_args.c |
| 911 | src/core/lib/channel/channel_stack.c |
| 912 | src/core/lib/channel/channel_stack_builder.c |
| 913 | src/core/lib/channel/compress_filter.c |
| 914 | src/core/lib/channel/connected_channel.c |
Mark D. Roth | 14c072c | 2016-08-26 08:31:34 -0700 | [diff] [blame] | 915 | src/core/lib/channel/deadline_filter.c |
Mark D. Roth | dfbdefe | 2016-07-14 09:18:22 -0700 | [diff] [blame] | 916 | src/core/lib/channel/handshaker.c |
Mark D. Roth | 1f0f23c | 2017-01-06 13:07:19 -0800 | [diff] [blame] | 917 | src/core/lib/channel/handshaker_factory.c |
| 918 | src/core/lib/channel/handshaker_registry.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 919 | src/core/lib/channel/http_client_filter.c |
| 920 | src/core/lib/channel/http_server_filter.c |
Yuchen Zeng | a809ea5 | 2017-03-28 02:02:45 -0700 | [diff] [blame] | 921 | src/core/lib/channel/max_age_filter.c |
Mark D. Roth | af00d8b | 2016-08-23 12:48:16 -0700 | [diff] [blame] | 922 | src/core/lib/channel/message_size_filter.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 923 | src/core/lib/compression/compression.c |
| 924 | src/core/lib/compression/message_compress.c |
| 925 | src/core/lib/debug/trace.c |
| 926 | src/core/lib/http/format_request.c |
| 927 | src/core/lib/http/httpcli.c |
| 928 | src/core/lib/http/parser.c |
| 929 | src/core/lib/iomgr/closure.c |
Craig Tiller | 57726ca | 2016-09-12 11:59:45 -0700 | [diff] [blame] | 930 | src/core/lib/iomgr/combiner.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 931 | src/core/lib/iomgr/endpoint.c |
| 932 | src/core/lib/iomgr/endpoint_pair_posix.c |
murgatroid99 | c36f6ea | 2016-10-03 09:24:09 -0700 | [diff] [blame] | 933 | src/core/lib/iomgr/endpoint_pair_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 934 | src/core/lib/iomgr/endpoint_pair_windows.c |
| 935 | src/core/lib/iomgr/error.c |
Nicolas "Pixel" Noble | b360c8a | 2016-07-02 00:54:28 +0200 | [diff] [blame] | 936 | src/core/lib/iomgr/ev_epoll_linux.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 937 | src/core/lib/iomgr/ev_poll_posix.c |
| 938 | src/core/lib/iomgr/ev_posix.c |
| 939 | src/core/lib/iomgr/exec_ctx.c |
| 940 | src/core/lib/iomgr/executor.c |
| 941 | src/core/lib/iomgr/iocp_windows.c |
| 942 | src/core/lib/iomgr/iomgr.c |
| 943 | src/core/lib/iomgr/iomgr_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 944 | src/core/lib/iomgr/iomgr_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 945 | src/core/lib/iomgr/iomgr_windows.c |
| 946 | src/core/lib/iomgr/load_file.c |
Nicolas "Pixel" Noble | b360c8a | 2016-07-02 00:54:28 +0200 | [diff] [blame] | 947 | src/core/lib/iomgr/network_status_tracker.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 948 | src/core/lib/iomgr/polling_entity.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 949 | src/core/lib/iomgr/pollset_set_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 950 | src/core/lib/iomgr/pollset_set_windows.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 951 | src/core/lib/iomgr/pollset_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 952 | src/core/lib/iomgr/pollset_windows.c |
| 953 | src/core/lib/iomgr/resolve_address_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 954 | src/core/lib/iomgr/resolve_address_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 955 | src/core/lib/iomgr/resolve_address_windows.c |
Craig Tiller | 20afa3d | 2016-10-17 14:52:14 -0700 | [diff] [blame] | 956 | src/core/lib/iomgr/resource_quota.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 957 | src/core/lib/iomgr/sockaddr_utils.c |
Michael Warres | c46b3eb | 2017-02-22 22:57:04 -0500 | [diff] [blame] | 958 | src/core/lib/iomgr/socket_factory_posix.c |
Yuchen Zeng | de3daf5 | 2016-10-13 17:26:26 -0700 | [diff] [blame] | 959 | src/core/lib/iomgr/socket_mutator.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 960 | src/core/lib/iomgr/socket_utils_common_posix.c |
| 961 | src/core/lib/iomgr/socket_utils_linux.c |
| 962 | src/core/lib/iomgr/socket_utils_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 963 | src/core/lib/iomgr/socket_utils_uv.c |
murgatroid99 | 79b3227 | 2016-08-08 13:38:30 -0700 | [diff] [blame] | 964 | src/core/lib/iomgr/socket_utils_windows.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 965 | src/core/lib/iomgr/socket_windows.c |
| 966 | src/core/lib/iomgr/tcp_client_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 967 | src/core/lib/iomgr/tcp_client_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 968 | src/core/lib/iomgr/tcp_client_windows.c |
| 969 | src/core/lib/iomgr/tcp_posix.c |
| 970 | src/core/lib/iomgr/tcp_server_posix.c |
Yuchen Zeng | 68745bb | 2017-03-14 17:51:07 -0700 | [diff] [blame] | 971 | src/core/lib/iomgr/tcp_server_utils_posix_common.c |
Yuchen Zeng | 47155ed | 2017-03-13 17:18:07 -0700 | [diff] [blame] | 972 | src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c |
| 973 | src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 974 | src/core/lib/iomgr/tcp_server_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 975 | src/core/lib/iomgr/tcp_server_windows.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 976 | src/core/lib/iomgr/tcp_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 977 | src/core/lib/iomgr/tcp_windows.c |
| 978 | src/core/lib/iomgr/time_averaged_stats.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 979 | src/core/lib/iomgr/timer_generic.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 980 | src/core/lib/iomgr/timer_heap.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 981 | src/core/lib/iomgr/timer_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 982 | src/core/lib/iomgr/udp_server.c |
| 983 | src/core/lib/iomgr/unix_sockets_posix.c |
| 984 | src/core/lib/iomgr/unix_sockets_posix_noop.c |
kpayson64 | d195cf5 | 2016-10-09 18:04:00 -0700 | [diff] [blame] | 985 | src/core/lib/iomgr/wakeup_fd_cv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 986 | src/core/lib/iomgr/wakeup_fd_eventfd.c |
| 987 | src/core/lib/iomgr/wakeup_fd_nospecial.c |
| 988 | src/core/lib/iomgr/wakeup_fd_pipe.c |
| 989 | src/core/lib/iomgr/wakeup_fd_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 990 | src/core/lib/iomgr/workqueue_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 991 | src/core/lib/iomgr/workqueue_windows.c |
| 992 | src/core/lib/json/json.c |
| 993 | src/core/lib/json/json_reader.c |
| 994 | src/core/lib/json/json_string.c |
| 995 | src/core/lib/json/json_writer.c |
Craig Tiller | 29b527f | 2017-03-30 10:27:20 -0700 | [diff] [blame] | 996 | src/core/lib/slice/b64.c |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 997 | src/core/lib/slice/percent_encoding.c |
| 998 | src/core/lib/slice/slice.c |
| 999 | src/core/lib/slice/slice_buffer.c |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 1000 | src/core/lib/slice/slice_hash_table.c |
| 1001 | src/core/lib/slice/slice_intern.c |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 1002 | src/core/lib/slice/slice_string_helpers.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1003 | src/core/lib/surface/alarm.c |
| 1004 | src/core/lib/surface/api_trace.c |
| 1005 | src/core/lib/surface/byte_buffer.c |
| 1006 | src/core/lib/surface/byte_buffer_reader.c |
| 1007 | src/core/lib/surface/call.c |
| 1008 | src/core/lib/surface/call_details.c |
| 1009 | src/core/lib/surface/call_log_batch.c |
| 1010 | src/core/lib/surface/channel.c |
| 1011 | src/core/lib/surface/channel_init.c |
| 1012 | src/core/lib/surface/channel_ping.c |
| 1013 | src/core/lib/surface/channel_stack_type.c |
| 1014 | src/core/lib/surface/completion_queue.c |
Sree Kuchibhotla | bf18428 | 2017-03-21 15:18:58 -0700 | [diff] [blame] | 1015 | src/core/lib/surface/completion_queue_factory.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1016 | src/core/lib/surface/event_string.c |
| 1017 | src/core/lib/surface/lame_client.c |
| 1018 | src/core/lib/surface/metadata_array.c |
| 1019 | src/core/lib/surface/server.c |
| 1020 | src/core/lib/surface/validate_metadata.c |
| 1021 | src/core/lib/surface/version.c |
Craig Tiller | 9e0066b | 2016-10-20 14:04:18 -0700 | [diff] [blame] | 1022 | src/core/lib/transport/bdp_estimator.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1023 | src/core/lib/transport/byte_stream.c |
| 1024 | src/core/lib/transport/connectivity_state.c |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 1025 | src/core/lib/transport/error_utils.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1026 | src/core/lib/transport/metadata.c |
| 1027 | src/core/lib/transport/metadata_batch.c |
Craig Tiller | dd2fa64 | 2016-10-20 15:46:32 -0700 | [diff] [blame] | 1028 | src/core/lib/transport/pid_controller.c |
Mark D. Roth | ea846a0 | 2016-11-03 11:32:54 -0700 | [diff] [blame] | 1029 | src/core/lib/transport/service_config.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1030 | src/core/lib/transport/static_metadata.c |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 1031 | src/core/lib/transport/status_conversion.c |
Robbie Shade | 710d242 | 2016-07-13 15:15:38 -0400 | [diff] [blame] | 1032 | src/core/lib/transport/timeout_encoding.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1033 | src/core/lib/transport/transport.c |
| 1034 | src/core/lib/transport/transport_op_string.c |
| 1035 | src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c |
| 1036 | src/core/ext/transport/chttp2/transport/bin_decoder.c |
| 1037 | src/core/ext/transport/chttp2/transport/bin_encoder.c |
| 1038 | src/core/ext/transport/chttp2/transport/chttp2_plugin.c |
| 1039 | src/core/ext/transport/chttp2/transport/chttp2_transport.c |
| 1040 | src/core/ext/transport/chttp2/transport/frame_data.c |
| 1041 | src/core/ext/transport/chttp2/transport/frame_goaway.c |
| 1042 | src/core/ext/transport/chttp2/transport/frame_ping.c |
| 1043 | src/core/ext/transport/chttp2/transport/frame_rst_stream.c |
| 1044 | src/core/ext/transport/chttp2/transport/frame_settings.c |
| 1045 | src/core/ext/transport/chttp2/transport/frame_window_update.c |
| 1046 | src/core/ext/transport/chttp2/transport/hpack_encoder.c |
| 1047 | src/core/ext/transport/chttp2/transport/hpack_parser.c |
| 1048 | src/core/ext/transport/chttp2/transport/hpack_table.c |
| 1049 | src/core/ext/transport/chttp2/transport/huffsyms.c |
| 1050 | src/core/ext/transport/chttp2/transport/incoming_metadata.c |
| 1051 | src/core/ext/transport/chttp2/transport/parsing.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1052 | src/core/ext/transport/chttp2/transport/stream_lists.c |
| 1053 | src/core/ext/transport/chttp2/transport/stream_map.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1054 | src/core/ext/transport/chttp2/transport/varint.c |
| 1055 | src/core/ext/transport/chttp2/transport/writing.c |
| 1056 | src/core/ext/transport/chttp2/alpn/alpn.c |
| 1057 | src/core/lib/http/httpcli_security_connector.c |
| 1058 | src/core/lib/security/context/security_context.c |
| 1059 | src/core/lib/security/credentials/composite/composite_credentials.c |
| 1060 | src/core/lib/security/credentials/credentials.c |
| 1061 | src/core/lib/security/credentials/credentials_metadata.c |
| 1062 | src/core/lib/security/credentials/fake/fake_credentials.c |
murgatroid99 | 7c20590 | 2016-08-09 10:07:42 -0700 | [diff] [blame] | 1063 | src/core/lib/security/credentials/google_default/credentials_generic.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1064 | src/core/lib/security/credentials/google_default/google_default_credentials.c |
| 1065 | src/core/lib/security/credentials/iam/iam_credentials.c |
| 1066 | src/core/lib/security/credentials/jwt/json_token.c |
| 1067 | src/core/lib/security/credentials/jwt/jwt_credentials.c |
| 1068 | src/core/lib/security/credentials/jwt/jwt_verifier.c |
| 1069 | src/core/lib/security/credentials/oauth2/oauth2_credentials.c |
| 1070 | src/core/lib/security/credentials/plugin/plugin_credentials.c |
| 1071 | src/core/lib/security/credentials/ssl/ssl_credentials.c |
| 1072 | src/core/lib/security/transport/client_auth_filter.c |
David Garcia Quintas | 0129150 | 2017-02-07 13:26:41 -0800 | [diff] [blame] | 1073 | src/core/lib/security/transport/lb_targets_info.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1074 | src/core/lib/security/transport/secure_endpoint.c |
| 1075 | src/core/lib/security/transport/security_connector.c |
Mark D. Roth | 071cacf | 2016-11-17 13:17:56 -0800 | [diff] [blame] | 1076 | src/core/lib/security/transport/security_handshaker.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1077 | src/core/lib/security/transport/server_auth_filter.c |
| 1078 | src/core/lib/security/transport/tsi_error.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1079 | src/core/lib/security/util/json_util.c |
| 1080 | src/core/lib/surface/init_secure.c |
Craig Tiller | 134fed3 | 2017-03-28 14:27:18 -0700 | [diff] [blame] | 1081 | src/core/tsi/fake_transport_security.c |
| 1082 | src/core/tsi/ssl_transport_security.c |
| 1083 | src/core/tsi/transport_security.c |
Mark D. Roth | 7140382 | 2016-12-02 10:51:39 -0800 | [diff] [blame] | 1084 | src/core/ext/transport/chttp2/server/chttp2_server.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1085 | src/core/ext/transport/chttp2/client/secure/secure_channel_create.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 1086 | src/core/ext/client_channel/channel_connectivity.c |
| 1087 | src/core/ext/client_channel/client_channel.c |
| 1088 | src/core/ext/client_channel/client_channel_factory.c |
| 1089 | src/core/ext/client_channel/client_channel_plugin.c |
| 1090 | src/core/ext/client_channel/connector.c |
Mark D. Roth | 1519574 | 2016-10-07 09:02:28 -0700 | [diff] [blame] | 1091 | src/core/ext/client_channel/http_connect_handshaker.c |
Mark D. Roth | d58a985 | 2017-01-18 08:28:57 -0800 | [diff] [blame] | 1092 | src/core/ext/client_channel/http_proxy.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 1093 | src/core/ext/client_channel/lb_policy.c |
| 1094 | src/core/ext/client_channel/lb_policy_factory.c |
| 1095 | src/core/ext/client_channel/lb_policy_registry.c |
| 1096 | src/core/ext/client_channel/parse_address.c |
Mark D. Roth | 79f2a24 | 2017-01-17 14:13:33 -0800 | [diff] [blame] | 1097 | src/core/ext/client_channel/proxy_mapper.c |
| 1098 | src/core/ext/client_channel/proxy_mapper_registry.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 1099 | src/core/ext/client_channel/resolver.c |
| 1100 | src/core/ext/client_channel/resolver_factory.c |
| 1101 | src/core/ext/client_channel/resolver_registry.c |
Mark D. Roth | d6d192d | 2017-02-23 08:58:42 -0800 | [diff] [blame] | 1102 | src/core/ext/client_channel/retry_throttle.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 1103 | src/core/ext/client_channel/subchannel.c |
| 1104 | src/core/ext/client_channel/subchannel_index.c |
| 1105 | src/core/ext/client_channel/uri_parser.c |
Mark D. Roth | 8686cab | 2016-11-17 13:12:17 -0800 | [diff] [blame] | 1106 | src/core/ext/transport/chttp2/client/chttp2_connector.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1107 | src/core/ext/transport/chttp2/server/insecure/server_chttp2.c |
| 1108 | src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c |
| 1109 | src/core/ext/transport/chttp2/client/insecure/channel_create.c |
| 1110 | src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c |
David Garcia Quintas | 7c3ba12 | 2016-07-14 11:38:38 -0700 | [diff] [blame] | 1111 | src/core/ext/lb_policy/grpclb/grpclb.c |
David Garcia Quintas | 0129150 | 2017-02-07 13:26:41 -0800 | [diff] [blame] | 1112 | src/core/ext/lb_policy/grpclb/grpclb_channel_secure.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1113 | src/core/ext/lb_policy/grpclb/load_balancer_api.c |
| 1114 | src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c |
| 1115 | third_party/nanopb/pb_common.c |
| 1116 | third_party/nanopb/pb_decode.c |
| 1117 | third_party/nanopb/pb_encode.c |
| 1118 | src/core/ext/lb_policy/pick_first/pick_first.c |
| 1119 | src/core/ext/lb_policy/round_robin/round_robin.c |
Yuchen Zeng | ea88fc1 | 2016-08-19 00:20:59 -0700 | [diff] [blame] | 1120 | src/core/ext/resolver/dns/c_ares/dns_resolver_ares.c |
Yuchen Zeng | 85750b0 | 2016-08-08 14:16:34 -0700 | [diff] [blame] | 1121 | src/core/ext/resolver/dns/c_ares/grpc_ares_ev_driver_posix.c |
Yuchen Zeng | d4bbfc7 | 2016-08-05 10:33:16 -0700 | [diff] [blame] | 1122 | src/core/ext/resolver/dns/c_ares/grpc_ares_wrapper.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1123 | src/core/ext/resolver/dns/native/dns_resolver.c |
| 1124 | src/core/ext/resolver/sockaddr/sockaddr_resolver.c |
| 1125 | src/core/ext/load_reporting/load_reporting.c |
| 1126 | src/core/ext/load_reporting/load_reporting_filter.c |
Alistair Veitch | 3abd27e | 2016-07-21 17:29:04 -0700 | [diff] [blame] | 1127 | src/core/ext/census/base_resources.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1128 | src/core/ext/census/context.c |
| 1129 | src/core/ext/census/gen/census.pb.c |
Alistair Veitch | a0c69f9 | 2016-08-31 12:01:27 -0700 | [diff] [blame] | 1130 | src/core/ext/census/gen/trace_context.pb.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1131 | src/core/ext/census/grpc_context.c |
| 1132 | src/core/ext/census/grpc_filter.c |
| 1133 | src/core/ext/census/grpc_plugin.c |
| 1134 | src/core/ext/census/initialize.c |
| 1135 | src/core/ext/census/mlog.c |
| 1136 | src/core/ext/census/operation.c |
| 1137 | src/core/ext/census/placeholders.c |
Alistair Veitch | 3abd27e | 2016-07-21 17:29:04 -0700 | [diff] [blame] | 1138 | src/core/ext/census/resource.c |
Vizerai | 12d1fc6 | 2016-09-09 14:22:19 -0700 | [diff] [blame] | 1139 | src/core/ext/census/trace_context.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1140 | src/core/ext/census/tracing.c |
| 1141 | src/core/plugin_registry/grpc_plugin_registry.c |
| 1142 | ) |
| 1143 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 1144 | if(WIN32 AND MSVC) |
| 1145 | set_target_properties(grpc PROPERTIES COMPILE_PDB_NAME "grpc" |
| 1146 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 1147 | ) |
| 1148 | if (gRPC_INSTALL) |
| 1149 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc.pdb |
| 1150 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 1151 | ) |
| 1152 | endif() |
| 1153 | endif() |
| 1154 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 1155 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1156 | target_include_directories(grpc |
| 1157 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1158 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1159 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1160 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1161 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 1162 | PRIVATE ${BENCHMARK}/include |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1163 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 1164 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | 8076d2b | 2016-08-25 13:23:13 -0700 | [diff] [blame] | 1165 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 1166 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 1167 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1168 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1169 | ) |
| 1170 | |
| 1171 | target_link_libraries(grpc |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1172 | ${_gRPC_BASELIB_LIBRARIES} |
| 1173 | ${_gRPC_SSL_LIBRARIES} |
| 1174 | ${_gRPC_ZLIB_LIBRARIES} |
Yuchen Zeng | 8076d2b | 2016-08-25 13:23:13 -0700 | [diff] [blame] | 1175 | ${_gRPC_CARES_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 1176 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1177 | gpr |
| 1178 | ) |
| 1179 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1180 | foreach(_hdr |
| 1181 | include/grpc/byte_buffer.h |
| 1182 | include/grpc/byte_buffer_reader.h |
| 1183 | include/grpc/compression.h |
| 1184 | include/grpc/grpc.h |
| 1185 | include/grpc/grpc_posix.h |
Nicolas "Pixel" Noble | e3e17d3 | 2016-08-20 01:45:32 +0200 | [diff] [blame] | 1186 | include/grpc/grpc_security_constants.h |
David Garcia Quintas | f31f096 | 2017-02-10 14:53:58 -0800 | [diff] [blame] | 1187 | include/grpc/load_reporting.h |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 1188 | include/grpc/slice.h |
| 1189 | include/grpc/slice_buffer.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1190 | include/grpc/status.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1191 | include/grpc/impl/codegen/byte_buffer_reader.h |
| 1192 | include/grpc/impl/codegen/compression_types.h |
| 1193 | include/grpc/impl/codegen/connectivity_state.h |
Craig Tiller | b995e8b | 2016-12-12 06:36:43 -0800 | [diff] [blame] | 1194 | include/grpc/impl/codegen/exec_ctx_fwd.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1195 | include/grpc/impl/codegen/grpc_types.h |
| 1196 | include/grpc/impl/codegen/propagation_bits.h |
Craig Tiller | 790f6af | 2017-03-30 12:39:24 -0700 | [diff] [blame] | 1197 | include/grpc/impl/codegen/slice.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1198 | include/grpc/impl/codegen/status.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1199 | include/grpc/impl/codegen/atm.h |
| 1200 | include/grpc/impl/codegen/atm_gcc_atomic.h |
| 1201 | include/grpc/impl/codegen/atm_gcc_sync.h |
| 1202 | include/grpc/impl/codegen/atm_windows.h |
Mark D. Roth | 4d2ea02 | 2016-12-12 07:12:27 -0800 | [diff] [blame] | 1203 | include/grpc/impl/codegen/gpr_slice.h |
David Garcia Quintas | 44cb6c9 | 2016-08-02 10:26:51 -0700 | [diff] [blame] | 1204 | include/grpc/impl/codegen/gpr_types.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1205 | include/grpc/impl/codegen/port_platform.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1206 | include/grpc/impl/codegen/sync.h |
| 1207 | include/grpc/impl/codegen/sync_generic.h |
| 1208 | include/grpc/impl/codegen/sync_posix.h |
| 1209 | include/grpc/impl/codegen/sync_windows.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1210 | include/grpc/grpc_security.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1211 | include/grpc/census.h |
| 1212 | ) |
| 1213 | string(REPLACE "include/" "" _path ${_hdr}) |
| 1214 | get_filename_component(_path ${_path} PATH) |
| 1215 | install(FILES ${_hdr} |
| 1216 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 1217 | ) |
| 1218 | endforeach() |
| 1219 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 1220 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1221 | if (gRPC_INSTALL) |
| 1222 | install(TARGETS grpc EXPORT gRPCTargets |
| 1223 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1224 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1225 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1226 | ) |
| 1227 | endif() |
| 1228 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 1229 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1230 | add_library(grpc_cronet |
| 1231 | src/core/lib/surface/init.c |
| 1232 | src/core/lib/channel/channel_args.c |
| 1233 | src/core/lib/channel/channel_stack.c |
| 1234 | src/core/lib/channel/channel_stack_builder.c |
| 1235 | src/core/lib/channel/compress_filter.c |
| 1236 | src/core/lib/channel/connected_channel.c |
Mark D. Roth | 14c072c | 2016-08-26 08:31:34 -0700 | [diff] [blame] | 1237 | src/core/lib/channel/deadline_filter.c |
Mark D. Roth | dfbdefe | 2016-07-14 09:18:22 -0700 | [diff] [blame] | 1238 | src/core/lib/channel/handshaker.c |
Mark D. Roth | 1f0f23c | 2017-01-06 13:07:19 -0800 | [diff] [blame] | 1239 | src/core/lib/channel/handshaker_factory.c |
| 1240 | src/core/lib/channel/handshaker_registry.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1241 | src/core/lib/channel/http_client_filter.c |
| 1242 | src/core/lib/channel/http_server_filter.c |
Yuchen Zeng | a809ea5 | 2017-03-28 02:02:45 -0700 | [diff] [blame] | 1243 | src/core/lib/channel/max_age_filter.c |
Mark D. Roth | af00d8b | 2016-08-23 12:48:16 -0700 | [diff] [blame] | 1244 | src/core/lib/channel/message_size_filter.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1245 | src/core/lib/compression/compression.c |
| 1246 | src/core/lib/compression/message_compress.c |
| 1247 | src/core/lib/debug/trace.c |
| 1248 | src/core/lib/http/format_request.c |
| 1249 | src/core/lib/http/httpcli.c |
| 1250 | src/core/lib/http/parser.c |
| 1251 | src/core/lib/iomgr/closure.c |
Craig Tiller | 57726ca | 2016-09-12 11:59:45 -0700 | [diff] [blame] | 1252 | src/core/lib/iomgr/combiner.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1253 | src/core/lib/iomgr/endpoint.c |
| 1254 | src/core/lib/iomgr/endpoint_pair_posix.c |
murgatroid99 | c36f6ea | 2016-10-03 09:24:09 -0700 | [diff] [blame] | 1255 | src/core/lib/iomgr/endpoint_pair_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1256 | src/core/lib/iomgr/endpoint_pair_windows.c |
| 1257 | src/core/lib/iomgr/error.c |
Nicolas "Pixel" Noble | b360c8a | 2016-07-02 00:54:28 +0200 | [diff] [blame] | 1258 | src/core/lib/iomgr/ev_epoll_linux.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1259 | src/core/lib/iomgr/ev_poll_posix.c |
| 1260 | src/core/lib/iomgr/ev_posix.c |
| 1261 | src/core/lib/iomgr/exec_ctx.c |
| 1262 | src/core/lib/iomgr/executor.c |
| 1263 | src/core/lib/iomgr/iocp_windows.c |
| 1264 | src/core/lib/iomgr/iomgr.c |
| 1265 | src/core/lib/iomgr/iomgr_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1266 | src/core/lib/iomgr/iomgr_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1267 | src/core/lib/iomgr/iomgr_windows.c |
| 1268 | src/core/lib/iomgr/load_file.c |
Nicolas "Pixel" Noble | b360c8a | 2016-07-02 00:54:28 +0200 | [diff] [blame] | 1269 | src/core/lib/iomgr/network_status_tracker.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1270 | src/core/lib/iomgr/polling_entity.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1271 | src/core/lib/iomgr/pollset_set_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1272 | src/core/lib/iomgr/pollset_set_windows.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1273 | src/core/lib/iomgr/pollset_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1274 | src/core/lib/iomgr/pollset_windows.c |
| 1275 | src/core/lib/iomgr/resolve_address_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1276 | src/core/lib/iomgr/resolve_address_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1277 | src/core/lib/iomgr/resolve_address_windows.c |
Craig Tiller | 20afa3d | 2016-10-17 14:52:14 -0700 | [diff] [blame] | 1278 | src/core/lib/iomgr/resource_quota.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1279 | src/core/lib/iomgr/sockaddr_utils.c |
Michael Warres | c46b3eb | 2017-02-22 22:57:04 -0500 | [diff] [blame] | 1280 | src/core/lib/iomgr/socket_factory_posix.c |
Yuchen Zeng | de3daf5 | 2016-10-13 17:26:26 -0700 | [diff] [blame] | 1281 | src/core/lib/iomgr/socket_mutator.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1282 | src/core/lib/iomgr/socket_utils_common_posix.c |
| 1283 | src/core/lib/iomgr/socket_utils_linux.c |
| 1284 | src/core/lib/iomgr/socket_utils_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1285 | src/core/lib/iomgr/socket_utils_uv.c |
murgatroid99 | 79b3227 | 2016-08-08 13:38:30 -0700 | [diff] [blame] | 1286 | src/core/lib/iomgr/socket_utils_windows.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1287 | src/core/lib/iomgr/socket_windows.c |
| 1288 | src/core/lib/iomgr/tcp_client_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1289 | src/core/lib/iomgr/tcp_client_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1290 | src/core/lib/iomgr/tcp_client_windows.c |
| 1291 | src/core/lib/iomgr/tcp_posix.c |
| 1292 | src/core/lib/iomgr/tcp_server_posix.c |
Yuchen Zeng | 68745bb | 2017-03-14 17:51:07 -0700 | [diff] [blame] | 1293 | src/core/lib/iomgr/tcp_server_utils_posix_common.c |
Yuchen Zeng | 47155ed | 2017-03-13 17:18:07 -0700 | [diff] [blame] | 1294 | src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c |
| 1295 | src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1296 | src/core/lib/iomgr/tcp_server_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1297 | src/core/lib/iomgr/tcp_server_windows.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1298 | src/core/lib/iomgr/tcp_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1299 | src/core/lib/iomgr/tcp_windows.c |
| 1300 | src/core/lib/iomgr/time_averaged_stats.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1301 | src/core/lib/iomgr/timer_generic.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1302 | src/core/lib/iomgr/timer_heap.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1303 | src/core/lib/iomgr/timer_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1304 | src/core/lib/iomgr/udp_server.c |
| 1305 | src/core/lib/iomgr/unix_sockets_posix.c |
| 1306 | src/core/lib/iomgr/unix_sockets_posix_noop.c |
kpayson64 | d195cf5 | 2016-10-09 18:04:00 -0700 | [diff] [blame] | 1307 | src/core/lib/iomgr/wakeup_fd_cv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1308 | src/core/lib/iomgr/wakeup_fd_eventfd.c |
| 1309 | src/core/lib/iomgr/wakeup_fd_nospecial.c |
| 1310 | src/core/lib/iomgr/wakeup_fd_pipe.c |
| 1311 | src/core/lib/iomgr/wakeup_fd_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1312 | src/core/lib/iomgr/workqueue_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1313 | src/core/lib/iomgr/workqueue_windows.c |
| 1314 | src/core/lib/json/json.c |
| 1315 | src/core/lib/json/json_reader.c |
| 1316 | src/core/lib/json/json_string.c |
| 1317 | src/core/lib/json/json_writer.c |
Craig Tiller | 29b527f | 2017-03-30 10:27:20 -0700 | [diff] [blame] | 1318 | src/core/lib/slice/b64.c |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 1319 | src/core/lib/slice/percent_encoding.c |
| 1320 | src/core/lib/slice/slice.c |
| 1321 | src/core/lib/slice/slice_buffer.c |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 1322 | src/core/lib/slice/slice_hash_table.c |
| 1323 | src/core/lib/slice/slice_intern.c |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 1324 | src/core/lib/slice/slice_string_helpers.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1325 | src/core/lib/surface/alarm.c |
| 1326 | src/core/lib/surface/api_trace.c |
| 1327 | src/core/lib/surface/byte_buffer.c |
| 1328 | src/core/lib/surface/byte_buffer_reader.c |
| 1329 | src/core/lib/surface/call.c |
| 1330 | src/core/lib/surface/call_details.c |
| 1331 | src/core/lib/surface/call_log_batch.c |
| 1332 | src/core/lib/surface/channel.c |
| 1333 | src/core/lib/surface/channel_init.c |
| 1334 | src/core/lib/surface/channel_ping.c |
| 1335 | src/core/lib/surface/channel_stack_type.c |
| 1336 | src/core/lib/surface/completion_queue.c |
Sree Kuchibhotla | bf18428 | 2017-03-21 15:18:58 -0700 | [diff] [blame] | 1337 | src/core/lib/surface/completion_queue_factory.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1338 | src/core/lib/surface/event_string.c |
| 1339 | src/core/lib/surface/lame_client.c |
| 1340 | src/core/lib/surface/metadata_array.c |
| 1341 | src/core/lib/surface/server.c |
| 1342 | src/core/lib/surface/validate_metadata.c |
| 1343 | src/core/lib/surface/version.c |
Craig Tiller | 9e0066b | 2016-10-20 14:04:18 -0700 | [diff] [blame] | 1344 | src/core/lib/transport/bdp_estimator.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1345 | src/core/lib/transport/byte_stream.c |
| 1346 | src/core/lib/transport/connectivity_state.c |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 1347 | src/core/lib/transport/error_utils.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1348 | src/core/lib/transport/metadata.c |
| 1349 | src/core/lib/transport/metadata_batch.c |
Craig Tiller | dd2fa64 | 2016-10-20 15:46:32 -0700 | [diff] [blame] | 1350 | src/core/lib/transport/pid_controller.c |
Mark D. Roth | ea846a0 | 2016-11-03 11:32:54 -0700 | [diff] [blame] | 1351 | src/core/lib/transport/service_config.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1352 | src/core/lib/transport/static_metadata.c |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 1353 | src/core/lib/transport/status_conversion.c |
Robbie Shade | 710d242 | 2016-07-13 15:15:38 -0400 | [diff] [blame] | 1354 | src/core/lib/transport/timeout_encoding.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1355 | src/core/lib/transport/transport.c |
| 1356 | src/core/lib/transport/transport_op_string.c |
| 1357 | src/core/ext/transport/cronet/client/secure/cronet_channel_create.c |
| 1358 | src/core/ext/transport/cronet/transport/cronet_api_dummy.c |
| 1359 | src/core/ext/transport/cronet/transport/cronet_transport.c |
| 1360 | src/core/ext/transport/chttp2/client/secure/secure_channel_create.c |
| 1361 | src/core/ext/transport/chttp2/transport/bin_decoder.c |
| 1362 | src/core/ext/transport/chttp2/transport/bin_encoder.c |
| 1363 | src/core/ext/transport/chttp2/transport/chttp2_plugin.c |
| 1364 | src/core/ext/transport/chttp2/transport/chttp2_transport.c |
| 1365 | src/core/ext/transport/chttp2/transport/frame_data.c |
| 1366 | src/core/ext/transport/chttp2/transport/frame_goaway.c |
| 1367 | src/core/ext/transport/chttp2/transport/frame_ping.c |
| 1368 | src/core/ext/transport/chttp2/transport/frame_rst_stream.c |
| 1369 | src/core/ext/transport/chttp2/transport/frame_settings.c |
| 1370 | src/core/ext/transport/chttp2/transport/frame_window_update.c |
| 1371 | src/core/ext/transport/chttp2/transport/hpack_encoder.c |
| 1372 | src/core/ext/transport/chttp2/transport/hpack_parser.c |
| 1373 | src/core/ext/transport/chttp2/transport/hpack_table.c |
| 1374 | src/core/ext/transport/chttp2/transport/huffsyms.c |
| 1375 | src/core/ext/transport/chttp2/transport/incoming_metadata.c |
| 1376 | src/core/ext/transport/chttp2/transport/parsing.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1377 | src/core/ext/transport/chttp2/transport/stream_lists.c |
| 1378 | src/core/ext/transport/chttp2/transport/stream_map.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1379 | src/core/ext/transport/chttp2/transport/varint.c |
| 1380 | src/core/ext/transport/chttp2/transport/writing.c |
| 1381 | src/core/ext/transport/chttp2/alpn/alpn.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 1382 | src/core/ext/client_channel/channel_connectivity.c |
| 1383 | src/core/ext/client_channel/client_channel.c |
| 1384 | src/core/ext/client_channel/client_channel_factory.c |
| 1385 | src/core/ext/client_channel/client_channel_plugin.c |
| 1386 | src/core/ext/client_channel/connector.c |
Mark D. Roth | 1519574 | 2016-10-07 09:02:28 -0700 | [diff] [blame] | 1387 | src/core/ext/client_channel/http_connect_handshaker.c |
Mark D. Roth | d58a985 | 2017-01-18 08:28:57 -0800 | [diff] [blame] | 1388 | src/core/ext/client_channel/http_proxy.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 1389 | src/core/ext/client_channel/lb_policy.c |
| 1390 | src/core/ext/client_channel/lb_policy_factory.c |
| 1391 | src/core/ext/client_channel/lb_policy_registry.c |
| 1392 | src/core/ext/client_channel/parse_address.c |
Mark D. Roth | 79f2a24 | 2017-01-17 14:13:33 -0800 | [diff] [blame] | 1393 | src/core/ext/client_channel/proxy_mapper.c |
| 1394 | src/core/ext/client_channel/proxy_mapper_registry.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 1395 | src/core/ext/client_channel/resolver.c |
| 1396 | src/core/ext/client_channel/resolver_factory.c |
| 1397 | src/core/ext/client_channel/resolver_registry.c |
Mark D. Roth | d6d192d | 2017-02-23 08:58:42 -0800 | [diff] [blame] | 1398 | src/core/ext/client_channel/retry_throttle.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 1399 | src/core/ext/client_channel/subchannel.c |
| 1400 | src/core/ext/client_channel/subchannel_index.c |
| 1401 | src/core/ext/client_channel/uri_parser.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1402 | src/core/lib/http/httpcli_security_connector.c |
| 1403 | src/core/lib/security/context/security_context.c |
| 1404 | src/core/lib/security/credentials/composite/composite_credentials.c |
| 1405 | src/core/lib/security/credentials/credentials.c |
| 1406 | src/core/lib/security/credentials/credentials_metadata.c |
| 1407 | src/core/lib/security/credentials/fake/fake_credentials.c |
murgatroid99 | 7c20590 | 2016-08-09 10:07:42 -0700 | [diff] [blame] | 1408 | src/core/lib/security/credentials/google_default/credentials_generic.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1409 | src/core/lib/security/credentials/google_default/google_default_credentials.c |
| 1410 | src/core/lib/security/credentials/iam/iam_credentials.c |
| 1411 | src/core/lib/security/credentials/jwt/json_token.c |
| 1412 | src/core/lib/security/credentials/jwt/jwt_credentials.c |
| 1413 | src/core/lib/security/credentials/jwt/jwt_verifier.c |
| 1414 | src/core/lib/security/credentials/oauth2/oauth2_credentials.c |
| 1415 | src/core/lib/security/credentials/plugin/plugin_credentials.c |
| 1416 | src/core/lib/security/credentials/ssl/ssl_credentials.c |
| 1417 | src/core/lib/security/transport/client_auth_filter.c |
David Garcia Quintas | 0129150 | 2017-02-07 13:26:41 -0800 | [diff] [blame] | 1418 | src/core/lib/security/transport/lb_targets_info.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1419 | src/core/lib/security/transport/secure_endpoint.c |
| 1420 | src/core/lib/security/transport/security_connector.c |
Mark D. Roth | 071cacf | 2016-11-17 13:17:56 -0800 | [diff] [blame] | 1421 | src/core/lib/security/transport/security_handshaker.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1422 | src/core/lib/security/transport/server_auth_filter.c |
| 1423 | src/core/lib/security/transport/tsi_error.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1424 | src/core/lib/security/util/json_util.c |
| 1425 | src/core/lib/surface/init_secure.c |
Craig Tiller | 134fed3 | 2017-03-28 14:27:18 -0700 | [diff] [blame] | 1426 | src/core/tsi/fake_transport_security.c |
| 1427 | src/core/tsi/ssl_transport_security.c |
| 1428 | src/core/tsi/transport_security.c |
Mark D. Roth | 8686cab | 2016-11-17 13:12:17 -0800 | [diff] [blame] | 1429 | src/core/ext/transport/chttp2/client/chttp2_connector.c |
ncteisen | 40e1e99 | 2017-02-24 11:45:51 -0800 | [diff] [blame] | 1430 | src/core/ext/load_reporting/load_reporting.c |
| 1431 | src/core/ext/load_reporting/load_reporting_filter.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1432 | src/core/plugin_registry/grpc_cronet_plugin_registry.c |
| 1433 | ) |
| 1434 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 1435 | if(WIN32 AND MSVC) |
| 1436 | set_target_properties(grpc_cronet PROPERTIES COMPILE_PDB_NAME "grpc_cronet" |
| 1437 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 1438 | ) |
| 1439 | if (gRPC_INSTALL) |
| 1440 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_cronet.pdb |
| 1441 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 1442 | ) |
| 1443 | endif() |
| 1444 | endif() |
| 1445 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 1446 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1447 | target_include_directories(grpc_cronet |
| 1448 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1449 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1450 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1451 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1452 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 1453 | PRIVATE ${BENCHMARK}/include |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1454 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 1455 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | 8076d2b | 2016-08-25 13:23:13 -0700 | [diff] [blame] | 1456 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 1457 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 1458 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1459 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1460 | ) |
| 1461 | |
| 1462 | target_link_libraries(grpc_cronet |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 1463 | ${_gRPC_BASELIB_LIBRARIES} |
| 1464 | ${_gRPC_SSL_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 1465 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1466 | gpr |
| 1467 | ) |
| 1468 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1469 | foreach(_hdr |
| 1470 | include/grpc/byte_buffer.h |
| 1471 | include/grpc/byte_buffer_reader.h |
| 1472 | include/grpc/compression.h |
| 1473 | include/grpc/grpc.h |
| 1474 | include/grpc/grpc_posix.h |
Nicolas "Pixel" Noble | e3e17d3 | 2016-08-20 01:45:32 +0200 | [diff] [blame] | 1475 | include/grpc/grpc_security_constants.h |
David Garcia Quintas | f31f096 | 2017-02-10 14:53:58 -0800 | [diff] [blame] | 1476 | include/grpc/load_reporting.h |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 1477 | include/grpc/slice.h |
| 1478 | include/grpc/slice_buffer.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1479 | include/grpc/status.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1480 | include/grpc/impl/codegen/byte_buffer_reader.h |
| 1481 | include/grpc/impl/codegen/compression_types.h |
| 1482 | include/grpc/impl/codegen/connectivity_state.h |
Craig Tiller | b995e8b | 2016-12-12 06:36:43 -0800 | [diff] [blame] | 1483 | include/grpc/impl/codegen/exec_ctx_fwd.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1484 | include/grpc/impl/codegen/grpc_types.h |
| 1485 | include/grpc/impl/codegen/propagation_bits.h |
Craig Tiller | 790f6af | 2017-03-30 12:39:24 -0700 | [diff] [blame] | 1486 | include/grpc/impl/codegen/slice.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1487 | include/grpc/impl/codegen/status.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1488 | include/grpc/impl/codegen/atm.h |
| 1489 | include/grpc/impl/codegen/atm_gcc_atomic.h |
| 1490 | include/grpc/impl/codegen/atm_gcc_sync.h |
| 1491 | include/grpc/impl/codegen/atm_windows.h |
Mark D. Roth | 4d2ea02 | 2016-12-12 07:12:27 -0800 | [diff] [blame] | 1492 | include/grpc/impl/codegen/gpr_slice.h |
David Garcia Quintas | 44cb6c9 | 2016-08-02 10:26:51 -0700 | [diff] [blame] | 1493 | include/grpc/impl/codegen/gpr_types.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1494 | include/grpc/impl/codegen/port_platform.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1495 | include/grpc/impl/codegen/sync.h |
| 1496 | include/grpc/impl/codegen/sync_generic.h |
| 1497 | include/grpc/impl/codegen/sync_posix.h |
| 1498 | include/grpc/impl/codegen/sync_windows.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1499 | include/grpc/grpc_cronet.h |
| 1500 | include/grpc/grpc_security.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 1501 | ) |
| 1502 | string(REPLACE "include/" "" _path ${_hdr}) |
| 1503 | get_filename_component(_path ${_path} PATH) |
| 1504 | install(FILES ${_hdr} |
| 1505 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 1506 | ) |
| 1507 | endforeach() |
| 1508 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 1509 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 1510 | if (gRPC_INSTALL) |
| 1511 | install(TARGETS grpc_cronet EXPORT gRPCTargets |
| 1512 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 1513 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1514 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 1515 | ) |
| 1516 | endif() |
| 1517 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1518 | if (gRPC_BUILD_TESTS) |
| 1519 | |
| 1520 | add_library(grpc_test_util |
| 1521 | test/core/end2end/data/client_certs.c |
| 1522 | test/core/end2end/data/server1_cert.c |
| 1523 | test/core/end2end/data/server1_key.c |
| 1524 | test/core/end2end/data/test_root_cert.c |
| 1525 | test/core/security/oauth2_utils.c |
| 1526 | test/core/end2end/cq_verifier.c |
| 1527 | test/core/end2end/fake_resolver.c |
Craig Tiller | e067b6e | 2017-03-06 14:46:37 -0800 | [diff] [blame] | 1528 | test/core/end2end/fixtures/http_proxy_fixture.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1529 | test/core/end2end/fixtures/proxy.c |
| 1530 | test/core/iomgr/endpoint_tests.c |
Craig Tiller | 61eb40c | 2017-02-03 13:46:33 -0800 | [diff] [blame] | 1531 | test/core/util/debugger_macros.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1532 | test/core/util/grpc_profiler.c |
| 1533 | test/core/util/memory_counters.c |
| 1534 | test/core/util/mock_endpoint.c |
| 1535 | test/core/util/parse_hexstring.c |
| 1536 | test/core/util/passthru_endpoint.c |
Craig Tiller | cba864b | 2017-02-17 10:27:56 -0800 | [diff] [blame] | 1537 | test/core/util/port.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1538 | test/core/util/port_server_client.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1539 | test/core/util/slice_splitter.c |
Craig Tiller | fe5f497 | 2017-02-13 16:26:27 -0800 | [diff] [blame] | 1540 | test/core/util/trickle_endpoint.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1541 | src/core/lib/channel/channel_args.c |
| 1542 | src/core/lib/channel/channel_stack.c |
| 1543 | src/core/lib/channel/channel_stack_builder.c |
| 1544 | src/core/lib/channel/compress_filter.c |
| 1545 | src/core/lib/channel/connected_channel.c |
| 1546 | src/core/lib/channel/deadline_filter.c |
| 1547 | src/core/lib/channel/handshaker.c |
| 1548 | src/core/lib/channel/handshaker_factory.c |
| 1549 | src/core/lib/channel/handshaker_registry.c |
| 1550 | src/core/lib/channel/http_client_filter.c |
| 1551 | src/core/lib/channel/http_server_filter.c |
Yuchen Zeng | a809ea5 | 2017-03-28 02:02:45 -0700 | [diff] [blame] | 1552 | src/core/lib/channel/max_age_filter.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1553 | src/core/lib/channel/message_size_filter.c |
| 1554 | src/core/lib/compression/compression.c |
| 1555 | src/core/lib/compression/message_compress.c |
| 1556 | src/core/lib/debug/trace.c |
| 1557 | src/core/lib/http/format_request.c |
| 1558 | src/core/lib/http/httpcli.c |
| 1559 | src/core/lib/http/parser.c |
| 1560 | src/core/lib/iomgr/closure.c |
| 1561 | src/core/lib/iomgr/combiner.c |
| 1562 | src/core/lib/iomgr/endpoint.c |
| 1563 | src/core/lib/iomgr/endpoint_pair_posix.c |
| 1564 | src/core/lib/iomgr/endpoint_pair_uv.c |
| 1565 | src/core/lib/iomgr/endpoint_pair_windows.c |
| 1566 | src/core/lib/iomgr/error.c |
| 1567 | src/core/lib/iomgr/ev_epoll_linux.c |
| 1568 | src/core/lib/iomgr/ev_poll_posix.c |
| 1569 | src/core/lib/iomgr/ev_posix.c |
| 1570 | src/core/lib/iomgr/exec_ctx.c |
| 1571 | src/core/lib/iomgr/executor.c |
| 1572 | src/core/lib/iomgr/iocp_windows.c |
| 1573 | src/core/lib/iomgr/iomgr.c |
| 1574 | src/core/lib/iomgr/iomgr_posix.c |
| 1575 | src/core/lib/iomgr/iomgr_uv.c |
| 1576 | src/core/lib/iomgr/iomgr_windows.c |
| 1577 | src/core/lib/iomgr/load_file.c |
| 1578 | src/core/lib/iomgr/network_status_tracker.c |
| 1579 | src/core/lib/iomgr/polling_entity.c |
| 1580 | src/core/lib/iomgr/pollset_set_uv.c |
| 1581 | src/core/lib/iomgr/pollset_set_windows.c |
| 1582 | src/core/lib/iomgr/pollset_uv.c |
| 1583 | src/core/lib/iomgr/pollset_windows.c |
| 1584 | src/core/lib/iomgr/resolve_address_posix.c |
| 1585 | src/core/lib/iomgr/resolve_address_uv.c |
| 1586 | src/core/lib/iomgr/resolve_address_windows.c |
| 1587 | src/core/lib/iomgr/resource_quota.c |
| 1588 | src/core/lib/iomgr/sockaddr_utils.c |
Michael Warres | c46b3eb | 2017-02-22 22:57:04 -0500 | [diff] [blame] | 1589 | src/core/lib/iomgr/socket_factory_posix.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1590 | src/core/lib/iomgr/socket_mutator.c |
| 1591 | src/core/lib/iomgr/socket_utils_common_posix.c |
| 1592 | src/core/lib/iomgr/socket_utils_linux.c |
| 1593 | src/core/lib/iomgr/socket_utils_posix.c |
| 1594 | src/core/lib/iomgr/socket_utils_uv.c |
| 1595 | src/core/lib/iomgr/socket_utils_windows.c |
| 1596 | src/core/lib/iomgr/socket_windows.c |
| 1597 | src/core/lib/iomgr/tcp_client_posix.c |
| 1598 | src/core/lib/iomgr/tcp_client_uv.c |
| 1599 | src/core/lib/iomgr/tcp_client_windows.c |
| 1600 | src/core/lib/iomgr/tcp_posix.c |
| 1601 | src/core/lib/iomgr/tcp_server_posix.c |
Yuchen Zeng | 68745bb | 2017-03-14 17:51:07 -0700 | [diff] [blame] | 1602 | src/core/lib/iomgr/tcp_server_utils_posix_common.c |
Yuchen Zeng | 47155ed | 2017-03-13 17:18:07 -0700 | [diff] [blame] | 1603 | src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c |
| 1604 | src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1605 | src/core/lib/iomgr/tcp_server_uv.c |
| 1606 | src/core/lib/iomgr/tcp_server_windows.c |
| 1607 | src/core/lib/iomgr/tcp_uv.c |
| 1608 | src/core/lib/iomgr/tcp_windows.c |
| 1609 | src/core/lib/iomgr/time_averaged_stats.c |
| 1610 | src/core/lib/iomgr/timer_generic.c |
| 1611 | src/core/lib/iomgr/timer_heap.c |
| 1612 | src/core/lib/iomgr/timer_uv.c |
| 1613 | src/core/lib/iomgr/udp_server.c |
| 1614 | src/core/lib/iomgr/unix_sockets_posix.c |
| 1615 | src/core/lib/iomgr/unix_sockets_posix_noop.c |
| 1616 | src/core/lib/iomgr/wakeup_fd_cv.c |
| 1617 | src/core/lib/iomgr/wakeup_fd_eventfd.c |
| 1618 | src/core/lib/iomgr/wakeup_fd_nospecial.c |
| 1619 | src/core/lib/iomgr/wakeup_fd_pipe.c |
| 1620 | src/core/lib/iomgr/wakeup_fd_posix.c |
| 1621 | src/core/lib/iomgr/workqueue_uv.c |
| 1622 | src/core/lib/iomgr/workqueue_windows.c |
| 1623 | src/core/lib/json/json.c |
| 1624 | src/core/lib/json/json_reader.c |
| 1625 | src/core/lib/json/json_string.c |
| 1626 | src/core/lib/json/json_writer.c |
Craig Tiller | 29b527f | 2017-03-30 10:27:20 -0700 | [diff] [blame] | 1627 | src/core/lib/slice/b64.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1628 | src/core/lib/slice/percent_encoding.c |
| 1629 | src/core/lib/slice/slice.c |
| 1630 | src/core/lib/slice/slice_buffer.c |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 1631 | src/core/lib/slice/slice_hash_table.c |
| 1632 | src/core/lib/slice/slice_intern.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1633 | src/core/lib/slice/slice_string_helpers.c |
| 1634 | src/core/lib/surface/alarm.c |
| 1635 | src/core/lib/surface/api_trace.c |
| 1636 | src/core/lib/surface/byte_buffer.c |
| 1637 | src/core/lib/surface/byte_buffer_reader.c |
| 1638 | src/core/lib/surface/call.c |
| 1639 | src/core/lib/surface/call_details.c |
| 1640 | src/core/lib/surface/call_log_batch.c |
| 1641 | src/core/lib/surface/channel.c |
| 1642 | src/core/lib/surface/channel_init.c |
| 1643 | src/core/lib/surface/channel_ping.c |
| 1644 | src/core/lib/surface/channel_stack_type.c |
| 1645 | src/core/lib/surface/completion_queue.c |
Sree Kuchibhotla | bf18428 | 2017-03-21 15:18:58 -0700 | [diff] [blame] | 1646 | src/core/lib/surface/completion_queue_factory.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1647 | src/core/lib/surface/event_string.c |
| 1648 | src/core/lib/surface/lame_client.c |
| 1649 | src/core/lib/surface/metadata_array.c |
| 1650 | src/core/lib/surface/server.c |
| 1651 | src/core/lib/surface/validate_metadata.c |
| 1652 | src/core/lib/surface/version.c |
Craig Tiller | ff1f160 | 2017-01-20 13:55:35 -0800 | [diff] [blame] | 1653 | src/core/lib/transport/bdp_estimator.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1654 | src/core/lib/transport/byte_stream.c |
| 1655 | src/core/lib/transport/connectivity_state.c |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 1656 | src/core/lib/transport/error_utils.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1657 | src/core/lib/transport/metadata.c |
| 1658 | src/core/lib/transport/metadata_batch.c |
| 1659 | src/core/lib/transport/pid_controller.c |
| 1660 | src/core/lib/transport/service_config.c |
| 1661 | src/core/lib/transport/static_metadata.c |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 1662 | src/core/lib/transport/status_conversion.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1663 | src/core/lib/transport/timeout_encoding.c |
| 1664 | src/core/lib/transport/transport.c |
| 1665 | src/core/lib/transport/transport_op_string.c |
| 1666 | ) |
| 1667 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 1668 | if(WIN32 AND MSVC) |
| 1669 | set_target_properties(grpc_test_util PROPERTIES COMPILE_PDB_NAME "grpc_test_util" |
| 1670 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 1671 | ) |
| 1672 | if (gRPC_INSTALL) |
| 1673 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_test_util.pdb |
| 1674 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 1675 | ) |
| 1676 | endif() |
| 1677 | endif() |
| 1678 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1679 | |
| 1680 | target_include_directories(grpc_test_util |
| 1681 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1682 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1683 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1684 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 1685 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 1686 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1687 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 1688 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 1689 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 1690 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 1691 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1692 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 1693 | ) |
| 1694 | |
| 1695 | target_link_libraries(grpc_test_util |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 1696 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1697 | gpr_test_util |
| 1698 | gpr |
| 1699 | grpc |
| 1700 | ) |
| 1701 | |
| 1702 | foreach(_hdr |
| 1703 | include/grpc/byte_buffer.h |
| 1704 | include/grpc/byte_buffer_reader.h |
| 1705 | include/grpc/compression.h |
| 1706 | include/grpc/grpc.h |
| 1707 | include/grpc/grpc_posix.h |
| 1708 | include/grpc/grpc_security_constants.h |
David Garcia Quintas | f31f096 | 2017-02-10 14:53:58 -0800 | [diff] [blame] | 1709 | include/grpc/load_reporting.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1710 | include/grpc/slice.h |
| 1711 | include/grpc/slice_buffer.h |
| 1712 | include/grpc/status.h |
| 1713 | include/grpc/impl/codegen/byte_buffer_reader.h |
| 1714 | include/grpc/impl/codegen/compression_types.h |
| 1715 | include/grpc/impl/codegen/connectivity_state.h |
| 1716 | include/grpc/impl/codegen/exec_ctx_fwd.h |
| 1717 | include/grpc/impl/codegen/grpc_types.h |
| 1718 | include/grpc/impl/codegen/propagation_bits.h |
Craig Tiller | 790f6af | 2017-03-30 12:39:24 -0700 | [diff] [blame] | 1719 | include/grpc/impl/codegen/slice.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1720 | include/grpc/impl/codegen/status.h |
| 1721 | include/grpc/impl/codegen/atm.h |
| 1722 | include/grpc/impl/codegen/atm_gcc_atomic.h |
| 1723 | include/grpc/impl/codegen/atm_gcc_sync.h |
| 1724 | include/grpc/impl/codegen/atm_windows.h |
| 1725 | include/grpc/impl/codegen/gpr_slice.h |
| 1726 | include/grpc/impl/codegen/gpr_types.h |
| 1727 | include/grpc/impl/codegen/port_platform.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1728 | include/grpc/impl/codegen/sync.h |
| 1729 | include/grpc/impl/codegen/sync_generic.h |
| 1730 | include/grpc/impl/codegen/sync_posix.h |
| 1731 | include/grpc/impl/codegen/sync_windows.h |
| 1732 | ) |
| 1733 | string(REPLACE "include/" "" _path ${_hdr}) |
| 1734 | get_filename_component(_path ${_path} PATH) |
| 1735 | install(FILES ${_hdr} |
| 1736 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 1737 | ) |
| 1738 | endforeach() |
| 1739 | |
| 1740 | endif (gRPC_BUILD_TESTS) |
| 1741 | if (gRPC_BUILD_TESTS) |
| 1742 | |
| 1743 | add_library(grpc_test_util_unsecure |
| 1744 | test/core/end2end/cq_verifier.c |
| 1745 | test/core/end2end/fake_resolver.c |
Craig Tiller | e067b6e | 2017-03-06 14:46:37 -0800 | [diff] [blame] | 1746 | test/core/end2end/fixtures/http_proxy_fixture.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1747 | test/core/end2end/fixtures/proxy.c |
| 1748 | test/core/iomgr/endpoint_tests.c |
Craig Tiller | 61eb40c | 2017-02-03 13:46:33 -0800 | [diff] [blame] | 1749 | test/core/util/debugger_macros.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1750 | test/core/util/grpc_profiler.c |
| 1751 | test/core/util/memory_counters.c |
| 1752 | test/core/util/mock_endpoint.c |
| 1753 | test/core/util/parse_hexstring.c |
| 1754 | test/core/util/passthru_endpoint.c |
Craig Tiller | cba864b | 2017-02-17 10:27:56 -0800 | [diff] [blame] | 1755 | test/core/util/port.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1756 | test/core/util/port_server_client.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1757 | test/core/util/slice_splitter.c |
Craig Tiller | fe5f497 | 2017-02-13 16:26:27 -0800 | [diff] [blame] | 1758 | test/core/util/trickle_endpoint.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1759 | ) |
| 1760 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 1761 | if(WIN32 AND MSVC) |
| 1762 | set_target_properties(grpc_test_util_unsecure PROPERTIES COMPILE_PDB_NAME "grpc_test_util_unsecure" |
| 1763 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 1764 | ) |
| 1765 | if (gRPC_INSTALL) |
| 1766 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_test_util_unsecure.pdb |
| 1767 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 1768 | ) |
| 1769 | endif() |
| 1770 | endif() |
| 1771 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1772 | |
| 1773 | target_include_directories(grpc_test_util_unsecure |
| 1774 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 1775 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 1776 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 1777 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 1778 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 1779 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1780 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 1781 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 1782 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 1783 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 1784 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1785 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 1786 | ) |
| 1787 | |
| 1788 | target_link_libraries(grpc_test_util_unsecure |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 1789 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 1790 | gpr |
| 1791 | gpr_test_util |
| 1792 | grpc_unsecure |
| 1793 | grpc |
| 1794 | ) |
| 1795 | |
| 1796 | |
| 1797 | endif (gRPC_BUILD_TESTS) |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 1798 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1799 | add_library(grpc_unsecure |
| 1800 | src/core/lib/surface/init.c |
| 1801 | src/core/lib/surface/init_unsecure.c |
| 1802 | src/core/lib/channel/channel_args.c |
| 1803 | src/core/lib/channel/channel_stack.c |
| 1804 | src/core/lib/channel/channel_stack_builder.c |
| 1805 | src/core/lib/channel/compress_filter.c |
| 1806 | src/core/lib/channel/connected_channel.c |
Mark D. Roth | 14c072c | 2016-08-26 08:31:34 -0700 | [diff] [blame] | 1807 | src/core/lib/channel/deadline_filter.c |
Mark D. Roth | dfbdefe | 2016-07-14 09:18:22 -0700 | [diff] [blame] | 1808 | src/core/lib/channel/handshaker.c |
Mark D. Roth | 1f0f23c | 2017-01-06 13:07:19 -0800 | [diff] [blame] | 1809 | src/core/lib/channel/handshaker_factory.c |
| 1810 | src/core/lib/channel/handshaker_registry.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1811 | src/core/lib/channel/http_client_filter.c |
| 1812 | src/core/lib/channel/http_server_filter.c |
Yuchen Zeng | a809ea5 | 2017-03-28 02:02:45 -0700 | [diff] [blame] | 1813 | src/core/lib/channel/max_age_filter.c |
Mark D. Roth | af00d8b | 2016-08-23 12:48:16 -0700 | [diff] [blame] | 1814 | src/core/lib/channel/message_size_filter.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1815 | src/core/lib/compression/compression.c |
| 1816 | src/core/lib/compression/message_compress.c |
| 1817 | src/core/lib/debug/trace.c |
| 1818 | src/core/lib/http/format_request.c |
| 1819 | src/core/lib/http/httpcli.c |
| 1820 | src/core/lib/http/parser.c |
| 1821 | src/core/lib/iomgr/closure.c |
Craig Tiller | 57726ca | 2016-09-12 11:59:45 -0700 | [diff] [blame] | 1822 | src/core/lib/iomgr/combiner.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1823 | src/core/lib/iomgr/endpoint.c |
| 1824 | src/core/lib/iomgr/endpoint_pair_posix.c |
murgatroid99 | c36f6ea | 2016-10-03 09:24:09 -0700 | [diff] [blame] | 1825 | src/core/lib/iomgr/endpoint_pair_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1826 | src/core/lib/iomgr/endpoint_pair_windows.c |
| 1827 | src/core/lib/iomgr/error.c |
Nicolas "Pixel" Noble | b360c8a | 2016-07-02 00:54:28 +0200 | [diff] [blame] | 1828 | src/core/lib/iomgr/ev_epoll_linux.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1829 | src/core/lib/iomgr/ev_poll_posix.c |
| 1830 | src/core/lib/iomgr/ev_posix.c |
| 1831 | src/core/lib/iomgr/exec_ctx.c |
| 1832 | src/core/lib/iomgr/executor.c |
| 1833 | src/core/lib/iomgr/iocp_windows.c |
| 1834 | src/core/lib/iomgr/iomgr.c |
| 1835 | src/core/lib/iomgr/iomgr_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1836 | src/core/lib/iomgr/iomgr_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1837 | src/core/lib/iomgr/iomgr_windows.c |
| 1838 | src/core/lib/iomgr/load_file.c |
Nicolas "Pixel" Noble | b360c8a | 2016-07-02 00:54:28 +0200 | [diff] [blame] | 1839 | src/core/lib/iomgr/network_status_tracker.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1840 | src/core/lib/iomgr/polling_entity.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1841 | src/core/lib/iomgr/pollset_set_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1842 | src/core/lib/iomgr/pollset_set_windows.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1843 | src/core/lib/iomgr/pollset_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1844 | src/core/lib/iomgr/pollset_windows.c |
| 1845 | src/core/lib/iomgr/resolve_address_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1846 | src/core/lib/iomgr/resolve_address_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1847 | src/core/lib/iomgr/resolve_address_windows.c |
Craig Tiller | 20afa3d | 2016-10-17 14:52:14 -0700 | [diff] [blame] | 1848 | src/core/lib/iomgr/resource_quota.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1849 | src/core/lib/iomgr/sockaddr_utils.c |
Michael Warres | c46b3eb | 2017-02-22 22:57:04 -0500 | [diff] [blame] | 1850 | src/core/lib/iomgr/socket_factory_posix.c |
Yuchen Zeng | de3daf5 | 2016-10-13 17:26:26 -0700 | [diff] [blame] | 1851 | src/core/lib/iomgr/socket_mutator.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1852 | src/core/lib/iomgr/socket_utils_common_posix.c |
| 1853 | src/core/lib/iomgr/socket_utils_linux.c |
| 1854 | src/core/lib/iomgr/socket_utils_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1855 | src/core/lib/iomgr/socket_utils_uv.c |
murgatroid99 | 79b3227 | 2016-08-08 13:38:30 -0700 | [diff] [blame] | 1856 | src/core/lib/iomgr/socket_utils_windows.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1857 | src/core/lib/iomgr/socket_windows.c |
| 1858 | src/core/lib/iomgr/tcp_client_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1859 | src/core/lib/iomgr/tcp_client_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1860 | src/core/lib/iomgr/tcp_client_windows.c |
| 1861 | src/core/lib/iomgr/tcp_posix.c |
| 1862 | src/core/lib/iomgr/tcp_server_posix.c |
Yuchen Zeng | 68745bb | 2017-03-14 17:51:07 -0700 | [diff] [blame] | 1863 | src/core/lib/iomgr/tcp_server_utils_posix_common.c |
Yuchen Zeng | 47155ed | 2017-03-13 17:18:07 -0700 | [diff] [blame] | 1864 | src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c |
| 1865 | src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1866 | src/core/lib/iomgr/tcp_server_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1867 | src/core/lib/iomgr/tcp_server_windows.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1868 | src/core/lib/iomgr/tcp_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1869 | src/core/lib/iomgr/tcp_windows.c |
| 1870 | src/core/lib/iomgr/time_averaged_stats.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1871 | src/core/lib/iomgr/timer_generic.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1872 | src/core/lib/iomgr/timer_heap.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1873 | src/core/lib/iomgr/timer_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1874 | src/core/lib/iomgr/udp_server.c |
| 1875 | src/core/lib/iomgr/unix_sockets_posix.c |
| 1876 | src/core/lib/iomgr/unix_sockets_posix_noop.c |
kpayson64 | d195cf5 | 2016-10-09 18:04:00 -0700 | [diff] [blame] | 1877 | src/core/lib/iomgr/wakeup_fd_cv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1878 | src/core/lib/iomgr/wakeup_fd_eventfd.c |
| 1879 | src/core/lib/iomgr/wakeup_fd_nospecial.c |
| 1880 | src/core/lib/iomgr/wakeup_fd_pipe.c |
| 1881 | src/core/lib/iomgr/wakeup_fd_posix.c |
murgatroid99 | 9030c81 | 2016-09-16 13:25:08 -0700 | [diff] [blame] | 1882 | src/core/lib/iomgr/workqueue_uv.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1883 | src/core/lib/iomgr/workqueue_windows.c |
| 1884 | src/core/lib/json/json.c |
| 1885 | src/core/lib/json/json_reader.c |
| 1886 | src/core/lib/json/json_string.c |
| 1887 | src/core/lib/json/json_writer.c |
Craig Tiller | 29b527f | 2017-03-30 10:27:20 -0700 | [diff] [blame] | 1888 | src/core/lib/slice/b64.c |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 1889 | src/core/lib/slice/percent_encoding.c |
| 1890 | src/core/lib/slice/slice.c |
| 1891 | src/core/lib/slice/slice_buffer.c |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 1892 | src/core/lib/slice/slice_hash_table.c |
| 1893 | src/core/lib/slice/slice_intern.c |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 1894 | src/core/lib/slice/slice_string_helpers.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1895 | src/core/lib/surface/alarm.c |
| 1896 | src/core/lib/surface/api_trace.c |
| 1897 | src/core/lib/surface/byte_buffer.c |
| 1898 | src/core/lib/surface/byte_buffer_reader.c |
| 1899 | src/core/lib/surface/call.c |
| 1900 | src/core/lib/surface/call_details.c |
| 1901 | src/core/lib/surface/call_log_batch.c |
| 1902 | src/core/lib/surface/channel.c |
| 1903 | src/core/lib/surface/channel_init.c |
| 1904 | src/core/lib/surface/channel_ping.c |
| 1905 | src/core/lib/surface/channel_stack_type.c |
| 1906 | src/core/lib/surface/completion_queue.c |
Sree Kuchibhotla | bf18428 | 2017-03-21 15:18:58 -0700 | [diff] [blame] | 1907 | src/core/lib/surface/completion_queue_factory.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1908 | src/core/lib/surface/event_string.c |
| 1909 | src/core/lib/surface/lame_client.c |
| 1910 | src/core/lib/surface/metadata_array.c |
| 1911 | src/core/lib/surface/server.c |
| 1912 | src/core/lib/surface/validate_metadata.c |
| 1913 | src/core/lib/surface/version.c |
Craig Tiller | 9e0066b | 2016-10-20 14:04:18 -0700 | [diff] [blame] | 1914 | src/core/lib/transport/bdp_estimator.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1915 | src/core/lib/transport/byte_stream.c |
| 1916 | src/core/lib/transport/connectivity_state.c |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 1917 | src/core/lib/transport/error_utils.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1918 | src/core/lib/transport/metadata.c |
| 1919 | src/core/lib/transport/metadata_batch.c |
Craig Tiller | dd2fa64 | 2016-10-20 15:46:32 -0700 | [diff] [blame] | 1920 | src/core/lib/transport/pid_controller.c |
Mark D. Roth | ea846a0 | 2016-11-03 11:32:54 -0700 | [diff] [blame] | 1921 | src/core/lib/transport/service_config.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1922 | src/core/lib/transport/static_metadata.c |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 1923 | src/core/lib/transport/status_conversion.c |
Robbie Shade | 710d242 | 2016-07-13 15:15:38 -0400 | [diff] [blame] | 1924 | src/core/lib/transport/timeout_encoding.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1925 | src/core/lib/transport/transport.c |
| 1926 | src/core/lib/transport/transport_op_string.c |
| 1927 | src/core/ext/transport/chttp2/server/insecure/server_chttp2.c |
| 1928 | src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c |
| 1929 | src/core/ext/transport/chttp2/transport/bin_decoder.c |
| 1930 | src/core/ext/transport/chttp2/transport/bin_encoder.c |
| 1931 | src/core/ext/transport/chttp2/transport/chttp2_plugin.c |
| 1932 | src/core/ext/transport/chttp2/transport/chttp2_transport.c |
| 1933 | src/core/ext/transport/chttp2/transport/frame_data.c |
| 1934 | src/core/ext/transport/chttp2/transport/frame_goaway.c |
| 1935 | src/core/ext/transport/chttp2/transport/frame_ping.c |
| 1936 | src/core/ext/transport/chttp2/transport/frame_rst_stream.c |
| 1937 | src/core/ext/transport/chttp2/transport/frame_settings.c |
| 1938 | src/core/ext/transport/chttp2/transport/frame_window_update.c |
| 1939 | src/core/ext/transport/chttp2/transport/hpack_encoder.c |
| 1940 | src/core/ext/transport/chttp2/transport/hpack_parser.c |
| 1941 | src/core/ext/transport/chttp2/transport/hpack_table.c |
| 1942 | src/core/ext/transport/chttp2/transport/huffsyms.c |
| 1943 | src/core/ext/transport/chttp2/transport/incoming_metadata.c |
| 1944 | src/core/ext/transport/chttp2/transport/parsing.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1945 | src/core/ext/transport/chttp2/transport/stream_lists.c |
| 1946 | src/core/ext/transport/chttp2/transport/stream_map.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1947 | src/core/ext/transport/chttp2/transport/varint.c |
| 1948 | src/core/ext/transport/chttp2/transport/writing.c |
| 1949 | src/core/ext/transport/chttp2/alpn/alpn.c |
Mark D. Roth | 7140382 | 2016-12-02 10:51:39 -0800 | [diff] [blame] | 1950 | src/core/ext/transport/chttp2/server/chttp2_server.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1951 | src/core/ext/transport/chttp2/client/insecure/channel_create.c |
| 1952 | src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c |
Mark D. Roth | 2502afb | 2016-11-29 15:17:31 -0800 | [diff] [blame] | 1953 | src/core/ext/transport/chttp2/client/chttp2_connector.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 1954 | src/core/ext/client_channel/channel_connectivity.c |
| 1955 | src/core/ext/client_channel/client_channel.c |
| 1956 | src/core/ext/client_channel/client_channel_factory.c |
| 1957 | src/core/ext/client_channel/client_channel_plugin.c |
| 1958 | src/core/ext/client_channel/connector.c |
Mark D. Roth | 1519574 | 2016-10-07 09:02:28 -0700 | [diff] [blame] | 1959 | src/core/ext/client_channel/http_connect_handshaker.c |
Mark D. Roth | d58a985 | 2017-01-18 08:28:57 -0800 | [diff] [blame] | 1960 | src/core/ext/client_channel/http_proxy.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 1961 | src/core/ext/client_channel/lb_policy.c |
| 1962 | src/core/ext/client_channel/lb_policy_factory.c |
| 1963 | src/core/ext/client_channel/lb_policy_registry.c |
| 1964 | src/core/ext/client_channel/parse_address.c |
Mark D. Roth | 79f2a24 | 2017-01-17 14:13:33 -0800 | [diff] [blame] | 1965 | src/core/ext/client_channel/proxy_mapper.c |
| 1966 | src/core/ext/client_channel/proxy_mapper_registry.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 1967 | src/core/ext/client_channel/resolver.c |
| 1968 | src/core/ext/client_channel/resolver_factory.c |
| 1969 | src/core/ext/client_channel/resolver_registry.c |
Mark D. Roth | d6d192d | 2017-02-23 08:58:42 -0800 | [diff] [blame] | 1970 | src/core/ext/client_channel/retry_throttle.c |
Mark D. Roth | 2137cd8 | 2016-09-14 09:04:00 -0700 | [diff] [blame] | 1971 | src/core/ext/client_channel/subchannel.c |
| 1972 | src/core/ext/client_channel/subchannel_index.c |
| 1973 | src/core/ext/client_channel/uri_parser.c |
Yuchen Zeng | ea88fc1 | 2016-08-19 00:20:59 -0700 | [diff] [blame] | 1974 | src/core/ext/resolver/dns/c_ares/dns_resolver_ares.c |
Yuchen Zeng | 85750b0 | 2016-08-08 14:16:34 -0700 | [diff] [blame] | 1975 | src/core/ext/resolver/dns/c_ares/grpc_ares_ev_driver_posix.c |
Yuchen Zeng | d4bbfc7 | 2016-08-05 10:33:16 -0700 | [diff] [blame] | 1976 | src/core/ext/resolver/dns/c_ares/grpc_ares_wrapper.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1977 | src/core/ext/resolver/dns/native/dns_resolver.c |
| 1978 | src/core/ext/resolver/sockaddr/sockaddr_resolver.c |
| 1979 | src/core/ext/load_reporting/load_reporting.c |
| 1980 | src/core/ext/load_reporting/load_reporting_filter.c |
David Garcia Quintas | 7c3ba12 | 2016-07-14 11:38:38 -0700 | [diff] [blame] | 1981 | src/core/ext/lb_policy/grpclb/grpclb.c |
David Garcia Quintas | 0129150 | 2017-02-07 13:26:41 -0800 | [diff] [blame] | 1982 | src/core/ext/lb_policy/grpclb/grpclb_channel.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1983 | src/core/ext/lb_policy/grpclb/load_balancer_api.c |
| 1984 | src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c |
| 1985 | third_party/nanopb/pb_common.c |
| 1986 | third_party/nanopb/pb_decode.c |
| 1987 | third_party/nanopb/pb_encode.c |
| 1988 | src/core/ext/lb_policy/pick_first/pick_first.c |
| 1989 | src/core/ext/lb_policy/round_robin/round_robin.c |
Alistair Veitch | 3abd27e | 2016-07-21 17:29:04 -0700 | [diff] [blame] | 1990 | src/core/ext/census/base_resources.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1991 | src/core/ext/census/context.c |
| 1992 | src/core/ext/census/gen/census.pb.c |
Alistair Veitch | a0c69f9 | 2016-08-31 12:01:27 -0700 | [diff] [blame] | 1993 | src/core/ext/census/gen/trace_context.pb.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 1994 | src/core/ext/census/grpc_context.c |
| 1995 | src/core/ext/census/grpc_filter.c |
| 1996 | src/core/ext/census/grpc_plugin.c |
| 1997 | src/core/ext/census/initialize.c |
| 1998 | src/core/ext/census/mlog.c |
| 1999 | src/core/ext/census/operation.c |
| 2000 | src/core/ext/census/placeholders.c |
Alistair Veitch | 3abd27e | 2016-07-21 17:29:04 -0700 | [diff] [blame] | 2001 | src/core/ext/census/resource.c |
Vizerai | 12d1fc6 | 2016-09-09 14:22:19 -0700 | [diff] [blame] | 2002 | src/core/ext/census/trace_context.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2003 | src/core/ext/census/tracing.c |
| 2004 | src/core/plugin_registry/grpc_unsecure_plugin_registry.c |
| 2005 | ) |
| 2006 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 2007 | if(WIN32 AND MSVC) |
| 2008 | set_target_properties(grpc_unsecure PROPERTIES COMPILE_PDB_NAME "grpc_unsecure" |
| 2009 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 2010 | ) |
| 2011 | if (gRPC_INSTALL) |
| 2012 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_unsecure.pdb |
| 2013 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 2014 | ) |
| 2015 | endif() |
| 2016 | endif() |
| 2017 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 2018 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2019 | target_include_directories(grpc_unsecure |
| 2020 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 2021 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 2022 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 2023 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 2024 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 2025 | PRIVATE ${BENCHMARK}/include |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2026 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 2027 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | 8076d2b | 2016-08-25 13:23:13 -0700 | [diff] [blame] | 2028 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 2029 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 2030 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 2031 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2032 | ) |
| 2033 | |
| 2034 | target_link_libraries(grpc_unsecure |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 2035 | ${_gRPC_BASELIB_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 2036 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2037 | gpr |
| 2038 | ) |
| 2039 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2040 | foreach(_hdr |
| 2041 | include/grpc/byte_buffer.h |
| 2042 | include/grpc/byte_buffer_reader.h |
| 2043 | include/grpc/compression.h |
| 2044 | include/grpc/grpc.h |
| 2045 | include/grpc/grpc_posix.h |
Nicolas "Pixel" Noble | e3e17d3 | 2016-08-20 01:45:32 +0200 | [diff] [blame] | 2046 | include/grpc/grpc_security_constants.h |
David Garcia Quintas | f31f096 | 2017-02-10 14:53:58 -0800 | [diff] [blame] | 2047 | include/grpc/load_reporting.h |
Craig Tiller | c335054 | 2016-10-26 16:19:01 -0700 | [diff] [blame] | 2048 | include/grpc/slice.h |
| 2049 | include/grpc/slice_buffer.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2050 | include/grpc/status.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2051 | include/grpc/impl/codegen/byte_buffer_reader.h |
| 2052 | include/grpc/impl/codegen/compression_types.h |
| 2053 | include/grpc/impl/codegen/connectivity_state.h |
Craig Tiller | b995e8b | 2016-12-12 06:36:43 -0800 | [diff] [blame] | 2054 | include/grpc/impl/codegen/exec_ctx_fwd.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2055 | include/grpc/impl/codegen/grpc_types.h |
| 2056 | include/grpc/impl/codegen/propagation_bits.h |
Craig Tiller | 790f6af | 2017-03-30 12:39:24 -0700 | [diff] [blame] | 2057 | include/grpc/impl/codegen/slice.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2058 | include/grpc/impl/codegen/status.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2059 | include/grpc/impl/codegen/atm.h |
| 2060 | include/grpc/impl/codegen/atm_gcc_atomic.h |
| 2061 | include/grpc/impl/codegen/atm_gcc_sync.h |
| 2062 | include/grpc/impl/codegen/atm_windows.h |
Mark D. Roth | 4d2ea02 | 2016-12-12 07:12:27 -0800 | [diff] [blame] | 2063 | include/grpc/impl/codegen/gpr_slice.h |
David Garcia Quintas | 44cb6c9 | 2016-08-02 10:26:51 -0700 | [diff] [blame] | 2064 | include/grpc/impl/codegen/gpr_types.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2065 | include/grpc/impl/codegen/port_platform.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2066 | include/grpc/impl/codegen/sync.h |
| 2067 | include/grpc/impl/codegen/sync_generic.h |
| 2068 | include/grpc/impl/codegen/sync_posix.h |
| 2069 | include/grpc/impl/codegen/sync_windows.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2070 | include/grpc/census.h |
| 2071 | ) |
| 2072 | string(REPLACE "include/" "" _path ${_hdr}) |
| 2073 | get_filename_component(_path ${_path} PATH) |
| 2074 | install(FILES ${_hdr} |
| 2075 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 2076 | ) |
| 2077 | endforeach() |
| 2078 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 2079 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 2080 | if (gRPC_INSTALL) |
| 2081 | install(TARGETS grpc_unsecure EXPORT gRPCTargets |
| 2082 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 2083 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 2084 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 2085 | ) |
| 2086 | endif() |
| 2087 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 2088 | if (gRPC_BUILD_TESTS) |
| 2089 | |
| 2090 | add_library(reconnect_server |
| 2091 | test/core/util/reconnect_server.c |
| 2092 | ) |
| 2093 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 2094 | if(WIN32 AND MSVC) |
| 2095 | set_target_properties(reconnect_server PROPERTIES COMPILE_PDB_NAME "reconnect_server" |
| 2096 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 2097 | ) |
| 2098 | if (gRPC_INSTALL) |
| 2099 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/reconnect_server.pdb |
| 2100 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 2101 | ) |
| 2102 | endif() |
| 2103 | endif() |
| 2104 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 2105 | |
| 2106 | target_include_directories(reconnect_server |
| 2107 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 2108 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 2109 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 2110 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 2111 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 2112 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 2113 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 2114 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 2115 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 2116 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 2117 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 2118 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 2119 | ) |
| 2120 | |
| 2121 | target_link_libraries(reconnect_server |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 2122 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 2123 | test_tcp_server |
| 2124 | grpc_test_util |
| 2125 | grpc |
| 2126 | gpr_test_util |
| 2127 | gpr |
| 2128 | ) |
| 2129 | |
| 2130 | |
| 2131 | endif (gRPC_BUILD_TESTS) |
| 2132 | if (gRPC_BUILD_TESTS) |
| 2133 | |
| 2134 | add_library(test_tcp_server |
| 2135 | test/core/util/test_tcp_server.c |
| 2136 | ) |
| 2137 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 2138 | if(WIN32 AND MSVC) |
| 2139 | set_target_properties(test_tcp_server PROPERTIES COMPILE_PDB_NAME "test_tcp_server" |
| 2140 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 2141 | ) |
| 2142 | if (gRPC_INSTALL) |
| 2143 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/test_tcp_server.pdb |
| 2144 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 2145 | ) |
| 2146 | endif() |
| 2147 | endif() |
| 2148 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 2149 | |
| 2150 | target_include_directories(test_tcp_server |
| 2151 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 2152 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 2153 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 2154 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 2155 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 2156 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 2157 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 2158 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 2159 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 2160 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 2161 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 2162 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 2163 | ) |
| 2164 | |
| 2165 | target_link_libraries(test_tcp_server |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 2166 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 2167 | grpc_test_util |
| 2168 | grpc |
| 2169 | gpr_test_util |
| 2170 | gpr |
| 2171 | ) |
| 2172 | |
| 2173 | |
| 2174 | endif (gRPC_BUILD_TESTS) |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 2175 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2176 | add_library(grpc++ |
murgatroid99 | 1ca0f3e | 2016-08-26 14:58:49 -0700 | [diff] [blame] | 2177 | src/cpp/client/insecure_credentials.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2178 | src/cpp/client/secure_credentials.cc |
| 2179 | src/cpp/common/auth_property_iterator.cc |
| 2180 | src/cpp/common/secure_auth_context.cc |
| 2181 | src/cpp/common/secure_channel_arguments.cc |
| 2182 | src/cpp/common/secure_create_auth_context.cc |
murgatroid99 | 1ca0f3e | 2016-08-26 14:58:49 -0700 | [diff] [blame] | 2183 | src/cpp/server/insecure_server_credentials.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2184 | src/cpp/server/secure_server_credentials.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 2185 | src/cpp/client/channel_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2186 | src/cpp/client/client_context.cc |
| 2187 | src/cpp/client/create_channel.cc |
| 2188 | src/cpp/client/create_channel_internal.cc |
| 2189 | src/cpp/client/create_channel_posix.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 2190 | src/cpp/client/credentials_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2191 | src/cpp/client/generic_stub.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2192 | src/cpp/common/channel_arguments.cc |
Mark D. Roth | 4004ac2 | 2016-08-02 10:08:27 -0700 | [diff] [blame] | 2193 | src/cpp/common/channel_filter.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 2194 | src/cpp/common/completion_queue_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2195 | src/cpp/common/core_codegen.cc |
Craig Tiller | 20afa3d | 2016-10-17 14:52:14 -0700 | [diff] [blame] | 2196 | src/cpp/common/resource_quota_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2197 | src/cpp/common/rpc_method.cc |
Craig Tiller | ed91324 | 2016-11-04 16:31:30 -0700 | [diff] [blame] | 2198 | src/cpp/common/version_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2199 | src/cpp/server/async_generic_service.cc |
Craig Tiller | 4751c28 | 2017-01-10 14:29:00 -0800 | [diff] [blame] | 2200 | src/cpp/server/channel_argument_option.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2201 | src/cpp/server/create_default_thread_pool.cc |
| 2202 | src/cpp/server/dynamic_thread_pool.cc |
yang-g | c3c475f | 2016-12-27 10:37:26 -0800 | [diff] [blame] | 2203 | src/cpp/server/health/default_health_check_service.cc |
| 2204 | src/cpp/server/health/health.pb.c |
| 2205 | src/cpp/server/health/health_check_service.cc |
| 2206 | src/cpp/server/health/health_check_service_server_builder_option.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2207 | src/cpp/server/server_builder.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 2208 | src/cpp/server/server_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2209 | src/cpp/server/server_context.cc |
| 2210 | src/cpp/server/server_credentials.cc |
| 2211 | src/cpp/server/server_posix.cc |
Sree Kuchibhotla | 8f7739b | 2016-10-13 15:12:55 -0700 | [diff] [blame] | 2212 | src/cpp/thread_manager/thread_manager.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 2213 | src/cpp/util/byte_buffer_cc.cc |
| 2214 | src/cpp/util/slice_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2215 | src/cpp/util/status.cc |
| 2216 | src/cpp/util/string_ref.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 2217 | src/cpp/util/time_cc.cc |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2218 | src/core/lib/channel/channel_args.c |
| 2219 | src/core/lib/channel/channel_stack.c |
| 2220 | src/core/lib/channel/channel_stack_builder.c |
| 2221 | src/core/lib/channel/compress_filter.c |
| 2222 | src/core/lib/channel/connected_channel.c |
| 2223 | src/core/lib/channel/deadline_filter.c |
| 2224 | src/core/lib/channel/handshaker.c |
Mark D. Roth | 1f0f23c | 2017-01-06 13:07:19 -0800 | [diff] [blame] | 2225 | src/core/lib/channel/handshaker_factory.c |
| 2226 | src/core/lib/channel/handshaker_registry.c |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2227 | src/core/lib/channel/http_client_filter.c |
| 2228 | src/core/lib/channel/http_server_filter.c |
| 2229 | src/core/lib/channel/message_size_filter.c |
| 2230 | src/core/lib/compression/compression.c |
| 2231 | src/core/lib/compression/message_compress.c |
| 2232 | src/core/lib/debug/trace.c |
| 2233 | src/core/lib/http/format_request.c |
| 2234 | src/core/lib/http/httpcli.c |
| 2235 | src/core/lib/http/parser.c |
| 2236 | src/core/lib/iomgr/closure.c |
| 2237 | src/core/lib/iomgr/combiner.c |
| 2238 | src/core/lib/iomgr/endpoint.c |
| 2239 | src/core/lib/iomgr/endpoint_pair_posix.c |
| 2240 | src/core/lib/iomgr/endpoint_pair_uv.c |
| 2241 | src/core/lib/iomgr/endpoint_pair_windows.c |
| 2242 | src/core/lib/iomgr/error.c |
| 2243 | src/core/lib/iomgr/ev_epoll_linux.c |
| 2244 | src/core/lib/iomgr/ev_poll_posix.c |
| 2245 | src/core/lib/iomgr/ev_posix.c |
| 2246 | src/core/lib/iomgr/exec_ctx.c |
| 2247 | src/core/lib/iomgr/executor.c |
| 2248 | src/core/lib/iomgr/iocp_windows.c |
| 2249 | src/core/lib/iomgr/iomgr.c |
| 2250 | src/core/lib/iomgr/iomgr_posix.c |
| 2251 | src/core/lib/iomgr/iomgr_uv.c |
| 2252 | src/core/lib/iomgr/iomgr_windows.c |
| 2253 | src/core/lib/iomgr/load_file.c |
| 2254 | src/core/lib/iomgr/network_status_tracker.c |
| 2255 | src/core/lib/iomgr/polling_entity.c |
| 2256 | src/core/lib/iomgr/pollset_set_uv.c |
| 2257 | src/core/lib/iomgr/pollset_set_windows.c |
| 2258 | src/core/lib/iomgr/pollset_uv.c |
| 2259 | src/core/lib/iomgr/pollset_windows.c |
| 2260 | src/core/lib/iomgr/resolve_address_posix.c |
| 2261 | src/core/lib/iomgr/resolve_address_uv.c |
| 2262 | src/core/lib/iomgr/resolve_address_windows.c |
| 2263 | src/core/lib/iomgr/resource_quota.c |
| 2264 | src/core/lib/iomgr/sockaddr_utils.c |
Michael Warres | c46b3eb | 2017-02-22 22:57:04 -0500 | [diff] [blame] | 2265 | src/core/lib/iomgr/socket_factory_posix.c |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2266 | src/core/lib/iomgr/socket_mutator.c |
| 2267 | src/core/lib/iomgr/socket_utils_common_posix.c |
| 2268 | src/core/lib/iomgr/socket_utils_linux.c |
| 2269 | src/core/lib/iomgr/socket_utils_posix.c |
| 2270 | src/core/lib/iomgr/socket_utils_uv.c |
| 2271 | src/core/lib/iomgr/socket_utils_windows.c |
| 2272 | src/core/lib/iomgr/socket_windows.c |
| 2273 | src/core/lib/iomgr/tcp_client_posix.c |
| 2274 | src/core/lib/iomgr/tcp_client_uv.c |
| 2275 | src/core/lib/iomgr/tcp_client_windows.c |
| 2276 | src/core/lib/iomgr/tcp_posix.c |
| 2277 | src/core/lib/iomgr/tcp_server_posix.c |
Yuchen Zeng | 68745bb | 2017-03-14 17:51:07 -0700 | [diff] [blame] | 2278 | src/core/lib/iomgr/tcp_server_utils_posix_common.c |
Yuchen Zeng | 47155ed | 2017-03-13 17:18:07 -0700 | [diff] [blame] | 2279 | src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c |
| 2280 | src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2281 | src/core/lib/iomgr/tcp_server_uv.c |
| 2282 | src/core/lib/iomgr/tcp_server_windows.c |
| 2283 | src/core/lib/iomgr/tcp_uv.c |
| 2284 | src/core/lib/iomgr/tcp_windows.c |
| 2285 | src/core/lib/iomgr/time_averaged_stats.c |
| 2286 | src/core/lib/iomgr/timer_generic.c |
| 2287 | src/core/lib/iomgr/timer_heap.c |
| 2288 | src/core/lib/iomgr/timer_uv.c |
| 2289 | src/core/lib/iomgr/udp_server.c |
| 2290 | src/core/lib/iomgr/unix_sockets_posix.c |
| 2291 | src/core/lib/iomgr/unix_sockets_posix_noop.c |
| 2292 | src/core/lib/iomgr/wakeup_fd_cv.c |
| 2293 | src/core/lib/iomgr/wakeup_fd_eventfd.c |
| 2294 | src/core/lib/iomgr/wakeup_fd_nospecial.c |
| 2295 | src/core/lib/iomgr/wakeup_fd_pipe.c |
| 2296 | src/core/lib/iomgr/wakeup_fd_posix.c |
| 2297 | src/core/lib/iomgr/workqueue_uv.c |
| 2298 | src/core/lib/iomgr/workqueue_windows.c |
| 2299 | src/core/lib/json/json.c |
| 2300 | src/core/lib/json/json_reader.c |
| 2301 | src/core/lib/json/json_string.c |
| 2302 | src/core/lib/json/json_writer.c |
Craig Tiller | 29b527f | 2017-03-30 10:27:20 -0700 | [diff] [blame] | 2303 | src/core/lib/slice/b64.c |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2304 | src/core/lib/slice/percent_encoding.c |
| 2305 | src/core/lib/slice/slice.c |
| 2306 | src/core/lib/slice/slice_buffer.c |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 2307 | src/core/lib/slice/slice_hash_table.c |
| 2308 | src/core/lib/slice/slice_intern.c |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2309 | src/core/lib/slice/slice_string_helpers.c |
| 2310 | src/core/lib/surface/alarm.c |
| 2311 | src/core/lib/surface/api_trace.c |
| 2312 | src/core/lib/surface/byte_buffer.c |
| 2313 | src/core/lib/surface/byte_buffer_reader.c |
| 2314 | src/core/lib/surface/call.c |
| 2315 | src/core/lib/surface/call_details.c |
| 2316 | src/core/lib/surface/call_log_batch.c |
| 2317 | src/core/lib/surface/channel.c |
| 2318 | src/core/lib/surface/channel_init.c |
| 2319 | src/core/lib/surface/channel_ping.c |
| 2320 | src/core/lib/surface/channel_stack_type.c |
| 2321 | src/core/lib/surface/completion_queue.c |
Sree Kuchibhotla | bf18428 | 2017-03-21 15:18:58 -0700 | [diff] [blame] | 2322 | src/core/lib/surface/completion_queue_factory.c |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2323 | src/core/lib/surface/event_string.c |
| 2324 | src/core/lib/surface/lame_client.c |
| 2325 | src/core/lib/surface/metadata_array.c |
| 2326 | src/core/lib/surface/server.c |
| 2327 | src/core/lib/surface/validate_metadata.c |
| 2328 | src/core/lib/surface/version.c |
Craig Tiller | d425712 | 2017-01-13 09:33:57 -0800 | [diff] [blame] | 2329 | src/core/lib/transport/bdp_estimator.c |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2330 | src/core/lib/transport/byte_stream.c |
| 2331 | src/core/lib/transport/connectivity_state.c |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 2332 | src/core/lib/transport/error_utils.c |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2333 | src/core/lib/transport/metadata.c |
| 2334 | src/core/lib/transport/metadata_batch.c |
| 2335 | src/core/lib/transport/pid_controller.c |
| 2336 | src/core/lib/transport/service_config.c |
| 2337 | src/core/lib/transport/static_metadata.c |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 2338 | src/core/lib/transport/status_conversion.c |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2339 | src/core/lib/transport/timeout_encoding.c |
| 2340 | src/core/lib/transport/transport.c |
| 2341 | src/core/lib/transport/transport_op_string.c |
Craig Tiller | 790f6af | 2017-03-30 12:39:24 -0700 | [diff] [blame] | 2342 | third_party/nanopb/pb_common.c |
| 2343 | third_party/nanopb/pb_decode.c |
| 2344 | third_party/nanopb/pb_encode.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2345 | src/cpp/codegen/codegen_init.cc |
| 2346 | ) |
| 2347 | |
| 2348 | if(WIN32 AND MSVC) |
| 2349 | set_target_properties(grpc++ PROPERTIES COMPILE_PDB_NAME "grpc++" |
| 2350 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 2351 | ) |
| 2352 | if (gRPC_INSTALL) |
| 2353 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++.pdb |
| 2354 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 2355 | ) |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 2356 | endif() |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2357 | endif() |
| 2358 | |
| 2359 | |
| 2360 | target_include_directories(grpc++ |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 2361 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 2362 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 2363 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 2364 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 2365 | PRIVATE ${ZLIB_INCLUDE_DIR} |
| 2366 | PRIVATE ${BENCHMARK}/include |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2367 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
| 2368 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
| 2369 | PRIVATE ${CARES_INCLUDE_DIR} |
| 2370 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 2371 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
| 2372 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 2373 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 2374 | ) |
| 2375 | |
| 2376 | target_link_libraries(grpc++ |
| 2377 | ${_gRPC_BASELIB_LIBRARIES} |
| 2378 | ${_gRPC_SSL_LIBRARIES} |
| 2379 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 2380 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 2381 | grpc |
Craig Tiller | 790f6af | 2017-03-30 12:39:24 -0700 | [diff] [blame] | 2382 | gpr |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2383 | ) |
| 2384 | |
| 2385 | foreach(_hdr |
| 2386 | include/grpc++/alarm.h |
| 2387 | include/grpc++/channel.h |
| 2388 | include/grpc++/client_context.h |
| 2389 | include/grpc++/completion_queue.h |
Craig Tiller | 20afa3d | 2016-10-17 14:52:14 -0700 | [diff] [blame] | 2390 | include/grpc++/create_channel.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2391 | include/grpc++/create_channel_posix.h |
| 2392 | include/grpc++/ext/health_check_service_server_builder_option.h |
| 2393 | include/grpc++/generic/async_generic_service.h |
| 2394 | include/grpc++/generic/generic_stub.h |
| 2395 | include/grpc++/grpc++.h |
| 2396 | include/grpc++/health_check_service_interface.h |
| 2397 | include/grpc++/impl/call.h |
| 2398 | include/grpc++/impl/channel_argument_option.h |
| 2399 | include/grpc++/impl/client_unary_call.h |
| 2400 | include/grpc++/impl/codegen/core_codegen.h |
| 2401 | include/grpc++/impl/grpc_library.h |
| 2402 | include/grpc++/impl/method_handler_impl.h |
| 2403 | include/grpc++/impl/rpc_method.h |
| 2404 | include/grpc++/impl/rpc_service_method.h |
| 2405 | include/grpc++/impl/serialization_traits.h |
| 2406 | include/grpc++/impl/server_builder_option.h |
| 2407 | include/grpc++/impl/server_builder_plugin.h |
| 2408 | include/grpc++/impl/server_initializer.h |
| 2409 | include/grpc++/impl/service_type.h |
| 2410 | include/grpc++/resource_quota.h |
| 2411 | include/grpc++/security/auth_context.h |
| 2412 | include/grpc++/security/auth_metadata_processor.h |
| 2413 | include/grpc++/security/credentials.h |
| 2414 | include/grpc++/security/server_credentials.h |
| 2415 | include/grpc++/server.h |
| 2416 | include/grpc++/server_builder.h |
| 2417 | include/grpc++/server_context.h |
| 2418 | include/grpc++/server_posix.h |
| 2419 | include/grpc++/support/async_stream.h |
| 2420 | include/grpc++/support/async_unary_call.h |
| 2421 | include/grpc++/support/byte_buffer.h |
| 2422 | include/grpc++/support/channel_arguments.h |
| 2423 | include/grpc++/support/config.h |
| 2424 | include/grpc++/support/slice.h |
| 2425 | include/grpc++/support/status.h |
| 2426 | include/grpc++/support/status_code_enum.h |
| 2427 | include/grpc++/support/string_ref.h |
| 2428 | include/grpc++/support/stub_options.h |
| 2429 | include/grpc++/support/sync_stream.h |
| 2430 | include/grpc++/support/time.h |
| 2431 | include/grpc++/impl/codegen/async_stream.h |
| 2432 | include/grpc++/impl/codegen/async_unary_call.h |
| 2433 | include/grpc++/impl/codegen/call.h |
yang-g | d558149 | 2016-09-06 14:05:53 -0700 | [diff] [blame] | 2434 | include/grpc++/impl/codegen/call_hook.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2435 | include/grpc++/impl/codegen/channel_interface.h |
| 2436 | include/grpc++/impl/codegen/client_context.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2437 | include/grpc++/impl/codegen/client_unary_call.h |
| 2438 | include/grpc++/impl/codegen/completion_queue.h |
Nicolas "Pixel" Noble | 87a1081 | 2016-09-29 01:31:54 +0200 | [diff] [blame] | 2439 | include/grpc++/impl/codegen/completion_queue_tag.h |
| 2440 | include/grpc++/impl/codegen/config.h |
| 2441 | include/grpc++/impl/codegen/core_codegen_interface.h |
| 2442 | include/grpc++/impl/codegen/create_auth_context.h |
| 2443 | include/grpc++/impl/codegen/grpc_library.h |
| 2444 | include/grpc++/impl/codegen/metadata_map.h |
| 2445 | include/grpc++/impl/codegen/method_handler_impl.h |
| 2446 | include/grpc++/impl/codegen/rpc_method.h |
| 2447 | include/grpc++/impl/codegen/rpc_service_method.h |
| 2448 | include/grpc++/impl/codegen/security/auth_context.h |
Craig Tiller | 7cdad96 | 2016-11-10 08:37:21 -0800 | [diff] [blame] | 2449 | include/grpc++/impl/codegen/serialization_traits.h |
Nicolas "Pixel" Noble | 87a1081 | 2016-09-29 01:31:54 +0200 | [diff] [blame] | 2450 | include/grpc++/impl/codegen/server_context.h |
| 2451 | include/grpc++/impl/codegen/server_interface.h |
| 2452 | include/grpc++/impl/codegen/service_type.h |
| 2453 | include/grpc++/impl/codegen/slice.h |
| 2454 | include/grpc++/impl/codegen/status.h |
| 2455 | include/grpc++/impl/codegen/status_code_enum.h |
| 2456 | include/grpc++/impl/codegen/status_helper.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2457 | include/grpc++/impl/codegen/string_ref.h |
| 2458 | include/grpc++/impl/codegen/stub_options.h |
| 2459 | include/grpc++/impl/codegen/sync_stream.h |
| 2460 | include/grpc++/impl/codegen/time.h |
| 2461 | include/grpc/impl/codegen/byte_buffer_reader.h |
| 2462 | include/grpc/impl/codegen/compression_types.h |
| 2463 | include/grpc/impl/codegen/connectivity_state.h |
| 2464 | include/grpc/impl/codegen/exec_ctx_fwd.h |
Nicolas "Pixel" Noble | 2069fbc | 2016-08-18 23:29:56 +0200 | [diff] [blame] | 2465 | include/grpc/impl/codegen/grpc_types.h |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 2466 | include/grpc/impl/codegen/propagation_bits.h |
Craig Tiller | 790f6af | 2017-03-30 12:39:24 -0700 | [diff] [blame] | 2467 | include/grpc/impl/codegen/slice.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 2468 | include/grpc/impl/codegen/status.h |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 2469 | include/grpc/impl/codegen/atm.h |
| 2470 | include/grpc/impl/codegen/atm_gcc_atomic.h |
| 2471 | include/grpc/impl/codegen/atm_gcc_sync.h |
| 2472 | include/grpc/impl/codegen/atm_windows.h |
| 2473 | include/grpc/impl/codegen/gpr_slice.h |
| 2474 | include/grpc/impl/codegen/gpr_types.h |
| 2475 | include/grpc/impl/codegen/port_platform.h |
Nicolas "Pixel" Noble | 2069fbc | 2016-08-18 23:29:56 +0200 | [diff] [blame] | 2476 | include/grpc/impl/codegen/sync.h |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2477 | include/grpc/impl/codegen/sync_generic.h |
| 2478 | include/grpc/impl/codegen/sync_posix.h |
| 2479 | include/grpc/impl/codegen/sync_windows.h |
Craig Tiller | 790f6af | 2017-03-30 12:39:24 -0700 | [diff] [blame] | 2480 | include/grpc/byte_buffer.h |
| 2481 | include/grpc/byte_buffer_reader.h |
| 2482 | include/grpc/compression.h |
| 2483 | include/grpc/grpc.h |
| 2484 | include/grpc/grpc_posix.h |
| 2485 | include/grpc/grpc_security_constants.h |
| 2486 | include/grpc/load_reporting.h |
| 2487 | include/grpc/slice.h |
| 2488 | include/grpc/slice_buffer.h |
| 2489 | include/grpc/status.h |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2490 | include/grpc++/impl/codegen/proto_utils.h |
| 2491 | include/grpc++/impl/codegen/config_protobuf.h |
| 2492 | ) |
| 2493 | string(REPLACE "include/" "" _path ${_hdr}) |
| 2494 | get_filename_component(_path ${_path} PATH) |
| 2495 | install(FILES ${_hdr} |
| 2496 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 2497 | ) |
| 2498 | endforeach() |
| 2499 | |
| 2500 | |
| 2501 | if (gRPC_INSTALL) |
| 2502 | install(TARGETS grpc++ EXPORT gRPCTargets |
Craig Tiller | 3d357d9 | 2016-10-26 20:52:03 -0700 | [diff] [blame] | 2503 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2504 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
Craig Tiller | ed91324 | 2016-11-04 16:31:30 -0700 | [diff] [blame] | 2505 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2506 | ) |
| 2507 | endif() |
| 2508 | |
| 2509 | |
| 2510 | add_library(grpc++_cronet |
| 2511 | src/cpp/client/cronet_credentials.cc |
| 2512 | src/cpp/client/insecure_credentials.cc |
| 2513 | src/cpp/common/insecure_create_auth_context.cc |
Sree Kuchibhotla | 33d5494 | 2016-10-25 10:03:52 -0700 | [diff] [blame] | 2514 | src/cpp/server/insecure_server_credentials.cc |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2515 | src/cpp/client/channel_cc.cc |
| 2516 | src/cpp/client/client_context.cc |
| 2517 | src/cpp/client/create_channel.cc |
| 2518 | src/cpp/client/create_channel_internal.cc |
| 2519 | src/cpp/client/create_channel_posix.cc |
| 2520 | src/cpp/client/credentials_cc.cc |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2521 | src/cpp/client/generic_stub.cc |
| 2522 | src/cpp/common/channel_arguments.cc |
| 2523 | src/cpp/common/channel_filter.cc |
| 2524 | src/cpp/common/completion_queue_cc.cc |
| 2525 | src/cpp/common/core_codegen.cc |
| 2526 | src/cpp/common/resource_quota_cc.cc |
| 2527 | src/cpp/common/rpc_method.cc |
| 2528 | src/cpp/common/version_cc.cc |
| 2529 | src/cpp/server/async_generic_service.cc |
| 2530 | src/cpp/server/channel_argument_option.cc |
| 2531 | src/cpp/server/create_default_thread_pool.cc |
| 2532 | src/cpp/server/dynamic_thread_pool.cc |
| 2533 | src/cpp/server/health/default_health_check_service.cc |
| 2534 | src/cpp/server/health/health.pb.c |
| 2535 | src/cpp/server/health/health_check_service.cc |
| 2536 | src/cpp/server/health/health_check_service_server_builder_option.cc |
| 2537 | src/cpp/server/server_builder.cc |
| 2538 | src/cpp/server/server_cc.cc |
| 2539 | src/cpp/server/server_context.cc |
| 2540 | src/cpp/server/server_credentials.cc |
| 2541 | src/cpp/server/server_posix.cc |
| 2542 | src/cpp/thread_manager/thread_manager.cc |
| 2543 | src/cpp/util/byte_buffer_cc.cc |
| 2544 | src/cpp/util/slice_cc.cc |
| 2545 | src/cpp/util/status.cc |
| 2546 | src/cpp/util/string_ref.cc |
| 2547 | src/cpp/util/time_cc.cc |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2548 | src/core/lib/channel/channel_args.c |
| 2549 | src/core/lib/channel/channel_stack.c |
| 2550 | src/core/lib/channel/channel_stack_builder.c |
| 2551 | src/core/lib/channel/compress_filter.c |
| 2552 | src/core/lib/channel/connected_channel.c |
| 2553 | src/core/lib/channel/deadline_filter.c |
| 2554 | src/core/lib/channel/handshaker.c |
| 2555 | src/core/lib/channel/handshaker_factory.c |
| 2556 | src/core/lib/channel/handshaker_registry.c |
| 2557 | src/core/lib/channel/http_client_filter.c |
| 2558 | src/core/lib/channel/http_server_filter.c |
Yuchen Zeng | a809ea5 | 2017-03-28 02:02:45 -0700 | [diff] [blame] | 2559 | src/core/lib/channel/max_age_filter.c |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2560 | src/core/lib/channel/message_size_filter.c |
| 2561 | src/core/lib/compression/compression.c |
| 2562 | src/core/lib/compression/message_compress.c |
| 2563 | src/core/lib/debug/trace.c |
| 2564 | src/core/lib/http/format_request.c |
| 2565 | src/core/lib/http/httpcli.c |
| 2566 | src/core/lib/http/parser.c |
| 2567 | src/core/lib/iomgr/closure.c |
| 2568 | src/core/lib/iomgr/combiner.c |
| 2569 | src/core/lib/iomgr/endpoint.c |
| 2570 | src/core/lib/iomgr/endpoint_pair_posix.c |
| 2571 | src/core/lib/iomgr/endpoint_pair_uv.c |
| 2572 | src/core/lib/iomgr/endpoint_pair_windows.c |
| 2573 | src/core/lib/iomgr/error.c |
| 2574 | src/core/lib/iomgr/ev_epoll_linux.c |
| 2575 | src/core/lib/iomgr/ev_poll_posix.c |
| 2576 | src/core/lib/iomgr/ev_posix.c |
| 2577 | src/core/lib/iomgr/exec_ctx.c |
| 2578 | src/core/lib/iomgr/executor.c |
| 2579 | src/core/lib/iomgr/iocp_windows.c |
| 2580 | src/core/lib/iomgr/iomgr.c |
| 2581 | src/core/lib/iomgr/iomgr_posix.c |
| 2582 | src/core/lib/iomgr/iomgr_uv.c |
| 2583 | src/core/lib/iomgr/iomgr_windows.c |
| 2584 | src/core/lib/iomgr/load_file.c |
| 2585 | src/core/lib/iomgr/network_status_tracker.c |
| 2586 | src/core/lib/iomgr/polling_entity.c |
| 2587 | src/core/lib/iomgr/pollset_set_uv.c |
| 2588 | src/core/lib/iomgr/pollset_set_windows.c |
| 2589 | src/core/lib/iomgr/pollset_uv.c |
| 2590 | src/core/lib/iomgr/pollset_windows.c |
| 2591 | src/core/lib/iomgr/resolve_address_posix.c |
| 2592 | src/core/lib/iomgr/resolve_address_uv.c |
| 2593 | src/core/lib/iomgr/resolve_address_windows.c |
| 2594 | src/core/lib/iomgr/resource_quota.c |
| 2595 | src/core/lib/iomgr/sockaddr_utils.c |
| 2596 | src/core/lib/iomgr/socket_factory_posix.c |
| 2597 | src/core/lib/iomgr/socket_mutator.c |
| 2598 | src/core/lib/iomgr/socket_utils_common_posix.c |
| 2599 | src/core/lib/iomgr/socket_utils_linux.c |
| 2600 | src/core/lib/iomgr/socket_utils_posix.c |
| 2601 | src/core/lib/iomgr/socket_utils_uv.c |
| 2602 | src/core/lib/iomgr/socket_utils_windows.c |
| 2603 | src/core/lib/iomgr/socket_windows.c |
| 2604 | src/core/lib/iomgr/tcp_client_posix.c |
| 2605 | src/core/lib/iomgr/tcp_client_uv.c |
| 2606 | src/core/lib/iomgr/tcp_client_windows.c |
| 2607 | src/core/lib/iomgr/tcp_posix.c |
| 2608 | src/core/lib/iomgr/tcp_server_posix.c |
| 2609 | src/core/lib/iomgr/tcp_server_utils_posix_common.c |
| 2610 | src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c |
| 2611 | src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c |
| 2612 | src/core/lib/iomgr/tcp_server_uv.c |
| 2613 | src/core/lib/iomgr/tcp_server_windows.c |
| 2614 | src/core/lib/iomgr/tcp_uv.c |
| 2615 | src/core/lib/iomgr/tcp_windows.c |
| 2616 | src/core/lib/iomgr/time_averaged_stats.c |
| 2617 | src/core/lib/iomgr/timer_generic.c |
| 2618 | src/core/lib/iomgr/timer_heap.c |
| 2619 | src/core/lib/iomgr/timer_uv.c |
| 2620 | src/core/lib/iomgr/udp_server.c |
| 2621 | src/core/lib/iomgr/unix_sockets_posix.c |
| 2622 | src/core/lib/iomgr/unix_sockets_posix_noop.c |
| 2623 | src/core/lib/iomgr/wakeup_fd_cv.c |
| 2624 | src/core/lib/iomgr/wakeup_fd_eventfd.c |
| 2625 | src/core/lib/iomgr/wakeup_fd_nospecial.c |
| 2626 | src/core/lib/iomgr/wakeup_fd_pipe.c |
| 2627 | src/core/lib/iomgr/wakeup_fd_posix.c |
| 2628 | src/core/lib/iomgr/workqueue_uv.c |
| 2629 | src/core/lib/iomgr/workqueue_windows.c |
| 2630 | src/core/lib/json/json.c |
| 2631 | src/core/lib/json/json_reader.c |
| 2632 | src/core/lib/json/json_string.c |
| 2633 | src/core/lib/json/json_writer.c |
Craig Tiller | 790f6af | 2017-03-30 12:39:24 -0700 | [diff] [blame] | 2634 | src/core/lib/slice/b64.c |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2635 | src/core/lib/slice/percent_encoding.c |
| 2636 | src/core/lib/slice/slice.c |
| 2637 | src/core/lib/slice/slice_buffer.c |
| 2638 | src/core/lib/slice/slice_hash_table.c |
| 2639 | src/core/lib/slice/slice_intern.c |
| 2640 | src/core/lib/slice/slice_string_helpers.c |
| 2641 | src/core/lib/surface/alarm.c |
| 2642 | src/core/lib/surface/api_trace.c |
| 2643 | src/core/lib/surface/byte_buffer.c |
| 2644 | src/core/lib/surface/byte_buffer_reader.c |
| 2645 | src/core/lib/surface/call.c |
| 2646 | src/core/lib/surface/call_details.c |
| 2647 | src/core/lib/surface/call_log_batch.c |
| 2648 | src/core/lib/surface/channel.c |
| 2649 | src/core/lib/surface/channel_init.c |
| 2650 | src/core/lib/surface/channel_ping.c |
| 2651 | src/core/lib/surface/channel_stack_type.c |
| 2652 | src/core/lib/surface/completion_queue.c |
| 2653 | src/core/lib/surface/completion_queue_factory.c |
| 2654 | src/core/lib/surface/event_string.c |
| 2655 | src/core/lib/surface/lame_client.c |
| 2656 | src/core/lib/surface/metadata_array.c |
| 2657 | src/core/lib/surface/server.c |
| 2658 | src/core/lib/surface/validate_metadata.c |
| 2659 | src/core/lib/surface/version.c |
| 2660 | src/core/lib/transport/bdp_estimator.c |
| 2661 | src/core/lib/transport/byte_stream.c |
| 2662 | src/core/lib/transport/connectivity_state.c |
| 2663 | src/core/lib/transport/error_utils.c |
| 2664 | src/core/lib/transport/metadata.c |
| 2665 | src/core/lib/transport/metadata_batch.c |
| 2666 | src/core/lib/transport/pid_controller.c |
| 2667 | src/core/lib/transport/service_config.c |
| 2668 | src/core/lib/transport/static_metadata.c |
| 2669 | src/core/lib/transport/status_conversion.c |
| 2670 | src/core/lib/transport/timeout_encoding.c |
| 2671 | src/core/lib/transport/transport.c |
| 2672 | src/core/lib/transport/transport_op_string.c |
Craig Tiller | 790f6af | 2017-03-30 12:39:24 -0700 | [diff] [blame] | 2673 | third_party/nanopb/pb_common.c |
| 2674 | third_party/nanopb/pb_decode.c |
| 2675 | third_party/nanopb/pb_encode.c |
| 2676 | src/cpp/codegen/codegen_init.cc |
| 2677 | src/core/ext/transport/chttp2/client/insecure/channel_create.c |
| 2678 | src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c |
| 2679 | src/core/ext/transport/chttp2/client/chttp2_connector.c |
| 2680 | src/core/ext/transport/chttp2/transport/bin_decoder.c |
| 2681 | src/core/ext/transport/chttp2/transport/bin_encoder.c |
| 2682 | src/core/ext/transport/chttp2/transport/chttp2_plugin.c |
| 2683 | src/core/ext/transport/chttp2/transport/chttp2_transport.c |
| 2684 | src/core/ext/transport/chttp2/transport/frame_data.c |
| 2685 | src/core/ext/transport/chttp2/transport/frame_goaway.c |
| 2686 | src/core/ext/transport/chttp2/transport/frame_ping.c |
| 2687 | src/core/ext/transport/chttp2/transport/frame_rst_stream.c |
| 2688 | src/core/ext/transport/chttp2/transport/frame_settings.c |
| 2689 | src/core/ext/transport/chttp2/transport/frame_window_update.c |
| 2690 | src/core/ext/transport/chttp2/transport/hpack_encoder.c |
| 2691 | src/core/ext/transport/chttp2/transport/hpack_parser.c |
| 2692 | src/core/ext/transport/chttp2/transport/hpack_table.c |
| 2693 | src/core/ext/transport/chttp2/transport/huffsyms.c |
| 2694 | src/core/ext/transport/chttp2/transport/incoming_metadata.c |
| 2695 | src/core/ext/transport/chttp2/transport/parsing.c |
| 2696 | src/core/ext/transport/chttp2/transport/stream_lists.c |
| 2697 | src/core/ext/transport/chttp2/transport/stream_map.c |
| 2698 | src/core/ext/transport/chttp2/transport/varint.c |
| 2699 | src/core/ext/transport/chttp2/transport/writing.c |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2700 | src/core/ext/transport/chttp2/alpn/alpn.c |
| 2701 | src/core/ext/client_channel/channel_connectivity.c |
| 2702 | src/core/ext/client_channel/client_channel.c |
| 2703 | src/core/ext/client_channel/client_channel_factory.c |
| 2704 | src/core/ext/client_channel/client_channel_plugin.c |
| 2705 | src/core/ext/client_channel/connector.c |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2706 | src/core/ext/client_channel/http_connect_handshaker.c |
Mark D. Roth | d58a985 | 2017-01-18 08:28:57 -0800 | [diff] [blame] | 2707 | src/core/ext/client_channel/http_proxy.c |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2708 | src/core/ext/client_channel/lb_policy.c |
| 2709 | src/core/ext/client_channel/lb_policy_factory.c |
| 2710 | src/core/ext/client_channel/lb_policy_registry.c |
| 2711 | src/core/ext/client_channel/parse_address.c |
Mark D. Roth | 79f2a24 | 2017-01-17 14:13:33 -0800 | [diff] [blame] | 2712 | src/core/ext/client_channel/proxy_mapper.c |
| 2713 | src/core/ext/client_channel/proxy_mapper_registry.c |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2714 | src/core/ext/client_channel/resolver.c |
| 2715 | src/core/ext/client_channel/resolver_factory.c |
| 2716 | src/core/ext/client_channel/resolver_registry.c |
Mark D. Roth | d6d192d | 2017-02-23 08:58:42 -0800 | [diff] [blame] | 2717 | src/core/ext/client_channel/retry_throttle.c |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2718 | src/core/ext/client_channel/subchannel.c |
| 2719 | src/core/ext/client_channel/subchannel_index.c |
| 2720 | src/core/ext/client_channel/uri_parser.c |
| 2721 | src/core/ext/transport/chttp2/server/insecure/server_chttp2.c |
| 2722 | src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c |
Mark D. Roth | 7140382 | 2016-12-02 10:51:39 -0800 | [diff] [blame] | 2723 | src/core/ext/transport/chttp2/server/chttp2_server.c |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2724 | src/core/ext/census/base_resources.c |
| 2725 | src/core/ext/census/context.c |
| 2726 | src/core/ext/census/gen/census.pb.c |
| 2727 | src/core/ext/census/gen/trace_context.pb.c |
| 2728 | src/core/ext/census/grpc_context.c |
| 2729 | src/core/ext/census/grpc_filter.c |
| 2730 | src/core/ext/census/grpc_plugin.c |
| 2731 | src/core/ext/census/initialize.c |
| 2732 | src/core/ext/census/mlog.c |
| 2733 | src/core/ext/census/operation.c |
| 2734 | src/core/ext/census/placeholders.c |
| 2735 | src/core/ext/census/resource.c |
| 2736 | src/core/ext/census/trace_context.c |
| 2737 | src/core/ext/census/tracing.c |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2738 | ) |
| 2739 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 2740 | if(WIN32 AND MSVC) |
| 2741 | set_target_properties(grpc++_cronet PROPERTIES COMPILE_PDB_NAME "grpc++_cronet" |
| 2742 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 2743 | ) |
| 2744 | if (gRPC_INSTALL) |
| 2745 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_cronet.pdb |
| 2746 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 2747 | ) |
| 2748 | endif() |
| 2749 | endif() |
| 2750 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 2751 | |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2752 | target_include_directories(grpc++_cronet |
| 2753 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 2754 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 2755 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 2756 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 2757 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 2758 | PRIVATE ${BENCHMARK}/include |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2759 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 2760 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | f1cd449 | 2016-10-25 11:26:17 -0700 | [diff] [blame] | 2761 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 2762 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 2763 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 2764 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 2765 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2766 | ) |
| 2767 | |
| 2768 | target_link_libraries(grpc++_cronet |
| 2769 | ${_gRPC_BASELIB_LIBRARIES} |
| 2770 | ${_gRPC_SSL_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 2771 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 2772 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2773 | gpr |
| 2774 | grpc_cronet |
| 2775 | ) |
| 2776 | |
| 2777 | foreach(_hdr |
| 2778 | include/grpc++/alarm.h |
| 2779 | include/grpc++/channel.h |
| 2780 | include/grpc++/client_context.h |
| 2781 | include/grpc++/completion_queue.h |
| 2782 | include/grpc++/create_channel.h |
| 2783 | include/grpc++/create_channel_posix.h |
yang-g | 0498124 | 2016-12-01 11:53:08 -0800 | [diff] [blame] | 2784 | include/grpc++/ext/health_check_service_server_builder_option.h |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2785 | include/grpc++/generic/async_generic_service.h |
| 2786 | include/grpc++/generic/generic_stub.h |
| 2787 | include/grpc++/grpc++.h |
yang-g | 1accb12 | 2016-12-28 10:38:04 -0800 | [diff] [blame] | 2788 | include/grpc++/health_check_service_interface.h |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2789 | include/grpc++/impl/call.h |
Craig Tiller | 4751c28 | 2017-01-10 14:29:00 -0800 | [diff] [blame] | 2790 | include/grpc++/impl/channel_argument_option.h |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2791 | include/grpc++/impl/client_unary_call.h |
| 2792 | include/grpc++/impl/codegen/core_codegen.h |
| 2793 | include/grpc++/impl/grpc_library.h |
| 2794 | include/grpc++/impl/method_handler_impl.h |
| 2795 | include/grpc++/impl/rpc_method.h |
| 2796 | include/grpc++/impl/rpc_service_method.h |
| 2797 | include/grpc++/impl/serialization_traits.h |
| 2798 | include/grpc++/impl/server_builder_option.h |
| 2799 | include/grpc++/impl/server_builder_plugin.h |
| 2800 | include/grpc++/impl/server_initializer.h |
| 2801 | include/grpc++/impl/service_type.h |
Craig Tiller | 3d357d9 | 2016-10-26 20:52:03 -0700 | [diff] [blame] | 2802 | include/grpc++/resource_quota.h |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2803 | include/grpc++/security/auth_context.h |
| 2804 | include/grpc++/security/auth_metadata_processor.h |
| 2805 | include/grpc++/security/credentials.h |
| 2806 | include/grpc++/security/server_credentials.h |
| 2807 | include/grpc++/server.h |
| 2808 | include/grpc++/server_builder.h |
| 2809 | include/grpc++/server_context.h |
| 2810 | include/grpc++/server_posix.h |
| 2811 | include/grpc++/support/async_stream.h |
| 2812 | include/grpc++/support/async_unary_call.h |
| 2813 | include/grpc++/support/byte_buffer.h |
| 2814 | include/grpc++/support/channel_arguments.h |
| 2815 | include/grpc++/support/config.h |
| 2816 | include/grpc++/support/slice.h |
| 2817 | include/grpc++/support/status.h |
| 2818 | include/grpc++/support/status_code_enum.h |
| 2819 | include/grpc++/support/string_ref.h |
| 2820 | include/grpc++/support/stub_options.h |
| 2821 | include/grpc++/support/sync_stream.h |
| 2822 | include/grpc++/support/time.h |
| 2823 | include/grpc++/impl/codegen/async_stream.h |
| 2824 | include/grpc++/impl/codegen/async_unary_call.h |
| 2825 | include/grpc++/impl/codegen/call.h |
| 2826 | include/grpc++/impl/codegen/call_hook.h |
| 2827 | include/grpc++/impl/codegen/channel_interface.h |
| 2828 | include/grpc++/impl/codegen/client_context.h |
| 2829 | include/grpc++/impl/codegen/client_unary_call.h |
| 2830 | include/grpc++/impl/codegen/completion_queue.h |
| 2831 | include/grpc++/impl/codegen/completion_queue_tag.h |
| 2832 | include/grpc++/impl/codegen/config.h |
| 2833 | include/grpc++/impl/codegen/core_codegen_interface.h |
| 2834 | include/grpc++/impl/codegen/create_auth_context.h |
| 2835 | include/grpc++/impl/codegen/grpc_library.h |
yang-g | 988b47c | 2017-01-31 09:51:45 -0800 | [diff] [blame] | 2836 | include/grpc++/impl/codegen/metadata_map.h |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2837 | include/grpc++/impl/codegen/method_handler_impl.h |
| 2838 | include/grpc++/impl/codegen/rpc_method.h |
| 2839 | include/grpc++/impl/codegen/rpc_service_method.h |
| 2840 | include/grpc++/impl/codegen/security/auth_context.h |
| 2841 | include/grpc++/impl/codegen/serialization_traits.h |
| 2842 | include/grpc++/impl/codegen/server_context.h |
| 2843 | include/grpc++/impl/codegen/server_interface.h |
| 2844 | include/grpc++/impl/codegen/service_type.h |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 2845 | include/grpc++/impl/codegen/slice.h |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2846 | include/grpc++/impl/codegen/status.h |
| 2847 | include/grpc++/impl/codegen/status_code_enum.h |
| 2848 | include/grpc++/impl/codegen/status_helper.h |
| 2849 | include/grpc++/impl/codegen/string_ref.h |
| 2850 | include/grpc++/impl/codegen/stub_options.h |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2851 | include/grpc++/impl/codegen/sync_stream.h |
| 2852 | include/grpc++/impl/codegen/time.h |
| 2853 | include/grpc/impl/codegen/byte_buffer_reader.h |
| 2854 | include/grpc/impl/codegen/compression_types.h |
| 2855 | include/grpc/impl/codegen/connectivity_state.h |
Craig Tiller | b995e8b | 2016-12-12 06:36:43 -0800 | [diff] [blame] | 2856 | include/grpc/impl/codegen/exec_ctx_fwd.h |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2857 | include/grpc/impl/codegen/grpc_types.h |
| 2858 | include/grpc/impl/codegen/propagation_bits.h |
Craig Tiller | 790f6af | 2017-03-30 12:39:24 -0700 | [diff] [blame] | 2859 | include/grpc/impl/codegen/slice.h |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2860 | include/grpc/impl/codegen/status.h |
| 2861 | include/grpc/impl/codegen/atm.h |
| 2862 | include/grpc/impl/codegen/atm_gcc_atomic.h |
| 2863 | include/grpc/impl/codegen/atm_gcc_sync.h |
| 2864 | include/grpc/impl/codegen/atm_windows.h |
Mark D. Roth | 4d2ea02 | 2016-12-12 07:12:27 -0800 | [diff] [blame] | 2865 | include/grpc/impl/codegen/gpr_slice.h |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2866 | include/grpc/impl/codegen/gpr_types.h |
| 2867 | include/grpc/impl/codegen/port_platform.h |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2868 | include/grpc/impl/codegen/sync.h |
| 2869 | include/grpc/impl/codegen/sync_generic.h |
| 2870 | include/grpc/impl/codegen/sync_posix.h |
| 2871 | include/grpc/impl/codegen/sync_windows.h |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2872 | include/grpc/byte_buffer.h |
| 2873 | include/grpc/byte_buffer_reader.h |
| 2874 | include/grpc/compression.h |
| 2875 | include/grpc/grpc.h |
| 2876 | include/grpc/grpc_posix.h |
| 2877 | include/grpc/grpc_security_constants.h |
David Garcia Quintas | f31f096 | 2017-02-10 14:53:58 -0800 | [diff] [blame] | 2878 | include/grpc/load_reporting.h |
ncteisen | 3770ac9 | 2016-11-28 11:02:41 -0800 | [diff] [blame] | 2879 | include/grpc/slice.h |
| 2880 | include/grpc/slice_buffer.h |
| 2881 | include/grpc/status.h |
| 2882 | include/grpc/census.h |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2883 | ) |
| 2884 | string(REPLACE "include/" "" _path ${_hdr}) |
| 2885 | get_filename_component(_path ${_path} PATH) |
| 2886 | install(FILES ${_hdr} |
| 2887 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 2888 | ) |
| 2889 | endforeach() |
| 2890 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 2891 | |
Garrett Casto | 931a26b | 2016-10-04 09:18:29 -0700 | [diff] [blame] | 2892 | if (gRPC_INSTALL) |
| 2893 | install(TARGETS grpc++_cronet EXPORT gRPCTargets |
| 2894 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 2895 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 2896 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 2897 | ) |
| 2898 | endif() |
| 2899 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 2900 | if (gRPC_BUILD_TESTS) |
| 2901 | |
| 2902 | add_library(grpc++_proto_reflection_desc_db |
| 2903 | test/cpp/util/proto_reflection_descriptor_database.cc |
| 2904 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.cc |
| 2905 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.cc |
| 2906 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.h |
| 2907 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h |
| 2908 | ) |
| 2909 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 2910 | if(WIN32 AND MSVC) |
| 2911 | set_target_properties(grpc++_proto_reflection_desc_db PROPERTIES COMPILE_PDB_NAME "grpc++_proto_reflection_desc_db" |
| 2912 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 2913 | ) |
| 2914 | if (gRPC_INSTALL) |
| 2915 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_proto_reflection_desc_db.pdb |
| 2916 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 2917 | ) |
| 2918 | endif() |
| 2919 | endif() |
| 2920 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 2921 | protobuf_generate_grpc_cpp( |
| 2922 | src/proto/grpc/reflection/v1alpha/reflection.proto |
| 2923 | ) |
| 2924 | |
| 2925 | target_include_directories(grpc++_proto_reflection_desc_db |
| 2926 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 2927 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 2928 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 2929 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 2930 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 2931 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 2932 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 2933 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 2934 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 2935 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 2936 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 2937 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 2938 | PRIVATE third_party/googletest/include |
| 2939 | PRIVATE third_party/googletest |
| 2940 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 2941 | ) |
| 2942 | |
| 2943 | target_link_libraries(grpc++_proto_reflection_desc_db |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 2944 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 2945 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 2946 | grpc++ |
| 2947 | ) |
| 2948 | |
| 2949 | foreach(_hdr |
| 2950 | include/grpc++/impl/codegen/config_protobuf.h |
| 2951 | ) |
| 2952 | string(REPLACE "include/" "" _path ${_hdr}) |
| 2953 | get_filename_component(_path ${_path} PATH) |
| 2954 | install(FILES ${_hdr} |
| 2955 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 2956 | ) |
| 2957 | endforeach() |
| 2958 | |
| 2959 | endif (gRPC_BUILD_TESTS) |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 2960 | |
| 2961 | add_library(grpc++_reflection |
| 2962 | src/cpp/ext/proto_server_reflection.cc |
| 2963 | src/cpp/ext/proto_server_reflection_plugin.cc |
| 2964 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.cc |
| 2965 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.cc |
| 2966 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.h |
| 2967 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h |
| 2968 | ) |
| 2969 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 2970 | if(WIN32 AND MSVC) |
| 2971 | set_target_properties(grpc++_reflection PROPERTIES COMPILE_PDB_NAME "grpc++_reflection" |
| 2972 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 2973 | ) |
| 2974 | if (gRPC_INSTALL) |
| 2975 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_reflection.pdb |
| 2976 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 2977 | ) |
| 2978 | endif() |
| 2979 | endif() |
| 2980 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 2981 | protobuf_generate_grpc_cpp( |
| 2982 | src/proto/grpc/reflection/v1alpha/reflection.proto |
| 2983 | ) |
| 2984 | |
| 2985 | target_include_directories(grpc++_reflection |
| 2986 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 2987 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 2988 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 2989 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 2990 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 2991 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 2992 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 2993 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 2994 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 2995 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 2996 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 2997 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 2998 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 2999 | ) |
| 3000 | |
| 3001 | target_link_libraries(grpc++_reflection |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3002 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 3003 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 3004 | grpc++ |
| 3005 | ) |
| 3006 | |
| 3007 | foreach(_hdr |
| 3008 | include/grpc++/ext/proto_server_reflection_plugin.h |
| 3009 | ) |
| 3010 | string(REPLACE "include/" "" _path ${_hdr}) |
| 3011 | get_filename_component(_path ${_path} PATH) |
| 3012 | install(FILES ${_hdr} |
| 3013 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 3014 | ) |
| 3015 | endforeach() |
| 3016 | |
| 3017 | |
| 3018 | if (gRPC_INSTALL) |
| 3019 | install(TARGETS grpc++_reflection EXPORT gRPCTargets |
| 3020 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 3021 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 3022 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 3023 | ) |
| 3024 | endif() |
| 3025 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3026 | if (gRPC_BUILD_TESTS) |
| 3027 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3028 | add_library(grpc++_test_config |
| 3029 | test/cpp/util/test_config_cc.cc |
| 3030 | ) |
| 3031 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 3032 | if(WIN32 AND MSVC) |
| 3033 | set_target_properties(grpc++_test_config PROPERTIES COMPILE_PDB_NAME "grpc++_test_config" |
| 3034 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 3035 | ) |
| 3036 | if (gRPC_INSTALL) |
| 3037 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_test_config.pdb |
| 3038 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 3039 | ) |
| 3040 | endif() |
| 3041 | endif() |
| 3042 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3043 | |
| 3044 | target_include_directories(grpc++_test_config |
| 3045 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 3046 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 3047 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 3048 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 3049 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3050 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3051 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 3052 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 3053 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 3054 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 3055 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3056 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 3057 | PRIVATE third_party/googletest/include |
| 3058 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3059 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3060 | ) |
| 3061 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3062 | target_link_libraries(grpc++_test_config |
| 3063 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 3064 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 3065 | ) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3066 | |
| 3067 | |
| 3068 | endif (gRPC_BUILD_TESTS) |
| 3069 | if (gRPC_BUILD_TESTS) |
| 3070 | |
| 3071 | add_library(grpc++_test_util |
yang-g | a719802 | 2017-01-26 13:23:52 -0800 | [diff] [blame] | 3072 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.pb.cc |
| 3073 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.grpc.pb.cc |
| 3074 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.pb.h |
| 3075 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/health/v1/health.grpc.pb.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3076 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc |
| 3077 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc |
| 3078 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h |
| 3079 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h |
| 3080 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc |
| 3081 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc |
| 3082 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h |
| 3083 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h |
| 3084 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.pb.cc |
| 3085 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.cc |
| 3086 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.pb.h |
| 3087 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/duplicate/echo_duplicate.grpc.pb.h |
| 3088 | test/cpp/end2end/test_service_impl.cc |
| 3089 | test/cpp/util/byte_buffer_proto_helper.cc |
| 3090 | test/cpp/util/create_test_channel.cc |
| 3091 | test/cpp/util/string_ref_helper.cc |
| 3092 | test/cpp/util/subprocess.cc |
| 3093 | test/cpp/util/test_credentials_provider.cc |
| 3094 | src/cpp/codegen/codegen_init.cc |
| 3095 | ) |
| 3096 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 3097 | if(WIN32 AND MSVC) |
| 3098 | set_target_properties(grpc++_test_util PROPERTIES COMPILE_PDB_NAME "grpc++_test_util" |
| 3099 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 3100 | ) |
| 3101 | if (gRPC_INSTALL) |
| 3102 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_test_util.pdb |
| 3103 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 3104 | ) |
| 3105 | endif() |
| 3106 | endif() |
| 3107 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3108 | protobuf_generate_grpc_cpp( |
yang-g | a719802 | 2017-01-26 13:23:52 -0800 | [diff] [blame] | 3109 | src/proto/grpc/health/v1/health.proto |
| 3110 | ) |
| 3111 | protobuf_generate_grpc_cpp( |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3112 | src/proto/grpc/testing/echo_messages.proto |
| 3113 | ) |
| 3114 | protobuf_generate_grpc_cpp( |
| 3115 | src/proto/grpc/testing/echo.proto |
| 3116 | ) |
| 3117 | protobuf_generate_grpc_cpp( |
| 3118 | src/proto/grpc/testing/duplicate/echo_duplicate.proto |
| 3119 | ) |
| 3120 | |
| 3121 | target_include_directories(grpc++_test_util |
| 3122 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 3123 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 3124 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 3125 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 3126 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3127 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3128 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 3129 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 3130 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 3131 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 3132 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3133 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 3134 | PRIVATE third_party/googletest/include |
| 3135 | PRIVATE third_party/googletest |
| 3136 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 3137 | ) |
| 3138 | |
| 3139 | target_link_libraries(grpc++_test_util |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3140 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 3141 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3142 | grpc++ |
| 3143 | grpc_test_util |
| 3144 | ) |
| 3145 | |
| 3146 | foreach(_hdr |
| 3147 | include/grpc++/impl/codegen/async_stream.h |
| 3148 | include/grpc++/impl/codegen/async_unary_call.h |
| 3149 | include/grpc++/impl/codegen/call.h |
| 3150 | include/grpc++/impl/codegen/call_hook.h |
| 3151 | include/grpc++/impl/codegen/channel_interface.h |
| 3152 | include/grpc++/impl/codegen/client_context.h |
| 3153 | include/grpc++/impl/codegen/client_unary_call.h |
| 3154 | include/grpc++/impl/codegen/completion_queue.h |
| 3155 | include/grpc++/impl/codegen/completion_queue_tag.h |
| 3156 | include/grpc++/impl/codegen/config.h |
| 3157 | include/grpc++/impl/codegen/core_codegen_interface.h |
| 3158 | include/grpc++/impl/codegen/create_auth_context.h |
| 3159 | include/grpc++/impl/codegen/grpc_library.h |
yang-g | 988b47c | 2017-01-31 09:51:45 -0800 | [diff] [blame] | 3160 | include/grpc++/impl/codegen/metadata_map.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3161 | include/grpc++/impl/codegen/method_handler_impl.h |
| 3162 | include/grpc++/impl/codegen/rpc_method.h |
| 3163 | include/grpc++/impl/codegen/rpc_service_method.h |
| 3164 | include/grpc++/impl/codegen/security/auth_context.h |
| 3165 | include/grpc++/impl/codegen/serialization_traits.h |
| 3166 | include/grpc++/impl/codegen/server_context.h |
| 3167 | include/grpc++/impl/codegen/server_interface.h |
| 3168 | include/grpc++/impl/codegen/service_type.h |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 3169 | include/grpc++/impl/codegen/slice.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3170 | include/grpc++/impl/codegen/status.h |
| 3171 | include/grpc++/impl/codegen/status_code_enum.h |
| 3172 | include/grpc++/impl/codegen/status_helper.h |
| 3173 | include/grpc++/impl/codegen/string_ref.h |
| 3174 | include/grpc++/impl/codegen/stub_options.h |
| 3175 | include/grpc++/impl/codegen/sync_stream.h |
| 3176 | include/grpc++/impl/codegen/time.h |
| 3177 | include/grpc/impl/codegen/byte_buffer_reader.h |
| 3178 | include/grpc/impl/codegen/compression_types.h |
| 3179 | include/grpc/impl/codegen/connectivity_state.h |
| 3180 | include/grpc/impl/codegen/exec_ctx_fwd.h |
| 3181 | include/grpc/impl/codegen/grpc_types.h |
| 3182 | include/grpc/impl/codegen/propagation_bits.h |
Craig Tiller | 790f6af | 2017-03-30 12:39:24 -0700 | [diff] [blame] | 3183 | include/grpc/impl/codegen/slice.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3184 | include/grpc/impl/codegen/status.h |
| 3185 | include/grpc/impl/codegen/atm.h |
| 3186 | include/grpc/impl/codegen/atm_gcc_atomic.h |
| 3187 | include/grpc/impl/codegen/atm_gcc_sync.h |
| 3188 | include/grpc/impl/codegen/atm_windows.h |
| 3189 | include/grpc/impl/codegen/gpr_slice.h |
| 3190 | include/grpc/impl/codegen/gpr_types.h |
| 3191 | include/grpc/impl/codegen/port_platform.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3192 | include/grpc/impl/codegen/sync.h |
| 3193 | include/grpc/impl/codegen/sync_generic.h |
| 3194 | include/grpc/impl/codegen/sync_posix.h |
| 3195 | include/grpc/impl/codegen/sync_windows.h |
| 3196 | include/grpc++/impl/codegen/proto_utils.h |
| 3197 | include/grpc++/impl/codegen/config_protobuf.h |
| 3198 | include/grpc++/impl/codegen/thrift_serializer.h |
| 3199 | include/grpc++/impl/codegen/thrift_utils.h |
| 3200 | ) |
| 3201 | string(REPLACE "include/" "" _path ${_hdr}) |
| 3202 | get_filename_component(_path ${_path} PATH) |
| 3203 | install(FILES ${_hdr} |
| 3204 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 3205 | ) |
| 3206 | endforeach() |
| 3207 | |
| 3208 | endif (gRPC_BUILD_TESTS) |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 3209 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3210 | add_library(grpc++_unsecure |
murgatroid99 | 1ca0f3e | 2016-08-26 14:58:49 -0700 | [diff] [blame] | 3211 | src/cpp/client/insecure_credentials.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3212 | src/cpp/common/insecure_create_auth_context.cc |
murgatroid99 | 1ca0f3e | 2016-08-26 14:58:49 -0700 | [diff] [blame] | 3213 | src/cpp/server/insecure_server_credentials.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 3214 | src/cpp/client/channel_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3215 | src/cpp/client/client_context.cc |
| 3216 | src/cpp/client/create_channel.cc |
| 3217 | src/cpp/client/create_channel_internal.cc |
| 3218 | src/cpp/client/create_channel_posix.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 3219 | src/cpp/client/credentials_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3220 | src/cpp/client/generic_stub.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3221 | src/cpp/common/channel_arguments.cc |
Mark D. Roth | 4004ac2 | 2016-08-02 10:08:27 -0700 | [diff] [blame] | 3222 | src/cpp/common/channel_filter.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 3223 | src/cpp/common/completion_queue_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3224 | src/cpp/common/core_codegen.cc |
Craig Tiller | 20afa3d | 2016-10-17 14:52:14 -0700 | [diff] [blame] | 3225 | src/cpp/common/resource_quota_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3226 | src/cpp/common/rpc_method.cc |
Craig Tiller | ed91324 | 2016-11-04 16:31:30 -0700 | [diff] [blame] | 3227 | src/cpp/common/version_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3228 | src/cpp/server/async_generic_service.cc |
Craig Tiller | 4751c28 | 2017-01-10 14:29:00 -0800 | [diff] [blame] | 3229 | src/cpp/server/channel_argument_option.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3230 | src/cpp/server/create_default_thread_pool.cc |
| 3231 | src/cpp/server/dynamic_thread_pool.cc |
yang-g | c3c475f | 2016-12-27 10:37:26 -0800 | [diff] [blame] | 3232 | src/cpp/server/health/default_health_check_service.cc |
| 3233 | src/cpp/server/health/health.pb.c |
| 3234 | src/cpp/server/health/health_check_service.cc |
| 3235 | src/cpp/server/health/health_check_service_server_builder_option.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3236 | src/cpp/server/server_builder.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 3237 | src/cpp/server/server_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3238 | src/cpp/server/server_context.cc |
| 3239 | src/cpp/server/server_credentials.cc |
| 3240 | src/cpp/server/server_posix.cc |
Sree Kuchibhotla | 8f7739b | 2016-10-13 15:12:55 -0700 | [diff] [blame] | 3241 | src/cpp/thread_manager/thread_manager.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 3242 | src/cpp/util/byte_buffer_cc.cc |
| 3243 | src/cpp/util/slice_cc.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3244 | src/cpp/util/status.cc |
| 3245 | src/cpp/util/string_ref.cc |
Craig Tiller | 102fa96 | 2016-08-22 13:56:36 -0700 | [diff] [blame] | 3246 | src/cpp/util/time_cc.cc |
Craig Tiller | 790f6af | 2017-03-30 12:39:24 -0700 | [diff] [blame] | 3247 | src/core/lib/channel/channel_args.c |
| 3248 | src/core/lib/channel/channel_stack.c |
| 3249 | src/core/lib/channel/channel_stack_builder.c |
| 3250 | src/core/lib/channel/compress_filter.c |
| 3251 | src/core/lib/channel/connected_channel.c |
| 3252 | src/core/lib/channel/deadline_filter.c |
| 3253 | src/core/lib/channel/handshaker.c |
| 3254 | src/core/lib/channel/handshaker_factory.c |
| 3255 | src/core/lib/channel/handshaker_registry.c |
| 3256 | src/core/lib/channel/http_client_filter.c |
| 3257 | src/core/lib/channel/http_server_filter.c |
| 3258 | src/core/lib/channel/message_size_filter.c |
| 3259 | src/core/lib/compression/compression.c |
| 3260 | src/core/lib/compression/message_compress.c |
| 3261 | src/core/lib/debug/trace.c |
| 3262 | src/core/lib/http/format_request.c |
| 3263 | src/core/lib/http/httpcli.c |
| 3264 | src/core/lib/http/parser.c |
| 3265 | src/core/lib/iomgr/closure.c |
| 3266 | src/core/lib/iomgr/combiner.c |
| 3267 | src/core/lib/iomgr/endpoint.c |
| 3268 | src/core/lib/iomgr/endpoint_pair_posix.c |
| 3269 | src/core/lib/iomgr/endpoint_pair_uv.c |
| 3270 | src/core/lib/iomgr/endpoint_pair_windows.c |
| 3271 | src/core/lib/iomgr/error.c |
| 3272 | src/core/lib/iomgr/ev_epoll_linux.c |
| 3273 | src/core/lib/iomgr/ev_poll_posix.c |
| 3274 | src/core/lib/iomgr/ev_posix.c |
| 3275 | src/core/lib/iomgr/exec_ctx.c |
| 3276 | src/core/lib/iomgr/executor.c |
| 3277 | src/core/lib/iomgr/iocp_windows.c |
| 3278 | src/core/lib/iomgr/iomgr.c |
| 3279 | src/core/lib/iomgr/iomgr_posix.c |
| 3280 | src/core/lib/iomgr/iomgr_uv.c |
| 3281 | src/core/lib/iomgr/iomgr_windows.c |
| 3282 | src/core/lib/iomgr/load_file.c |
| 3283 | src/core/lib/iomgr/network_status_tracker.c |
| 3284 | src/core/lib/iomgr/polling_entity.c |
| 3285 | src/core/lib/iomgr/pollset_set_uv.c |
| 3286 | src/core/lib/iomgr/pollset_set_windows.c |
| 3287 | src/core/lib/iomgr/pollset_uv.c |
| 3288 | src/core/lib/iomgr/pollset_windows.c |
| 3289 | src/core/lib/iomgr/resolve_address_posix.c |
| 3290 | src/core/lib/iomgr/resolve_address_uv.c |
| 3291 | src/core/lib/iomgr/resolve_address_windows.c |
| 3292 | src/core/lib/iomgr/resource_quota.c |
| 3293 | src/core/lib/iomgr/sockaddr_utils.c |
| 3294 | src/core/lib/iomgr/socket_factory_posix.c |
| 3295 | src/core/lib/iomgr/socket_mutator.c |
| 3296 | src/core/lib/iomgr/socket_utils_common_posix.c |
| 3297 | src/core/lib/iomgr/socket_utils_linux.c |
| 3298 | src/core/lib/iomgr/socket_utils_posix.c |
| 3299 | src/core/lib/iomgr/socket_utils_uv.c |
| 3300 | src/core/lib/iomgr/socket_utils_windows.c |
| 3301 | src/core/lib/iomgr/socket_windows.c |
| 3302 | src/core/lib/iomgr/tcp_client_posix.c |
| 3303 | src/core/lib/iomgr/tcp_client_uv.c |
| 3304 | src/core/lib/iomgr/tcp_client_windows.c |
| 3305 | src/core/lib/iomgr/tcp_posix.c |
| 3306 | src/core/lib/iomgr/tcp_server_posix.c |
| 3307 | src/core/lib/iomgr/tcp_server_utils_posix_common.c |
| 3308 | src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c |
| 3309 | src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c |
| 3310 | src/core/lib/iomgr/tcp_server_uv.c |
| 3311 | src/core/lib/iomgr/tcp_server_windows.c |
| 3312 | src/core/lib/iomgr/tcp_uv.c |
| 3313 | src/core/lib/iomgr/tcp_windows.c |
| 3314 | src/core/lib/iomgr/time_averaged_stats.c |
| 3315 | src/core/lib/iomgr/timer_generic.c |
| 3316 | src/core/lib/iomgr/timer_heap.c |
| 3317 | src/core/lib/iomgr/timer_uv.c |
| 3318 | src/core/lib/iomgr/udp_server.c |
| 3319 | src/core/lib/iomgr/unix_sockets_posix.c |
| 3320 | src/core/lib/iomgr/unix_sockets_posix_noop.c |
| 3321 | src/core/lib/iomgr/wakeup_fd_cv.c |
| 3322 | src/core/lib/iomgr/wakeup_fd_eventfd.c |
| 3323 | src/core/lib/iomgr/wakeup_fd_nospecial.c |
| 3324 | src/core/lib/iomgr/wakeup_fd_pipe.c |
| 3325 | src/core/lib/iomgr/wakeup_fd_posix.c |
| 3326 | src/core/lib/iomgr/workqueue_uv.c |
| 3327 | src/core/lib/iomgr/workqueue_windows.c |
| 3328 | src/core/lib/json/json.c |
| 3329 | src/core/lib/json/json_reader.c |
| 3330 | src/core/lib/json/json_string.c |
| 3331 | src/core/lib/json/json_writer.c |
| 3332 | src/core/lib/slice/b64.c |
| 3333 | src/core/lib/slice/percent_encoding.c |
| 3334 | src/core/lib/slice/slice.c |
| 3335 | src/core/lib/slice/slice_buffer.c |
| 3336 | src/core/lib/slice/slice_hash_table.c |
| 3337 | src/core/lib/slice/slice_intern.c |
| 3338 | src/core/lib/slice/slice_string_helpers.c |
| 3339 | src/core/lib/surface/alarm.c |
| 3340 | src/core/lib/surface/api_trace.c |
| 3341 | src/core/lib/surface/byte_buffer.c |
| 3342 | src/core/lib/surface/byte_buffer_reader.c |
| 3343 | src/core/lib/surface/call.c |
| 3344 | src/core/lib/surface/call_details.c |
| 3345 | src/core/lib/surface/call_log_batch.c |
| 3346 | src/core/lib/surface/channel.c |
| 3347 | src/core/lib/surface/channel_init.c |
| 3348 | src/core/lib/surface/channel_ping.c |
| 3349 | src/core/lib/surface/channel_stack_type.c |
| 3350 | src/core/lib/surface/completion_queue.c |
| 3351 | src/core/lib/surface/completion_queue_factory.c |
| 3352 | src/core/lib/surface/event_string.c |
| 3353 | src/core/lib/surface/lame_client.c |
| 3354 | src/core/lib/surface/metadata_array.c |
| 3355 | src/core/lib/surface/server.c |
| 3356 | src/core/lib/surface/validate_metadata.c |
| 3357 | src/core/lib/surface/version.c |
| 3358 | src/core/lib/transport/bdp_estimator.c |
| 3359 | src/core/lib/transport/byte_stream.c |
| 3360 | src/core/lib/transport/connectivity_state.c |
| 3361 | src/core/lib/transport/error_utils.c |
| 3362 | src/core/lib/transport/metadata.c |
| 3363 | src/core/lib/transport/metadata_batch.c |
| 3364 | src/core/lib/transport/pid_controller.c |
| 3365 | src/core/lib/transport/service_config.c |
| 3366 | src/core/lib/transport/static_metadata.c |
| 3367 | src/core/lib/transport/status_conversion.c |
| 3368 | src/core/lib/transport/timeout_encoding.c |
| 3369 | src/core/lib/transport/transport.c |
| 3370 | src/core/lib/transport/transport_op_string.c |
| 3371 | third_party/nanopb/pb_common.c |
| 3372 | third_party/nanopb/pb_decode.c |
| 3373 | third_party/nanopb/pb_encode.c |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3374 | src/cpp/codegen/codegen_init.cc |
| 3375 | ) |
| 3376 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 3377 | if(WIN32 AND MSVC) |
| 3378 | set_target_properties(grpc++_unsecure PROPERTIES COMPILE_PDB_NAME "grpc++_unsecure" |
| 3379 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 3380 | ) |
| 3381 | if (gRPC_INSTALL) |
| 3382 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc++_unsecure.pdb |
| 3383 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 3384 | ) |
| 3385 | endif() |
| 3386 | endif() |
| 3387 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 3388 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3389 | target_include_directories(grpc++_unsecure |
| 3390 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 3391 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 3392 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 3393 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 3394 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3395 | PRIVATE ${BENCHMARK}/include |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3396 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 3397 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | 8076d2b | 2016-08-25 13:23:13 -0700 | [diff] [blame] | 3398 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 3399 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 3400 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3401 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3402 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3403 | ) |
| 3404 | |
| 3405 | target_link_libraries(grpc++_unsecure |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 3406 | ${_gRPC_BASELIB_LIBRARIES} |
| 3407 | ${_gRPC_PROTOBUF_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3408 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3409 | gpr |
| 3410 | grpc_unsecure |
| 3411 | ) |
| 3412 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 3413 | foreach(_hdr |
| 3414 | include/grpc++/alarm.h |
| 3415 | include/grpc++/channel.h |
| 3416 | include/grpc++/client_context.h |
| 3417 | include/grpc++/completion_queue.h |
| 3418 | include/grpc++/create_channel.h |
| 3419 | include/grpc++/create_channel_posix.h |
yang-g | 0498124 | 2016-12-01 11:53:08 -0800 | [diff] [blame] | 3420 | include/grpc++/ext/health_check_service_server_builder_option.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 3421 | include/grpc++/generic/async_generic_service.h |
| 3422 | include/grpc++/generic/generic_stub.h |
| 3423 | include/grpc++/grpc++.h |
yang-g | 1accb12 | 2016-12-28 10:38:04 -0800 | [diff] [blame] | 3424 | include/grpc++/health_check_service_interface.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 3425 | include/grpc++/impl/call.h |
Craig Tiller | 4751c28 | 2017-01-10 14:29:00 -0800 | [diff] [blame] | 3426 | include/grpc++/impl/channel_argument_option.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 3427 | include/grpc++/impl/client_unary_call.h |
| 3428 | include/grpc++/impl/codegen/core_codegen.h |
| 3429 | include/grpc++/impl/grpc_library.h |
| 3430 | include/grpc++/impl/method_handler_impl.h |
| 3431 | include/grpc++/impl/rpc_method.h |
| 3432 | include/grpc++/impl/rpc_service_method.h |
| 3433 | include/grpc++/impl/serialization_traits.h |
| 3434 | include/grpc++/impl/server_builder_option.h |
| 3435 | include/grpc++/impl/server_builder_plugin.h |
| 3436 | include/grpc++/impl/server_initializer.h |
| 3437 | include/grpc++/impl/service_type.h |
Craig Tiller | 20afa3d | 2016-10-17 14:52:14 -0700 | [diff] [blame] | 3438 | include/grpc++/resource_quota.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 3439 | include/grpc++/security/auth_context.h |
| 3440 | include/grpc++/security/auth_metadata_processor.h |
| 3441 | include/grpc++/security/credentials.h |
| 3442 | include/grpc++/security/server_credentials.h |
| 3443 | include/grpc++/server.h |
| 3444 | include/grpc++/server_builder.h |
| 3445 | include/grpc++/server_context.h |
| 3446 | include/grpc++/server_posix.h |
| 3447 | include/grpc++/support/async_stream.h |
| 3448 | include/grpc++/support/async_unary_call.h |
| 3449 | include/grpc++/support/byte_buffer.h |
| 3450 | include/grpc++/support/channel_arguments.h |
| 3451 | include/grpc++/support/config.h |
| 3452 | include/grpc++/support/slice.h |
| 3453 | include/grpc++/support/status.h |
| 3454 | include/grpc++/support/status_code_enum.h |
| 3455 | include/grpc++/support/string_ref.h |
| 3456 | include/grpc++/support/stub_options.h |
| 3457 | include/grpc++/support/sync_stream.h |
| 3458 | include/grpc++/support/time.h |
| 3459 | include/grpc++/impl/codegen/async_stream.h |
| 3460 | include/grpc++/impl/codegen/async_unary_call.h |
| 3461 | include/grpc++/impl/codegen/call.h |
| 3462 | include/grpc++/impl/codegen/call_hook.h |
| 3463 | include/grpc++/impl/codegen/channel_interface.h |
| 3464 | include/grpc++/impl/codegen/client_context.h |
| 3465 | include/grpc++/impl/codegen/client_unary_call.h |
| 3466 | include/grpc++/impl/codegen/completion_queue.h |
| 3467 | include/grpc++/impl/codegen/completion_queue_tag.h |
| 3468 | include/grpc++/impl/codegen/config.h |
| 3469 | include/grpc++/impl/codegen/core_codegen_interface.h |
| 3470 | include/grpc++/impl/codegen/create_auth_context.h |
| 3471 | include/grpc++/impl/codegen/grpc_library.h |
yang-g | 988b47c | 2017-01-31 09:51:45 -0800 | [diff] [blame] | 3472 | include/grpc++/impl/codegen/metadata_map.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 3473 | include/grpc++/impl/codegen/method_handler_impl.h |
| 3474 | include/grpc++/impl/codegen/rpc_method.h |
| 3475 | include/grpc++/impl/codegen/rpc_service_method.h |
| 3476 | include/grpc++/impl/codegen/security/auth_context.h |
| 3477 | include/grpc++/impl/codegen/serialization_traits.h |
| 3478 | include/grpc++/impl/codegen/server_context.h |
| 3479 | include/grpc++/impl/codegen/server_interface.h |
| 3480 | include/grpc++/impl/codegen/service_type.h |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 3481 | include/grpc++/impl/codegen/slice.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 3482 | include/grpc++/impl/codegen/status.h |
| 3483 | include/grpc++/impl/codegen/status_code_enum.h |
yang-g | d558149 | 2016-09-06 14:05:53 -0700 | [diff] [blame] | 3484 | include/grpc++/impl/codegen/status_helper.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 3485 | include/grpc++/impl/codegen/string_ref.h |
| 3486 | include/grpc++/impl/codegen/stub_options.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 3487 | include/grpc++/impl/codegen/sync_stream.h |
| 3488 | include/grpc++/impl/codegen/time.h |
Nicolas "Pixel" Noble | 87a1081 | 2016-09-29 01:31:54 +0200 | [diff] [blame] | 3489 | include/grpc/impl/codegen/byte_buffer_reader.h |
| 3490 | include/grpc/impl/codegen/compression_types.h |
| 3491 | include/grpc/impl/codegen/connectivity_state.h |
Craig Tiller | b995e8b | 2016-12-12 06:36:43 -0800 | [diff] [blame] | 3492 | include/grpc/impl/codegen/exec_ctx_fwd.h |
Nicolas "Pixel" Noble | 87a1081 | 2016-09-29 01:31:54 +0200 | [diff] [blame] | 3493 | include/grpc/impl/codegen/grpc_types.h |
| 3494 | include/grpc/impl/codegen/propagation_bits.h |
Craig Tiller | 790f6af | 2017-03-30 12:39:24 -0700 | [diff] [blame] | 3495 | include/grpc/impl/codegen/slice.h |
Nicolas "Pixel" Noble | 87a1081 | 2016-09-29 01:31:54 +0200 | [diff] [blame] | 3496 | include/grpc/impl/codegen/status.h |
| 3497 | include/grpc/impl/codegen/atm.h |
| 3498 | include/grpc/impl/codegen/atm_gcc_atomic.h |
| 3499 | include/grpc/impl/codegen/atm_gcc_sync.h |
| 3500 | include/grpc/impl/codegen/atm_windows.h |
Mark D. Roth | 4d2ea02 | 2016-12-12 07:12:27 -0800 | [diff] [blame] | 3501 | include/grpc/impl/codegen/gpr_slice.h |
Nicolas "Pixel" Noble | 87a1081 | 2016-09-29 01:31:54 +0200 | [diff] [blame] | 3502 | include/grpc/impl/codegen/gpr_types.h |
| 3503 | include/grpc/impl/codegen/port_platform.h |
Nicolas "Pixel" Noble | 87a1081 | 2016-09-29 01:31:54 +0200 | [diff] [blame] | 3504 | include/grpc/impl/codegen/sync.h |
| 3505 | include/grpc/impl/codegen/sync_generic.h |
| 3506 | include/grpc/impl/codegen/sync_posix.h |
| 3507 | include/grpc/impl/codegen/sync_windows.h |
Craig Tiller | 790f6af | 2017-03-30 12:39:24 -0700 | [diff] [blame] | 3508 | include/grpc/byte_buffer.h |
| 3509 | include/grpc/byte_buffer_reader.h |
| 3510 | include/grpc/compression.h |
| 3511 | include/grpc/grpc.h |
| 3512 | include/grpc/grpc_posix.h |
| 3513 | include/grpc/grpc_security_constants.h |
| 3514 | include/grpc/load_reporting.h |
| 3515 | include/grpc/slice.h |
| 3516 | include/grpc/slice_buffer.h |
| 3517 | include/grpc/status.h |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 3518 | ) |
| 3519 | string(REPLACE "include/" "" _path ${_hdr}) |
| 3520 | get_filename_component(_path ${_path} PATH) |
| 3521 | install(FILES ${_hdr} |
| 3522 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 3523 | ) |
| 3524 | endforeach() |
| 3525 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 3526 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 3527 | if (gRPC_INSTALL) |
| 3528 | install(TARGETS grpc++_unsecure EXPORT gRPCTargets |
| 3529 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 3530 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 3531 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 3532 | ) |
| 3533 | endif() |
| 3534 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3535 | if (gRPC_BUILD_TESTS) |
| 3536 | |
Craig Tiller | 5e32153 | 2017-03-03 08:50:25 -0800 | [diff] [blame] | 3537 | add_library(grpc_benchmark |
Craig Tiller | f09ec59 | 2017-03-03 16:52:37 -0800 | [diff] [blame] | 3538 | test/cpp/microbenchmarks/helpers.cc |
Craig Tiller | 5e32153 | 2017-03-03 08:50:25 -0800 | [diff] [blame] | 3539 | ) |
| 3540 | |
| 3541 | if(WIN32 AND MSVC) |
| 3542 | set_target_properties(grpc_benchmark PROPERTIES COMPILE_PDB_NAME "grpc_benchmark" |
| 3543 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 3544 | ) |
| 3545 | if (gRPC_INSTALL) |
| 3546 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_benchmark.pdb |
| 3547 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 3548 | ) |
| 3549 | endif() |
| 3550 | endif() |
| 3551 | |
| 3552 | |
| 3553 | target_include_directories(grpc_benchmark |
| 3554 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 3555 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 3556 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 3557 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 3558 | PRIVATE ${ZLIB_INCLUDE_DIR} |
| 3559 | PRIVATE ${BENCHMARK}/include |
| 3560 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 3561 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | 9bc0d82 | 2017-03-17 13:02:03 -0700 | [diff] [blame] | 3562 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 3563 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 3564 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | 5e32153 | 2017-03-03 08:50:25 -0800 | [diff] [blame] | 3565 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 3566 | PRIVATE third_party/googletest/include |
| 3567 | PRIVATE third_party/googletest |
| 3568 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 3569 | ) |
| 3570 | |
| 3571 | target_link_libraries(grpc_benchmark |
| 3572 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 3573 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 3574 | benchmark |
| 3575 | grpc++ |
Craig Tiller | e067b6e | 2017-03-06 14:46:37 -0800 | [diff] [blame] | 3576 | grpc_test_util |
Craig Tiller | 5e32153 | 2017-03-03 08:50:25 -0800 | [diff] [blame] | 3577 | grpc |
| 3578 | ${_gRPC_GFLAGS_LIBRARIES} |
| 3579 | ) |
| 3580 | |
| 3581 | |
| 3582 | endif (gRPC_BUILD_TESTS) |
| 3583 | if (gRPC_BUILD_TESTS) |
| 3584 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3585 | add_library(grpc_cli_libs |
| 3586 | test/cpp/util/cli_call.cc |
| 3587 | test/cpp/util/cli_credentials.cc |
| 3588 | test/cpp/util/grpc_tool.cc |
| 3589 | test/cpp/util/proto_file_parser.cc |
| 3590 | test/cpp/util/service_describer.cc |
| 3591 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.cc |
| 3592 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.cc |
| 3593 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.pb.h |
| 3594 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h |
| 3595 | ) |
| 3596 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 3597 | if(WIN32 AND MSVC) |
| 3598 | set_target_properties(grpc_cli_libs PROPERTIES COMPILE_PDB_NAME "grpc_cli_libs" |
| 3599 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 3600 | ) |
| 3601 | if (gRPC_INSTALL) |
| 3602 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_cli_libs.pdb |
| 3603 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 3604 | ) |
| 3605 | endif() |
| 3606 | endif() |
| 3607 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3608 | protobuf_generate_grpc_cpp( |
| 3609 | src/proto/grpc/reflection/v1alpha/reflection.proto |
| 3610 | ) |
| 3611 | |
| 3612 | target_include_directories(grpc_cli_libs |
| 3613 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 3614 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 3615 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 3616 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 3617 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3618 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3619 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 3620 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 3621 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 3622 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 3623 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3624 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 3625 | PRIVATE third_party/googletest/include |
| 3626 | PRIVATE third_party/googletest |
| 3627 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 3628 | ) |
| 3629 | |
| 3630 | target_link_libraries(grpc_cli_libs |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3631 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 3632 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3633 | grpc++_proto_reflection_desc_db |
| 3634 | grpc++ |
| 3635 | ) |
| 3636 | |
| 3637 | foreach(_hdr |
| 3638 | include/grpc++/impl/codegen/config_protobuf.h |
| 3639 | ) |
| 3640 | string(REPLACE "include/" "" _path ${_hdr}) |
| 3641 | get_filename_component(_path ${_path} PATH) |
| 3642 | install(FILES ${_hdr} |
| 3643 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 3644 | ) |
| 3645 | endforeach() |
| 3646 | |
| 3647 | endif (gRPC_BUILD_TESTS) |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 3648 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3649 | add_library(grpc_plugin_support |
| 3650 | src/compiler/cpp_generator.cc |
| 3651 | src/compiler/csharp_generator.cc |
| 3652 | src/compiler/node_generator.cc |
| 3653 | src/compiler/objective_c_generator.cc |
Stanley Cheung | 857a130 | 2016-09-29 17:26:29 -0700 | [diff] [blame] | 3654 | src/compiler/php_generator.cc |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3655 | src/compiler/python_generator.cc |
| 3656 | src/compiler/ruby_generator.cc |
| 3657 | ) |
| 3658 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 3659 | if(WIN32 AND MSVC) |
| 3660 | set_target_properties(grpc_plugin_support PROPERTIES COMPILE_PDB_NAME "grpc_plugin_support" |
| 3661 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 3662 | ) |
| 3663 | if (gRPC_INSTALL) |
| 3664 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_plugin_support.pdb |
| 3665 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 3666 | ) |
| 3667 | endif() |
| 3668 | endif() |
| 3669 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 3670 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3671 | target_include_directories(grpc_plugin_support |
| 3672 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 3673 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 3674 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 3675 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 3676 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3677 | PRIVATE ${BENCHMARK}/include |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3678 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 3679 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | 8076d2b | 2016-08-25 13:23:13 -0700 | [diff] [blame] | 3680 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 3681 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 3682 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3683 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3684 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3685 | ) |
| 3686 | |
| 3687 | target_link_libraries(grpc_plugin_support |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 3688 | ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3689 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 3690 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 3691 | ) |
| 3692 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 3693 | foreach(_hdr |
| 3694 | include/grpc++/impl/codegen/config_protobuf.h |
| 3695 | ) |
| 3696 | string(REPLACE "include/" "" _path ${_hdr}) |
| 3697 | get_filename_component(_path ${_path} PATH) |
| 3698 | install(FILES ${_hdr} |
| 3699 | DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_path}" |
| 3700 | ) |
| 3701 | endforeach() |
| 3702 | |
Jan Tattermusch | 54492aa | 2017-01-17 11:53:33 +0100 | [diff] [blame] | 3703 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 3704 | if (gRPC_INSTALL) |
| 3705 | install(TARGETS grpc_plugin_support EXPORT gRPCTargets |
| 3706 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 3707 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 3708 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 3709 | ) |
| 3710 | endif() |
| 3711 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3712 | if (gRPC_BUILD_TESTS) |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 3713 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3714 | add_library(http2_client_main |
| 3715 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc |
| 3716 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc |
| 3717 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h |
| 3718 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h |
| 3719 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc |
| 3720 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc |
| 3721 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h |
| 3722 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h |
| 3723 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc |
| 3724 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc |
| 3725 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h |
| 3726 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h |
| 3727 | test/cpp/interop/http2_client.cc |
| 3728 | ) |
| 3729 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 3730 | if(WIN32 AND MSVC) |
| 3731 | set_target_properties(http2_client_main PROPERTIES COMPILE_PDB_NAME "http2_client_main" |
| 3732 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 3733 | ) |
| 3734 | if (gRPC_INSTALL) |
| 3735 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/http2_client_main.pdb |
| 3736 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 3737 | ) |
| 3738 | endif() |
| 3739 | endif() |
| 3740 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3741 | protobuf_generate_grpc_cpp( |
| 3742 | src/proto/grpc/testing/empty.proto |
| 3743 | ) |
| 3744 | protobuf_generate_grpc_cpp( |
| 3745 | src/proto/grpc/testing/messages.proto |
| 3746 | ) |
| 3747 | protobuf_generate_grpc_cpp( |
| 3748 | src/proto/grpc/testing/test.proto |
| 3749 | ) |
| 3750 | |
| 3751 | target_include_directories(http2_client_main |
| 3752 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 3753 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 3754 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 3755 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 3756 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3757 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3758 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 3759 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 3760 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 3761 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 3762 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3763 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 3764 | PRIVATE third_party/googletest/include |
| 3765 | PRIVATE third_party/googletest |
| 3766 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 3767 | ) |
| 3768 | |
| 3769 | target_link_libraries(http2_client_main |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3770 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 3771 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3772 | grpc++_test_util |
| 3773 | grpc_test_util |
| 3774 | grpc++ |
| 3775 | grpc |
| 3776 | grpc++_test_config |
| 3777 | ) |
| 3778 | |
| 3779 | |
| 3780 | endif (gRPC_BUILD_TESTS) |
| 3781 | if (gRPC_BUILD_TESTS) |
| 3782 | |
| 3783 | add_library(interop_client_helper |
| 3784 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc |
| 3785 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc |
| 3786 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h |
| 3787 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h |
| 3788 | test/cpp/interop/client_helper.cc |
| 3789 | ) |
| 3790 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 3791 | if(WIN32 AND MSVC) |
| 3792 | set_target_properties(interop_client_helper PROPERTIES COMPILE_PDB_NAME "interop_client_helper" |
| 3793 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 3794 | ) |
| 3795 | if (gRPC_INSTALL) |
| 3796 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_client_helper.pdb |
| 3797 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 3798 | ) |
| 3799 | endif() |
| 3800 | endif() |
| 3801 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3802 | protobuf_generate_grpc_cpp( |
| 3803 | src/proto/grpc/testing/messages.proto |
| 3804 | ) |
| 3805 | |
| 3806 | target_include_directories(interop_client_helper |
| 3807 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 3808 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 3809 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 3810 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 3811 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3812 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3813 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 3814 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 3815 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 3816 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 3817 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3818 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 3819 | PRIVATE third_party/googletest/include |
| 3820 | PRIVATE third_party/googletest |
| 3821 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 3822 | ) |
| 3823 | |
| 3824 | target_link_libraries(interop_client_helper |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3825 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 3826 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3827 | grpc++_test_util |
| 3828 | grpc_test_util |
| 3829 | grpc++ |
| 3830 | grpc |
| 3831 | gpr |
| 3832 | ) |
| 3833 | |
| 3834 | |
| 3835 | endif (gRPC_BUILD_TESTS) |
| 3836 | if (gRPC_BUILD_TESTS) |
| 3837 | |
| 3838 | add_library(interop_client_main |
| 3839 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc |
| 3840 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc |
| 3841 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h |
| 3842 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h |
| 3843 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc |
| 3844 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc |
| 3845 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h |
| 3846 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h |
| 3847 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc |
| 3848 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc |
| 3849 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h |
| 3850 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h |
| 3851 | test/cpp/interop/client.cc |
| 3852 | test/cpp/interop/interop_client.cc |
| 3853 | ) |
| 3854 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 3855 | if(WIN32 AND MSVC) |
| 3856 | set_target_properties(interop_client_main PROPERTIES COMPILE_PDB_NAME "interop_client_main" |
| 3857 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 3858 | ) |
| 3859 | if (gRPC_INSTALL) |
| 3860 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_client_main.pdb |
| 3861 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 3862 | ) |
| 3863 | endif() |
| 3864 | endif() |
| 3865 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3866 | protobuf_generate_grpc_cpp( |
| 3867 | src/proto/grpc/testing/empty.proto |
| 3868 | ) |
| 3869 | protobuf_generate_grpc_cpp( |
| 3870 | src/proto/grpc/testing/messages.proto |
| 3871 | ) |
| 3872 | protobuf_generate_grpc_cpp( |
| 3873 | src/proto/grpc/testing/test.proto |
| 3874 | ) |
| 3875 | |
| 3876 | target_include_directories(interop_client_main |
| 3877 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 3878 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 3879 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 3880 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 3881 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3882 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3883 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 3884 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 3885 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 3886 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 3887 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3888 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 3889 | PRIVATE third_party/googletest/include |
| 3890 | PRIVATE third_party/googletest |
| 3891 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 3892 | ) |
| 3893 | |
| 3894 | target_link_libraries(interop_client_main |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3895 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 3896 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3897 | interop_client_helper |
| 3898 | grpc++_test_util |
| 3899 | grpc_test_util |
| 3900 | grpc++ |
| 3901 | grpc |
| 3902 | gpr_test_util |
| 3903 | gpr |
| 3904 | grpc++_test_config |
| 3905 | ) |
| 3906 | |
| 3907 | |
| 3908 | endif (gRPC_BUILD_TESTS) |
| 3909 | if (gRPC_BUILD_TESTS) |
| 3910 | |
| 3911 | add_library(interop_server_helper |
| 3912 | test/cpp/interop/server_helper.cc |
| 3913 | ) |
| 3914 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 3915 | if(WIN32 AND MSVC) |
| 3916 | set_target_properties(interop_server_helper PROPERTIES COMPILE_PDB_NAME "interop_server_helper" |
| 3917 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 3918 | ) |
| 3919 | if (gRPC_INSTALL) |
| 3920 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_server_helper.pdb |
| 3921 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 3922 | ) |
| 3923 | endif() |
| 3924 | endif() |
| 3925 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3926 | |
| 3927 | target_include_directories(interop_server_helper |
| 3928 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 3929 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 3930 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 3931 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 3932 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3933 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3934 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 3935 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 3936 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 3937 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 3938 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3939 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 3940 | PRIVATE third_party/googletest/include |
| 3941 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3942 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3943 | ) |
| 3944 | |
| 3945 | target_link_libraries(interop_server_helper |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 3946 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 3947 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3948 | grpc++_test_util |
| 3949 | grpc_test_util |
| 3950 | grpc++ |
| 3951 | grpc |
| 3952 | gpr |
| 3953 | ) |
| 3954 | |
| 3955 | |
| 3956 | endif (gRPC_BUILD_TESTS) |
| 3957 | if (gRPC_BUILD_TESTS) |
| 3958 | |
| 3959 | add_library(interop_server_lib |
| 3960 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc |
| 3961 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc |
| 3962 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h |
| 3963 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h |
| 3964 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc |
| 3965 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc |
| 3966 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h |
| 3967 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h |
| 3968 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc |
| 3969 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc |
| 3970 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h |
| 3971 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h |
| 3972 | test/cpp/interop/interop_server.cc |
| 3973 | ) |
| 3974 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 3975 | if(WIN32 AND MSVC) |
| 3976 | set_target_properties(interop_server_lib PROPERTIES COMPILE_PDB_NAME "interop_server_lib" |
| 3977 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 3978 | ) |
| 3979 | if (gRPC_INSTALL) |
| 3980 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_server_lib.pdb |
| 3981 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 3982 | ) |
| 3983 | endif() |
| 3984 | endif() |
| 3985 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 3986 | protobuf_generate_grpc_cpp( |
| 3987 | src/proto/grpc/testing/empty.proto |
| 3988 | ) |
| 3989 | protobuf_generate_grpc_cpp( |
| 3990 | src/proto/grpc/testing/messages.proto |
| 3991 | ) |
| 3992 | protobuf_generate_grpc_cpp( |
| 3993 | src/proto/grpc/testing/test.proto |
| 3994 | ) |
| 3995 | |
| 3996 | target_include_directories(interop_server_lib |
| 3997 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 3998 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 3999 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4000 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 4001 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4002 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4003 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4004 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 4005 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4006 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 4007 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4008 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4009 | PRIVATE third_party/googletest/include |
| 4010 | PRIVATE third_party/googletest |
| 4011 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 4012 | ) |
| 4013 | |
| 4014 | target_link_libraries(interop_server_lib |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4015 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 4016 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4017 | interop_server_helper |
| 4018 | grpc++_test_util |
| 4019 | grpc_test_util |
| 4020 | grpc++ |
| 4021 | grpc |
| 4022 | gpr_test_util |
| 4023 | gpr |
| 4024 | grpc++_test_config |
| 4025 | ) |
| 4026 | |
| 4027 | |
| 4028 | endif (gRPC_BUILD_TESTS) |
| 4029 | if (gRPC_BUILD_TESTS) |
| 4030 | |
| 4031 | add_library(interop_server_main |
| 4032 | test/cpp/interop/interop_server_bootstrap.cc |
| 4033 | ) |
| 4034 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 4035 | if(WIN32 AND MSVC) |
| 4036 | set_target_properties(interop_server_main PROPERTIES COMPILE_PDB_NAME "interop_server_main" |
| 4037 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 4038 | ) |
| 4039 | if (gRPC_INSTALL) |
| 4040 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/interop_server_main.pdb |
| 4041 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 4042 | ) |
| 4043 | endif() |
| 4044 | endif() |
| 4045 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4046 | |
| 4047 | target_include_directories(interop_server_main |
| 4048 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4049 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4050 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4051 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 4052 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4053 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4054 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4055 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 4056 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4057 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 4058 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4059 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4060 | PRIVATE third_party/googletest/include |
| 4061 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4062 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4063 | ) |
| 4064 | |
| 4065 | target_link_libraries(interop_server_main |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4066 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 4067 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4068 | interop_server_lib |
| 4069 | ) |
| 4070 | |
| 4071 | |
| 4072 | endif (gRPC_BUILD_TESTS) |
| 4073 | if (gRPC_BUILD_TESTS) |
| 4074 | |
| 4075 | add_library(qps |
| 4076 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc |
| 4077 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc |
| 4078 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h |
| 4079 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h |
| 4080 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.cc |
| 4081 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.cc |
| 4082 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.h |
| 4083 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.h |
| 4084 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.cc |
| 4085 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.cc |
| 4086 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.h |
| 4087 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.h |
| 4088 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.cc |
| 4089 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.cc |
| 4090 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.h |
| 4091 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.h |
| 4092 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.cc |
| 4093 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.cc |
| 4094 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.h |
| 4095 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.h |
Nicolas "Pixel" Noble | b02dd01 | 2017-03-24 18:45:22 +0100 | [diff] [blame] | 4096 | test/cpp/qps/benchmark_config.cc |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4097 | test/cpp/qps/client_async.cc |
| 4098 | test/cpp/qps/client_sync.cc |
| 4099 | test/cpp/qps/driver.cc |
| 4100 | test/cpp/qps/parse_json.cc |
| 4101 | test/cpp/qps/qps_worker.cc |
| 4102 | test/cpp/qps/report.cc |
| 4103 | test/cpp/qps/server_async.cc |
| 4104 | test/cpp/qps/server_sync.cc |
| 4105 | test/cpp/qps/usage_timer.cc |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4106 | ) |
| 4107 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 4108 | if(WIN32 AND MSVC) |
| 4109 | set_target_properties(qps PROPERTIES COMPILE_PDB_NAME "qps" |
| 4110 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 4111 | ) |
| 4112 | if (gRPC_INSTALL) |
| 4113 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/qps.pdb |
| 4114 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 4115 | ) |
| 4116 | endif() |
| 4117 | endif() |
| 4118 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4119 | protobuf_generate_grpc_cpp( |
| 4120 | src/proto/grpc/testing/messages.proto |
| 4121 | ) |
| 4122 | protobuf_generate_grpc_cpp( |
| 4123 | src/proto/grpc/testing/payloads.proto |
| 4124 | ) |
| 4125 | protobuf_generate_grpc_cpp( |
| 4126 | src/proto/grpc/testing/stats.proto |
| 4127 | ) |
| 4128 | protobuf_generate_grpc_cpp( |
| 4129 | src/proto/grpc/testing/control.proto |
| 4130 | ) |
| 4131 | protobuf_generate_grpc_cpp( |
| 4132 | src/proto/grpc/testing/services.proto |
| 4133 | ) |
| 4134 | |
| 4135 | target_include_directories(qps |
| 4136 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4137 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4138 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4139 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 4140 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4141 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4142 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4143 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 4144 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4145 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 4146 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4147 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4148 | PRIVATE third_party/googletest/include |
| 4149 | PRIVATE third_party/googletest |
| 4150 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 4151 | ) |
| 4152 | |
| 4153 | target_link_libraries(qps |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4154 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 4155 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4156 | grpc_test_util |
| 4157 | grpc++_test_util |
| 4158 | grpc++ |
| 4159 | ) |
| 4160 | |
| 4161 | |
| 4162 | endif (gRPC_BUILD_TESTS) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4163 | |
Jan Tattermusch | c09656c | 2017-01-27 13:36:24 +0100 | [diff] [blame] | 4164 | add_library(grpc_csharp_ext SHARED |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4165 | src/csharp/ext/grpc_csharp_ext.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4166 | ) |
| 4167 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 4168 | if(WIN32 AND MSVC) |
| 4169 | set_target_properties(grpc_csharp_ext PROPERTIES COMPILE_PDB_NAME "grpc_csharp_ext" |
| 4170 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 4171 | ) |
| 4172 | if (gRPC_INSTALL) |
| 4173 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_csharp_ext.pdb |
| 4174 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 4175 | ) |
| 4176 | endif() |
| 4177 | endif() |
| 4178 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4179 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4180 | target_include_directories(grpc_csharp_ext |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4181 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4182 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4183 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4184 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 4185 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4186 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4187 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4188 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 4189 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4190 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 4191 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4192 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4193 | ) |
| 4194 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4195 | target_link_libraries(grpc_csharp_ext |
| 4196 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 4197 | grpc |
| 4198 | gpr |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4199 | ) |
| 4200 | |
| 4201 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4202 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4203 | if (gRPC_INSTALL) |
| 4204 | install(TARGETS grpc_csharp_ext EXPORT gRPCTargets |
| 4205 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 4206 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 4207 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 4208 | ) |
| 4209 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4210 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4211 | if (gRPC_BUILD_TESTS) |
| 4212 | |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 4213 | add_library(ares |
Yuchen Zeng | 6694bb0 | 2017-01-23 17:09:51 -0800 | [diff] [blame] | 4214 | third_party/cares/cares/ares__close_sockets.c |
| 4215 | third_party/cares/cares/ares__get_hostent.c |
| 4216 | third_party/cares/cares/ares__read_line.c |
| 4217 | third_party/cares/cares/ares__timeval.c |
| 4218 | third_party/cares/cares/ares_cancel.c |
| 4219 | third_party/cares/cares/ares_create_query.c |
| 4220 | third_party/cares/cares/ares_data.c |
| 4221 | third_party/cares/cares/ares_destroy.c |
| 4222 | third_party/cares/cares/ares_expand_name.c |
| 4223 | third_party/cares/cares/ares_expand_string.c |
| 4224 | third_party/cares/cares/ares_fds.c |
| 4225 | third_party/cares/cares/ares_free_hostent.c |
| 4226 | third_party/cares/cares/ares_free_string.c |
| 4227 | third_party/cares/cares/ares_getenv.c |
| 4228 | third_party/cares/cares/ares_gethostbyaddr.c |
| 4229 | third_party/cares/cares/ares_gethostbyname.c |
| 4230 | third_party/cares/cares/ares_getnameinfo.c |
| 4231 | third_party/cares/cares/ares_getopt.c |
| 4232 | third_party/cares/cares/ares_getsock.c |
| 4233 | third_party/cares/cares/ares_init.c |
| 4234 | third_party/cares/cares/ares_library_init.c |
| 4235 | third_party/cares/cares/ares_llist.c |
| 4236 | third_party/cares/cares/ares_mkquery.c |
| 4237 | third_party/cares/cares/ares_nowarn.c |
| 4238 | third_party/cares/cares/ares_options.c |
| 4239 | third_party/cares/cares/ares_parse_a_reply.c |
| 4240 | third_party/cares/cares/ares_parse_aaaa_reply.c |
| 4241 | third_party/cares/cares/ares_parse_mx_reply.c |
| 4242 | third_party/cares/cares/ares_parse_naptr_reply.c |
| 4243 | third_party/cares/cares/ares_parse_ns_reply.c |
| 4244 | third_party/cares/cares/ares_parse_ptr_reply.c |
| 4245 | third_party/cares/cares/ares_parse_soa_reply.c |
| 4246 | third_party/cares/cares/ares_parse_srv_reply.c |
| 4247 | third_party/cares/cares/ares_parse_txt_reply.c |
| 4248 | third_party/cares/cares/ares_platform.c |
| 4249 | third_party/cares/cares/ares_process.c |
| 4250 | third_party/cares/cares/ares_query.c |
| 4251 | third_party/cares/cares/ares_search.c |
| 4252 | third_party/cares/cares/ares_send.c |
| 4253 | third_party/cares/cares/ares_strcasecmp.c |
| 4254 | third_party/cares/cares/ares_strdup.c |
| 4255 | third_party/cares/cares/ares_strerror.c |
| 4256 | third_party/cares/cares/ares_timeout.c |
| 4257 | third_party/cares/cares/ares_version.c |
| 4258 | third_party/cares/cares/ares_writev.c |
| 4259 | third_party/cares/cares/bitncmp.c |
| 4260 | third_party/cares/cares/inet_net_pton.c |
| 4261 | third_party/cares/cares/inet_ntop.c |
| 4262 | third_party/cares/cares/windows_port.c |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 4263 | ) |
| 4264 | |
Yuchen Zeng | 2c97708 | 2017-02-27 13:35:41 -0800 | [diff] [blame] | 4265 | if(WIN32 AND MSVC) |
| 4266 | set_target_properties(ares PROPERTIES COMPILE_PDB_NAME "ares" |
| 4267 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 4268 | ) |
| 4269 | if (gRPC_INSTALL) |
| 4270 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ares.pdb |
| 4271 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 4272 | ) |
| 4273 | endif() |
| 4274 | endif() |
| 4275 | |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 4276 | |
| 4277 | target_include_directories(ares |
| 4278 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4279 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4280 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4281 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 4282 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Yuchen Zeng | 1492f6c | 2017-02-02 12:42:54 -0800 | [diff] [blame] | 4283 | PRIVATE ${BENCHMARK}/include |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 4284 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4285 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 4286 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4287 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 4288 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 4289 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4290 | ) |
| 4291 | |
| 4292 | target_link_libraries(ares |
| 4293 | ${_gRPC_SSL_LIBRARIES} |
Yuchen Zeng | 1492f6c | 2017-02-02 12:42:54 -0800 | [diff] [blame] | 4294 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 4295 | ) |
| 4296 | |
| 4297 | |
| 4298 | endif (gRPC_BUILD_TESTS) |
| 4299 | if (gRPC_BUILD_TESTS) |
| 4300 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4301 | add_library(bad_client_test |
| 4302 | test/core/bad_client/bad_client.c |
| 4303 | ) |
| 4304 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 4305 | if(WIN32 AND MSVC) |
| 4306 | set_target_properties(bad_client_test PROPERTIES COMPILE_PDB_NAME "bad_client_test" |
| 4307 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 4308 | ) |
| 4309 | if (gRPC_INSTALL) |
| 4310 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/bad_client_test.pdb |
| 4311 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 4312 | ) |
| 4313 | endif() |
| 4314 | endif() |
| 4315 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4316 | |
| 4317 | target_include_directories(bad_client_test |
| 4318 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4319 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4320 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4321 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 4322 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4323 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4324 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4325 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 4326 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4327 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 4328 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4329 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4330 | ) |
| 4331 | |
| 4332 | target_link_libraries(bad_client_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4333 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4334 | grpc_test_util_unsecure |
| 4335 | grpc_unsecure |
| 4336 | gpr_test_util |
| 4337 | gpr |
| 4338 | ) |
| 4339 | |
| 4340 | |
| 4341 | endif (gRPC_BUILD_TESTS) |
| 4342 | if (gRPC_BUILD_TESTS) |
| 4343 | |
| 4344 | add_library(bad_ssl_test_server |
| 4345 | test/core/bad_ssl/server_common.c |
| 4346 | ) |
| 4347 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 4348 | if(WIN32 AND MSVC) |
| 4349 | set_target_properties(bad_ssl_test_server PROPERTIES COMPILE_PDB_NAME "bad_ssl_test_server" |
| 4350 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 4351 | ) |
| 4352 | if (gRPC_INSTALL) |
| 4353 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/bad_ssl_test_server.pdb |
| 4354 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 4355 | ) |
| 4356 | endif() |
| 4357 | endif() |
| 4358 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4359 | |
| 4360 | target_include_directories(bad_ssl_test_server |
| 4361 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4362 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4363 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4364 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 4365 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4366 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4367 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4368 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 4369 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4370 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 4371 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4372 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4373 | ) |
| 4374 | |
| 4375 | target_link_libraries(bad_ssl_test_server |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4376 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4377 | grpc_test_util |
| 4378 | grpc |
| 4379 | gpr_test_util |
| 4380 | gpr |
| 4381 | ) |
| 4382 | |
| 4383 | |
| 4384 | endif (gRPC_BUILD_TESTS) |
| 4385 | if (gRPC_BUILD_TESTS) |
| 4386 | |
| 4387 | add_library(end2end_tests |
| 4388 | test/core/end2end/end2end_tests.c |
| 4389 | test/core/end2end/end2end_test_utils.c |
| 4390 | test/core/end2end/tests/authority_not_supported.c |
| 4391 | test/core/end2end/tests/bad_hostname.c |
| 4392 | test/core/end2end/tests/binary_metadata.c |
| 4393 | test/core/end2end/tests/call_creds.c |
| 4394 | test/core/end2end/tests/cancel_after_accept.c |
| 4395 | test/core/end2end/tests/cancel_after_client_done.c |
| 4396 | test/core/end2end/tests/cancel_after_invoke.c |
| 4397 | test/core/end2end/tests/cancel_before_invoke.c |
| 4398 | test/core/end2end/tests/cancel_in_a_vacuum.c |
| 4399 | test/core/end2end/tests/cancel_with_status.c |
| 4400 | test/core/end2end/tests/compressed_payload.c |
| 4401 | test/core/end2end/tests/connectivity.c |
| 4402 | test/core/end2end/tests/default_host.c |
| 4403 | test/core/end2end/tests/disappearing_server.c |
| 4404 | test/core/end2end/tests/empty_batch.c |
| 4405 | test/core/end2end/tests/filter_call_init_fails.c |
| 4406 | test/core/end2end/tests/filter_causes_close.c |
| 4407 | test/core/end2end/tests/filter_latency.c |
| 4408 | test/core/end2end/tests/graceful_server_shutdown.c |
| 4409 | test/core/end2end/tests/high_initial_seqno.c |
| 4410 | test/core/end2end/tests/hpack_size.c |
| 4411 | test/core/end2end/tests/idempotent_request.c |
| 4412 | test/core/end2end/tests/invoke_large_request.c |
Yuchen Zeng | 990d9fe | 2017-02-26 16:54:18 -0800 | [diff] [blame] | 4413 | test/core/end2end/tests/keepalive_timeout.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4414 | test/core/end2end/tests/large_metadata.c |
| 4415 | test/core/end2end/tests/load_reporting_hook.c |
| 4416 | test/core/end2end/tests/max_concurrent_streams.c |
Yuchen Zeng | 22321fc | 2017-03-28 19:10:09 -0700 | [diff] [blame] | 4417 | test/core/end2end/tests/max_connection_age.c |
Yuchen Zeng | b2caafc | 2017-03-29 01:54:08 -0700 | [diff] [blame] | 4418 | test/core/end2end/tests/max_connection_idle.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4419 | test/core/end2end/tests/max_message_length.c |
| 4420 | test/core/end2end/tests/negative_deadline.c |
| 4421 | test/core/end2end/tests/network_status_change.c |
| 4422 | test/core/end2end/tests/no_logging.c |
| 4423 | test/core/end2end/tests/no_op.c |
| 4424 | test/core/end2end/tests/payload.c |
| 4425 | test/core/end2end/tests/ping.c |
| 4426 | test/core/end2end/tests/ping_pong_streaming.c |
| 4427 | test/core/end2end/tests/registered_call.c |
| 4428 | test/core/end2end/tests/request_with_flags.c |
| 4429 | test/core/end2end/tests/request_with_payload.c |
| 4430 | test/core/end2end/tests/resource_quota_server.c |
| 4431 | test/core/end2end/tests/server_finishes_request.c |
| 4432 | test/core/end2end/tests/shutdown_finishes_calls.c |
| 4433 | test/core/end2end/tests/shutdown_finishes_tags.c |
| 4434 | test/core/end2end/tests/simple_cacheable_request.c |
| 4435 | test/core/end2end/tests/simple_delayed_request.c |
| 4436 | test/core/end2end/tests/simple_metadata.c |
| 4437 | test/core/end2end/tests/simple_request.c |
| 4438 | test/core/end2end/tests/streaming_error_response.c |
| 4439 | test/core/end2end/tests/trailing_metadata.c |
| 4440 | test/core/end2end/tests/write_buffering.c |
| 4441 | test/core/end2end/tests/write_buffering_at_end.c |
| 4442 | ) |
| 4443 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 4444 | if(WIN32 AND MSVC) |
| 4445 | set_target_properties(end2end_tests PROPERTIES COMPILE_PDB_NAME "end2end_tests" |
| 4446 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 4447 | ) |
| 4448 | if (gRPC_INSTALL) |
| 4449 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/end2end_tests.pdb |
| 4450 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 4451 | ) |
| 4452 | endif() |
| 4453 | endif() |
| 4454 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4455 | |
| 4456 | target_include_directories(end2end_tests |
| 4457 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4458 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4459 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4460 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 4461 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4462 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4463 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4464 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 4465 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4466 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 4467 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4468 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4469 | ) |
| 4470 | |
| 4471 | target_link_libraries(end2end_tests |
| 4472 | ${_gRPC_SSL_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4473 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4474 | grpc_test_util |
| 4475 | grpc |
| 4476 | gpr_test_util |
| 4477 | gpr |
| 4478 | ) |
| 4479 | |
| 4480 | |
| 4481 | endif (gRPC_BUILD_TESTS) |
| 4482 | if (gRPC_BUILD_TESTS) |
| 4483 | |
| 4484 | add_library(end2end_nosec_tests |
| 4485 | test/core/end2end/end2end_nosec_tests.c |
| 4486 | test/core/end2end/end2end_test_utils.c |
| 4487 | test/core/end2end/tests/authority_not_supported.c |
| 4488 | test/core/end2end/tests/bad_hostname.c |
| 4489 | test/core/end2end/tests/binary_metadata.c |
| 4490 | test/core/end2end/tests/cancel_after_accept.c |
| 4491 | test/core/end2end/tests/cancel_after_client_done.c |
| 4492 | test/core/end2end/tests/cancel_after_invoke.c |
| 4493 | test/core/end2end/tests/cancel_before_invoke.c |
| 4494 | test/core/end2end/tests/cancel_in_a_vacuum.c |
| 4495 | test/core/end2end/tests/cancel_with_status.c |
| 4496 | test/core/end2end/tests/compressed_payload.c |
| 4497 | test/core/end2end/tests/connectivity.c |
| 4498 | test/core/end2end/tests/default_host.c |
| 4499 | test/core/end2end/tests/disappearing_server.c |
| 4500 | test/core/end2end/tests/empty_batch.c |
| 4501 | test/core/end2end/tests/filter_call_init_fails.c |
| 4502 | test/core/end2end/tests/filter_causes_close.c |
| 4503 | test/core/end2end/tests/filter_latency.c |
| 4504 | test/core/end2end/tests/graceful_server_shutdown.c |
| 4505 | test/core/end2end/tests/high_initial_seqno.c |
| 4506 | test/core/end2end/tests/hpack_size.c |
| 4507 | test/core/end2end/tests/idempotent_request.c |
| 4508 | test/core/end2end/tests/invoke_large_request.c |
Yuchen Zeng | 990d9fe | 2017-02-26 16:54:18 -0800 | [diff] [blame] | 4509 | test/core/end2end/tests/keepalive_timeout.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4510 | test/core/end2end/tests/large_metadata.c |
| 4511 | test/core/end2end/tests/load_reporting_hook.c |
| 4512 | test/core/end2end/tests/max_concurrent_streams.c |
Yuchen Zeng | 22321fc | 2017-03-28 19:10:09 -0700 | [diff] [blame] | 4513 | test/core/end2end/tests/max_connection_age.c |
Yuchen Zeng | b2caafc | 2017-03-29 01:54:08 -0700 | [diff] [blame] | 4514 | test/core/end2end/tests/max_connection_idle.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4515 | test/core/end2end/tests/max_message_length.c |
| 4516 | test/core/end2end/tests/negative_deadline.c |
| 4517 | test/core/end2end/tests/network_status_change.c |
| 4518 | test/core/end2end/tests/no_logging.c |
| 4519 | test/core/end2end/tests/no_op.c |
| 4520 | test/core/end2end/tests/payload.c |
| 4521 | test/core/end2end/tests/ping.c |
| 4522 | test/core/end2end/tests/ping_pong_streaming.c |
| 4523 | test/core/end2end/tests/registered_call.c |
| 4524 | test/core/end2end/tests/request_with_flags.c |
| 4525 | test/core/end2end/tests/request_with_payload.c |
| 4526 | test/core/end2end/tests/resource_quota_server.c |
| 4527 | test/core/end2end/tests/server_finishes_request.c |
| 4528 | test/core/end2end/tests/shutdown_finishes_calls.c |
| 4529 | test/core/end2end/tests/shutdown_finishes_tags.c |
| 4530 | test/core/end2end/tests/simple_cacheable_request.c |
| 4531 | test/core/end2end/tests/simple_delayed_request.c |
| 4532 | test/core/end2end/tests/simple_metadata.c |
| 4533 | test/core/end2end/tests/simple_request.c |
| 4534 | test/core/end2end/tests/streaming_error_response.c |
| 4535 | test/core/end2end/tests/trailing_metadata.c |
| 4536 | test/core/end2end/tests/write_buffering.c |
| 4537 | test/core/end2end/tests/write_buffering_at_end.c |
| 4538 | ) |
| 4539 | |
Piotr Pietraszkiewicz | 7aff583 | 2017-02-09 11:12:33 +0100 | [diff] [blame] | 4540 | if(WIN32 AND MSVC) |
| 4541 | set_target_properties(end2end_nosec_tests PROPERTIES COMPILE_PDB_NAME "end2end_nosec_tests" |
| 4542 | COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" |
| 4543 | ) |
| 4544 | if (gRPC_INSTALL) |
| 4545 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/end2end_nosec_tests.pdb |
| 4546 | DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL |
| 4547 | ) |
| 4548 | endif() |
| 4549 | endif() |
| 4550 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4551 | |
| 4552 | target_include_directories(end2end_nosec_tests |
| 4553 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4554 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4555 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4556 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 4557 | PRIVATE ${ZLIB_INCLUDE_DIR} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4558 | PRIVATE ${BENCHMARK}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4559 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4560 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | e02cbeb | 2017-01-19 16:33:30 -0800 | [diff] [blame] | 4561 | PRIVATE ${CARES_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4562 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
Yuchen Zeng | d6b4985 | 2017-03-20 01:44:27 -0700 | [diff] [blame] | 4563 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4564 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4565 | ) |
| 4566 | |
| 4567 | target_link_libraries(end2end_nosec_tests |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4568 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4569 | grpc_test_util_unsecure |
| 4570 | grpc_unsecure |
| 4571 | gpr_test_util |
| 4572 | gpr |
| 4573 | ) |
| 4574 | |
| 4575 | |
| 4576 | endif (gRPC_BUILD_TESTS) |
| 4577 | |
| 4578 | if (gRPC_BUILD_TESTS) |
| 4579 | |
| 4580 | add_executable(alarm_test |
| 4581 | test/core/surface/alarm_test.c |
| 4582 | ) |
| 4583 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4584 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4585 | target_include_directories(alarm_test |
| 4586 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4587 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4588 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4589 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4590 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4591 | PRIVATE ${ZLIB_ROOT_DIR} |
| 4592 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4593 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4594 | PRIVATE ${CARES_INCLUDE_DIR} |
| 4595 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 4596 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4597 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4598 | ) |
| 4599 | |
| 4600 | target_link_libraries(alarm_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4601 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4602 | grpc_test_util |
| 4603 | grpc |
| 4604 | gpr_test_util |
| 4605 | gpr |
| 4606 | ) |
| 4607 | |
| 4608 | endif (gRPC_BUILD_TESTS) |
| 4609 | if (gRPC_BUILD_TESTS) |
| 4610 | |
| 4611 | add_executable(algorithm_test |
| 4612 | test/core/compression/algorithm_test.c |
| 4613 | ) |
| 4614 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4615 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4616 | target_include_directories(algorithm_test |
| 4617 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4618 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4619 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4620 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4621 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4622 | PRIVATE ${ZLIB_ROOT_DIR} |
| 4623 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4624 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4625 | PRIVATE ${CARES_INCLUDE_DIR} |
| 4626 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 4627 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4628 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4629 | ) |
| 4630 | |
| 4631 | target_link_libraries(algorithm_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4632 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4633 | grpc_test_util |
| 4634 | grpc |
| 4635 | gpr_test_util |
| 4636 | gpr |
| 4637 | ) |
| 4638 | |
| 4639 | endif (gRPC_BUILD_TESTS) |
| 4640 | if (gRPC_BUILD_TESTS) |
| 4641 | |
| 4642 | add_executable(alloc_test |
| 4643 | test/core/support/alloc_test.c |
| 4644 | ) |
| 4645 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4646 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4647 | target_include_directories(alloc_test |
| 4648 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4649 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4650 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4651 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4652 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4653 | PRIVATE ${ZLIB_ROOT_DIR} |
| 4654 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4655 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4656 | PRIVATE ${CARES_INCLUDE_DIR} |
| 4657 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 4658 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4659 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4660 | ) |
| 4661 | |
| 4662 | target_link_libraries(alloc_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4663 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4664 | gpr_test_util |
| 4665 | gpr |
| 4666 | ) |
| 4667 | |
| 4668 | endif (gRPC_BUILD_TESTS) |
| 4669 | if (gRPC_BUILD_TESTS) |
| 4670 | |
| 4671 | add_executable(alpn_test |
| 4672 | test/core/transport/chttp2/alpn_test.c |
| 4673 | ) |
| 4674 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4675 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4676 | target_include_directories(alpn_test |
| 4677 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4678 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4679 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4680 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4681 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4682 | PRIVATE ${ZLIB_ROOT_DIR} |
| 4683 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4684 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4685 | PRIVATE ${CARES_INCLUDE_DIR} |
| 4686 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 4687 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4688 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4689 | ) |
| 4690 | |
| 4691 | target_link_libraries(alpn_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4692 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4693 | grpc_test_util |
| 4694 | grpc |
| 4695 | gpr_test_util |
| 4696 | gpr |
| 4697 | ) |
| 4698 | |
| 4699 | endif (gRPC_BUILD_TESTS) |
| 4700 | if (gRPC_BUILD_TESTS) |
| 4701 | |
Craig Tiller | 9202b3f | 2017-03-12 22:30:38 -0700 | [diff] [blame] | 4702 | add_executable(arena_test |
| 4703 | test/core/support/arena_test.c |
| 4704 | ) |
| 4705 | |
| 4706 | |
| 4707 | target_include_directories(arena_test |
| 4708 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4709 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4710 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4711 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 4712 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 4713 | PRIVATE ${ZLIB_ROOT_DIR} |
| 4714 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4715 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4716 | PRIVATE ${CARES_INCLUDE_DIR} |
| 4717 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 4718 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | 9202b3f | 2017-03-12 22:30:38 -0700 | [diff] [blame] | 4719 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4720 | ) |
| 4721 | |
| 4722 | target_link_libraries(arena_test |
| 4723 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 4724 | gpr_test_util |
| 4725 | gpr |
| 4726 | ) |
| 4727 | |
| 4728 | endif (gRPC_BUILD_TESTS) |
| 4729 | if (gRPC_BUILD_TESTS) |
| 4730 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4731 | add_executable(bad_server_response_test |
| 4732 | test/core/end2end/bad_server_response_test.c |
| 4733 | ) |
| 4734 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4735 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4736 | target_include_directories(bad_server_response_test |
| 4737 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4738 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4739 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4740 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4741 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4742 | PRIVATE ${ZLIB_ROOT_DIR} |
| 4743 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4744 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4745 | PRIVATE ${CARES_INCLUDE_DIR} |
| 4746 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 4747 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4748 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4749 | ) |
| 4750 | |
| 4751 | target_link_libraries(bad_server_response_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4752 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4753 | test_tcp_server |
| 4754 | grpc_test_util |
| 4755 | grpc |
| 4756 | gpr_test_util |
| 4757 | gpr |
| 4758 | ) |
| 4759 | |
| 4760 | endif (gRPC_BUILD_TESTS) |
| 4761 | if (gRPC_BUILD_TESTS) |
| 4762 | |
Craig Tiller | ff1f160 | 2017-01-20 13:55:35 -0800 | [diff] [blame] | 4763 | add_executable(bdp_estimator_test |
| 4764 | test/core/transport/bdp_estimator_test.c |
| 4765 | ) |
| 4766 | |
Craig Tiller | 5395aba | 2017-02-02 10:29:04 -0800 | [diff] [blame] | 4767 | |
Craig Tiller | ff1f160 | 2017-01-20 13:55:35 -0800 | [diff] [blame] | 4768 | target_include_directories(bdp_estimator_test |
| 4769 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4770 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4771 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4772 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Craig Tiller | 5395aba | 2017-02-02 10:29:04 -0800 | [diff] [blame] | 4773 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Craig Tiller | ff1f160 | 2017-01-20 13:55:35 -0800 | [diff] [blame] | 4774 | PRIVATE ${ZLIB_ROOT_DIR} |
| 4775 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4776 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4777 | PRIVATE ${CARES_INCLUDE_DIR} |
| 4778 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 4779 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | ff1f160 | 2017-01-20 13:55:35 -0800 | [diff] [blame] | 4780 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4781 | ) |
| 4782 | |
| 4783 | target_link_libraries(bdp_estimator_test |
Craig Tiller | 5395aba | 2017-02-02 10:29:04 -0800 | [diff] [blame] | 4784 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Craig Tiller | ff1f160 | 2017-01-20 13:55:35 -0800 | [diff] [blame] | 4785 | grpc_test_util |
| 4786 | grpc |
| 4787 | gpr_test_util |
| 4788 | gpr |
| 4789 | ) |
| 4790 | |
| 4791 | endif (gRPC_BUILD_TESTS) |
| 4792 | if (gRPC_BUILD_TESTS) |
| 4793 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4794 | add_executable(bin_decoder_test |
| 4795 | test/core/transport/chttp2/bin_decoder_test.c |
| 4796 | ) |
| 4797 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4798 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4799 | target_include_directories(bin_decoder_test |
| 4800 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4801 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4802 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4803 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4804 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4805 | PRIVATE ${ZLIB_ROOT_DIR} |
| 4806 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4807 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4808 | PRIVATE ${CARES_INCLUDE_DIR} |
| 4809 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 4810 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4811 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4812 | ) |
| 4813 | |
| 4814 | target_link_libraries(bin_decoder_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4815 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4816 | grpc_test_util |
| 4817 | grpc |
| 4818 | ) |
| 4819 | |
| 4820 | endif (gRPC_BUILD_TESTS) |
| 4821 | if (gRPC_BUILD_TESTS) |
| 4822 | |
| 4823 | add_executable(bin_encoder_test |
| 4824 | test/core/transport/chttp2/bin_encoder_test.c |
| 4825 | ) |
| 4826 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4827 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4828 | target_include_directories(bin_encoder_test |
| 4829 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4830 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4831 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4832 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4833 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4834 | PRIVATE ${ZLIB_ROOT_DIR} |
| 4835 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4836 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4837 | PRIVATE ${CARES_INCLUDE_DIR} |
| 4838 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 4839 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4840 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4841 | ) |
| 4842 | |
| 4843 | target_link_libraries(bin_encoder_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4844 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4845 | grpc_test_util |
| 4846 | grpc |
| 4847 | ) |
| 4848 | |
| 4849 | endif (gRPC_BUILD_TESTS) |
| 4850 | if (gRPC_BUILD_TESTS) |
| 4851 | |
| 4852 | add_executable(census_context_test |
| 4853 | test/core/census/context_test.c |
| 4854 | ) |
| 4855 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4856 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4857 | target_include_directories(census_context_test |
| 4858 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4859 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4860 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4861 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4862 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4863 | PRIVATE ${ZLIB_ROOT_DIR} |
| 4864 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4865 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4866 | PRIVATE ${CARES_INCLUDE_DIR} |
| 4867 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 4868 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4869 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4870 | ) |
| 4871 | |
| 4872 | target_link_libraries(census_context_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4873 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4874 | grpc_test_util |
| 4875 | grpc |
| 4876 | gpr_test_util |
| 4877 | gpr |
| 4878 | ) |
| 4879 | |
| 4880 | endif (gRPC_BUILD_TESTS) |
| 4881 | if (gRPC_BUILD_TESTS) |
| 4882 | |
| 4883 | add_executable(census_resource_test |
| 4884 | test/core/census/resource_test.c |
| 4885 | ) |
| 4886 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4887 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4888 | target_include_directories(census_resource_test |
| 4889 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4890 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4891 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4892 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4893 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4894 | PRIVATE ${ZLIB_ROOT_DIR} |
| 4895 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4896 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4897 | PRIVATE ${CARES_INCLUDE_DIR} |
| 4898 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 4899 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4900 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4901 | ) |
| 4902 | |
| 4903 | target_link_libraries(census_resource_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4904 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4905 | grpc_test_util |
| 4906 | grpc |
| 4907 | gpr_test_util |
| 4908 | gpr |
| 4909 | ) |
| 4910 | |
| 4911 | endif (gRPC_BUILD_TESTS) |
| 4912 | if (gRPC_BUILD_TESTS) |
| 4913 | |
| 4914 | add_executable(census_trace_context_test |
| 4915 | test/core/census/trace_context_test.c |
| 4916 | ) |
| 4917 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4918 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4919 | target_include_directories(census_trace_context_test |
| 4920 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4921 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4922 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4923 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4924 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4925 | PRIVATE ${ZLIB_ROOT_DIR} |
| 4926 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4927 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4928 | PRIVATE ${CARES_INCLUDE_DIR} |
| 4929 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 4930 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4931 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4932 | ) |
| 4933 | |
| 4934 | target_link_libraries(census_trace_context_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4935 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4936 | grpc_test_util |
| 4937 | grpc |
| 4938 | gpr_test_util |
| 4939 | gpr |
| 4940 | ) |
| 4941 | |
| 4942 | endif (gRPC_BUILD_TESTS) |
| 4943 | if (gRPC_BUILD_TESTS) |
| 4944 | |
| 4945 | add_executable(channel_create_test |
| 4946 | test/core/surface/channel_create_test.c |
| 4947 | ) |
| 4948 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4949 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4950 | target_include_directories(channel_create_test |
| 4951 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4952 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4953 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4954 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4955 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4956 | PRIVATE ${ZLIB_ROOT_DIR} |
| 4957 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4958 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4959 | PRIVATE ${CARES_INCLUDE_DIR} |
| 4960 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 4961 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4962 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4963 | ) |
| 4964 | |
| 4965 | target_link_libraries(channel_create_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4966 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4967 | grpc_test_util |
| 4968 | grpc |
| 4969 | gpr_test_util |
| 4970 | gpr |
| 4971 | ) |
| 4972 | |
| 4973 | endif (gRPC_BUILD_TESTS) |
| 4974 | if (gRPC_BUILD_TESTS) |
| 4975 | |
| 4976 | add_executable(chttp2_hpack_encoder_test |
| 4977 | test/core/transport/chttp2/hpack_encoder_test.c |
| 4978 | ) |
| 4979 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4980 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4981 | target_include_directories(chttp2_hpack_encoder_test |
| 4982 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 4983 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 4984 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 4985 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4986 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4987 | PRIVATE ${ZLIB_ROOT_DIR} |
| 4988 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 4989 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 4990 | PRIVATE ${CARES_INCLUDE_DIR} |
| 4991 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 4992 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4993 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 4994 | ) |
| 4995 | |
| 4996 | target_link_libraries(chttp2_hpack_encoder_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 4997 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 4998 | grpc_test_util |
| 4999 | grpc |
| 5000 | gpr_test_util |
| 5001 | gpr |
| 5002 | ) |
| 5003 | |
| 5004 | endif (gRPC_BUILD_TESTS) |
| 5005 | if (gRPC_BUILD_TESTS) |
| 5006 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5007 | add_executable(chttp2_stream_map_test |
| 5008 | test/core/transport/chttp2/stream_map_test.c |
| 5009 | ) |
| 5010 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5011 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5012 | target_include_directories(chttp2_stream_map_test |
| 5013 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5014 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5015 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5016 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5017 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5018 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5019 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5020 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5021 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5022 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5023 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5024 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5025 | ) |
| 5026 | |
| 5027 | target_link_libraries(chttp2_stream_map_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5028 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5029 | grpc_test_util |
| 5030 | grpc |
| 5031 | gpr_test_util |
| 5032 | gpr |
| 5033 | ) |
| 5034 | |
| 5035 | endif (gRPC_BUILD_TESTS) |
| 5036 | if (gRPC_BUILD_TESTS) |
| 5037 | |
| 5038 | add_executable(chttp2_varint_test |
| 5039 | test/core/transport/chttp2/varint_test.c |
| 5040 | ) |
| 5041 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5042 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5043 | target_include_directories(chttp2_varint_test |
| 5044 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5045 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5046 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5047 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5048 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5049 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5050 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5051 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5052 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5053 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5054 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5055 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5056 | ) |
| 5057 | |
| 5058 | target_link_libraries(chttp2_varint_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5059 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5060 | grpc_test_util |
| 5061 | grpc |
| 5062 | gpr_test_util |
| 5063 | gpr |
| 5064 | ) |
| 5065 | |
| 5066 | endif (gRPC_BUILD_TESTS) |
| 5067 | if (gRPC_BUILD_TESTS) |
| 5068 | |
| 5069 | add_executable(combiner_test |
| 5070 | test/core/iomgr/combiner_test.c |
| 5071 | ) |
| 5072 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5073 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5074 | target_include_directories(combiner_test |
| 5075 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5076 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5077 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5078 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5079 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5080 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5081 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5082 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5083 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5084 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5085 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5086 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5087 | ) |
| 5088 | |
| 5089 | target_link_libraries(combiner_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5090 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5091 | grpc_test_util |
| 5092 | grpc |
| 5093 | gpr_test_util |
| 5094 | gpr |
| 5095 | ) |
| 5096 | |
| 5097 | endif (gRPC_BUILD_TESTS) |
| 5098 | if (gRPC_BUILD_TESTS) |
| 5099 | |
| 5100 | add_executable(compression_test |
| 5101 | test/core/compression/compression_test.c |
| 5102 | ) |
| 5103 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5104 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5105 | target_include_directories(compression_test |
| 5106 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5107 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5108 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5109 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5110 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5111 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5112 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5113 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5114 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5115 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5116 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5117 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5118 | ) |
| 5119 | |
| 5120 | target_link_libraries(compression_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5121 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5122 | grpc_test_util |
| 5123 | grpc |
| 5124 | gpr_test_util |
| 5125 | gpr |
| 5126 | ) |
| 5127 | |
| 5128 | endif (gRPC_BUILD_TESTS) |
| 5129 | if (gRPC_BUILD_TESTS) |
| 5130 | |
| 5131 | add_executable(concurrent_connectivity_test |
| 5132 | test/core/surface/concurrent_connectivity_test.c |
| 5133 | ) |
| 5134 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5135 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5136 | target_include_directories(concurrent_connectivity_test |
| 5137 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5138 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5139 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5140 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5141 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5142 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5143 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5144 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5145 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5146 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5147 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5148 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5149 | ) |
| 5150 | |
| 5151 | target_link_libraries(concurrent_connectivity_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5152 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5153 | grpc_test_util |
| 5154 | grpc |
| 5155 | gpr_test_util |
| 5156 | gpr |
| 5157 | ) |
| 5158 | |
| 5159 | endif (gRPC_BUILD_TESTS) |
| 5160 | if (gRPC_BUILD_TESTS) |
| 5161 | |
| 5162 | add_executable(connection_refused_test |
| 5163 | test/core/end2end/connection_refused_test.c |
| 5164 | ) |
| 5165 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5166 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5167 | target_include_directories(connection_refused_test |
| 5168 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5169 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5170 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5171 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5172 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5173 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5174 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5175 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5176 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5177 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5178 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5179 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5180 | ) |
| 5181 | |
| 5182 | target_link_libraries(connection_refused_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5183 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5184 | grpc_test_util |
| 5185 | grpc |
| 5186 | gpr_test_util |
| 5187 | gpr |
| 5188 | ) |
| 5189 | |
| 5190 | endif (gRPC_BUILD_TESTS) |
| 5191 | if (gRPC_BUILD_TESTS) |
| 5192 | |
| 5193 | add_executable(dns_resolver_connectivity_test |
| 5194 | test/core/client_channel/resolvers/dns_resolver_connectivity_test.c |
| 5195 | ) |
| 5196 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5197 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5198 | target_include_directories(dns_resolver_connectivity_test |
| 5199 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5200 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5201 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5202 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5203 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5204 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5205 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5206 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5207 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5208 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5209 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5210 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5211 | ) |
| 5212 | |
| 5213 | target_link_libraries(dns_resolver_connectivity_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5214 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5215 | grpc_test_util |
| 5216 | grpc |
| 5217 | gpr_test_util |
| 5218 | gpr |
| 5219 | ) |
| 5220 | |
| 5221 | endif (gRPC_BUILD_TESTS) |
| 5222 | if (gRPC_BUILD_TESTS) |
| 5223 | |
| 5224 | add_executable(dns_resolver_test |
| 5225 | test/core/client_channel/resolvers/dns_resolver_test.c |
| 5226 | ) |
| 5227 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5228 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5229 | target_include_directories(dns_resolver_test |
| 5230 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5231 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5232 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5233 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5234 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5235 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5236 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5237 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5238 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5239 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5240 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5241 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5242 | ) |
| 5243 | |
| 5244 | target_link_libraries(dns_resolver_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5245 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5246 | grpc_test_util |
| 5247 | grpc |
| 5248 | gpr_test_util |
| 5249 | gpr |
| 5250 | ) |
| 5251 | |
| 5252 | endif (gRPC_BUILD_TESTS) |
| 5253 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5254 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5255 | |
| 5256 | add_executable(dualstack_socket_test |
| 5257 | test/core/end2end/dualstack_socket_test.c |
| 5258 | ) |
| 5259 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5260 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5261 | target_include_directories(dualstack_socket_test |
| 5262 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5263 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5264 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5265 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5266 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5267 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5268 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5269 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5270 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5271 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5272 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5273 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5274 | ) |
| 5275 | |
| 5276 | target_link_libraries(dualstack_socket_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5277 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5278 | grpc_test_util |
| 5279 | grpc |
| 5280 | gpr_test_util |
| 5281 | gpr |
| 5282 | ) |
| 5283 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5284 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5285 | endif (gRPC_BUILD_TESTS) |
| 5286 | if (gRPC_BUILD_TESTS) |
| 5287 | |
| 5288 | add_executable(endpoint_pair_test |
| 5289 | test/core/iomgr/endpoint_pair_test.c |
| 5290 | ) |
| 5291 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5292 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5293 | target_include_directories(endpoint_pair_test |
| 5294 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5295 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5296 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5297 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5298 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5299 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5300 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5301 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5302 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5303 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5304 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5305 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5306 | ) |
| 5307 | |
| 5308 | target_link_libraries(endpoint_pair_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5309 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5310 | grpc_test_util |
| 5311 | grpc |
| 5312 | gpr_test_util |
| 5313 | gpr |
| 5314 | ) |
| 5315 | |
| 5316 | endif (gRPC_BUILD_TESTS) |
| 5317 | if (gRPC_BUILD_TESTS) |
ncteisen | 3da3ce3 | 2017-02-17 09:51:25 -0800 | [diff] [blame] | 5318 | |
| 5319 | add_executable(error_test |
| 5320 | test/core/iomgr/error_test.c |
| 5321 | ) |
| 5322 | |
| 5323 | |
| 5324 | target_include_directories(error_test |
| 5325 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5326 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5327 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5328 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 5329 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 5330 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5331 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5332 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5333 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5334 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5335 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
ncteisen | 3da3ce3 | 2017-02-17 09:51:25 -0800 | [diff] [blame] | 5336 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5337 | ) |
| 5338 | |
| 5339 | target_link_libraries(error_test |
| 5340 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 5341 | grpc_test_util |
| 5342 | grpc |
| 5343 | gpr_test_util |
| 5344 | gpr |
| 5345 | ) |
| 5346 | |
| 5347 | endif (gRPC_BUILD_TESTS) |
| 5348 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5349 | if(_gRPC_PLATFORM_LINUX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5350 | |
| 5351 | add_executable(ev_epoll_linux_test |
| 5352 | test/core/iomgr/ev_epoll_linux_test.c |
| 5353 | ) |
| 5354 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5355 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5356 | target_include_directories(ev_epoll_linux_test |
| 5357 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5358 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5359 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5360 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5361 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5362 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5363 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5364 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5365 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5366 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5367 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5368 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5369 | ) |
| 5370 | |
| 5371 | target_link_libraries(ev_epoll_linux_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5372 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5373 | grpc_test_util |
| 5374 | grpc |
| 5375 | gpr_test_util |
| 5376 | gpr |
| 5377 | ) |
| 5378 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5379 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5380 | endif (gRPC_BUILD_TESTS) |
| 5381 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5382 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5383 | |
| 5384 | add_executable(fd_conservation_posix_test |
| 5385 | test/core/iomgr/fd_conservation_posix_test.c |
| 5386 | ) |
| 5387 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5388 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5389 | target_include_directories(fd_conservation_posix_test |
| 5390 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5391 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5392 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5393 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5394 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5395 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5396 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5397 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5398 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5399 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5400 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5401 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5402 | ) |
| 5403 | |
| 5404 | target_link_libraries(fd_conservation_posix_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5405 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5406 | grpc_test_util |
| 5407 | grpc |
| 5408 | gpr_test_util |
| 5409 | gpr |
| 5410 | ) |
| 5411 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5412 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5413 | endif (gRPC_BUILD_TESTS) |
| 5414 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5415 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5416 | |
| 5417 | add_executable(fd_posix_test |
| 5418 | test/core/iomgr/fd_posix_test.c |
| 5419 | ) |
| 5420 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5421 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5422 | target_include_directories(fd_posix_test |
| 5423 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5424 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5425 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5426 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5427 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5428 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5429 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5430 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5431 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5432 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5433 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5434 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5435 | ) |
| 5436 | |
| 5437 | target_link_libraries(fd_posix_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5438 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5439 | grpc_test_util |
| 5440 | grpc |
| 5441 | gpr_test_util |
| 5442 | gpr |
| 5443 | ) |
| 5444 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5445 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5446 | endif (gRPC_BUILD_TESTS) |
| 5447 | if (gRPC_BUILD_TESTS) |
| 5448 | |
| 5449 | add_executable(fling_client |
| 5450 | test/core/fling/client.c |
| 5451 | ) |
| 5452 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5453 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5454 | target_include_directories(fling_client |
| 5455 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5456 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5457 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5458 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5459 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5460 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5461 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5462 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5463 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5464 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5465 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5466 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5467 | ) |
| 5468 | |
| 5469 | target_link_libraries(fling_client |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5470 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5471 | grpc_test_util |
| 5472 | grpc |
| 5473 | gpr_test_util |
| 5474 | gpr |
| 5475 | ) |
| 5476 | |
| 5477 | endif (gRPC_BUILD_TESTS) |
| 5478 | if (gRPC_BUILD_TESTS) |
| 5479 | |
| 5480 | add_executable(fling_server |
| 5481 | test/core/fling/server.c |
| 5482 | ) |
| 5483 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5484 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5485 | target_include_directories(fling_server |
| 5486 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5487 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5488 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5489 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5490 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5491 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5492 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5493 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5494 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5495 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5496 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5497 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5498 | ) |
| 5499 | |
| 5500 | target_link_libraries(fling_server |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5501 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5502 | grpc_test_util |
| 5503 | grpc |
| 5504 | gpr_test_util |
| 5505 | gpr |
| 5506 | ) |
| 5507 | |
| 5508 | endif (gRPC_BUILD_TESTS) |
| 5509 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5510 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5511 | |
| 5512 | add_executable(fling_stream_test |
| 5513 | test/core/fling/fling_stream_test.c |
| 5514 | ) |
| 5515 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5516 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5517 | target_include_directories(fling_stream_test |
| 5518 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5519 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5520 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5521 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5522 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5523 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5524 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5525 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5526 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5527 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5528 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5529 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5530 | ) |
| 5531 | |
| 5532 | target_link_libraries(fling_stream_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5533 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5534 | grpc_test_util |
| 5535 | grpc |
| 5536 | gpr_test_util |
| 5537 | gpr |
| 5538 | ) |
| 5539 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5540 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5541 | endif (gRPC_BUILD_TESTS) |
| 5542 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5543 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5544 | |
| 5545 | add_executable(fling_test |
| 5546 | test/core/fling/fling_test.c |
| 5547 | ) |
| 5548 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5549 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5550 | target_include_directories(fling_test |
| 5551 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5552 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5553 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5554 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5555 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5556 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5557 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5558 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5559 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5560 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5561 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5562 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5563 | ) |
| 5564 | |
| 5565 | target_link_libraries(fling_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5566 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5567 | grpc_test_util |
| 5568 | grpc |
| 5569 | gpr_test_util |
| 5570 | gpr |
| 5571 | ) |
| 5572 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5573 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5574 | endif (gRPC_BUILD_TESTS) |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 5575 | |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 5576 | add_executable(gen_hpack_tables |
| 5577 | tools/codegen/core/gen_hpack_tables.c |
| 5578 | ) |
| 5579 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5580 | |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 5581 | target_include_directories(gen_hpack_tables |
| 5582 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5583 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5584 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5585 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5586 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 5587 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5588 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5589 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5590 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5591 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5592 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5593 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 5594 | ) |
| 5595 | |
| 5596 | target_link_libraries(gen_hpack_tables |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5597 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 5598 | gpr |
| 5599 | grpc |
| 5600 | ) |
| 5601 | |
| 5602 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 5603 | if (gRPC_INSTALL) |
Nicolas "Pixel" Noble | 2069fbc | 2016-08-18 23:29:56 +0200 | [diff] [blame] | 5604 | install(TARGETS gen_hpack_tables EXPORT gRPCTargets |
| 5605 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 5606 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 5607 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 5608 | ) |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 5609 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 5610 | |
| 5611 | |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 5612 | add_executable(gen_legal_metadata_characters |
| 5613 | tools/codegen/core/gen_legal_metadata_characters.c |
| 5614 | ) |
| 5615 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5616 | |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 5617 | target_include_directories(gen_legal_metadata_characters |
| 5618 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5619 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5620 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5621 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5622 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 5623 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5624 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5625 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5626 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5627 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5628 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5629 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 5630 | ) |
| 5631 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5632 | target_link_libraries(gen_legal_metadata_characters |
| 5633 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 5634 | ) |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 5635 | |
| 5636 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 5637 | if (gRPC_INSTALL) |
| 5638 | install(TARGETS gen_legal_metadata_characters EXPORT gRPCTargets |
| 5639 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 5640 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 5641 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 5642 | ) |
| 5643 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 5644 | |
| 5645 | |
Craig Tiller | 1c7a842 | 2016-08-18 11:13:11 -0700 | [diff] [blame] | 5646 | add_executable(gen_percent_encoding_tables |
| 5647 | tools/codegen/core/gen_percent_encoding_tables.c |
| 5648 | ) |
| 5649 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5650 | |
Craig Tiller | 1c7a842 | 2016-08-18 11:13:11 -0700 | [diff] [blame] | 5651 | target_include_directories(gen_percent_encoding_tables |
| 5652 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5653 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5654 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5655 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5656 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Craig Tiller | 1c7a842 | 2016-08-18 11:13:11 -0700 | [diff] [blame] | 5657 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5658 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5659 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5660 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5661 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5662 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5663 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Craig Tiller | 1c7a842 | 2016-08-18 11:13:11 -0700 | [diff] [blame] | 5664 | ) |
| 5665 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5666 | target_link_libraries(gen_percent_encoding_tables |
| 5667 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 5668 | ) |
Craig Tiller | 1c7a842 | 2016-08-18 11:13:11 -0700 | [diff] [blame] | 5669 | |
| 5670 | |
Craig Tiller | 426dcde | 2016-09-07 15:43:10 -0700 | [diff] [blame] | 5671 | if (gRPC_INSTALL) |
| 5672 | install(TARGETS gen_percent_encoding_tables EXPORT gRPCTargets |
| 5673 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 5674 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 5675 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 5676 | ) |
| 5677 | endif() |
Craig Tiller | 1c7a842 | 2016-08-18 11:13:11 -0700 | [diff] [blame] | 5678 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5679 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5680 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5681 | |
| 5682 | add_executable(goaway_server_test |
| 5683 | test/core/end2end/goaway_server_test.c |
| 5684 | ) |
| 5685 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5686 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5687 | target_include_directories(goaway_server_test |
| 5688 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5689 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5690 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5691 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5692 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5693 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5694 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5695 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5696 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5697 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5698 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5699 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5700 | ) |
| 5701 | |
| 5702 | target_link_libraries(goaway_server_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5703 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5704 | grpc_test_util |
| 5705 | grpc |
| 5706 | gpr_test_util |
| 5707 | gpr |
| 5708 | ) |
| 5709 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5710 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5711 | endif (gRPC_BUILD_TESTS) |
| 5712 | if (gRPC_BUILD_TESTS) |
| 5713 | |
| 5714 | add_executable(gpr_avl_test |
| 5715 | test/core/support/avl_test.c |
| 5716 | ) |
| 5717 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5718 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5719 | target_include_directories(gpr_avl_test |
| 5720 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5721 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5722 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5723 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5724 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5725 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5726 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5727 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5728 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5729 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5730 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5731 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5732 | ) |
| 5733 | |
| 5734 | target_link_libraries(gpr_avl_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5735 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5736 | gpr_test_util |
| 5737 | gpr |
| 5738 | ) |
| 5739 | |
| 5740 | endif (gRPC_BUILD_TESTS) |
| 5741 | if (gRPC_BUILD_TESTS) |
| 5742 | |
| 5743 | add_executable(gpr_backoff_test |
| 5744 | test/core/support/backoff_test.c |
| 5745 | ) |
| 5746 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5747 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5748 | target_include_directories(gpr_backoff_test |
| 5749 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5750 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5751 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5752 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5753 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5754 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5755 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5756 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5757 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5758 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5759 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5760 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5761 | ) |
| 5762 | |
| 5763 | target_link_libraries(gpr_backoff_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5764 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5765 | gpr_test_util |
| 5766 | gpr |
| 5767 | ) |
| 5768 | |
| 5769 | endif (gRPC_BUILD_TESTS) |
| 5770 | if (gRPC_BUILD_TESTS) |
| 5771 | |
| 5772 | add_executable(gpr_cmdline_test |
| 5773 | test/core/support/cmdline_test.c |
| 5774 | ) |
| 5775 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5776 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5777 | target_include_directories(gpr_cmdline_test |
| 5778 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5779 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5780 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5781 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5782 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5783 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5784 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5785 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5786 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5787 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5788 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5789 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5790 | ) |
| 5791 | |
| 5792 | target_link_libraries(gpr_cmdline_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5793 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5794 | gpr_test_util |
| 5795 | gpr |
| 5796 | ) |
| 5797 | |
| 5798 | endif (gRPC_BUILD_TESTS) |
| 5799 | if (gRPC_BUILD_TESTS) |
| 5800 | |
| 5801 | add_executable(gpr_cpu_test |
| 5802 | test/core/support/cpu_test.c |
| 5803 | ) |
| 5804 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5805 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5806 | target_include_directories(gpr_cpu_test |
| 5807 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5808 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5809 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5810 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5811 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5812 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5813 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5814 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5815 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5816 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5817 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5818 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5819 | ) |
| 5820 | |
| 5821 | target_link_libraries(gpr_cpu_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5822 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5823 | gpr_test_util |
| 5824 | gpr |
| 5825 | ) |
| 5826 | |
| 5827 | endif (gRPC_BUILD_TESTS) |
| 5828 | if (gRPC_BUILD_TESTS) |
| 5829 | |
| 5830 | add_executable(gpr_env_test |
| 5831 | test/core/support/env_test.c |
| 5832 | ) |
| 5833 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5834 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5835 | target_include_directories(gpr_env_test |
| 5836 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5837 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5838 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5839 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5840 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5841 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5842 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5843 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5844 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5845 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5846 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5847 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5848 | ) |
| 5849 | |
| 5850 | target_link_libraries(gpr_env_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5851 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5852 | gpr_test_util |
| 5853 | gpr |
| 5854 | ) |
| 5855 | |
| 5856 | endif (gRPC_BUILD_TESTS) |
| 5857 | if (gRPC_BUILD_TESTS) |
| 5858 | |
| 5859 | add_executable(gpr_histogram_test |
| 5860 | test/core/support/histogram_test.c |
| 5861 | ) |
| 5862 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5863 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5864 | target_include_directories(gpr_histogram_test |
| 5865 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5866 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5867 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5868 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5869 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5870 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5871 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5872 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5873 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5874 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5875 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5876 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5877 | ) |
| 5878 | |
| 5879 | target_link_libraries(gpr_histogram_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5880 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5881 | gpr_test_util |
| 5882 | gpr |
| 5883 | ) |
| 5884 | |
| 5885 | endif (gRPC_BUILD_TESTS) |
| 5886 | if (gRPC_BUILD_TESTS) |
| 5887 | |
| 5888 | add_executable(gpr_host_port_test |
| 5889 | test/core/support/host_port_test.c |
| 5890 | ) |
| 5891 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5892 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5893 | target_include_directories(gpr_host_port_test |
| 5894 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5895 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5896 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5897 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5898 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5899 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5900 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5901 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5902 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5903 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5904 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5905 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5906 | ) |
| 5907 | |
| 5908 | target_link_libraries(gpr_host_port_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5909 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5910 | gpr_test_util |
| 5911 | gpr |
| 5912 | ) |
| 5913 | |
| 5914 | endif (gRPC_BUILD_TESTS) |
| 5915 | if (gRPC_BUILD_TESTS) |
| 5916 | |
| 5917 | add_executable(gpr_log_test |
| 5918 | test/core/support/log_test.c |
| 5919 | ) |
| 5920 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5921 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5922 | target_include_directories(gpr_log_test |
| 5923 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5924 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5925 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5926 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5927 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5928 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5929 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5930 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5931 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5932 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5933 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5934 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5935 | ) |
| 5936 | |
| 5937 | target_link_libraries(gpr_log_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5938 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5939 | gpr_test_util |
| 5940 | gpr |
| 5941 | ) |
| 5942 | |
| 5943 | endif (gRPC_BUILD_TESTS) |
| 5944 | if (gRPC_BUILD_TESTS) |
| 5945 | |
| 5946 | add_executable(gpr_mpscq_test |
| 5947 | test/core/support/mpscq_test.c |
| 5948 | ) |
| 5949 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5950 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5951 | target_include_directories(gpr_mpscq_test |
| 5952 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5953 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5954 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5955 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5956 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5957 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5958 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5959 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5960 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5961 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5962 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5963 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5964 | ) |
| 5965 | |
| 5966 | target_link_libraries(gpr_mpscq_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 5967 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 5968 | gpr_test_util |
| 5969 | gpr |
| 5970 | ) |
| 5971 | |
| 5972 | endif (gRPC_BUILD_TESTS) |
| 5973 | if (gRPC_BUILD_TESTS) |
| 5974 | |
Craig Tiller | edbf2b9 | 2017-02-27 07:24:00 -0800 | [diff] [blame] | 5975 | add_executable(gpr_spinlock_test |
| 5976 | test/core/support/spinlock_test.c |
| 5977 | ) |
| 5978 | |
| 5979 | |
| 5980 | target_include_directories(gpr_spinlock_test |
| 5981 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 5982 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 5983 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 5984 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 5985 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 5986 | PRIVATE ${ZLIB_ROOT_DIR} |
| 5987 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 5988 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 5989 | PRIVATE ${CARES_INCLUDE_DIR} |
| 5990 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 5991 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | edbf2b9 | 2017-02-27 07:24:00 -0800 | [diff] [blame] | 5992 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 5993 | ) |
| 5994 | |
| 5995 | target_link_libraries(gpr_spinlock_test |
| 5996 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 5997 | gpr_test_util |
| 5998 | gpr |
| 5999 | ) |
| 6000 | |
| 6001 | endif (gRPC_BUILD_TESTS) |
| 6002 | if (gRPC_BUILD_TESTS) |
| 6003 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6004 | add_executable(gpr_stack_lockfree_test |
| 6005 | test/core/support/stack_lockfree_test.c |
| 6006 | ) |
| 6007 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6008 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6009 | target_include_directories(gpr_stack_lockfree_test |
| 6010 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6011 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6012 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6013 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6014 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6015 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6016 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6017 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6018 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6019 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6020 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6021 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6022 | ) |
| 6023 | |
| 6024 | target_link_libraries(gpr_stack_lockfree_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6025 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6026 | gpr_test_util |
| 6027 | gpr |
| 6028 | ) |
| 6029 | |
| 6030 | endif (gRPC_BUILD_TESTS) |
| 6031 | if (gRPC_BUILD_TESTS) |
| 6032 | |
| 6033 | add_executable(gpr_string_test |
| 6034 | test/core/support/string_test.c |
| 6035 | ) |
| 6036 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6037 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6038 | target_include_directories(gpr_string_test |
| 6039 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6040 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6041 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6042 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6043 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6044 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6045 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6046 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6047 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6048 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6049 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6050 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6051 | ) |
| 6052 | |
| 6053 | target_link_libraries(gpr_string_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6054 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6055 | gpr_test_util |
| 6056 | gpr |
| 6057 | ) |
| 6058 | |
| 6059 | endif (gRPC_BUILD_TESTS) |
| 6060 | if (gRPC_BUILD_TESTS) |
| 6061 | |
| 6062 | add_executable(gpr_sync_test |
| 6063 | test/core/support/sync_test.c |
| 6064 | ) |
| 6065 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6066 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6067 | target_include_directories(gpr_sync_test |
| 6068 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6069 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6070 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6071 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6072 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6073 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6074 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6075 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6076 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6077 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6078 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6079 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6080 | ) |
| 6081 | |
| 6082 | target_link_libraries(gpr_sync_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6083 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6084 | gpr_test_util |
| 6085 | gpr |
| 6086 | ) |
| 6087 | |
| 6088 | endif (gRPC_BUILD_TESTS) |
| 6089 | if (gRPC_BUILD_TESTS) |
| 6090 | |
| 6091 | add_executable(gpr_thd_test |
| 6092 | test/core/support/thd_test.c |
| 6093 | ) |
| 6094 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6095 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6096 | target_include_directories(gpr_thd_test |
| 6097 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6098 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6099 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6100 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6101 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6102 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6103 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6104 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6105 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6106 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6107 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6108 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6109 | ) |
| 6110 | |
| 6111 | target_link_libraries(gpr_thd_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6112 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6113 | gpr_test_util |
| 6114 | gpr |
| 6115 | ) |
| 6116 | |
| 6117 | endif (gRPC_BUILD_TESTS) |
| 6118 | if (gRPC_BUILD_TESTS) |
| 6119 | |
| 6120 | add_executable(gpr_time_test |
| 6121 | test/core/support/time_test.c |
| 6122 | ) |
| 6123 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6124 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6125 | target_include_directories(gpr_time_test |
| 6126 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6127 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6128 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6129 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6130 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6131 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6132 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6133 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6134 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6135 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6136 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6137 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6138 | ) |
| 6139 | |
| 6140 | target_link_libraries(gpr_time_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6141 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6142 | gpr_test_util |
| 6143 | gpr |
| 6144 | ) |
| 6145 | |
| 6146 | endif (gRPC_BUILD_TESTS) |
| 6147 | if (gRPC_BUILD_TESTS) |
| 6148 | |
| 6149 | add_executable(gpr_tls_test |
| 6150 | test/core/support/tls_test.c |
| 6151 | ) |
| 6152 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6153 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6154 | target_include_directories(gpr_tls_test |
| 6155 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6156 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6157 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6158 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6159 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6160 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6161 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6162 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6163 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6164 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6165 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6166 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6167 | ) |
| 6168 | |
| 6169 | target_link_libraries(gpr_tls_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6170 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6171 | gpr_test_util |
| 6172 | gpr |
| 6173 | ) |
| 6174 | |
| 6175 | endif (gRPC_BUILD_TESTS) |
| 6176 | if (gRPC_BUILD_TESTS) |
| 6177 | |
| 6178 | add_executable(gpr_useful_test |
| 6179 | test/core/support/useful_test.c |
| 6180 | ) |
| 6181 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6182 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6183 | target_include_directories(gpr_useful_test |
| 6184 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6185 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6186 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6187 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6188 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6189 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6190 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6191 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6192 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6193 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6194 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6195 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6196 | ) |
| 6197 | |
| 6198 | target_link_libraries(gpr_useful_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6199 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6200 | gpr_test_util |
| 6201 | gpr |
| 6202 | ) |
| 6203 | |
| 6204 | endif (gRPC_BUILD_TESTS) |
| 6205 | if (gRPC_BUILD_TESTS) |
| 6206 | |
| 6207 | add_executable(grpc_auth_context_test |
| 6208 | test/core/security/auth_context_test.c |
| 6209 | ) |
| 6210 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6211 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6212 | target_include_directories(grpc_auth_context_test |
| 6213 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6214 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6215 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6216 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6217 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6218 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6219 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6220 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6221 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6222 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6223 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6224 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6225 | ) |
| 6226 | |
| 6227 | target_link_libraries(grpc_auth_context_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6228 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6229 | grpc_test_util |
| 6230 | grpc |
| 6231 | gpr_test_util |
| 6232 | gpr |
| 6233 | ) |
| 6234 | |
| 6235 | endif (gRPC_BUILD_TESTS) |
| 6236 | if (gRPC_BUILD_TESTS) |
| 6237 | |
| 6238 | add_executable(grpc_b64_test |
Craig Tiller | 790f6af | 2017-03-30 12:39:24 -0700 | [diff] [blame] | 6239 | test/core/slice/b64_test.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6240 | ) |
| 6241 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6242 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6243 | target_include_directories(grpc_b64_test |
| 6244 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6245 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6246 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6247 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6248 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6249 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6250 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6251 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6252 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6253 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6254 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6255 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6256 | ) |
| 6257 | |
| 6258 | target_link_libraries(grpc_b64_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6259 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6260 | grpc_test_util |
| 6261 | grpc |
| 6262 | gpr_test_util |
| 6263 | gpr |
| 6264 | ) |
| 6265 | |
| 6266 | endif (gRPC_BUILD_TESTS) |
| 6267 | if (gRPC_BUILD_TESTS) |
| 6268 | |
| 6269 | add_executable(grpc_byte_buffer_reader_test |
| 6270 | test/core/surface/byte_buffer_reader_test.c |
| 6271 | ) |
| 6272 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6273 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6274 | target_include_directories(grpc_byte_buffer_reader_test |
| 6275 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6276 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6277 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6278 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6279 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6280 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6281 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6282 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6283 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6284 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6285 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6286 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6287 | ) |
| 6288 | |
| 6289 | target_link_libraries(grpc_byte_buffer_reader_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6290 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6291 | grpc_test_util |
| 6292 | grpc |
| 6293 | gpr_test_util |
| 6294 | gpr |
| 6295 | ) |
| 6296 | |
| 6297 | endif (gRPC_BUILD_TESTS) |
| 6298 | if (gRPC_BUILD_TESTS) |
| 6299 | |
| 6300 | add_executable(grpc_channel_args_test |
| 6301 | test/core/channel/channel_args_test.c |
| 6302 | ) |
| 6303 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6304 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6305 | target_include_directories(grpc_channel_args_test |
| 6306 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6307 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6308 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6309 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6310 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6311 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6312 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6313 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6314 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6315 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6316 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6317 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6318 | ) |
| 6319 | |
| 6320 | target_link_libraries(grpc_channel_args_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6321 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6322 | grpc_test_util |
| 6323 | grpc |
| 6324 | gpr_test_util |
| 6325 | gpr |
| 6326 | ) |
| 6327 | |
| 6328 | endif (gRPC_BUILD_TESTS) |
| 6329 | if (gRPC_BUILD_TESTS) |
| 6330 | |
| 6331 | add_executable(grpc_channel_stack_test |
| 6332 | test/core/channel/channel_stack_test.c |
| 6333 | ) |
| 6334 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6335 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6336 | target_include_directories(grpc_channel_stack_test |
| 6337 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6338 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6339 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6340 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6341 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6342 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6343 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6344 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6345 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6346 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6347 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6348 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6349 | ) |
| 6350 | |
| 6351 | target_link_libraries(grpc_channel_stack_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6352 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6353 | grpc_test_util |
| 6354 | grpc |
| 6355 | gpr_test_util |
| 6356 | gpr |
| 6357 | ) |
| 6358 | |
| 6359 | endif (gRPC_BUILD_TESTS) |
| 6360 | if (gRPC_BUILD_TESTS) |
| 6361 | |
| 6362 | add_executable(grpc_completion_queue_test |
| 6363 | test/core/surface/completion_queue_test.c |
| 6364 | ) |
| 6365 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6366 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6367 | target_include_directories(grpc_completion_queue_test |
| 6368 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6369 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6370 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6371 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6372 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6373 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6374 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6375 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6376 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6377 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6378 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6379 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6380 | ) |
| 6381 | |
| 6382 | target_link_libraries(grpc_completion_queue_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6383 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6384 | grpc_test_util |
| 6385 | grpc |
| 6386 | gpr_test_util |
| 6387 | gpr |
| 6388 | ) |
| 6389 | |
| 6390 | endif (gRPC_BUILD_TESTS) |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 6391 | if (gRPC_BUILD_TESTS) |
| 6392 | |
| 6393 | add_executable(grpc_completion_queue_threading_test |
| 6394 | test/core/surface/completion_queue_threading_test.c |
| 6395 | ) |
| 6396 | |
murgatroid99 | 98cdf3b | 2017-02-23 14:59:45 -0800 | [diff] [blame] | 6397 | |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 6398 | target_include_directories(grpc_completion_queue_threading_test |
| 6399 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6400 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6401 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6402 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
murgatroid99 | 98cdf3b | 2017-02-23 14:59:45 -0800 | [diff] [blame] | 6403 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 6404 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6405 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6406 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6407 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6408 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6409 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 6410 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6411 | ) |
| 6412 | |
| 6413 | target_link_libraries(grpc_completion_queue_threading_test |
murgatroid99 | 98cdf3b | 2017-02-23 14:59:45 -0800 | [diff] [blame] | 6414 | ${_gRPC_ALLTARGETS_LIBRARIES} |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 6415 | grpc_test_util |
| 6416 | grpc |
| 6417 | gpr_test_util |
| 6418 | gpr |
| 6419 | ) |
| 6420 | |
| 6421 | endif (gRPC_BUILD_TESTS) |
Craig Tiller | 1c7a842 | 2016-08-18 11:13:11 -0700 | [diff] [blame] | 6422 | |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 6423 | add_executable(grpc_create_jwt |
| 6424 | test/core/security/create_jwt.c |
| 6425 | ) |
| 6426 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6427 | |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 6428 | target_include_directories(grpc_create_jwt |
| 6429 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6430 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6431 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6432 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6433 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 6434 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6435 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6436 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6437 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6438 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6439 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6440 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 6441 | ) |
| 6442 | |
| 6443 | target_link_libraries(grpc_create_jwt |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 6444 | ${_gRPC_SSL_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6445 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 6446 | grpc |
| 6447 | gpr |
| 6448 | ) |
| 6449 | |
| 6450 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 6451 | if (gRPC_INSTALL) |
| 6452 | install(TARGETS grpc_create_jwt EXPORT gRPCTargets |
| 6453 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 6454 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 6455 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 6456 | ) |
| 6457 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 6458 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6459 | if (gRPC_BUILD_TESTS) |
| 6460 | |
| 6461 | add_executable(grpc_credentials_test |
| 6462 | test/core/security/credentials_test.c |
| 6463 | ) |
| 6464 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6465 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6466 | target_include_directories(grpc_credentials_test |
| 6467 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6468 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6469 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6470 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6471 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6472 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6473 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6474 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6475 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6476 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6477 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6478 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6479 | ) |
| 6480 | |
| 6481 | target_link_libraries(grpc_credentials_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6482 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6483 | grpc_test_util |
| 6484 | grpc |
| 6485 | gpr_test_util |
| 6486 | gpr |
| 6487 | ) |
| 6488 | |
| 6489 | endif (gRPC_BUILD_TESTS) |
| 6490 | if (gRPC_BUILD_TESTS) |
| 6491 | |
| 6492 | add_executable(grpc_fetch_oauth2 |
| 6493 | test/core/security/fetch_oauth2.c |
| 6494 | ) |
| 6495 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6496 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6497 | target_include_directories(grpc_fetch_oauth2 |
| 6498 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6499 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6500 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6501 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6502 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6503 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6504 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6505 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6506 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6507 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6508 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6509 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6510 | ) |
| 6511 | |
| 6512 | target_link_libraries(grpc_fetch_oauth2 |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6513 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6514 | grpc_test_util |
| 6515 | grpc |
| 6516 | gpr_test_util |
| 6517 | gpr |
| 6518 | ) |
| 6519 | |
| 6520 | endif (gRPC_BUILD_TESTS) |
| 6521 | if (gRPC_BUILD_TESTS) |
| 6522 | |
| 6523 | add_executable(grpc_invalid_channel_args_test |
| 6524 | test/core/surface/invalid_channel_args_test.c |
| 6525 | ) |
| 6526 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6527 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6528 | target_include_directories(grpc_invalid_channel_args_test |
| 6529 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6530 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6531 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6532 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6533 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6534 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6535 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6536 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6537 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6538 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6539 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6540 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6541 | ) |
| 6542 | |
| 6543 | target_link_libraries(grpc_invalid_channel_args_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6544 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6545 | grpc_test_util |
| 6546 | grpc |
| 6547 | gpr_test_util |
| 6548 | gpr |
| 6549 | ) |
| 6550 | |
| 6551 | endif (gRPC_BUILD_TESTS) |
| 6552 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6553 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6554 | |
| 6555 | add_executable(grpc_json_token_test |
| 6556 | test/core/security/json_token_test.c |
| 6557 | ) |
| 6558 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6559 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6560 | target_include_directories(grpc_json_token_test |
| 6561 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6562 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6563 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6564 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6565 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6566 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6567 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6568 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6569 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6570 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6571 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6572 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6573 | ) |
| 6574 | |
| 6575 | target_link_libraries(grpc_json_token_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6576 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6577 | grpc_test_util |
| 6578 | grpc |
| 6579 | gpr_test_util |
| 6580 | gpr |
| 6581 | ) |
| 6582 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6583 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6584 | endif (gRPC_BUILD_TESTS) |
| 6585 | if (gRPC_BUILD_TESTS) |
| 6586 | |
| 6587 | add_executable(grpc_jwt_verifier_test |
| 6588 | test/core/security/jwt_verifier_test.c |
| 6589 | ) |
| 6590 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6591 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6592 | target_include_directories(grpc_jwt_verifier_test |
| 6593 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6594 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6595 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6596 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6597 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6598 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6599 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6600 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6601 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6602 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6603 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6604 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6605 | ) |
| 6606 | |
| 6607 | target_link_libraries(grpc_jwt_verifier_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6608 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6609 | grpc_test_util |
| 6610 | grpc |
| 6611 | gpr_test_util |
| 6612 | gpr |
| 6613 | ) |
| 6614 | |
| 6615 | endif (gRPC_BUILD_TESTS) |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 6616 | |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 6617 | add_executable(grpc_print_google_default_creds_token |
| 6618 | test/core/security/print_google_default_creds_token.c |
| 6619 | ) |
| 6620 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6621 | |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 6622 | target_include_directories(grpc_print_google_default_creds_token |
| 6623 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6624 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6625 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6626 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6627 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 6628 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6629 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6630 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6631 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6632 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6633 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6634 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 6635 | ) |
| 6636 | |
| 6637 | target_link_libraries(grpc_print_google_default_creds_token |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6638 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 6639 | grpc |
| 6640 | gpr |
| 6641 | ) |
| 6642 | |
| 6643 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 6644 | if (gRPC_INSTALL) |
| 6645 | install(TARGETS grpc_print_google_default_creds_token EXPORT gRPCTargets |
| 6646 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 6647 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 6648 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 6649 | ) |
| 6650 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 6651 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6652 | if (gRPC_BUILD_TESTS) |
| 6653 | |
| 6654 | add_executable(grpc_security_connector_test |
| 6655 | test/core/security/security_connector_test.c |
| 6656 | ) |
| 6657 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6658 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6659 | target_include_directories(grpc_security_connector_test |
| 6660 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6661 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6662 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6663 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6664 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6665 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6666 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6667 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6668 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6669 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6670 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6671 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6672 | ) |
| 6673 | |
| 6674 | target_link_libraries(grpc_security_connector_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6675 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6676 | grpc_test_util |
| 6677 | grpc |
| 6678 | gpr_test_util |
| 6679 | gpr |
| 6680 | ) |
| 6681 | |
| 6682 | endif (gRPC_BUILD_TESTS) |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 6683 | |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 6684 | add_executable(grpc_verify_jwt |
| 6685 | test/core/security/verify_jwt.c |
| 6686 | ) |
| 6687 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6688 | |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 6689 | target_include_directories(grpc_verify_jwt |
| 6690 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6691 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6692 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6693 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6694 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 6695 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6696 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6697 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6698 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6699 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6700 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6701 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 6702 | ) |
| 6703 | |
| 6704 | target_link_libraries(grpc_verify_jwt |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6705 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Tamas Berghammer | df6a44c | 2016-06-22 13:38:55 +0100 | [diff] [blame] | 6706 | grpc |
| 6707 | gpr |
| 6708 | ) |
| 6709 | |
| 6710 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 6711 | if (gRPC_INSTALL) |
| 6712 | install(TARGETS grpc_verify_jwt EXPORT gRPCTargets |
| 6713 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 6714 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 6715 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 6716 | ) |
| 6717 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 6718 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6719 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6720 | if(_gRPC_PLATFORM_LINUX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6721 | |
| 6722 | add_executable(handshake_client |
| 6723 | test/core/handshake/client_ssl.c |
| 6724 | ) |
| 6725 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6726 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6727 | target_include_directories(handshake_client |
| 6728 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6729 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6730 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6731 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6732 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6733 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6734 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6735 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6736 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6737 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6738 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6739 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6740 | ) |
| 6741 | |
| 6742 | target_link_libraries(handshake_client |
| 6743 | ${_gRPC_SSL_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6744 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6745 | grpc_test_util |
| 6746 | grpc |
| 6747 | gpr_test_util |
| 6748 | gpr |
| 6749 | ) |
| 6750 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6751 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6752 | endif (gRPC_BUILD_TESTS) |
| 6753 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6754 | if(_gRPC_PLATFORM_LINUX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6755 | |
| 6756 | add_executable(handshake_server |
| 6757 | test/core/handshake/server_ssl.c |
| 6758 | ) |
| 6759 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6760 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6761 | target_include_directories(handshake_server |
| 6762 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6763 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6764 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6765 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6766 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6767 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6768 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6769 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6770 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6771 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6772 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6773 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6774 | ) |
| 6775 | |
| 6776 | target_link_libraries(handshake_server |
| 6777 | ${_gRPC_SSL_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6778 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6779 | grpc_test_util |
| 6780 | grpc |
| 6781 | gpr_test_util |
| 6782 | gpr |
| 6783 | ) |
| 6784 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6785 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6786 | endif (gRPC_BUILD_TESTS) |
| 6787 | if (gRPC_BUILD_TESTS) |
| 6788 | |
| 6789 | add_executable(hpack_parser_test |
| 6790 | test/core/transport/chttp2/hpack_parser_test.c |
| 6791 | ) |
| 6792 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6793 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6794 | target_include_directories(hpack_parser_test |
| 6795 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6796 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6797 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6798 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6799 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6800 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6801 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6802 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6803 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6804 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6805 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6806 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6807 | ) |
| 6808 | |
| 6809 | target_link_libraries(hpack_parser_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6810 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6811 | grpc_test_util |
| 6812 | grpc |
| 6813 | gpr_test_util |
| 6814 | gpr |
| 6815 | ) |
| 6816 | |
| 6817 | endif (gRPC_BUILD_TESTS) |
| 6818 | if (gRPC_BUILD_TESTS) |
| 6819 | |
| 6820 | add_executable(hpack_table_test |
| 6821 | test/core/transport/chttp2/hpack_table_test.c |
| 6822 | ) |
| 6823 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6824 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6825 | target_include_directories(hpack_table_test |
| 6826 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6827 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6828 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6829 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6830 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6831 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6832 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6833 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6834 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6835 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6836 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6837 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6838 | ) |
| 6839 | |
| 6840 | target_link_libraries(hpack_table_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6841 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6842 | grpc_test_util |
| 6843 | grpc |
| 6844 | gpr_test_util |
| 6845 | gpr |
| 6846 | ) |
| 6847 | |
| 6848 | endif (gRPC_BUILD_TESTS) |
| 6849 | if (gRPC_BUILD_TESTS) |
| 6850 | |
| 6851 | add_executable(http_parser_test |
| 6852 | test/core/http/parser_test.c |
| 6853 | ) |
| 6854 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6855 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6856 | target_include_directories(http_parser_test |
| 6857 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6858 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6859 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6860 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6861 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6862 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6863 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6864 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6865 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6866 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6867 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6868 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6869 | ) |
| 6870 | |
| 6871 | target_link_libraries(http_parser_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6872 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6873 | grpc_test_util |
| 6874 | grpc |
| 6875 | gpr_test_util |
| 6876 | gpr |
| 6877 | ) |
| 6878 | |
| 6879 | endif (gRPC_BUILD_TESTS) |
| 6880 | if (gRPC_BUILD_TESTS) |
| 6881 | |
| 6882 | add_executable(httpcli_format_request_test |
| 6883 | test/core/http/format_request_test.c |
| 6884 | ) |
| 6885 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6886 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6887 | target_include_directories(httpcli_format_request_test |
| 6888 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6889 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6890 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6891 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6892 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6893 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6894 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6895 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6896 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6897 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6898 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6899 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6900 | ) |
| 6901 | |
| 6902 | target_link_libraries(httpcli_format_request_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6903 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6904 | grpc_test_util |
| 6905 | grpc |
| 6906 | gpr_test_util |
| 6907 | gpr |
| 6908 | ) |
| 6909 | |
| 6910 | endif (gRPC_BUILD_TESTS) |
| 6911 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6912 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6913 | |
| 6914 | add_executable(httpcli_test |
| 6915 | test/core/http/httpcli_test.c |
| 6916 | ) |
| 6917 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6918 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6919 | target_include_directories(httpcli_test |
| 6920 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6921 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6922 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6923 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6924 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6925 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6926 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6927 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6928 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6929 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6930 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6931 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6932 | ) |
| 6933 | |
| 6934 | target_link_libraries(httpcli_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6935 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6936 | grpc_test_util |
| 6937 | grpc |
| 6938 | gpr_test_util |
| 6939 | gpr |
| 6940 | ) |
| 6941 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6942 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6943 | endif (gRPC_BUILD_TESTS) |
| 6944 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6945 | if(_gRPC_PLATFORM_LINUX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6946 | |
| 6947 | add_executable(httpscli_test |
| 6948 | test/core/http/httpscli_test.c |
| 6949 | ) |
| 6950 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6951 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6952 | target_include_directories(httpscli_test |
| 6953 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6954 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6955 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6956 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6957 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6958 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6959 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6960 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6961 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6962 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6963 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6964 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6965 | ) |
| 6966 | |
| 6967 | target_link_libraries(httpscli_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6968 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6969 | grpc_test_util |
| 6970 | grpc |
| 6971 | gpr_test_util |
| 6972 | gpr |
| 6973 | ) |
| 6974 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6975 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6976 | endif (gRPC_BUILD_TESTS) |
| 6977 | if (gRPC_BUILD_TESTS) |
| 6978 | |
| 6979 | add_executable(init_test |
| 6980 | test/core/surface/init_test.c |
| 6981 | ) |
| 6982 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6983 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6984 | target_include_directories(init_test |
| 6985 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 6986 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 6987 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 6988 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 6989 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6990 | PRIVATE ${ZLIB_ROOT_DIR} |
| 6991 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 6992 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 6993 | PRIVATE ${CARES_INCLUDE_DIR} |
| 6994 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 6995 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 6996 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 6997 | ) |
| 6998 | |
| 6999 | target_link_libraries(init_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7000 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7001 | grpc_test_util |
| 7002 | grpc |
| 7003 | gpr_test_util |
| 7004 | gpr |
| 7005 | ) |
| 7006 | |
| 7007 | endif (gRPC_BUILD_TESTS) |
| 7008 | if (gRPC_BUILD_TESTS) |
| 7009 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7010 | add_executable(invalid_call_argument_test |
| 7011 | test/core/end2end/invalid_call_argument_test.c |
| 7012 | ) |
| 7013 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7014 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7015 | target_include_directories(invalid_call_argument_test |
| 7016 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7017 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7018 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7019 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7020 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7021 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7022 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7023 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7024 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7025 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7026 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7027 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7028 | ) |
| 7029 | |
| 7030 | target_link_libraries(invalid_call_argument_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7031 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7032 | grpc_test_util |
| 7033 | grpc |
| 7034 | gpr_test_util |
| 7035 | gpr |
| 7036 | ) |
| 7037 | |
| 7038 | endif (gRPC_BUILD_TESTS) |
| 7039 | if (gRPC_BUILD_TESTS) |
| 7040 | |
| 7041 | add_executable(json_rewrite |
| 7042 | test/core/json/json_rewrite.c |
| 7043 | ) |
| 7044 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7045 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7046 | target_include_directories(json_rewrite |
| 7047 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7048 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7049 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7050 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7051 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7052 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7053 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7054 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7055 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7056 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7057 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7058 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7059 | ) |
| 7060 | |
| 7061 | target_link_libraries(json_rewrite |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7062 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7063 | grpc |
| 7064 | gpr |
| 7065 | ) |
| 7066 | |
| 7067 | endif (gRPC_BUILD_TESTS) |
| 7068 | if (gRPC_BUILD_TESTS) |
| 7069 | |
| 7070 | add_executable(json_rewrite_test |
| 7071 | test/core/json/json_rewrite_test.c |
| 7072 | ) |
| 7073 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7074 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7075 | target_include_directories(json_rewrite_test |
| 7076 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7077 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7078 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7079 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7080 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7081 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7082 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7083 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7084 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7085 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7086 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7087 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7088 | ) |
| 7089 | |
| 7090 | target_link_libraries(json_rewrite_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7091 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7092 | grpc_test_util |
| 7093 | grpc |
| 7094 | gpr_test_util |
| 7095 | gpr |
| 7096 | ) |
| 7097 | |
| 7098 | endif (gRPC_BUILD_TESTS) |
| 7099 | if (gRPC_BUILD_TESTS) |
| 7100 | |
| 7101 | add_executable(json_stream_error_test |
| 7102 | test/core/json/json_stream_error_test.c |
| 7103 | ) |
| 7104 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7105 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7106 | target_include_directories(json_stream_error_test |
| 7107 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7108 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7109 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7110 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7111 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7112 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7113 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7114 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7115 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7116 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7117 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7118 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7119 | ) |
| 7120 | |
| 7121 | target_link_libraries(json_stream_error_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7122 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7123 | grpc_test_util |
| 7124 | grpc |
| 7125 | gpr_test_util |
| 7126 | gpr |
| 7127 | ) |
| 7128 | |
| 7129 | endif (gRPC_BUILD_TESTS) |
| 7130 | if (gRPC_BUILD_TESTS) |
| 7131 | |
| 7132 | add_executable(json_test |
| 7133 | test/core/json/json_test.c |
| 7134 | ) |
| 7135 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7136 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7137 | target_include_directories(json_test |
| 7138 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7139 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7140 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7141 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7142 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7143 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7144 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7145 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7146 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7147 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7148 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7149 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7150 | ) |
| 7151 | |
| 7152 | target_link_libraries(json_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7153 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7154 | grpc_test_util |
| 7155 | grpc |
| 7156 | gpr_test_util |
| 7157 | gpr |
| 7158 | ) |
| 7159 | |
| 7160 | endif (gRPC_BUILD_TESTS) |
| 7161 | if (gRPC_BUILD_TESTS) |
| 7162 | |
| 7163 | add_executable(lame_client_test |
| 7164 | test/core/surface/lame_client_test.c |
| 7165 | ) |
| 7166 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7167 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7168 | target_include_directories(lame_client_test |
| 7169 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7170 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7171 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7172 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7173 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7174 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7175 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7176 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7177 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7178 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7179 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7180 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7181 | ) |
| 7182 | |
| 7183 | target_link_libraries(lame_client_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7184 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7185 | grpc_test_util |
| 7186 | grpc |
| 7187 | gpr_test_util |
| 7188 | gpr |
| 7189 | ) |
| 7190 | |
| 7191 | endif (gRPC_BUILD_TESTS) |
| 7192 | if (gRPC_BUILD_TESTS) |
| 7193 | |
| 7194 | add_executable(lb_policies_test |
| 7195 | test/core/client_channel/lb_policies_test.c |
| 7196 | ) |
| 7197 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7198 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7199 | target_include_directories(lb_policies_test |
| 7200 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7201 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7202 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7203 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7204 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7205 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7206 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7207 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7208 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7209 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7210 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7211 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7212 | ) |
| 7213 | |
| 7214 | target_link_libraries(lb_policies_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7215 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7216 | grpc_test_util |
| 7217 | grpc |
| 7218 | gpr_test_util |
| 7219 | gpr |
| 7220 | ) |
| 7221 | |
| 7222 | endif (gRPC_BUILD_TESTS) |
| 7223 | if (gRPC_BUILD_TESTS) |
| 7224 | |
| 7225 | add_executable(load_file_test |
| 7226 | test/core/iomgr/load_file_test.c |
| 7227 | ) |
| 7228 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7229 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7230 | target_include_directories(load_file_test |
| 7231 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7232 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7233 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7234 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7235 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7236 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7237 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7238 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7239 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7240 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7241 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7242 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7243 | ) |
| 7244 | |
| 7245 | target_link_libraries(load_file_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7246 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7247 | grpc_test_util |
| 7248 | grpc |
| 7249 | gpr_test_util |
| 7250 | gpr |
| 7251 | ) |
| 7252 | |
| 7253 | endif (gRPC_BUILD_TESTS) |
| 7254 | if (gRPC_BUILD_TESTS) |
| 7255 | |
| 7256 | add_executable(memory_profile_client |
| 7257 | test/core/memory_usage/client.c |
| 7258 | ) |
| 7259 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7260 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7261 | target_include_directories(memory_profile_client |
| 7262 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7263 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7264 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7265 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7266 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7267 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7268 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7269 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7270 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7271 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7272 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7273 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7274 | ) |
| 7275 | |
| 7276 | target_link_libraries(memory_profile_client |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7277 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7278 | grpc_test_util |
| 7279 | grpc |
| 7280 | gpr_test_util |
| 7281 | gpr |
| 7282 | ) |
| 7283 | |
| 7284 | endif (gRPC_BUILD_TESTS) |
| 7285 | if (gRPC_BUILD_TESTS) |
| 7286 | |
| 7287 | add_executable(memory_profile_server |
| 7288 | test/core/memory_usage/server.c |
| 7289 | ) |
| 7290 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7291 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7292 | target_include_directories(memory_profile_server |
| 7293 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7294 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7295 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7296 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7297 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7298 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7299 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7300 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7301 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7302 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7303 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7304 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7305 | ) |
| 7306 | |
| 7307 | target_link_libraries(memory_profile_server |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7308 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7309 | grpc_test_util |
| 7310 | grpc |
| 7311 | gpr_test_util |
| 7312 | gpr |
| 7313 | ) |
| 7314 | |
| 7315 | endif (gRPC_BUILD_TESTS) |
| 7316 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7317 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7318 | |
| 7319 | add_executable(memory_profile_test |
| 7320 | test/core/memory_usage/memory_usage_test.c |
| 7321 | ) |
| 7322 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7323 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7324 | target_include_directories(memory_profile_test |
| 7325 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7326 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7327 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7328 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7329 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7330 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7331 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7332 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7333 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7334 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7335 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7336 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7337 | ) |
| 7338 | |
| 7339 | target_link_libraries(memory_profile_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7340 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7341 | grpc_test_util |
| 7342 | grpc |
| 7343 | gpr_test_util |
| 7344 | gpr |
| 7345 | ) |
| 7346 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7347 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7348 | endif (gRPC_BUILD_TESTS) |
| 7349 | if (gRPC_BUILD_TESTS) |
| 7350 | |
| 7351 | add_executable(message_compress_test |
| 7352 | test/core/compression/message_compress_test.c |
| 7353 | ) |
| 7354 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7355 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7356 | target_include_directories(message_compress_test |
| 7357 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7358 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7359 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7360 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7361 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7362 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7363 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7364 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7365 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7366 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7367 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7368 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7369 | ) |
| 7370 | |
| 7371 | target_link_libraries(message_compress_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7372 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7373 | grpc_test_util |
| 7374 | grpc |
| 7375 | gpr_test_util |
| 7376 | gpr |
| 7377 | ) |
| 7378 | |
| 7379 | endif (gRPC_BUILD_TESTS) |
| 7380 | if (gRPC_BUILD_TESTS) |
| 7381 | |
| 7382 | add_executable(mlog_test |
| 7383 | test/core/census/mlog_test.c |
| 7384 | ) |
| 7385 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7386 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7387 | target_include_directories(mlog_test |
| 7388 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7389 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7390 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7391 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7392 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7393 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7394 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7395 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7396 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7397 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7398 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7399 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7400 | ) |
| 7401 | |
| 7402 | target_link_libraries(mlog_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7403 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7404 | grpc_test_util |
| 7405 | grpc |
| 7406 | gpr_test_util |
| 7407 | gpr |
| 7408 | ) |
| 7409 | |
| 7410 | endif (gRPC_BUILD_TESTS) |
| 7411 | if (gRPC_BUILD_TESTS) |
| 7412 | |
| 7413 | add_executable(multiple_server_queues_test |
| 7414 | test/core/end2end/multiple_server_queues_test.c |
| 7415 | ) |
| 7416 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7417 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7418 | target_include_directories(multiple_server_queues_test |
| 7419 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7420 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7421 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7422 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7423 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7424 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7425 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7426 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7427 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7428 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7429 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7430 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7431 | ) |
| 7432 | |
| 7433 | target_link_libraries(multiple_server_queues_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7434 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7435 | grpc_test_util |
| 7436 | grpc |
| 7437 | gpr_test_util |
| 7438 | gpr |
| 7439 | ) |
| 7440 | |
| 7441 | endif (gRPC_BUILD_TESTS) |
| 7442 | if (gRPC_BUILD_TESTS) |
| 7443 | |
| 7444 | add_executable(murmur_hash_test |
| 7445 | test/core/support/murmur_hash_test.c |
| 7446 | ) |
| 7447 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7448 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7449 | target_include_directories(murmur_hash_test |
| 7450 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7451 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7452 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7453 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7454 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7455 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7456 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7457 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7458 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7459 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7460 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7461 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7462 | ) |
| 7463 | |
| 7464 | target_link_libraries(murmur_hash_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7465 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7466 | gpr_test_util |
| 7467 | gpr |
| 7468 | ) |
| 7469 | |
| 7470 | endif (gRPC_BUILD_TESTS) |
| 7471 | if (gRPC_BUILD_TESTS) |
| 7472 | |
| 7473 | add_executable(no_server_test |
| 7474 | test/core/end2end/no_server_test.c |
| 7475 | ) |
| 7476 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7477 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7478 | target_include_directories(no_server_test |
| 7479 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7480 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7481 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7482 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7483 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7484 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7485 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7486 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7487 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7488 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7489 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7490 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7491 | ) |
| 7492 | |
| 7493 | target_link_libraries(no_server_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7494 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7495 | grpc_test_util |
| 7496 | grpc |
| 7497 | gpr_test_util |
| 7498 | gpr |
| 7499 | ) |
| 7500 | |
| 7501 | endif (gRPC_BUILD_TESTS) |
| 7502 | if (gRPC_BUILD_TESTS) |
| 7503 | |
Yuchen Zeng | a9d8a15 | 2017-02-15 15:27:44 -0800 | [diff] [blame] | 7504 | add_executable(parse_address_test |
| 7505 | test/core/client_channel/parse_address_test.c |
| 7506 | ) |
| 7507 | |
David Garcia Quintas | 8a0ec88 | 2017-03-03 16:53:54 -0800 | [diff] [blame] | 7508 | |
Yuchen Zeng | a9d8a15 | 2017-02-15 15:27:44 -0800 | [diff] [blame] | 7509 | target_include_directories(parse_address_test |
| 7510 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7511 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7512 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7513 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
David Garcia Quintas | 8a0ec88 | 2017-03-03 16:53:54 -0800 | [diff] [blame] | 7514 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Yuchen Zeng | a9d8a15 | 2017-02-15 15:27:44 -0800 | [diff] [blame] | 7515 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7516 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7517 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7518 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7519 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7520 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Yuchen Zeng | a9d8a15 | 2017-02-15 15:27:44 -0800 | [diff] [blame] | 7521 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7522 | ) |
| 7523 | |
| 7524 | target_link_libraries(parse_address_test |
David Garcia Quintas | 8a0ec88 | 2017-03-03 16:53:54 -0800 | [diff] [blame] | 7525 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Yuchen Zeng | a9d8a15 | 2017-02-15 15:27:44 -0800 | [diff] [blame] | 7526 | grpc_test_util |
| 7527 | grpc |
| 7528 | gpr_test_util |
| 7529 | gpr |
| 7530 | ) |
| 7531 | |
| 7532 | endif (gRPC_BUILD_TESTS) |
| 7533 | if (gRPC_BUILD_TESTS) |
| 7534 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7535 | add_executable(percent_encoding_test |
| 7536 | test/core/slice/percent_encoding_test.c |
| 7537 | ) |
| 7538 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7539 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7540 | target_include_directories(percent_encoding_test |
| 7541 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7542 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7543 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7544 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7545 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7546 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7547 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7548 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7549 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7550 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7551 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7552 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7553 | ) |
| 7554 | |
| 7555 | target_link_libraries(percent_encoding_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7556 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7557 | grpc_test_util |
| 7558 | grpc |
| 7559 | gpr_test_util |
| 7560 | gpr |
| 7561 | ) |
| 7562 | |
| 7563 | endif (gRPC_BUILD_TESTS) |
| 7564 | if (gRPC_BUILD_TESTS) |
Sree Kuchibhotla | 6613168 | 2017-02-02 09:39:07 -0800 | [diff] [blame] | 7565 | if(_gRPC_PLATFORM_LINUX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7566 | |
Sree Kuchibhotla | 7e87c32 | 2017-01-23 14:11:23 -0800 | [diff] [blame] | 7567 | add_executable(pollset_set_test |
| 7568 | test/core/iomgr/pollset_set_test.c |
| 7569 | ) |
| 7570 | |
Sree Kuchibhotla | 6613168 | 2017-02-02 09:39:07 -0800 | [diff] [blame] | 7571 | |
Sree Kuchibhotla | 7e87c32 | 2017-01-23 14:11:23 -0800 | [diff] [blame] | 7572 | target_include_directories(pollset_set_test |
| 7573 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7574 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7575 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7576 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Sree Kuchibhotla | 6613168 | 2017-02-02 09:39:07 -0800 | [diff] [blame] | 7577 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Sree Kuchibhotla | 7e87c32 | 2017-01-23 14:11:23 -0800 | [diff] [blame] | 7578 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7579 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7580 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7581 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7582 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7583 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Sree Kuchibhotla | 7e87c32 | 2017-01-23 14:11:23 -0800 | [diff] [blame] | 7584 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7585 | ) |
| 7586 | |
| 7587 | target_link_libraries(pollset_set_test |
Sree Kuchibhotla | 6613168 | 2017-02-02 09:39:07 -0800 | [diff] [blame] | 7588 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Sree Kuchibhotla | 7e87c32 | 2017-01-23 14:11:23 -0800 | [diff] [blame] | 7589 | grpc_test_util |
| 7590 | grpc |
| 7591 | gpr_test_util |
| 7592 | gpr |
| 7593 | ) |
| 7594 | |
Sree Kuchibhotla | 6613168 | 2017-02-02 09:39:07 -0800 | [diff] [blame] | 7595 | endif() |
Sree Kuchibhotla | 7e87c32 | 2017-01-23 14:11:23 -0800 | [diff] [blame] | 7596 | endif (gRPC_BUILD_TESTS) |
| 7597 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7598 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7599 | |
Stanley Cheung | 1695218 | 2017-01-27 20:09:31 -0800 | [diff] [blame] | 7600 | add_executable(resolve_address_posix_test |
| 7601 | test/core/iomgr/resolve_address_posix_test.c |
| 7602 | ) |
| 7603 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7604 | |
Stanley Cheung | 1695218 | 2017-01-27 20:09:31 -0800 | [diff] [blame] | 7605 | target_include_directories(resolve_address_posix_test |
| 7606 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7607 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7608 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7609 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7610 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Stanley Cheung | 1695218 | 2017-01-27 20:09:31 -0800 | [diff] [blame] | 7611 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7612 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7613 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7614 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7615 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7616 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Stanley Cheung | 1695218 | 2017-01-27 20:09:31 -0800 | [diff] [blame] | 7617 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7618 | ) |
| 7619 | |
| 7620 | target_link_libraries(resolve_address_posix_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7621 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Stanley Cheung | 1695218 | 2017-01-27 20:09:31 -0800 | [diff] [blame] | 7622 | grpc_test_util |
| 7623 | grpc |
| 7624 | gpr_test_util |
| 7625 | gpr |
| 7626 | ) |
| 7627 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7628 | endif() |
Stanley Cheung | 1695218 | 2017-01-27 20:09:31 -0800 | [diff] [blame] | 7629 | endif (gRPC_BUILD_TESTS) |
| 7630 | if (gRPC_BUILD_TESTS) |
| 7631 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7632 | add_executable(resolve_address_test |
| 7633 | test/core/iomgr/resolve_address_test.c |
| 7634 | ) |
| 7635 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7636 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7637 | target_include_directories(resolve_address_test |
| 7638 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7639 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7640 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7641 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7642 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7643 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7644 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7645 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7646 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7647 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7648 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7649 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7650 | ) |
| 7651 | |
| 7652 | target_link_libraries(resolve_address_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7653 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7654 | grpc_test_util |
| 7655 | grpc |
| 7656 | gpr_test_util |
| 7657 | gpr |
| 7658 | ) |
| 7659 | |
| 7660 | endif (gRPC_BUILD_TESTS) |
| 7661 | if (gRPC_BUILD_TESTS) |
| 7662 | |
| 7663 | add_executable(resource_quota_test |
| 7664 | test/core/iomgr/resource_quota_test.c |
| 7665 | ) |
| 7666 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7667 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7668 | target_include_directories(resource_quota_test |
| 7669 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7670 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7671 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7672 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7673 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7674 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7675 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7676 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7677 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7678 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7679 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7680 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7681 | ) |
| 7682 | |
| 7683 | target_link_libraries(resource_quota_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7684 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7685 | grpc_test_util |
| 7686 | grpc |
| 7687 | gpr_test_util |
| 7688 | gpr |
| 7689 | ) |
| 7690 | |
| 7691 | endif (gRPC_BUILD_TESTS) |
| 7692 | if (gRPC_BUILD_TESTS) |
| 7693 | |
| 7694 | add_executable(secure_channel_create_test |
| 7695 | test/core/surface/secure_channel_create_test.c |
| 7696 | ) |
| 7697 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7698 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7699 | target_include_directories(secure_channel_create_test |
| 7700 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7701 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7702 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7703 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7704 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7705 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7706 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7707 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7708 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7709 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7710 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7711 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7712 | ) |
| 7713 | |
| 7714 | target_link_libraries(secure_channel_create_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7715 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7716 | grpc_test_util |
| 7717 | grpc |
| 7718 | gpr_test_util |
| 7719 | gpr |
| 7720 | ) |
| 7721 | |
| 7722 | endif (gRPC_BUILD_TESTS) |
| 7723 | if (gRPC_BUILD_TESTS) |
| 7724 | |
| 7725 | add_executable(secure_endpoint_test |
| 7726 | test/core/security/secure_endpoint_test.c |
| 7727 | ) |
| 7728 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7729 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7730 | target_include_directories(secure_endpoint_test |
| 7731 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7732 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7733 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7734 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7735 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7736 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7737 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7738 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7739 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7740 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7741 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7742 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7743 | ) |
| 7744 | |
| 7745 | target_link_libraries(secure_endpoint_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7746 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7747 | grpc_test_util |
| 7748 | grpc |
| 7749 | gpr_test_util |
| 7750 | gpr |
| 7751 | ) |
| 7752 | |
| 7753 | endif (gRPC_BUILD_TESTS) |
| 7754 | if (gRPC_BUILD_TESTS) |
| 7755 | |
| 7756 | add_executable(sequential_connectivity_test |
| 7757 | test/core/surface/sequential_connectivity_test.c |
| 7758 | ) |
| 7759 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7760 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7761 | target_include_directories(sequential_connectivity_test |
| 7762 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7763 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7764 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7765 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7766 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7767 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7768 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7769 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7770 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7771 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7772 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7773 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7774 | ) |
| 7775 | |
| 7776 | target_link_libraries(sequential_connectivity_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7777 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7778 | grpc_test_util |
| 7779 | grpc |
| 7780 | gpr_test_util |
| 7781 | gpr |
| 7782 | ) |
| 7783 | |
| 7784 | endif (gRPC_BUILD_TESTS) |
| 7785 | if (gRPC_BUILD_TESTS) |
| 7786 | |
| 7787 | add_executable(server_chttp2_test |
| 7788 | test/core/surface/server_chttp2_test.c |
| 7789 | ) |
| 7790 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7791 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7792 | target_include_directories(server_chttp2_test |
| 7793 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7794 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7795 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7796 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7797 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7798 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7799 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7800 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7801 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7802 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7803 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7804 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7805 | ) |
| 7806 | |
| 7807 | target_link_libraries(server_chttp2_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7808 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7809 | grpc_test_util |
| 7810 | grpc |
| 7811 | gpr_test_util |
| 7812 | gpr |
| 7813 | ) |
| 7814 | |
| 7815 | endif (gRPC_BUILD_TESTS) |
| 7816 | if (gRPC_BUILD_TESTS) |
| 7817 | |
| 7818 | add_executable(server_test |
| 7819 | test/core/surface/server_test.c |
| 7820 | ) |
| 7821 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7822 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7823 | target_include_directories(server_test |
| 7824 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7825 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7826 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7827 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7828 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7829 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7830 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7831 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7832 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7833 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7834 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7835 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7836 | ) |
| 7837 | |
| 7838 | target_link_libraries(server_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7839 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7840 | grpc_test_util |
| 7841 | grpc |
| 7842 | gpr_test_util |
| 7843 | gpr |
| 7844 | ) |
| 7845 | |
| 7846 | endif (gRPC_BUILD_TESTS) |
| 7847 | if (gRPC_BUILD_TESTS) |
| 7848 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7849 | add_executable(slice_buffer_test |
| 7850 | test/core/slice/slice_buffer_test.c |
| 7851 | ) |
| 7852 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7853 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7854 | target_include_directories(slice_buffer_test |
| 7855 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7856 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7857 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7858 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7859 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7860 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7861 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7862 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7863 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7864 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7865 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7866 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7867 | ) |
| 7868 | |
| 7869 | target_link_libraries(slice_buffer_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7870 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7871 | grpc_test_util |
| 7872 | grpc |
| 7873 | gpr_test_util |
| 7874 | gpr |
| 7875 | ) |
| 7876 | |
| 7877 | endif (gRPC_BUILD_TESTS) |
| 7878 | if (gRPC_BUILD_TESTS) |
| 7879 | |
| 7880 | add_executable(slice_string_helpers_test |
| 7881 | test/core/slice/slice_string_helpers_test.c |
| 7882 | ) |
| 7883 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7884 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7885 | target_include_directories(slice_string_helpers_test |
| 7886 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7887 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7888 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7889 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7890 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7891 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7892 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7893 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7894 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7895 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7896 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7897 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7898 | ) |
| 7899 | |
| 7900 | target_link_libraries(slice_string_helpers_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7901 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7902 | grpc_test_util |
| 7903 | grpc |
| 7904 | gpr_test_util |
| 7905 | gpr |
| 7906 | ) |
| 7907 | |
| 7908 | endif (gRPC_BUILD_TESTS) |
| 7909 | if (gRPC_BUILD_TESTS) |
| 7910 | |
| 7911 | add_executable(slice_test |
| 7912 | test/core/slice/slice_test.c |
| 7913 | ) |
| 7914 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7915 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7916 | target_include_directories(slice_test |
| 7917 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7918 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7919 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7920 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7921 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7922 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7923 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7924 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7925 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7926 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7927 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7928 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7929 | ) |
| 7930 | |
| 7931 | target_link_libraries(slice_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7932 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7933 | grpc_test_util |
| 7934 | grpc |
| 7935 | gpr_test_util |
| 7936 | gpr |
| 7937 | ) |
| 7938 | |
| 7939 | endif (gRPC_BUILD_TESTS) |
| 7940 | if (gRPC_BUILD_TESTS) |
| 7941 | |
| 7942 | add_executable(sockaddr_resolver_test |
| 7943 | test/core/client_channel/resolvers/sockaddr_resolver_test.c |
| 7944 | ) |
| 7945 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7946 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7947 | target_include_directories(sockaddr_resolver_test |
| 7948 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7949 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7950 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7951 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7952 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7953 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7954 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7955 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7956 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7957 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7958 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7959 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7960 | ) |
| 7961 | |
| 7962 | target_link_libraries(sockaddr_resolver_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7963 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7964 | grpc_test_util |
| 7965 | grpc |
| 7966 | gpr_test_util |
| 7967 | gpr |
| 7968 | ) |
| 7969 | |
| 7970 | endif (gRPC_BUILD_TESTS) |
| 7971 | if (gRPC_BUILD_TESTS) |
| 7972 | |
| 7973 | add_executable(sockaddr_utils_test |
| 7974 | test/core/iomgr/sockaddr_utils_test.c |
| 7975 | ) |
| 7976 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7977 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7978 | target_include_directories(sockaddr_utils_test |
| 7979 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 7980 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 7981 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 7982 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7983 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7984 | PRIVATE ${ZLIB_ROOT_DIR} |
| 7985 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 7986 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 7987 | PRIVATE ${CARES_INCLUDE_DIR} |
| 7988 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 7989 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7990 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 7991 | ) |
| 7992 | |
| 7993 | target_link_libraries(sockaddr_utils_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 7994 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 7995 | grpc_test_util |
| 7996 | grpc |
| 7997 | gpr_test_util |
| 7998 | gpr |
| 7999 | ) |
| 8000 | |
| 8001 | endif (gRPC_BUILD_TESTS) |
| 8002 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8003 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8004 | |
| 8005 | add_executable(socket_utils_test |
| 8006 | test/core/iomgr/socket_utils_test.c |
| 8007 | ) |
| 8008 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8009 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8010 | target_include_directories(socket_utils_test |
| 8011 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8012 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8013 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8014 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8015 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8016 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8017 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8018 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8019 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8020 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8021 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8022 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8023 | ) |
| 8024 | |
| 8025 | target_link_libraries(socket_utils_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8026 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8027 | grpc_test_util |
| 8028 | grpc |
| 8029 | gpr_test_util |
| 8030 | gpr |
| 8031 | ) |
| 8032 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8033 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8034 | endif (gRPC_BUILD_TESTS) |
| 8035 | if (gRPC_BUILD_TESTS) |
| 8036 | |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 8037 | add_executable(status_conversion_test |
| 8038 | test/core/transport/status_conversion_test.c |
| 8039 | ) |
| 8040 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8041 | |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 8042 | target_include_directories(status_conversion_test |
| 8043 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8044 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8045 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8046 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8047 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 8048 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8049 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8050 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8051 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8052 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8053 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 8054 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8055 | ) |
| 8056 | |
| 8057 | target_link_libraries(status_conversion_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8058 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 8059 | grpc_test_util |
| 8060 | grpc |
| 8061 | gpr_test_util |
| 8062 | gpr |
| 8063 | ) |
| 8064 | |
| 8065 | endif (gRPC_BUILD_TESTS) |
| 8066 | if (gRPC_BUILD_TESTS) |
Craig Tiller | 295df6d | 2017-03-01 11:28:24 -0800 | [diff] [blame] | 8067 | |
| 8068 | add_executable(stream_owned_slice_test |
| 8069 | test/core/transport/stream_owned_slice_test.c |
| 8070 | ) |
| 8071 | |
| 8072 | |
| 8073 | target_include_directories(stream_owned_slice_test |
| 8074 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8075 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8076 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8077 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 8078 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 8079 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8080 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8081 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8082 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8083 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8084 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | 295df6d | 2017-03-01 11:28:24 -0800 | [diff] [blame] | 8085 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8086 | ) |
| 8087 | |
| 8088 | target_link_libraries(stream_owned_slice_test |
| 8089 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 8090 | grpc_test_util |
| 8091 | grpc |
| 8092 | gpr_test_util |
| 8093 | gpr |
| 8094 | ) |
| 8095 | |
| 8096 | endif (gRPC_BUILD_TESTS) |
| 8097 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8098 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Craig Tiller | 7c70b6c | 2017-01-23 07:48:42 -0800 | [diff] [blame] | 8099 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8100 | add_executable(tcp_client_posix_test |
| 8101 | test/core/iomgr/tcp_client_posix_test.c |
| 8102 | ) |
| 8103 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8104 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8105 | target_include_directories(tcp_client_posix_test |
| 8106 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8107 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8108 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8109 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8110 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8111 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8112 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8113 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8114 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8115 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8116 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8117 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8118 | ) |
| 8119 | |
| 8120 | target_link_libraries(tcp_client_posix_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8121 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8122 | grpc_test_util |
| 8123 | grpc |
| 8124 | gpr_test_util |
| 8125 | gpr |
| 8126 | ) |
| 8127 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8128 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8129 | endif (gRPC_BUILD_TESTS) |
| 8130 | if (gRPC_BUILD_TESTS) |
| 8131 | |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 8132 | add_executable(tcp_client_uv_test |
| 8133 | test/core/iomgr/tcp_client_uv_test.c |
| 8134 | ) |
| 8135 | |
murgatroid99 | 98cdf3b | 2017-02-23 14:59:45 -0800 | [diff] [blame] | 8136 | |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 8137 | target_include_directories(tcp_client_uv_test |
| 8138 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8139 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8140 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8141 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
murgatroid99 | 98cdf3b | 2017-02-23 14:59:45 -0800 | [diff] [blame] | 8142 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 8143 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8144 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8145 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8146 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8147 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8148 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 8149 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8150 | ) |
| 8151 | |
| 8152 | target_link_libraries(tcp_client_uv_test |
murgatroid99 | 98cdf3b | 2017-02-23 14:59:45 -0800 | [diff] [blame] | 8153 | ${_gRPC_ALLTARGETS_LIBRARIES} |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 8154 | grpc_test_util |
| 8155 | grpc |
| 8156 | gpr_test_util |
| 8157 | gpr |
| 8158 | ) |
| 8159 | |
| 8160 | endif (gRPC_BUILD_TESTS) |
| 8161 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8162 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8163 | |
| 8164 | add_executable(tcp_posix_test |
| 8165 | test/core/iomgr/tcp_posix_test.c |
| 8166 | ) |
| 8167 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8168 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8169 | target_include_directories(tcp_posix_test |
| 8170 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8171 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8172 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8173 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8174 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8175 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8176 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8177 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8178 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8179 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8180 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8181 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8182 | ) |
| 8183 | |
| 8184 | target_link_libraries(tcp_posix_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8185 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8186 | grpc_test_util |
| 8187 | grpc |
| 8188 | gpr_test_util |
| 8189 | gpr |
| 8190 | ) |
| 8191 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8192 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8193 | endif (gRPC_BUILD_TESTS) |
| 8194 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8195 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8196 | |
| 8197 | add_executable(tcp_server_posix_test |
| 8198 | test/core/iomgr/tcp_server_posix_test.c |
| 8199 | ) |
| 8200 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8201 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8202 | target_include_directories(tcp_server_posix_test |
| 8203 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8204 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8205 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8206 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8207 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8208 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8209 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8210 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8211 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8212 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8213 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8214 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8215 | ) |
| 8216 | |
| 8217 | target_link_libraries(tcp_server_posix_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8218 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8219 | grpc_test_util |
| 8220 | grpc |
| 8221 | gpr_test_util |
| 8222 | gpr |
| 8223 | ) |
| 8224 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8225 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8226 | endif (gRPC_BUILD_TESTS) |
| 8227 | if (gRPC_BUILD_TESTS) |
| 8228 | |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 8229 | add_executable(tcp_server_uv_test |
| 8230 | test/core/iomgr/tcp_server_uv_test.c |
| 8231 | ) |
| 8232 | |
murgatroid99 | 98cdf3b | 2017-02-23 14:59:45 -0800 | [diff] [blame] | 8233 | |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 8234 | target_include_directories(tcp_server_uv_test |
| 8235 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8236 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8237 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8238 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
murgatroid99 | 98cdf3b | 2017-02-23 14:59:45 -0800 | [diff] [blame] | 8239 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 8240 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8241 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8242 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8243 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8244 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8245 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 8246 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8247 | ) |
| 8248 | |
| 8249 | target_link_libraries(tcp_server_uv_test |
murgatroid99 | 98cdf3b | 2017-02-23 14:59:45 -0800 | [diff] [blame] | 8250 | ${_gRPC_ALLTARGETS_LIBRARIES} |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 8251 | grpc_test_util |
| 8252 | grpc |
| 8253 | gpr_test_util |
| 8254 | gpr |
| 8255 | ) |
| 8256 | |
| 8257 | endif (gRPC_BUILD_TESTS) |
| 8258 | if (gRPC_BUILD_TESTS) |
| 8259 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8260 | add_executable(time_averaged_stats_test |
| 8261 | test/core/iomgr/time_averaged_stats_test.c |
| 8262 | ) |
| 8263 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8264 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8265 | target_include_directories(time_averaged_stats_test |
| 8266 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8267 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8268 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8269 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8270 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8271 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8272 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8273 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8274 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8275 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8276 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8277 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8278 | ) |
| 8279 | |
| 8280 | target_link_libraries(time_averaged_stats_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8281 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8282 | grpc_test_util |
| 8283 | grpc |
| 8284 | gpr_test_util |
| 8285 | gpr |
| 8286 | ) |
| 8287 | |
| 8288 | endif (gRPC_BUILD_TESTS) |
| 8289 | if (gRPC_BUILD_TESTS) |
| 8290 | |
| 8291 | add_executable(timeout_encoding_test |
| 8292 | test/core/transport/timeout_encoding_test.c |
| 8293 | ) |
| 8294 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8295 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8296 | target_include_directories(timeout_encoding_test |
| 8297 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8298 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8299 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8300 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8301 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8302 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8303 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8304 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8305 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8306 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8307 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8308 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8309 | ) |
| 8310 | |
| 8311 | target_link_libraries(timeout_encoding_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8312 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8313 | grpc_test_util |
| 8314 | grpc |
| 8315 | gpr_test_util |
| 8316 | gpr |
| 8317 | ) |
| 8318 | |
| 8319 | endif (gRPC_BUILD_TESTS) |
| 8320 | if (gRPC_BUILD_TESTS) |
| 8321 | |
| 8322 | add_executable(timer_heap_test |
| 8323 | test/core/iomgr/timer_heap_test.c |
| 8324 | ) |
| 8325 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8326 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8327 | target_include_directories(timer_heap_test |
| 8328 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8329 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8330 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8331 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8332 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8333 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8334 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8335 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8336 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8337 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8338 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8339 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8340 | ) |
| 8341 | |
| 8342 | target_link_libraries(timer_heap_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8343 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8344 | grpc_test_util |
| 8345 | grpc |
| 8346 | gpr_test_util |
| 8347 | gpr |
| 8348 | ) |
| 8349 | |
| 8350 | endif (gRPC_BUILD_TESTS) |
| 8351 | if (gRPC_BUILD_TESTS) |
| 8352 | |
| 8353 | add_executable(timer_list_test |
| 8354 | test/core/iomgr/timer_list_test.c |
| 8355 | ) |
| 8356 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8357 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8358 | target_include_directories(timer_list_test |
| 8359 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8360 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8361 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8362 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8363 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8364 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8365 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8366 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8367 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8368 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8369 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8370 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8371 | ) |
| 8372 | |
| 8373 | target_link_libraries(timer_list_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8374 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8375 | grpc_test_util |
| 8376 | grpc |
| 8377 | gpr_test_util |
| 8378 | gpr |
| 8379 | ) |
| 8380 | |
| 8381 | endif (gRPC_BUILD_TESTS) |
| 8382 | if (gRPC_BUILD_TESTS) |
| 8383 | |
| 8384 | add_executable(transport_connectivity_state_test |
| 8385 | test/core/transport/connectivity_state_test.c |
| 8386 | ) |
| 8387 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8388 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8389 | target_include_directories(transport_connectivity_state_test |
| 8390 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8391 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8392 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8393 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8394 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8395 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8396 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8397 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8398 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8399 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8400 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8401 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8402 | ) |
| 8403 | |
| 8404 | target_link_libraries(transport_connectivity_state_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8405 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8406 | grpc_test_util |
| 8407 | grpc |
| 8408 | gpr_test_util |
| 8409 | gpr |
| 8410 | ) |
| 8411 | |
| 8412 | endif (gRPC_BUILD_TESTS) |
| 8413 | if (gRPC_BUILD_TESTS) |
| 8414 | |
| 8415 | add_executable(transport_metadata_test |
| 8416 | test/core/transport/metadata_test.c |
| 8417 | ) |
| 8418 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8419 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8420 | target_include_directories(transport_metadata_test |
| 8421 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8422 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8423 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8424 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8425 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8426 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8427 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8428 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8429 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8430 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8431 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8432 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8433 | ) |
| 8434 | |
| 8435 | target_link_libraries(transport_metadata_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8436 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8437 | grpc_test_util |
| 8438 | grpc |
| 8439 | gpr_test_util |
| 8440 | gpr |
| 8441 | ) |
| 8442 | |
| 8443 | endif (gRPC_BUILD_TESTS) |
| 8444 | if (gRPC_BUILD_TESTS) |
| 8445 | |
| 8446 | add_executable(transport_pid_controller_test |
| 8447 | test/core/transport/pid_controller_test.c |
| 8448 | ) |
| 8449 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8450 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8451 | target_include_directories(transport_pid_controller_test |
| 8452 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8453 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8454 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8455 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8456 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8457 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8458 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8459 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8460 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8461 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8462 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8463 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8464 | ) |
| 8465 | |
| 8466 | target_link_libraries(transport_pid_controller_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8467 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8468 | grpc_test_util |
| 8469 | grpc |
| 8470 | gpr_test_util |
| 8471 | gpr |
| 8472 | ) |
| 8473 | |
| 8474 | endif (gRPC_BUILD_TESTS) |
| 8475 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8476 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8477 | |
| 8478 | add_executable(transport_security_test |
| 8479 | test/core/tsi/transport_security_test.c |
| 8480 | ) |
| 8481 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8482 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8483 | target_include_directories(transport_security_test |
| 8484 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8485 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8486 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8487 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8488 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8489 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8490 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8491 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8492 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8493 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8494 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8495 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8496 | ) |
| 8497 | |
| 8498 | target_link_libraries(transport_security_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8499 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8500 | grpc_test_util |
| 8501 | grpc |
| 8502 | gpr_test_util |
| 8503 | gpr |
| 8504 | ) |
| 8505 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8506 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8507 | endif (gRPC_BUILD_TESTS) |
| 8508 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8509 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8510 | |
| 8511 | add_executable(udp_server_test |
| 8512 | test/core/iomgr/udp_server_test.c |
| 8513 | ) |
| 8514 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8515 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8516 | target_include_directories(udp_server_test |
| 8517 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8518 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8519 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8520 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8521 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8522 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8523 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8524 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8525 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8526 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8527 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8528 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8529 | ) |
| 8530 | |
| 8531 | target_link_libraries(udp_server_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8532 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8533 | grpc_test_util |
| 8534 | grpc |
| 8535 | gpr_test_util |
| 8536 | gpr |
| 8537 | ) |
| 8538 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8539 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8540 | endif (gRPC_BUILD_TESTS) |
| 8541 | if (gRPC_BUILD_TESTS) |
| 8542 | |
| 8543 | add_executable(uri_parser_test |
| 8544 | test/core/client_channel/uri_parser_test.c |
| 8545 | ) |
| 8546 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8547 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8548 | target_include_directories(uri_parser_test |
| 8549 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8550 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8551 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8552 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8553 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8554 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8555 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8556 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8557 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8558 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8559 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8560 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8561 | ) |
| 8562 | |
| 8563 | target_link_libraries(uri_parser_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8564 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8565 | grpc_test_util |
| 8566 | grpc |
| 8567 | gpr_test_util |
| 8568 | gpr |
| 8569 | ) |
| 8570 | |
| 8571 | endif (gRPC_BUILD_TESTS) |
| 8572 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8573 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8574 | |
| 8575 | add_executable(wakeup_fd_cv_test |
| 8576 | test/core/iomgr/wakeup_fd_cv_test.c |
| 8577 | ) |
| 8578 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8579 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8580 | target_include_directories(wakeup_fd_cv_test |
| 8581 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8582 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8583 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8584 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8585 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8586 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8587 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8588 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8589 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8590 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8591 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8592 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8593 | ) |
| 8594 | |
| 8595 | target_link_libraries(wakeup_fd_cv_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8596 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8597 | grpc_test_util |
| 8598 | grpc |
| 8599 | gpr_test_util |
| 8600 | gpr |
| 8601 | ) |
| 8602 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8603 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8604 | endif (gRPC_BUILD_TESTS) |
| 8605 | if (gRPC_BUILD_TESTS) |
| 8606 | |
| 8607 | add_executable(alarm_cpp_test |
| 8608 | test/cpp/common/alarm_cpp_test.cc |
| 8609 | third_party/googletest/src/gtest-all.cc |
| 8610 | ) |
| 8611 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8612 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8613 | target_include_directories(alarm_cpp_test |
| 8614 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8615 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8616 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8617 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8618 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8619 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8620 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8621 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8622 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8623 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8624 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8625 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8626 | PRIVATE third_party/googletest/include |
| 8627 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8628 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8629 | ) |
| 8630 | |
| 8631 | target_link_libraries(alarm_cpp_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8632 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 8633 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8634 | grpc++_test_util |
| 8635 | grpc_test_util |
| 8636 | grpc++ |
| 8637 | grpc |
| 8638 | gpr_test_util |
| 8639 | gpr |
| 8640 | ${_gRPC_GFLAGS_LIBRARIES} |
| 8641 | ) |
| 8642 | |
| 8643 | endif (gRPC_BUILD_TESTS) |
| 8644 | if (gRPC_BUILD_TESTS) |
| 8645 | |
| 8646 | add_executable(async_end2end_test |
| 8647 | test/cpp/end2end/async_end2end_test.cc |
| 8648 | third_party/googletest/src/gtest-all.cc |
| 8649 | ) |
| 8650 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8651 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8652 | target_include_directories(async_end2end_test |
| 8653 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8654 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8655 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8656 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8657 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8658 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8659 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8660 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8661 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8662 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8663 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8664 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8665 | PRIVATE third_party/googletest/include |
| 8666 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8667 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8668 | ) |
| 8669 | |
| 8670 | target_link_libraries(async_end2end_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8671 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 8672 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8673 | grpc++_test_util |
| 8674 | grpc_test_util |
| 8675 | grpc++ |
| 8676 | grpc |
| 8677 | gpr_test_util |
| 8678 | gpr |
| 8679 | ${_gRPC_GFLAGS_LIBRARIES} |
| 8680 | ) |
| 8681 | |
| 8682 | endif (gRPC_BUILD_TESTS) |
| 8683 | if (gRPC_BUILD_TESTS) |
| 8684 | |
| 8685 | add_executable(auth_property_iterator_test |
| 8686 | test/cpp/common/auth_property_iterator_test.cc |
| 8687 | third_party/googletest/src/gtest-all.cc |
| 8688 | ) |
| 8689 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8690 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8691 | target_include_directories(auth_property_iterator_test |
| 8692 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8693 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8694 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8695 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8696 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8697 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8698 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8699 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8700 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8701 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8702 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8703 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8704 | PRIVATE third_party/googletest/include |
| 8705 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8706 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8707 | ) |
| 8708 | |
| 8709 | target_link_libraries(auth_property_iterator_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8710 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 8711 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8712 | grpc++_test_util |
| 8713 | grpc_test_util |
| 8714 | grpc++ |
| 8715 | grpc |
| 8716 | gpr_test_util |
| 8717 | gpr |
| 8718 | ${_gRPC_GFLAGS_LIBRARIES} |
| 8719 | ) |
| 8720 | |
| 8721 | endif (gRPC_BUILD_TESTS) |
| 8722 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 8723 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 8724 | |
Craig Tiller | 9202b3f | 2017-03-12 22:30:38 -0700 | [diff] [blame] | 8725 | add_executable(bm_arena |
| 8726 | test/cpp/microbenchmarks/bm_arena.cc |
| 8727 | third_party/googletest/src/gtest-all.cc |
| 8728 | ) |
| 8729 | |
| 8730 | |
| 8731 | target_include_directories(bm_arena |
| 8732 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8733 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8734 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8735 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 8736 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 8737 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8738 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8739 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8740 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8741 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8742 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | 9202b3f | 2017-03-12 22:30:38 -0700 | [diff] [blame] | 8743 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8744 | PRIVATE third_party/googletest/include |
| 8745 | PRIVATE third_party/googletest |
| 8746 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 8747 | ) |
| 8748 | |
| 8749 | target_link_libraries(bm_arena |
| 8750 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 8751 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 8752 | grpc_benchmark |
| 8753 | benchmark |
| 8754 | grpc++_test_util |
| 8755 | grpc_test_util |
| 8756 | grpc++ |
| 8757 | grpc |
| 8758 | gpr_test_util |
| 8759 | gpr |
| 8760 | ${_gRPC_GFLAGS_LIBRARIES} |
| 8761 | ) |
| 8762 | |
| 8763 | endif() |
| 8764 | endif (gRPC_BUILD_TESTS) |
| 8765 | if (gRPC_BUILD_TESTS) |
| 8766 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 8767 | |
Craig Tiller | fd044b8 | 2017-02-15 16:15:48 -0800 | [diff] [blame] | 8768 | add_executable(bm_call_create |
| 8769 | test/cpp/microbenchmarks/bm_call_create.cc |
| 8770 | third_party/googletest/src/gtest-all.cc |
| 8771 | ) |
| 8772 | |
| 8773 | |
| 8774 | target_include_directories(bm_call_create |
| 8775 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8776 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8777 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8778 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 8779 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 8780 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8781 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8782 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8783 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8784 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8785 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | fd044b8 | 2017-02-15 16:15:48 -0800 | [diff] [blame] | 8786 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8787 | PRIVATE third_party/googletest/include |
| 8788 | PRIVATE third_party/googletest |
| 8789 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 8790 | ) |
| 8791 | |
| 8792 | target_link_libraries(bm_call_create |
| 8793 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 8794 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Craig Tiller | 5e32153 | 2017-03-03 08:50:25 -0800 | [diff] [blame] | 8795 | grpc_benchmark |
Craig Tiller | fd044b8 | 2017-02-15 16:15:48 -0800 | [diff] [blame] | 8796 | benchmark |
| 8797 | grpc++_test_util |
| 8798 | grpc_test_util |
| 8799 | grpc++ |
| 8800 | grpc |
| 8801 | gpr_test_util |
| 8802 | gpr |
| 8803 | ${_gRPC_GFLAGS_LIBRARIES} |
| 8804 | ) |
| 8805 | |
| 8806 | endif() |
| 8807 | endif (gRPC_BUILD_TESTS) |
| 8808 | if (gRPC_BUILD_TESTS) |
| 8809 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 8810 | |
Craig Tiller | 523d54b | 2017-02-23 08:52:38 -0800 | [diff] [blame] | 8811 | add_executable(bm_chttp2_hpack |
| 8812 | test/cpp/microbenchmarks/bm_chttp2_hpack.cc |
Craig Tiller | 2f792d9 | 2017-02-22 16:26:33 -0800 | [diff] [blame] | 8813 | third_party/googletest/src/gtest-all.cc |
| 8814 | ) |
| 8815 | |
| 8816 | |
Craig Tiller | 523d54b | 2017-02-23 08:52:38 -0800 | [diff] [blame] | 8817 | target_include_directories(bm_chttp2_hpack |
Craig Tiller | 2f792d9 | 2017-02-22 16:26:33 -0800 | [diff] [blame] | 8818 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8819 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8820 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8821 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 8822 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 8823 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8824 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8825 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8826 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8827 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8828 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | 2f792d9 | 2017-02-22 16:26:33 -0800 | [diff] [blame] | 8829 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8830 | PRIVATE third_party/googletest/include |
| 8831 | PRIVATE third_party/googletest |
| 8832 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 8833 | ) |
| 8834 | |
Craig Tiller | 523d54b | 2017-02-23 08:52:38 -0800 | [diff] [blame] | 8835 | target_link_libraries(bm_chttp2_hpack |
Craig Tiller | 2f792d9 | 2017-02-22 16:26:33 -0800 | [diff] [blame] | 8836 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 8837 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Craig Tiller | 5e32153 | 2017-03-03 08:50:25 -0800 | [diff] [blame] | 8838 | grpc_benchmark |
Craig Tiller | 2f792d9 | 2017-02-22 16:26:33 -0800 | [diff] [blame] | 8839 | benchmark |
| 8840 | grpc++_test_util |
| 8841 | grpc_test_util |
| 8842 | grpc++ |
| 8843 | grpc |
| 8844 | gpr_test_util |
| 8845 | gpr |
| 8846 | ${_gRPC_GFLAGS_LIBRARIES} |
| 8847 | ) |
| 8848 | |
| 8849 | endif() |
| 8850 | endif (gRPC_BUILD_TESTS) |
| 8851 | if (gRPC_BUILD_TESTS) |
| 8852 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 8853 | |
Craig Tiller | 18f09a0 | 2017-02-23 17:10:04 -0800 | [diff] [blame] | 8854 | add_executable(bm_chttp2_transport |
| 8855 | test/cpp/microbenchmarks/bm_chttp2_transport.cc |
| 8856 | third_party/googletest/src/gtest-all.cc |
| 8857 | ) |
| 8858 | |
| 8859 | |
| 8860 | target_include_directories(bm_chttp2_transport |
| 8861 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8862 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8863 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8864 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 8865 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 8866 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8867 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 937302b | 2017-03-22 10:54:31 -0700 | [diff] [blame] | 8868 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
| 8869 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8870 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8871 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | 18f09a0 | 2017-02-23 17:10:04 -0800 | [diff] [blame] | 8872 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8873 | PRIVATE third_party/googletest/include |
| 8874 | PRIVATE third_party/googletest |
| 8875 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 8876 | ) |
| 8877 | |
| 8878 | target_link_libraries(bm_chttp2_transport |
| 8879 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 8880 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 8881 | grpc_benchmark |
| 8882 | benchmark |
| 8883 | grpc++_test_util |
| 8884 | grpc_test_util |
| 8885 | grpc++ |
| 8886 | grpc |
| 8887 | gpr_test_util |
| 8888 | gpr |
| 8889 | ${_gRPC_GFLAGS_LIBRARIES} |
| 8890 | ) |
| 8891 | |
| 8892 | endif() |
| 8893 | endif (gRPC_BUILD_TESTS) |
| 8894 | if (gRPC_BUILD_TESTS) |
| 8895 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 8896 | |
Craig Tiller | b3f34b6 | 2017-02-13 10:29:33 -0800 | [diff] [blame] | 8897 | add_executable(bm_closure |
| 8898 | test/cpp/microbenchmarks/bm_closure.cc |
| 8899 | third_party/googletest/src/gtest-all.cc |
| 8900 | ) |
| 8901 | |
| 8902 | |
| 8903 | target_include_directories(bm_closure |
| 8904 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8905 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8906 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8907 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 8908 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 8909 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8910 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8911 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8912 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8913 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8914 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | b3f34b6 | 2017-02-13 10:29:33 -0800 | [diff] [blame] | 8915 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8916 | PRIVATE third_party/googletest/include |
| 8917 | PRIVATE third_party/googletest |
| 8918 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 8919 | ) |
| 8920 | |
| 8921 | target_link_libraries(bm_closure |
| 8922 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 8923 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Craig Tiller | 5e32153 | 2017-03-03 08:50:25 -0800 | [diff] [blame] | 8924 | grpc_benchmark |
Craig Tiller | b3f34b6 | 2017-02-13 10:29:33 -0800 | [diff] [blame] | 8925 | benchmark |
Craig Tiller | 510f38a | 2017-02-24 17:00:19 -0800 | [diff] [blame] | 8926 | grpc++_test_util |
Craig Tiller | b3f34b6 | 2017-02-13 10:29:33 -0800 | [diff] [blame] | 8927 | grpc_test_util |
Craig Tiller | 510f38a | 2017-02-24 17:00:19 -0800 | [diff] [blame] | 8928 | grpc++ |
Craig Tiller | b3f34b6 | 2017-02-13 10:29:33 -0800 | [diff] [blame] | 8929 | grpc |
| 8930 | gpr_test_util |
| 8931 | gpr |
| 8932 | ${_gRPC_GFLAGS_LIBRARIES} |
| 8933 | ) |
| 8934 | |
| 8935 | endif() |
| 8936 | endif (gRPC_BUILD_TESTS) |
| 8937 | if (gRPC_BUILD_TESTS) |
| 8938 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 8939 | |
Craig Tiller | 14ae538 | 2017-02-14 12:43:50 -0800 | [diff] [blame] | 8940 | add_executable(bm_cq |
| 8941 | test/cpp/microbenchmarks/bm_cq.cc |
| 8942 | third_party/googletest/src/gtest-all.cc |
| 8943 | ) |
| 8944 | |
| 8945 | |
| 8946 | target_include_directories(bm_cq |
| 8947 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8948 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8949 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8950 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 8951 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 8952 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8953 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8954 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8955 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8956 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 8957 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | 14ae538 | 2017-02-14 12:43:50 -0800 | [diff] [blame] | 8958 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 8959 | PRIVATE third_party/googletest/include |
| 8960 | PRIVATE third_party/googletest |
| 8961 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 8962 | ) |
| 8963 | |
| 8964 | target_link_libraries(bm_cq |
| 8965 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 8966 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Craig Tiller | 5e32153 | 2017-03-03 08:50:25 -0800 | [diff] [blame] | 8967 | grpc_benchmark |
Craig Tiller | 14ae538 | 2017-02-14 12:43:50 -0800 | [diff] [blame] | 8968 | benchmark |
| 8969 | grpc++_test_util |
| 8970 | grpc_test_util |
| 8971 | grpc++ |
| 8972 | grpc |
| 8973 | gpr_test_util |
| 8974 | gpr |
| 8975 | ${_gRPC_GFLAGS_LIBRARIES} |
| 8976 | ) |
| 8977 | |
| 8978 | endif() |
| 8979 | endif (gRPC_BUILD_TESTS) |
| 8980 | if (gRPC_BUILD_TESTS) |
| 8981 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 8982 | |
Craig Tiller | 264307f | 2017-02-16 09:07:45 -0800 | [diff] [blame] | 8983 | add_executable(bm_error |
| 8984 | test/cpp/microbenchmarks/bm_error.cc |
| 8985 | third_party/googletest/src/gtest-all.cc |
| 8986 | ) |
| 8987 | |
| 8988 | |
| 8989 | target_include_directories(bm_error |
| 8990 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 8991 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 8992 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 8993 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 8994 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 8995 | PRIVATE ${ZLIB_ROOT_DIR} |
| 8996 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 8997 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 8998 | PRIVATE ${CARES_INCLUDE_DIR} |
| 8999 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9000 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | 264307f | 2017-02-16 09:07:45 -0800 | [diff] [blame] | 9001 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9002 | PRIVATE third_party/googletest/include |
| 9003 | PRIVATE third_party/googletest |
| 9004 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 9005 | ) |
| 9006 | |
| 9007 | target_link_libraries(bm_error |
| 9008 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9009 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Craig Tiller | 5e32153 | 2017-03-03 08:50:25 -0800 | [diff] [blame] | 9010 | grpc_benchmark |
Craig Tiller | 264307f | 2017-02-16 09:07:45 -0800 | [diff] [blame] | 9011 | benchmark |
| 9012 | grpc++_test_util |
| 9013 | grpc_test_util |
| 9014 | grpc++ |
| 9015 | grpc |
| 9016 | gpr_test_util |
| 9017 | gpr |
| 9018 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9019 | ) |
| 9020 | |
| 9021 | endif() |
| 9022 | endif (gRPC_BUILD_TESTS) |
| 9023 | if (gRPC_BUILD_TESTS) |
| 9024 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 9025 | |
Craig Tiller | 12d22e4 | 2017-03-03 10:14:20 -0800 | [diff] [blame] | 9026 | add_executable(bm_fullstack_streaming_ping_pong |
| 9027 | test/cpp/microbenchmarks/bm_fullstack_streaming_ping_pong.cc |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9028 | third_party/googletest/src/gtest-all.cc |
| 9029 | ) |
| 9030 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9031 | |
Craig Tiller | 12d22e4 | 2017-03-03 10:14:20 -0800 | [diff] [blame] | 9032 | target_include_directories(bm_fullstack_streaming_ping_pong |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 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 |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9037 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9038 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9039 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9040 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9041 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9042 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9043 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9044 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9045 | PRIVATE third_party/googletest/include |
| 9046 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9047 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9048 | ) |
| 9049 | |
Craig Tiller | 12d22e4 | 2017-03-03 10:14:20 -0800 | [diff] [blame] | 9050 | target_link_libraries(bm_fullstack_streaming_ping_pong |
| 9051 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9052 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 9053 | grpc_benchmark |
| 9054 | benchmark |
| 9055 | grpc++_test_util |
| 9056 | grpc_test_util |
| 9057 | grpc++ |
| 9058 | grpc |
| 9059 | gpr_test_util |
| 9060 | gpr |
| 9061 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9062 | ) |
| 9063 | |
| 9064 | endif() |
| 9065 | endif (gRPC_BUILD_TESTS) |
| 9066 | if (gRPC_BUILD_TESTS) |
| 9067 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 9068 | |
| 9069 | add_executable(bm_fullstack_streaming_pump |
| 9070 | test/cpp/microbenchmarks/bm_fullstack_streaming_pump.cc |
| 9071 | third_party/googletest/src/gtest-all.cc |
| 9072 | ) |
| 9073 | |
| 9074 | |
| 9075 | target_include_directories(bm_fullstack_streaming_pump |
| 9076 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9077 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9078 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9079 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 9080 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 9081 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9082 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9083 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9084 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9085 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9086 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | 12d22e4 | 2017-03-03 10:14:20 -0800 | [diff] [blame] | 9087 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9088 | PRIVATE third_party/googletest/include |
| 9089 | PRIVATE third_party/googletest |
| 9090 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 9091 | ) |
| 9092 | |
| 9093 | target_link_libraries(bm_fullstack_streaming_pump |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9094 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9095 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Craig Tiller | 5e32153 | 2017-03-03 08:50:25 -0800 | [diff] [blame] | 9096 | grpc_benchmark |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9097 | benchmark |
| 9098 | grpc++_test_util |
| 9099 | grpc_test_util |
| 9100 | grpc++ |
| 9101 | grpc |
| 9102 | gpr_test_util |
| 9103 | gpr |
| 9104 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9105 | ) |
| 9106 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9107 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9108 | endif (gRPC_BUILD_TESTS) |
| 9109 | if (gRPC_BUILD_TESTS) |
Craig Tiller | b8e2bca | 2017-02-16 16:26:51 -0800 | [diff] [blame] | 9110 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 9111 | |
Craig Tiller | 52bd441 | 2017-03-03 10:52:22 -0800 | [diff] [blame] | 9112 | add_executable(bm_fullstack_trickle |
| 9113 | test/cpp/microbenchmarks/bm_fullstack_trickle.cc |
| 9114 | third_party/googletest/src/gtest-all.cc |
| 9115 | ) |
| 9116 | |
| 9117 | |
| 9118 | target_include_directories(bm_fullstack_trickle |
| 9119 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9120 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9121 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9122 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 9123 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 9124 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9125 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9126 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9127 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9128 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9129 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | 52bd441 | 2017-03-03 10:52:22 -0800 | [diff] [blame] | 9130 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9131 | PRIVATE third_party/googletest/include |
| 9132 | PRIVATE third_party/googletest |
| 9133 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 9134 | ) |
| 9135 | |
| 9136 | target_link_libraries(bm_fullstack_trickle |
| 9137 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9138 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 9139 | grpc_benchmark |
| 9140 | benchmark |
| 9141 | grpc++_test_util |
| 9142 | grpc_test_util |
| 9143 | grpc++ |
| 9144 | grpc |
| 9145 | gpr_test_util |
| 9146 | gpr |
| 9147 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9148 | ) |
| 9149 | |
| 9150 | endif() |
| 9151 | endif (gRPC_BUILD_TESTS) |
| 9152 | if (gRPC_BUILD_TESTS) |
| 9153 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 9154 | |
Craig Tiller | 62ac65b | 2017-03-03 09:57:43 -0800 | [diff] [blame] | 9155 | add_executable(bm_fullstack_unary_ping_pong |
| 9156 | test/cpp/microbenchmarks/bm_fullstack_unary_ping_pong.cc |
| 9157 | third_party/googletest/src/gtest-all.cc |
| 9158 | ) |
| 9159 | |
| 9160 | |
| 9161 | target_include_directories(bm_fullstack_unary_ping_pong |
| 9162 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9163 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9164 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9165 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 9166 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 9167 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9168 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9169 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9170 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9171 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9172 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | 62ac65b | 2017-03-03 09:57:43 -0800 | [diff] [blame] | 9173 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9174 | PRIVATE third_party/googletest/include |
| 9175 | PRIVATE third_party/googletest |
| 9176 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 9177 | ) |
| 9178 | |
| 9179 | target_link_libraries(bm_fullstack_unary_ping_pong |
| 9180 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9181 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 9182 | grpc_benchmark |
| 9183 | benchmark |
| 9184 | grpc++_test_util |
| 9185 | grpc_test_util |
| 9186 | grpc++ |
| 9187 | grpc |
| 9188 | gpr_test_util |
| 9189 | gpr |
| 9190 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9191 | ) |
| 9192 | |
| 9193 | endif() |
| 9194 | endif (gRPC_BUILD_TESTS) |
| 9195 | if (gRPC_BUILD_TESTS) |
| 9196 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 9197 | |
Craig Tiller | b8e2bca | 2017-02-16 16:26:51 -0800 | [diff] [blame] | 9198 | add_executable(bm_metadata |
| 9199 | test/cpp/microbenchmarks/bm_metadata.cc |
| 9200 | third_party/googletest/src/gtest-all.cc |
| 9201 | ) |
| 9202 | |
| 9203 | |
| 9204 | target_include_directories(bm_metadata |
| 9205 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9206 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9207 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9208 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 9209 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 9210 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9211 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9212 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9213 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9214 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9215 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | b8e2bca | 2017-02-16 16:26:51 -0800 | [diff] [blame] | 9216 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9217 | PRIVATE third_party/googletest/include |
| 9218 | PRIVATE third_party/googletest |
| 9219 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 9220 | ) |
| 9221 | |
| 9222 | target_link_libraries(bm_metadata |
| 9223 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9224 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Craig Tiller | 5e32153 | 2017-03-03 08:50:25 -0800 | [diff] [blame] | 9225 | grpc_benchmark |
Craig Tiller | b8e2bca | 2017-02-16 16:26:51 -0800 | [diff] [blame] | 9226 | benchmark |
Craig Tiller | ad14bce | 2017-03-09 08:32:01 -0800 | [diff] [blame] | 9227 | grpc++_test_util |
Craig Tiller | b8e2bca | 2017-02-16 16:26:51 -0800 | [diff] [blame] | 9228 | grpc_test_util |
Craig Tiller | ad14bce | 2017-03-09 08:32:01 -0800 | [diff] [blame] | 9229 | grpc++ |
Craig Tiller | b8e2bca | 2017-02-16 16:26:51 -0800 | [diff] [blame] | 9230 | grpc |
| 9231 | gpr_test_util |
| 9232 | gpr |
| 9233 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9234 | ) |
| 9235 | |
| 9236 | endif() |
| 9237 | endif (gRPC_BUILD_TESTS) |
| 9238 | if (gRPC_BUILD_TESTS) |
Craig Tiller | 1128d46 | 2017-03-03 16:46:54 -0800 | [diff] [blame] | 9239 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
| 9240 | |
| 9241 | add_executable(bm_pollset |
| 9242 | test/cpp/microbenchmarks/bm_pollset.cc |
| 9243 | third_party/googletest/src/gtest-all.cc |
| 9244 | ) |
| 9245 | |
| 9246 | |
| 9247 | target_include_directories(bm_pollset |
| 9248 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9249 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9250 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9251 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 9252 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 9253 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9254 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9255 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9256 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9257 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9258 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | 1128d46 | 2017-03-03 16:46:54 -0800 | [diff] [blame] | 9259 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9260 | PRIVATE third_party/googletest/include |
| 9261 | PRIVATE third_party/googletest |
| 9262 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 9263 | ) |
| 9264 | |
| 9265 | target_link_libraries(bm_pollset |
| 9266 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9267 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 9268 | grpc_benchmark |
| 9269 | benchmark |
Craig Tiller | 3a35189 | 2017-03-10 07:39:26 -0800 | [diff] [blame] | 9270 | grpc++_test_util |
Craig Tiller | 1128d46 | 2017-03-03 16:46:54 -0800 | [diff] [blame] | 9271 | grpc_test_util |
Craig Tiller | 3a35189 | 2017-03-10 07:39:26 -0800 | [diff] [blame] | 9272 | grpc++ |
Craig Tiller | 1128d46 | 2017-03-03 16:46:54 -0800 | [diff] [blame] | 9273 | grpc |
| 9274 | gpr_test_util |
| 9275 | gpr |
| 9276 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9277 | ) |
| 9278 | |
| 9279 | endif() |
| 9280 | endif (gRPC_BUILD_TESTS) |
| 9281 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9282 | |
| 9283 | add_executable(channel_arguments_test |
| 9284 | test/cpp/common/channel_arguments_test.cc |
| 9285 | third_party/googletest/src/gtest-all.cc |
| 9286 | ) |
| 9287 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9288 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9289 | target_include_directories(channel_arguments_test |
| 9290 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9291 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9292 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9293 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9294 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9295 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9296 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9297 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9298 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9299 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9300 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9301 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9302 | PRIVATE third_party/googletest/include |
| 9303 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9304 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9305 | ) |
| 9306 | |
| 9307 | target_link_libraries(channel_arguments_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9308 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9309 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9310 | grpc++ |
| 9311 | grpc |
| 9312 | gpr |
| 9313 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9314 | ) |
| 9315 | |
| 9316 | endif (gRPC_BUILD_TESTS) |
| 9317 | if (gRPC_BUILD_TESTS) |
| 9318 | |
| 9319 | add_executable(channel_filter_test |
| 9320 | test/cpp/common/channel_filter_test.cc |
| 9321 | third_party/googletest/src/gtest-all.cc |
| 9322 | ) |
| 9323 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9324 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9325 | target_include_directories(channel_filter_test |
| 9326 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9327 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9328 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9329 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9330 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9331 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9332 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9333 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9334 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9335 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9336 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9337 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9338 | PRIVATE third_party/googletest/include |
| 9339 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9340 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9341 | ) |
| 9342 | |
| 9343 | target_link_libraries(channel_filter_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9344 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9345 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9346 | grpc++ |
| 9347 | grpc |
| 9348 | gpr |
| 9349 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9350 | ) |
| 9351 | |
| 9352 | endif (gRPC_BUILD_TESTS) |
| 9353 | if (gRPC_BUILD_TESTS) |
| 9354 | |
| 9355 | add_executable(cli_call_test |
| 9356 | test/cpp/util/cli_call_test.cc |
| 9357 | third_party/googletest/src/gtest-all.cc |
| 9358 | ) |
| 9359 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9360 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9361 | target_include_directories(cli_call_test |
| 9362 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9363 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9364 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9365 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9366 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9367 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9368 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9369 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9370 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9371 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9372 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9373 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9374 | PRIVATE third_party/googletest/include |
| 9375 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9376 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9377 | ) |
| 9378 | |
| 9379 | target_link_libraries(cli_call_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9380 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9381 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9382 | grpc_cli_libs |
| 9383 | grpc++_test_util |
| 9384 | grpc_test_util |
| 9385 | grpc++ |
| 9386 | grpc |
| 9387 | gpr_test_util |
| 9388 | gpr |
| 9389 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9390 | ) |
| 9391 | |
| 9392 | endif (gRPC_BUILD_TESTS) |
| 9393 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9394 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9395 | |
| 9396 | add_executable(client_crash_test |
| 9397 | test/cpp/end2end/client_crash_test.cc |
| 9398 | third_party/googletest/src/gtest-all.cc |
| 9399 | ) |
| 9400 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9401 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9402 | target_include_directories(client_crash_test |
| 9403 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9404 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9405 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9406 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9407 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9408 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9409 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9410 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9411 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9412 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9413 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9414 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9415 | PRIVATE third_party/googletest/include |
| 9416 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9417 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9418 | ) |
| 9419 | |
| 9420 | target_link_libraries(client_crash_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9421 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9422 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9423 | grpc++_test_util |
| 9424 | grpc_test_util |
| 9425 | grpc++ |
| 9426 | grpc |
| 9427 | gpr_test_util |
| 9428 | gpr |
| 9429 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9430 | ) |
| 9431 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9432 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9433 | endif (gRPC_BUILD_TESTS) |
| 9434 | if (gRPC_BUILD_TESTS) |
| 9435 | |
| 9436 | add_executable(client_crash_test_server |
| 9437 | test/cpp/end2end/client_crash_test_server.cc |
| 9438 | third_party/googletest/src/gtest-all.cc |
| 9439 | ) |
| 9440 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9441 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9442 | target_include_directories(client_crash_test_server |
| 9443 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9444 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9445 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9446 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9447 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9448 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9449 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9450 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9451 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9452 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9453 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9454 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9455 | PRIVATE third_party/googletest/include |
| 9456 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9457 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9458 | ) |
| 9459 | |
| 9460 | target_link_libraries(client_crash_test_server |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9461 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9462 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9463 | grpc++_test_util |
| 9464 | grpc_test_util |
| 9465 | grpc++ |
| 9466 | grpc |
| 9467 | gpr_test_util |
| 9468 | gpr |
| 9469 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9470 | ) |
| 9471 | |
| 9472 | endif (gRPC_BUILD_TESTS) |
| 9473 | if (gRPC_BUILD_TESTS) |
| 9474 | |
| 9475 | add_executable(codegen_test_full |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9476 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.cc |
| 9477 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.cc |
| 9478 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.h |
| 9479 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.h |
| 9480 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc |
| 9481 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc |
| 9482 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h |
| 9483 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h |
| 9484 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.cc |
| 9485 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.cc |
| 9486 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.h |
| 9487 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.h |
| 9488 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.cc |
| 9489 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.cc |
| 9490 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.h |
| 9491 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.h |
| 9492 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.cc |
| 9493 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.cc |
| 9494 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.h |
| 9495 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9496 | test/cpp/codegen/codegen_test_full.cc |
| 9497 | third_party/googletest/src/gtest-all.cc |
| 9498 | ) |
| 9499 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9500 | protobuf_generate_grpc_cpp( |
| 9501 | src/proto/grpc/testing/control.proto |
| 9502 | ) |
| 9503 | protobuf_generate_grpc_cpp( |
| 9504 | src/proto/grpc/testing/messages.proto |
| 9505 | ) |
| 9506 | protobuf_generate_grpc_cpp( |
| 9507 | src/proto/grpc/testing/payloads.proto |
| 9508 | ) |
| 9509 | protobuf_generate_grpc_cpp( |
| 9510 | src/proto/grpc/testing/services.proto |
| 9511 | ) |
| 9512 | protobuf_generate_grpc_cpp( |
| 9513 | src/proto/grpc/testing/stats.proto |
| 9514 | ) |
| 9515 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9516 | target_include_directories(codegen_test_full |
| 9517 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9518 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9519 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9520 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9521 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9522 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9523 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9524 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9525 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9526 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9527 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9528 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9529 | PRIVATE third_party/googletest/include |
| 9530 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9531 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9532 | ) |
| 9533 | |
| 9534 | target_link_libraries(codegen_test_full |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9535 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9536 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9537 | grpc++ |
| 9538 | grpc |
| 9539 | gpr |
| 9540 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9541 | ) |
| 9542 | |
| 9543 | endif (gRPC_BUILD_TESTS) |
| 9544 | if (gRPC_BUILD_TESTS) |
| 9545 | |
| 9546 | add_executable(codegen_test_minimal |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9547 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.cc |
| 9548 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.cc |
| 9549 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.pb.h |
| 9550 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/control.grpc.pb.h |
| 9551 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc |
| 9552 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc |
| 9553 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h |
| 9554 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h |
| 9555 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.cc |
| 9556 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.cc |
| 9557 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.pb.h |
| 9558 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/payloads.grpc.pb.h |
| 9559 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.cc |
| 9560 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.cc |
| 9561 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.pb.h |
| 9562 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/services.grpc.pb.h |
| 9563 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.cc |
| 9564 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.cc |
| 9565 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.pb.h |
| 9566 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/stats.grpc.pb.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9567 | test/cpp/codegen/codegen_test_minimal.cc |
| 9568 | src/cpp/codegen/codegen_init.cc |
| 9569 | third_party/googletest/src/gtest-all.cc |
| 9570 | ) |
| 9571 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9572 | protobuf_generate_grpc_cpp( |
| 9573 | src/proto/grpc/testing/control.proto |
| 9574 | ) |
| 9575 | protobuf_generate_grpc_cpp( |
| 9576 | src/proto/grpc/testing/messages.proto |
| 9577 | ) |
| 9578 | protobuf_generate_grpc_cpp( |
| 9579 | src/proto/grpc/testing/payloads.proto |
| 9580 | ) |
| 9581 | protobuf_generate_grpc_cpp( |
| 9582 | src/proto/grpc/testing/services.proto |
| 9583 | ) |
| 9584 | protobuf_generate_grpc_cpp( |
| 9585 | src/proto/grpc/testing/stats.proto |
| 9586 | ) |
| 9587 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9588 | target_include_directories(codegen_test_minimal |
| 9589 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9590 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9591 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9592 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9593 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9594 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9595 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9596 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9597 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9598 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9599 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9600 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9601 | PRIVATE third_party/googletest/include |
| 9602 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9603 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9604 | ) |
| 9605 | |
| 9606 | target_link_libraries(codegen_test_minimal |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9607 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9608 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9609 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9610 | ) |
| 9611 | |
| 9612 | endif (gRPC_BUILD_TESTS) |
| 9613 | if (gRPC_BUILD_TESTS) |
| 9614 | |
| 9615 | add_executable(credentials_test |
| 9616 | test/cpp/client/credentials_test.cc |
| 9617 | third_party/googletest/src/gtest-all.cc |
| 9618 | ) |
| 9619 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9620 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9621 | target_include_directories(credentials_test |
| 9622 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9623 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9624 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9625 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9626 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9627 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9628 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9629 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9630 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9631 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9632 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9633 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9634 | PRIVATE third_party/googletest/include |
| 9635 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9636 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9637 | ) |
| 9638 | |
| 9639 | target_link_libraries(credentials_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9640 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9641 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9642 | grpc++ |
| 9643 | grpc |
| 9644 | gpr |
| 9645 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9646 | ) |
| 9647 | |
| 9648 | endif (gRPC_BUILD_TESTS) |
| 9649 | if (gRPC_BUILD_TESTS) |
| 9650 | |
| 9651 | add_executable(cxx_byte_buffer_test |
| 9652 | test/cpp/util/byte_buffer_test.cc |
| 9653 | third_party/googletest/src/gtest-all.cc |
| 9654 | ) |
| 9655 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9656 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9657 | target_include_directories(cxx_byte_buffer_test |
| 9658 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9659 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9660 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9661 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9662 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9663 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9664 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9665 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9666 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9667 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9668 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9669 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9670 | PRIVATE third_party/googletest/include |
| 9671 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9672 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9673 | ) |
| 9674 | |
| 9675 | target_link_libraries(cxx_byte_buffer_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9676 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9677 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9678 | grpc_test_util |
| 9679 | grpc++ |
| 9680 | grpc |
| 9681 | gpr_test_util |
| 9682 | gpr |
| 9683 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9684 | ) |
| 9685 | |
| 9686 | endif (gRPC_BUILD_TESTS) |
| 9687 | if (gRPC_BUILD_TESTS) |
| 9688 | |
| 9689 | add_executable(cxx_slice_test |
| 9690 | test/cpp/util/slice_test.cc |
| 9691 | third_party/googletest/src/gtest-all.cc |
| 9692 | ) |
| 9693 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9694 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9695 | target_include_directories(cxx_slice_test |
| 9696 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9697 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9698 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9699 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9700 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9701 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9702 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9703 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9704 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9705 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9706 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9707 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9708 | PRIVATE third_party/googletest/include |
| 9709 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9710 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9711 | ) |
| 9712 | |
| 9713 | target_link_libraries(cxx_slice_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9714 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9715 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9716 | grpc_test_util |
| 9717 | grpc++ |
| 9718 | grpc |
| 9719 | gpr_test_util |
| 9720 | gpr |
| 9721 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9722 | ) |
| 9723 | |
| 9724 | endif (gRPC_BUILD_TESTS) |
| 9725 | if (gRPC_BUILD_TESTS) |
| 9726 | |
| 9727 | add_executable(cxx_string_ref_test |
| 9728 | test/cpp/util/string_ref_test.cc |
| 9729 | third_party/googletest/src/gtest-all.cc |
| 9730 | ) |
| 9731 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9732 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9733 | target_include_directories(cxx_string_ref_test |
| 9734 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9735 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9736 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9737 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9738 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9739 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9740 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9741 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9742 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9743 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9744 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9745 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9746 | PRIVATE third_party/googletest/include |
| 9747 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9748 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9749 | ) |
| 9750 | |
| 9751 | target_link_libraries(cxx_string_ref_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9752 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9753 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9754 | grpc++ |
| 9755 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9756 | ) |
| 9757 | |
| 9758 | endif (gRPC_BUILD_TESTS) |
| 9759 | if (gRPC_BUILD_TESTS) |
| 9760 | |
| 9761 | add_executable(cxx_time_test |
| 9762 | test/cpp/util/time_test.cc |
| 9763 | third_party/googletest/src/gtest-all.cc |
| 9764 | ) |
| 9765 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9766 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9767 | target_include_directories(cxx_time_test |
| 9768 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9769 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9770 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9771 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9772 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9773 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9774 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9775 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9776 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9777 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9778 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9779 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9780 | PRIVATE third_party/googletest/include |
| 9781 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9782 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9783 | ) |
| 9784 | |
| 9785 | target_link_libraries(cxx_time_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9786 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9787 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9788 | grpc_test_util |
| 9789 | grpc++ |
| 9790 | grpc |
| 9791 | gpr_test_util |
| 9792 | gpr |
| 9793 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9794 | ) |
| 9795 | |
| 9796 | endif (gRPC_BUILD_TESTS) |
| 9797 | if (gRPC_BUILD_TESTS) |
| 9798 | |
| 9799 | add_executable(end2end_test |
| 9800 | test/cpp/end2end/end2end_test.cc |
| 9801 | third_party/googletest/src/gtest-all.cc |
| 9802 | ) |
| 9803 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9804 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9805 | target_include_directories(end2end_test |
| 9806 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9807 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9808 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9809 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9810 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9811 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9812 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9813 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9814 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9815 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9816 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9817 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9818 | PRIVATE third_party/googletest/include |
| 9819 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9820 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9821 | ) |
| 9822 | |
| 9823 | target_link_libraries(end2end_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9824 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9825 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9826 | grpc++_test_util |
| 9827 | grpc_test_util |
| 9828 | grpc++ |
| 9829 | grpc |
| 9830 | gpr_test_util |
| 9831 | gpr |
| 9832 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9833 | ) |
| 9834 | |
| 9835 | endif (gRPC_BUILD_TESTS) |
| 9836 | if (gRPC_BUILD_TESTS) |
| 9837 | |
| 9838 | add_executable(filter_end2end_test |
| 9839 | test/cpp/end2end/filter_end2end_test.cc |
| 9840 | third_party/googletest/src/gtest-all.cc |
| 9841 | ) |
| 9842 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9843 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9844 | target_include_directories(filter_end2end_test |
| 9845 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9846 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9847 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9848 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9849 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9850 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9851 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9852 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9853 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9854 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9855 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9856 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9857 | PRIVATE third_party/googletest/include |
| 9858 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9859 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9860 | ) |
| 9861 | |
| 9862 | target_link_libraries(filter_end2end_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9863 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9864 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9865 | grpc++_test_util |
| 9866 | grpc_test_util |
| 9867 | grpc++ |
| 9868 | grpc |
| 9869 | gpr_test_util |
| 9870 | gpr |
| 9871 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9872 | ) |
| 9873 | |
| 9874 | endif (gRPC_BUILD_TESTS) |
| 9875 | if (gRPC_BUILD_TESTS) |
| 9876 | |
| 9877 | add_executable(generic_end2end_test |
| 9878 | test/cpp/end2end/generic_end2end_test.cc |
| 9879 | third_party/googletest/src/gtest-all.cc |
| 9880 | ) |
| 9881 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9882 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9883 | target_include_directories(generic_end2end_test |
| 9884 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9885 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9886 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9887 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9888 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9889 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9890 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9891 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9892 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9893 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9894 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9895 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9896 | PRIVATE third_party/googletest/include |
| 9897 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9898 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9899 | ) |
| 9900 | |
| 9901 | target_link_libraries(generic_end2end_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9902 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9903 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9904 | grpc++_test_util |
| 9905 | grpc_test_util |
| 9906 | grpc++ |
| 9907 | grpc |
| 9908 | gpr_test_util |
| 9909 | gpr |
| 9910 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9911 | ) |
| 9912 | |
| 9913 | endif (gRPC_BUILD_TESTS) |
| 9914 | if (gRPC_BUILD_TESTS) |
| 9915 | |
| 9916 | add_executable(golden_file_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9917 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.pb.cc |
| 9918 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.grpc.pb.cc |
| 9919 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.pb.h |
| 9920 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/compiler_test.grpc.pb.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9921 | test/cpp/codegen/golden_file_test.cc |
| 9922 | third_party/googletest/src/gtest-all.cc |
| 9923 | ) |
| 9924 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9925 | protobuf_generate_grpc_cpp( |
| 9926 | src/proto/grpc/testing/compiler_test.proto |
| 9927 | ) |
| 9928 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9929 | target_include_directories(golden_file_test |
| 9930 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9931 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9932 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9933 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9934 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9935 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9936 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9937 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9938 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9939 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9940 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9941 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9942 | PRIVATE third_party/googletest/include |
| 9943 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9944 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9945 | ) |
| 9946 | |
| 9947 | target_link_libraries(golden_file_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9948 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9949 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9950 | grpc++ |
| 9951 | grpc |
| 9952 | gpr |
| 9953 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9954 | ) |
| 9955 | |
| 9956 | endif (gRPC_BUILD_TESTS) |
| 9957 | if (gRPC_BUILD_TESTS) |
| 9958 | |
| 9959 | add_executable(grpc_cli |
| 9960 | test/cpp/util/grpc_cli.cc |
| 9961 | third_party/googletest/src/gtest-all.cc |
| 9962 | ) |
| 9963 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9964 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9965 | target_include_directories(grpc_cli |
| 9966 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 9967 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 9968 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 9969 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9970 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9971 | PRIVATE ${ZLIB_ROOT_DIR} |
| 9972 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 9973 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 9974 | PRIVATE ${CARES_INCLUDE_DIR} |
| 9975 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 9976 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9977 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 9978 | PRIVATE third_party/googletest/include |
| 9979 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9980 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9981 | ) |
| 9982 | |
| 9983 | target_link_libraries(grpc_cli |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 9984 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 9985 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 9986 | grpc_cli_libs |
| 9987 | grpc++_proto_reflection_desc_db |
| 9988 | grpc++ |
| 9989 | grpc |
| 9990 | gpr |
| 9991 | grpc++_test_config |
| 9992 | ${_gRPC_GFLAGS_LIBRARIES} |
| 9993 | ) |
| 9994 | |
| 9995 | endif (gRPC_BUILD_TESTS) |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 9996 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 9997 | add_executable(grpc_cpp_plugin |
| 9998 | src/compiler/cpp_plugin.cc |
| 9999 | ) |
| 10000 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10001 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10002 | target_include_directories(grpc_cpp_plugin |
| 10003 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10004 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10005 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10006 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10007 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10008 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10009 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10010 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10011 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10012 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10013 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10014 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10015 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10016 | ) |
| 10017 | |
| 10018 | target_link_libraries(grpc_cpp_plugin |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 10019 | ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10020 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10021 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10022 | grpc_plugin_support |
| 10023 | ) |
| 10024 | |
| 10025 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 10026 | if (gRPC_INSTALL) |
| 10027 | install(TARGETS grpc_cpp_plugin EXPORT gRPCTargets |
| 10028 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 10029 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 10030 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 10031 | ) |
| 10032 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 10033 | |
| 10034 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10035 | add_executable(grpc_csharp_plugin |
| 10036 | src/compiler/csharp_plugin.cc |
| 10037 | ) |
| 10038 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10039 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10040 | target_include_directories(grpc_csharp_plugin |
| 10041 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10042 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10043 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10044 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10045 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10046 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10047 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10048 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10049 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10050 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10051 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10052 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10053 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10054 | ) |
| 10055 | |
| 10056 | target_link_libraries(grpc_csharp_plugin |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 10057 | ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10058 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10059 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10060 | grpc_plugin_support |
| 10061 | ) |
| 10062 | |
| 10063 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 10064 | if (gRPC_INSTALL) |
| 10065 | install(TARGETS grpc_csharp_plugin EXPORT gRPCTargets |
| 10066 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 10067 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 10068 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 10069 | ) |
| 10070 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 10071 | |
| 10072 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10073 | add_executable(grpc_node_plugin |
| 10074 | src/compiler/node_plugin.cc |
| 10075 | ) |
| 10076 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10077 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10078 | target_include_directories(grpc_node_plugin |
| 10079 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10080 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10081 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10082 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10083 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10084 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10085 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10086 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10087 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10088 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10089 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10090 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10091 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10092 | ) |
| 10093 | |
| 10094 | target_link_libraries(grpc_node_plugin |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 10095 | ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10096 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10097 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10098 | grpc_plugin_support |
| 10099 | ) |
| 10100 | |
| 10101 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 10102 | if (gRPC_INSTALL) |
| 10103 | install(TARGETS grpc_node_plugin EXPORT gRPCTargets |
| 10104 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 10105 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 10106 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 10107 | ) |
| 10108 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 10109 | |
| 10110 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10111 | add_executable(grpc_objective_c_plugin |
| 10112 | src/compiler/objective_c_plugin.cc |
| 10113 | ) |
| 10114 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10115 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10116 | target_include_directories(grpc_objective_c_plugin |
| 10117 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10118 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10119 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10120 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10121 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10122 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10123 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10124 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10125 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10126 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10127 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10128 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10129 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10130 | ) |
| 10131 | |
| 10132 | target_link_libraries(grpc_objective_c_plugin |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 10133 | ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10134 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10135 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10136 | grpc_plugin_support |
| 10137 | ) |
| 10138 | |
| 10139 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 10140 | if (gRPC_INSTALL) |
| 10141 | install(TARGETS grpc_objective_c_plugin EXPORT gRPCTargets |
| 10142 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 10143 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 10144 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 10145 | ) |
| 10146 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 10147 | |
| 10148 | |
Stanley Cheung | 857a130 | 2016-09-29 17:26:29 -0700 | [diff] [blame] | 10149 | add_executable(grpc_php_plugin |
| 10150 | src/compiler/php_plugin.cc |
| 10151 | ) |
| 10152 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10153 | |
Stanley Cheung | 857a130 | 2016-09-29 17:26:29 -0700 | [diff] [blame] | 10154 | target_include_directories(grpc_php_plugin |
| 10155 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10156 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10157 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10158 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10159 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Stanley Cheung | 857a130 | 2016-09-29 17:26:29 -0700 | [diff] [blame] | 10160 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10161 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10162 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10163 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10164 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10165 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10166 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10167 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Stanley Cheung | 857a130 | 2016-09-29 17:26:29 -0700 | [diff] [blame] | 10168 | ) |
| 10169 | |
| 10170 | target_link_libraries(grpc_php_plugin |
| 10171 | ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10172 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10173 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Stanley Cheung | 857a130 | 2016-09-29 17:26:29 -0700 | [diff] [blame] | 10174 | grpc_plugin_support |
| 10175 | ) |
| 10176 | |
| 10177 | |
| 10178 | if (gRPC_INSTALL) |
| 10179 | install(TARGETS grpc_php_plugin EXPORT gRPCTargets |
| 10180 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 10181 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 10182 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 10183 | ) |
| 10184 | endif() |
| 10185 | |
| 10186 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10187 | add_executable(grpc_python_plugin |
| 10188 | src/compiler/python_plugin.cc |
| 10189 | ) |
| 10190 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10191 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10192 | target_include_directories(grpc_python_plugin |
| 10193 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10194 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10195 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10196 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10197 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10198 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10199 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10200 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10201 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10202 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10203 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10204 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10205 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10206 | ) |
| 10207 | |
| 10208 | target_link_libraries(grpc_python_plugin |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 10209 | ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10210 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10211 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10212 | grpc_plugin_support |
| 10213 | ) |
| 10214 | |
| 10215 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 10216 | if (gRPC_INSTALL) |
| 10217 | install(TARGETS grpc_python_plugin EXPORT gRPCTargets |
| 10218 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 10219 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 10220 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 10221 | ) |
| 10222 | endif() |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 10223 | |
| 10224 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10225 | add_executable(grpc_ruby_plugin |
| 10226 | src/compiler/ruby_plugin.cc |
| 10227 | ) |
| 10228 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10229 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10230 | target_include_directories(grpc_ruby_plugin |
| 10231 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10232 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10233 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10234 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10235 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10236 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10237 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10238 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10239 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10240 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10241 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10242 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10243 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10244 | ) |
| 10245 | |
| 10246 | target_link_libraries(grpc_ruby_plugin |
Konstantin Podsvirov | 5baf725 | 2016-07-27 16:25:37 +0300 | [diff] [blame] | 10247 | ${_gRPC_PROTOBUF_PROTOC_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10248 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10249 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10250 | grpc_plugin_support |
| 10251 | ) |
| 10252 | |
| 10253 | |
Arkadiy Shapkin | 40beb37 | 2016-08-17 14:42:36 +0300 | [diff] [blame] | 10254 | if (gRPC_INSTALL) |
| 10255 | install(TARGETS grpc_ruby_plugin EXPORT gRPCTargets |
| 10256 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 10257 | LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 10258 | ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 10259 | ) |
| 10260 | endif() |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 10261 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10262 | if (gRPC_BUILD_TESTS) |
| 10263 | |
| 10264 | add_executable(grpc_tool_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10265 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc |
| 10266 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc |
| 10267 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h |
| 10268 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h |
| 10269 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc |
| 10270 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc |
| 10271 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h |
| 10272 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10273 | test/cpp/util/grpc_tool_test.cc |
| 10274 | third_party/googletest/src/gtest-all.cc |
| 10275 | ) |
| 10276 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10277 | protobuf_generate_grpc_cpp( |
| 10278 | src/proto/grpc/testing/echo.proto |
| 10279 | ) |
| 10280 | protobuf_generate_grpc_cpp( |
| 10281 | src/proto/grpc/testing/echo_messages.proto |
| 10282 | ) |
| 10283 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10284 | target_include_directories(grpc_tool_test |
| 10285 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10286 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10287 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10288 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10289 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10290 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10291 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10292 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10293 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10294 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10295 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10296 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10297 | PRIVATE third_party/googletest/include |
| 10298 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10299 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10300 | ) |
| 10301 | |
| 10302 | target_link_libraries(grpc_tool_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10303 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10304 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10305 | grpc_cli_libs |
| 10306 | grpc++_proto_reflection_desc_db |
| 10307 | grpc++_reflection |
| 10308 | grpc++_test_util |
| 10309 | grpc_test_util |
| 10310 | grpc++ |
| 10311 | grpc |
| 10312 | gpr_test_util |
| 10313 | gpr |
| 10314 | ${_gRPC_GFLAGS_LIBRARIES} |
| 10315 | ) |
| 10316 | |
| 10317 | endif (gRPC_BUILD_TESTS) |
| 10318 | if (gRPC_BUILD_TESTS) |
| 10319 | |
| 10320 | add_executable(grpclb_api_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10321 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.cc |
| 10322 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.cc |
| 10323 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.h |
| 10324 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10325 | test/cpp/grpclb/grpclb_api_test.cc |
| 10326 | third_party/googletest/src/gtest-all.cc |
| 10327 | ) |
| 10328 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10329 | protobuf_generate_grpc_cpp( |
| 10330 | src/proto/grpc/lb/v1/load_balancer.proto |
| 10331 | ) |
| 10332 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10333 | target_include_directories(grpclb_api_test |
| 10334 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10335 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10336 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10337 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10338 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10339 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10340 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10341 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10342 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10343 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10344 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10345 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10346 | PRIVATE third_party/googletest/include |
| 10347 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10348 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10349 | ) |
| 10350 | |
| 10351 | target_link_libraries(grpclb_api_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10352 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10353 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10354 | grpc++_test_util |
| 10355 | grpc_test_util |
| 10356 | grpc++ |
| 10357 | grpc |
| 10358 | ${_gRPC_GFLAGS_LIBRARIES} |
| 10359 | ) |
| 10360 | |
| 10361 | endif (gRPC_BUILD_TESTS) |
| 10362 | if (gRPC_BUILD_TESTS) |
| 10363 | |
| 10364 | add_executable(grpclb_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10365 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.cc |
| 10366 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.cc |
| 10367 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.pb.h |
| 10368 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/lb/v1/load_balancer.grpc.pb.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10369 | test/cpp/grpclb/grpclb_test.cc |
| 10370 | third_party/googletest/src/gtest-all.cc |
| 10371 | ) |
| 10372 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10373 | protobuf_generate_grpc_cpp( |
| 10374 | src/proto/grpc/lb/v1/load_balancer.proto |
| 10375 | ) |
| 10376 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10377 | target_include_directories(grpclb_test |
| 10378 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10379 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10380 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10381 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10382 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10383 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10384 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10385 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10386 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10387 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10388 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10389 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10390 | PRIVATE third_party/googletest/include |
| 10391 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10392 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10393 | ) |
| 10394 | |
| 10395 | target_link_libraries(grpclb_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10396 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10397 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10398 | grpc++_test_util |
| 10399 | grpc_test_util |
Jan Tattermusch | 1c6a144 | 2017-01-13 14:17:40 +0100 | [diff] [blame] | 10400 | grpc++ |
| 10401 | grpc |
| 10402 | gpr_test_util |
| 10403 | gpr |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10404 | ${_gRPC_GFLAGS_LIBRARIES} |
| 10405 | ) |
| 10406 | |
| 10407 | endif (gRPC_BUILD_TESTS) |
| 10408 | if (gRPC_BUILD_TESTS) |
| 10409 | |
yang-g | a719802 | 2017-01-26 13:23:52 -0800 | [diff] [blame] | 10410 | add_executable(health_service_end2end_test |
| 10411 | test/cpp/end2end/health_service_end2end_test.cc |
| 10412 | third_party/googletest/src/gtest-all.cc |
| 10413 | ) |
| 10414 | |
yang-g | 13a537b | 2017-02-07 13:13:20 -0800 | [diff] [blame] | 10415 | |
yang-g | a719802 | 2017-01-26 13:23:52 -0800 | [diff] [blame] | 10416 | target_include_directories(health_service_end2end_test |
| 10417 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10418 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10419 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10420 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
yang-g | 13a537b | 2017-02-07 13:13:20 -0800 | [diff] [blame] | 10421 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
yang-g | a719802 | 2017-01-26 13:23:52 -0800 | [diff] [blame] | 10422 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10423 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10424 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10425 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10426 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10427 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
yang-g | a719802 | 2017-01-26 13:23:52 -0800 | [diff] [blame] | 10428 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10429 | PRIVATE third_party/googletest/include |
| 10430 | PRIVATE third_party/googletest |
yang-g | 13a537b | 2017-02-07 13:13:20 -0800 | [diff] [blame] | 10431 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
yang-g | a719802 | 2017-01-26 13:23:52 -0800 | [diff] [blame] | 10432 | ) |
| 10433 | |
| 10434 | target_link_libraries(health_service_end2end_test |
yang-g | 13a537b | 2017-02-07 13:13:20 -0800 | [diff] [blame] | 10435 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10436 | ${_gRPC_ALLTARGETS_LIBRARIES} |
yang-g | a719802 | 2017-01-26 13:23:52 -0800 | [diff] [blame] | 10437 | grpc++_test_util |
| 10438 | grpc_test_util |
| 10439 | grpc++ |
| 10440 | grpc |
| 10441 | gpr_test_util |
| 10442 | gpr |
| 10443 | ${_gRPC_GFLAGS_LIBRARIES} |
| 10444 | ) |
| 10445 | |
| 10446 | endif (gRPC_BUILD_TESTS) |
| 10447 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10448 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10449 | |
| 10450 | add_executable(http2_client |
| 10451 | third_party/googletest/src/gtest-all.cc |
| 10452 | ) |
| 10453 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10454 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10455 | target_include_directories(http2_client |
| 10456 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10457 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10458 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10459 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10460 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10461 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10462 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10463 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10464 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10465 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10466 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10467 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10468 | PRIVATE third_party/googletest/include |
| 10469 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10470 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10471 | ) |
| 10472 | |
| 10473 | target_link_libraries(http2_client |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10474 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10475 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10476 | http2_client_main |
| 10477 | grpc++_test_util |
| 10478 | grpc_test_util |
| 10479 | grpc++ |
| 10480 | grpc |
| 10481 | grpc++_test_config |
| 10482 | ${_gRPC_GFLAGS_LIBRARIES} |
| 10483 | ) |
| 10484 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10485 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10486 | endif (gRPC_BUILD_TESTS) |
| 10487 | if (gRPC_BUILD_TESTS) |
| 10488 | |
| 10489 | add_executable(hybrid_end2end_test |
| 10490 | test/cpp/end2end/hybrid_end2end_test.cc |
| 10491 | third_party/googletest/src/gtest-all.cc |
| 10492 | ) |
| 10493 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10494 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10495 | target_include_directories(hybrid_end2end_test |
| 10496 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10497 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10498 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10499 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10500 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10501 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10502 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10503 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10504 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10505 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10506 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10507 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10508 | PRIVATE third_party/googletest/include |
| 10509 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10510 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10511 | ) |
| 10512 | |
| 10513 | target_link_libraries(hybrid_end2end_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10514 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10515 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10516 | grpc++_test_util |
| 10517 | grpc_test_util |
| 10518 | grpc++ |
| 10519 | grpc |
| 10520 | gpr_test_util |
| 10521 | gpr |
| 10522 | ${_gRPC_GFLAGS_LIBRARIES} |
| 10523 | ) |
| 10524 | |
| 10525 | endif (gRPC_BUILD_TESTS) |
| 10526 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10527 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10528 | |
| 10529 | add_executable(interop_client |
| 10530 | third_party/googletest/src/gtest-all.cc |
| 10531 | ) |
| 10532 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10533 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10534 | target_include_directories(interop_client |
| 10535 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10536 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10537 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10538 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10539 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10540 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10541 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10542 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10543 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10544 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10545 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10546 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10547 | PRIVATE third_party/googletest/include |
| 10548 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10549 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10550 | ) |
| 10551 | |
| 10552 | target_link_libraries(interop_client |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10553 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10554 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10555 | interop_client_main |
| 10556 | interop_client_helper |
| 10557 | grpc++_test_util |
| 10558 | grpc_test_util |
| 10559 | grpc++ |
| 10560 | grpc |
| 10561 | gpr_test_util |
| 10562 | gpr |
| 10563 | grpc++_test_config |
| 10564 | ${_gRPC_GFLAGS_LIBRARIES} |
| 10565 | ) |
| 10566 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10567 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10568 | endif (gRPC_BUILD_TESTS) |
| 10569 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10570 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10571 | |
| 10572 | add_executable(interop_server |
| 10573 | third_party/googletest/src/gtest-all.cc |
| 10574 | ) |
| 10575 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10576 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10577 | target_include_directories(interop_server |
| 10578 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10579 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10580 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10581 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10582 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10583 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10584 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10585 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10586 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10587 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10588 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10589 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10590 | PRIVATE third_party/googletest/include |
| 10591 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10592 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10593 | ) |
| 10594 | |
| 10595 | target_link_libraries(interop_server |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10596 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10597 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10598 | interop_server_main |
| 10599 | interop_server_helper |
| 10600 | interop_server_lib |
| 10601 | grpc++_test_util |
| 10602 | grpc_test_util |
| 10603 | grpc++ |
| 10604 | grpc |
| 10605 | gpr_test_util |
| 10606 | gpr |
| 10607 | grpc++_test_config |
| 10608 | ${_gRPC_GFLAGS_LIBRARIES} |
| 10609 | ) |
| 10610 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10611 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10612 | endif (gRPC_BUILD_TESTS) |
| 10613 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10614 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10615 | |
| 10616 | add_executable(interop_test |
| 10617 | test/cpp/interop/interop_test.cc |
| 10618 | third_party/googletest/src/gtest-all.cc |
| 10619 | ) |
| 10620 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10621 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10622 | target_include_directories(interop_test |
| 10623 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10624 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10625 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10626 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10627 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10628 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10629 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10630 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10631 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10632 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10633 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10634 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10635 | PRIVATE third_party/googletest/include |
| 10636 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10637 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10638 | ) |
| 10639 | |
| 10640 | target_link_libraries(interop_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10641 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10642 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10643 | grpc_test_util |
| 10644 | grpc |
| 10645 | gpr_test_util |
| 10646 | gpr |
| 10647 | grpc++_test_config |
| 10648 | ${_gRPC_GFLAGS_LIBRARIES} |
| 10649 | ) |
| 10650 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10651 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10652 | endif (gRPC_BUILD_TESTS) |
| 10653 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10654 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10655 | |
| 10656 | add_executable(json_run_localhost |
| 10657 | test/cpp/qps/json_run_localhost.cc |
| 10658 | third_party/googletest/src/gtest-all.cc |
| 10659 | ) |
| 10660 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10661 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10662 | target_include_directories(json_run_localhost |
| 10663 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10664 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10665 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10666 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10667 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10668 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10669 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10670 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10671 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10672 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10673 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10674 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10675 | PRIVATE third_party/googletest/include |
| 10676 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10677 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10678 | ) |
| 10679 | |
| 10680 | target_link_libraries(json_run_localhost |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10681 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10682 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10683 | grpc++_test_util |
| 10684 | grpc_test_util |
| 10685 | grpc++ |
| 10686 | grpc |
| 10687 | gpr_test_util |
| 10688 | gpr |
| 10689 | grpc++_test_config |
| 10690 | ${_gRPC_GFLAGS_LIBRARIES} |
| 10691 | ) |
| 10692 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10693 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10694 | endif (gRPC_BUILD_TESTS) |
| 10695 | if (gRPC_BUILD_TESTS) |
| 10696 | |
| 10697 | add_executable(metrics_client |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10698 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.cc |
| 10699 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.cc |
| 10700 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.h |
| 10701 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10702 | test/cpp/interop/metrics_client.cc |
| 10703 | third_party/googletest/src/gtest-all.cc |
| 10704 | ) |
| 10705 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10706 | protobuf_generate_grpc_cpp( |
| 10707 | src/proto/grpc/testing/metrics.proto |
| 10708 | ) |
| 10709 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10710 | target_include_directories(metrics_client |
| 10711 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10712 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10713 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10714 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10715 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10716 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10717 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10718 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10719 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10720 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10721 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10722 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10723 | PRIVATE third_party/googletest/include |
| 10724 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10725 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10726 | ) |
| 10727 | |
| 10728 | target_link_libraries(metrics_client |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10729 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10730 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10731 | grpc++ |
| 10732 | grpc |
| 10733 | gpr |
| 10734 | grpc++_test_config |
| 10735 | ${_gRPC_GFLAGS_LIBRARIES} |
| 10736 | ) |
| 10737 | |
| 10738 | endif (gRPC_BUILD_TESTS) |
| 10739 | if (gRPC_BUILD_TESTS) |
| 10740 | |
| 10741 | add_executable(mock_test |
| 10742 | test/cpp/end2end/mock_test.cc |
| 10743 | third_party/googletest/src/gtest-all.cc |
| 10744 | ) |
| 10745 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10746 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10747 | target_include_directories(mock_test |
| 10748 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10749 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10750 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10751 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10752 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10753 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10754 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10755 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10756 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10757 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10758 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10759 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10760 | PRIVATE third_party/googletest/include |
| 10761 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10762 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10763 | ) |
| 10764 | |
| 10765 | target_link_libraries(mock_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10766 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10767 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10768 | grpc++_test_util |
| 10769 | grpc_test_util |
| 10770 | grpc++ |
| 10771 | grpc |
| 10772 | gpr_test_util |
| 10773 | gpr |
| 10774 | ${_gRPC_GFLAGS_LIBRARIES} |
| 10775 | ) |
| 10776 | |
| 10777 | endif (gRPC_BUILD_TESTS) |
| 10778 | if (gRPC_BUILD_TESTS) |
| 10779 | |
| 10780 | add_executable(noop-benchmark |
| 10781 | test/cpp/microbenchmarks/noop-benchmark.cc |
| 10782 | third_party/googletest/src/gtest-all.cc |
| 10783 | ) |
| 10784 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10785 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10786 | target_include_directories(noop-benchmark |
| 10787 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10788 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10789 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10790 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10791 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10792 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10793 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10794 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10795 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10796 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10797 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10798 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10799 | PRIVATE third_party/googletest/include |
| 10800 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10801 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10802 | ) |
| 10803 | |
| 10804 | target_link_libraries(noop-benchmark |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10805 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10806 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10807 | benchmark |
| 10808 | ${_gRPC_GFLAGS_LIBRARIES} |
| 10809 | ) |
| 10810 | |
| 10811 | endif (gRPC_BUILD_TESTS) |
| 10812 | if (gRPC_BUILD_TESTS) |
| 10813 | |
| 10814 | add_executable(proto_server_reflection_test |
| 10815 | test/cpp/end2end/proto_server_reflection_test.cc |
| 10816 | third_party/googletest/src/gtest-all.cc |
| 10817 | ) |
| 10818 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10819 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10820 | target_include_directories(proto_server_reflection_test |
| 10821 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10822 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10823 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10824 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10825 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10826 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10827 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10828 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10829 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10830 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10831 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10832 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10833 | PRIVATE third_party/googletest/include |
| 10834 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10835 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10836 | ) |
| 10837 | |
| 10838 | target_link_libraries(proto_server_reflection_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10839 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10840 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10841 | grpc++_proto_reflection_desc_db |
| 10842 | grpc++_reflection |
| 10843 | grpc++_test_util |
| 10844 | grpc_test_util |
| 10845 | grpc++ |
| 10846 | grpc |
| 10847 | gpr_test_util |
| 10848 | gpr |
| 10849 | ${_gRPC_GFLAGS_LIBRARIES} |
| 10850 | ) |
| 10851 | |
| 10852 | endif (gRPC_BUILD_TESTS) |
| 10853 | if (gRPC_BUILD_TESTS) |
Harvey Tuch | 5f3cfe9 | 2017-01-20 11:02:11 -0500 | [diff] [blame] | 10854 | |
| 10855 | add_executable(proto_utils_test |
| 10856 | test/cpp/codegen/proto_utils_test.cc |
| 10857 | third_party/googletest/src/gtest-all.cc |
| 10858 | ) |
| 10859 | |
| 10860 | |
| 10861 | target_include_directories(proto_utils_test |
| 10862 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10863 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10864 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10865 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 10866 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 10867 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10868 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10869 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10870 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10871 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10872 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Harvey Tuch | 5f3cfe9 | 2017-01-20 11:02:11 -0500 | [diff] [blame] | 10873 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10874 | PRIVATE third_party/googletest/include |
| 10875 | PRIVATE third_party/googletest |
| 10876 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 10877 | ) |
| 10878 | |
| 10879 | target_link_libraries(proto_utils_test |
| 10880 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10881 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 10882 | grpc++ |
| 10883 | grpc |
| 10884 | ${_gRPC_GFLAGS_LIBRARIES} |
| 10885 | ) |
| 10886 | |
| 10887 | endif (gRPC_BUILD_TESTS) |
| 10888 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10889 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10890 | |
| 10891 | add_executable(qps_interarrival_test |
| 10892 | test/cpp/qps/qps_interarrival_test.cc |
| 10893 | third_party/googletest/src/gtest-all.cc |
| 10894 | ) |
| 10895 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10896 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10897 | target_include_directories(qps_interarrival_test |
| 10898 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10899 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10900 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10901 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10902 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10903 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10904 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10905 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10906 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10907 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10908 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10909 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10910 | PRIVATE third_party/googletest/include |
| 10911 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10912 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10913 | ) |
| 10914 | |
| 10915 | target_link_libraries(qps_interarrival_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10916 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10917 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10918 | qps |
| 10919 | grpc++_test_util |
| 10920 | grpc_test_util |
| 10921 | grpc++ |
| 10922 | grpc |
| 10923 | gpr_test_util |
| 10924 | gpr |
| 10925 | ${_gRPC_GFLAGS_LIBRARIES} |
| 10926 | ) |
| 10927 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10928 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10929 | endif (gRPC_BUILD_TESTS) |
| 10930 | if (gRPC_BUILD_TESTS) |
| 10931 | |
| 10932 | add_executable(qps_json_driver |
| 10933 | test/cpp/qps/qps_json_driver.cc |
| 10934 | third_party/googletest/src/gtest-all.cc |
| 10935 | ) |
| 10936 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10937 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10938 | target_include_directories(qps_json_driver |
| 10939 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10940 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10941 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10942 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10943 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10944 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10945 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10946 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10947 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10948 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10949 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10950 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10951 | PRIVATE third_party/googletest/include |
| 10952 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10953 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10954 | ) |
| 10955 | |
| 10956 | target_link_libraries(qps_json_driver |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10957 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 10958 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10959 | qps |
| 10960 | grpc++_test_util |
| 10961 | grpc_test_util |
| 10962 | grpc++ |
| 10963 | grpc |
| 10964 | gpr_test_util |
| 10965 | gpr |
| 10966 | grpc++_test_config |
| 10967 | ${_gRPC_GFLAGS_LIBRARIES} |
| 10968 | ) |
| 10969 | |
| 10970 | endif (gRPC_BUILD_TESTS) |
| 10971 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10972 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10973 | |
| 10974 | add_executable(qps_openloop_test |
| 10975 | test/cpp/qps/qps_openloop_test.cc |
| 10976 | third_party/googletest/src/gtest-all.cc |
| 10977 | ) |
| 10978 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10979 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10980 | target_include_directories(qps_openloop_test |
| 10981 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 10982 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 10983 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 10984 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10985 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10986 | PRIVATE ${ZLIB_ROOT_DIR} |
| 10987 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 10988 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 10989 | PRIVATE ${CARES_INCLUDE_DIR} |
| 10990 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 10991 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10992 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 10993 | PRIVATE third_party/googletest/include |
| 10994 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10995 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 10996 | ) |
| 10997 | |
| 10998 | target_link_libraries(qps_openloop_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 10999 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11000 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11001 | qps |
| 11002 | grpc++_test_util |
| 11003 | grpc_test_util |
| 11004 | grpc++ |
| 11005 | grpc |
| 11006 | gpr_test_util |
| 11007 | gpr |
| 11008 | grpc++_test_config |
| 11009 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11010 | ) |
| 11011 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11012 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11013 | endif (gRPC_BUILD_TESTS) |
| 11014 | if (gRPC_BUILD_TESTS) |
| 11015 | |
| 11016 | add_executable(qps_worker |
| 11017 | test/cpp/qps/worker.cc |
| 11018 | third_party/googletest/src/gtest-all.cc |
| 11019 | ) |
| 11020 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11021 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11022 | target_include_directories(qps_worker |
| 11023 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11024 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11025 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11026 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11027 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11028 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11029 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11030 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11031 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11032 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11033 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11034 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11035 | PRIVATE third_party/googletest/include |
| 11036 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11037 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11038 | ) |
| 11039 | |
| 11040 | target_link_libraries(qps_worker |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11041 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11042 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11043 | qps |
| 11044 | grpc++_test_util |
| 11045 | grpc_test_util |
| 11046 | grpc++ |
| 11047 | grpc |
| 11048 | gpr_test_util |
| 11049 | gpr |
| 11050 | grpc++_test_config |
| 11051 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11052 | ) |
| 11053 | |
| 11054 | endif (gRPC_BUILD_TESTS) |
| 11055 | if (gRPC_BUILD_TESTS) |
| 11056 | |
| 11057 | add_executable(reconnect_interop_client |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11058 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc |
| 11059 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc |
| 11060 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h |
| 11061 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h |
| 11062 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc |
| 11063 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc |
| 11064 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h |
| 11065 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h |
| 11066 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc |
| 11067 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc |
| 11068 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h |
| 11069 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11070 | test/cpp/interop/reconnect_interop_client.cc |
| 11071 | third_party/googletest/src/gtest-all.cc |
| 11072 | ) |
| 11073 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11074 | protobuf_generate_grpc_cpp( |
| 11075 | src/proto/grpc/testing/empty.proto |
| 11076 | ) |
| 11077 | protobuf_generate_grpc_cpp( |
| 11078 | src/proto/grpc/testing/messages.proto |
| 11079 | ) |
| 11080 | protobuf_generate_grpc_cpp( |
| 11081 | src/proto/grpc/testing/test.proto |
| 11082 | ) |
| 11083 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11084 | target_include_directories(reconnect_interop_client |
| 11085 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11086 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11087 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11088 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11089 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11090 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11091 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11092 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11093 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11094 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11095 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11096 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11097 | PRIVATE third_party/googletest/include |
| 11098 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11099 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11100 | ) |
| 11101 | |
| 11102 | target_link_libraries(reconnect_interop_client |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11103 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11104 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11105 | grpc++_test_util |
| 11106 | grpc_test_util |
| 11107 | grpc++ |
| 11108 | grpc |
| 11109 | gpr_test_util |
| 11110 | gpr |
| 11111 | grpc++_test_config |
| 11112 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11113 | ) |
| 11114 | |
| 11115 | endif (gRPC_BUILD_TESTS) |
| 11116 | if (gRPC_BUILD_TESTS) |
| 11117 | |
| 11118 | add_executable(reconnect_interop_server |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11119 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc |
| 11120 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc |
| 11121 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h |
| 11122 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h |
| 11123 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc |
| 11124 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc |
| 11125 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h |
| 11126 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h |
| 11127 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc |
| 11128 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc |
| 11129 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h |
| 11130 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11131 | test/cpp/interop/reconnect_interop_server.cc |
| 11132 | third_party/googletest/src/gtest-all.cc |
| 11133 | ) |
| 11134 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11135 | protobuf_generate_grpc_cpp( |
| 11136 | src/proto/grpc/testing/empty.proto |
| 11137 | ) |
| 11138 | protobuf_generate_grpc_cpp( |
| 11139 | src/proto/grpc/testing/messages.proto |
| 11140 | ) |
| 11141 | protobuf_generate_grpc_cpp( |
| 11142 | src/proto/grpc/testing/test.proto |
| 11143 | ) |
| 11144 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11145 | target_include_directories(reconnect_interop_server |
| 11146 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11147 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11148 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11149 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11150 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11151 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11152 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11153 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11154 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11155 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11156 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11157 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11158 | PRIVATE third_party/googletest/include |
| 11159 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11160 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11161 | ) |
| 11162 | |
| 11163 | target_link_libraries(reconnect_interop_server |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11164 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11165 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11166 | reconnect_server |
| 11167 | test_tcp_server |
| 11168 | grpc++_test_util |
| 11169 | grpc_test_util |
| 11170 | grpc++ |
| 11171 | grpc |
| 11172 | gpr_test_util |
| 11173 | gpr |
| 11174 | grpc++_test_config |
| 11175 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11176 | ) |
| 11177 | |
| 11178 | endif (gRPC_BUILD_TESTS) |
| 11179 | if (gRPC_BUILD_TESTS) |
| 11180 | |
| 11181 | add_executable(round_robin_end2end_test |
| 11182 | test/cpp/end2end/round_robin_end2end_test.cc |
| 11183 | third_party/googletest/src/gtest-all.cc |
| 11184 | ) |
| 11185 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11186 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11187 | target_include_directories(round_robin_end2end_test |
| 11188 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11189 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11190 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11191 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11192 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11193 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11194 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11195 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11196 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11197 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11198 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11199 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11200 | PRIVATE third_party/googletest/include |
| 11201 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11202 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11203 | ) |
| 11204 | |
| 11205 | target_link_libraries(round_robin_end2end_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11206 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11207 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11208 | grpc++_test_util |
| 11209 | grpc_test_util |
| 11210 | grpc++ |
| 11211 | grpc |
| 11212 | gpr_test_util |
| 11213 | gpr |
| 11214 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11215 | ) |
| 11216 | |
| 11217 | endif (gRPC_BUILD_TESTS) |
| 11218 | if (gRPC_BUILD_TESTS) |
| 11219 | |
| 11220 | add_executable(secure_auth_context_test |
| 11221 | test/cpp/common/secure_auth_context_test.cc |
| 11222 | third_party/googletest/src/gtest-all.cc |
| 11223 | ) |
| 11224 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11225 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11226 | target_include_directories(secure_auth_context_test |
| 11227 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11228 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11229 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11230 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11231 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11232 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11233 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11234 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11235 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11236 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11237 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11238 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11239 | PRIVATE third_party/googletest/include |
| 11240 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11241 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11242 | ) |
| 11243 | |
| 11244 | target_link_libraries(secure_auth_context_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11245 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11246 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11247 | grpc++_test_util |
| 11248 | grpc_test_util |
| 11249 | grpc++ |
| 11250 | grpc |
| 11251 | gpr_test_util |
| 11252 | gpr |
| 11253 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11254 | ) |
| 11255 | |
| 11256 | endif (gRPC_BUILD_TESTS) |
| 11257 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11258 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11259 | |
| 11260 | add_executable(secure_sync_unary_ping_pong_test |
| 11261 | test/cpp/qps/secure_sync_unary_ping_pong_test.cc |
| 11262 | third_party/googletest/src/gtest-all.cc |
| 11263 | ) |
| 11264 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11265 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11266 | target_include_directories(secure_sync_unary_ping_pong_test |
| 11267 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11268 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11269 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11270 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11271 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11272 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11273 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11274 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11275 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11276 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11277 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11278 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11279 | PRIVATE third_party/googletest/include |
| 11280 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11281 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11282 | ) |
| 11283 | |
| 11284 | target_link_libraries(secure_sync_unary_ping_pong_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11285 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11286 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11287 | qps |
| 11288 | grpc++_test_util |
| 11289 | grpc_test_util |
| 11290 | grpc++ |
| 11291 | grpc |
| 11292 | gpr_test_util |
| 11293 | gpr |
| 11294 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11295 | ) |
| 11296 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11297 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11298 | endif (gRPC_BUILD_TESTS) |
| 11299 | if (gRPC_BUILD_TESTS) |
| 11300 | |
| 11301 | add_executable(server_builder_plugin_test |
| 11302 | test/cpp/end2end/server_builder_plugin_test.cc |
| 11303 | third_party/googletest/src/gtest-all.cc |
| 11304 | ) |
| 11305 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11306 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11307 | target_include_directories(server_builder_plugin_test |
| 11308 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11309 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11310 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11311 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11312 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11313 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11314 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11315 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11316 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11317 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11318 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11319 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11320 | PRIVATE third_party/googletest/include |
| 11321 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11322 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11323 | ) |
| 11324 | |
| 11325 | target_link_libraries(server_builder_plugin_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11326 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11327 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11328 | grpc++_test_util |
| 11329 | grpc_test_util |
| 11330 | grpc++ |
| 11331 | grpc |
| 11332 | gpr_test_util |
| 11333 | gpr |
| 11334 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11335 | ) |
| 11336 | |
| 11337 | endif (gRPC_BUILD_TESTS) |
| 11338 | if (gRPC_BUILD_TESTS) |
| 11339 | |
Craig Tiller | 332bcc3 | 2017-03-08 12:47:46 -0800 | [diff] [blame] | 11340 | add_executable(server_builder_test |
| 11341 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.cc |
| 11342 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.cc |
| 11343 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.pb.h |
| 11344 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_messages.grpc.pb.h |
| 11345 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc |
| 11346 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc |
| 11347 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h |
| 11348 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h |
| 11349 | test/cpp/server/server_builder_test.cc |
| 11350 | third_party/googletest/src/gtest-all.cc |
| 11351 | ) |
| 11352 | |
| 11353 | protobuf_generate_grpc_cpp( |
| 11354 | src/proto/grpc/testing/echo_messages.proto |
| 11355 | ) |
| 11356 | protobuf_generate_grpc_cpp( |
| 11357 | src/proto/grpc/testing/echo.proto |
| 11358 | ) |
| 11359 | |
| 11360 | target_include_directories(server_builder_test |
| 11361 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11362 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11363 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11364 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
| 11365 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
| 11366 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11367 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11368 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11369 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11370 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11371 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | 332bcc3 | 2017-03-08 12:47:46 -0800 | [diff] [blame] | 11372 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11373 | PRIVATE third_party/googletest/include |
| 11374 | PRIVATE third_party/googletest |
| 11375 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
| 11376 | ) |
| 11377 | |
| 11378 | target_link_libraries(server_builder_test |
| 11379 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11380 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 11381 | grpc++_test_util |
| 11382 | grpc_test_util |
| 11383 | gpr_test_util |
| 11384 | grpc++ |
| 11385 | grpc |
| 11386 | gpr |
| 11387 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11388 | ) |
| 11389 | |
| 11390 | endif (gRPC_BUILD_TESTS) |
| 11391 | if (gRPC_BUILD_TESTS) |
| 11392 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11393 | add_executable(server_context_test_spouse_test |
| 11394 | test/cpp/test/server_context_test_spouse_test.cc |
| 11395 | third_party/googletest/src/gtest-all.cc |
| 11396 | ) |
| 11397 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11398 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11399 | target_include_directories(server_context_test_spouse_test |
| 11400 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11401 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11402 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11403 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11404 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11405 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11406 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11407 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11408 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11409 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11410 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11411 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11412 | PRIVATE third_party/googletest/include |
| 11413 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11414 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11415 | ) |
| 11416 | |
| 11417 | target_link_libraries(server_context_test_spouse_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11418 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11419 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11420 | grpc_test_util |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11421 | grpc++ |
| 11422 | grpc |
| 11423 | gpr_test_util |
| 11424 | gpr |
| 11425 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11426 | ) |
| 11427 | |
| 11428 | endif (gRPC_BUILD_TESTS) |
| 11429 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11430 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11431 | |
| 11432 | add_executable(server_crash_test |
| 11433 | test/cpp/end2end/server_crash_test.cc |
| 11434 | third_party/googletest/src/gtest-all.cc |
| 11435 | ) |
| 11436 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11437 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11438 | target_include_directories(server_crash_test |
| 11439 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11440 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11441 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11442 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11443 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11444 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11445 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11446 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11447 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11448 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11449 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11450 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11451 | PRIVATE third_party/googletest/include |
| 11452 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11453 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11454 | ) |
| 11455 | |
| 11456 | target_link_libraries(server_crash_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11457 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11458 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11459 | grpc++_test_util |
| 11460 | grpc_test_util |
| 11461 | grpc++ |
| 11462 | grpc |
| 11463 | gpr_test_util |
| 11464 | gpr |
| 11465 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11466 | ) |
| 11467 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11468 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11469 | endif (gRPC_BUILD_TESTS) |
| 11470 | if (gRPC_BUILD_TESTS) |
| 11471 | |
| 11472 | add_executable(server_crash_test_client |
| 11473 | test/cpp/end2end/server_crash_test_client.cc |
| 11474 | third_party/googletest/src/gtest-all.cc |
| 11475 | ) |
| 11476 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11477 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11478 | target_include_directories(server_crash_test_client |
| 11479 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11480 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11481 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11482 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11483 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11484 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11485 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11486 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11487 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11488 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11489 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11490 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11491 | PRIVATE third_party/googletest/include |
| 11492 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11493 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11494 | ) |
| 11495 | |
| 11496 | target_link_libraries(server_crash_test_client |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11497 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11498 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11499 | grpc++_test_util |
| 11500 | grpc_test_util |
| 11501 | grpc++ |
| 11502 | grpc |
| 11503 | gpr_test_util |
| 11504 | gpr |
| 11505 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11506 | ) |
| 11507 | |
| 11508 | endif (gRPC_BUILD_TESTS) |
| 11509 | if (gRPC_BUILD_TESTS) |
| 11510 | |
| 11511 | add_executable(shutdown_test |
| 11512 | test/cpp/end2end/shutdown_test.cc |
| 11513 | third_party/googletest/src/gtest-all.cc |
| 11514 | ) |
| 11515 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11516 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11517 | target_include_directories(shutdown_test |
| 11518 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11519 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11520 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11521 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11522 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11523 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11524 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11525 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11526 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11527 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11528 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11529 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11530 | PRIVATE third_party/googletest/include |
| 11531 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11532 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11533 | ) |
| 11534 | |
| 11535 | target_link_libraries(shutdown_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11536 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11537 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11538 | grpc++_test_util |
| 11539 | grpc_test_util |
| 11540 | grpc++ |
| 11541 | grpc |
| 11542 | gpr_test_util |
| 11543 | gpr |
| 11544 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11545 | ) |
| 11546 | |
| 11547 | endif (gRPC_BUILD_TESTS) |
| 11548 | if (gRPC_BUILD_TESTS) |
| 11549 | |
| 11550 | add_executable(status_test |
| 11551 | test/cpp/util/status_test.cc |
| 11552 | third_party/googletest/src/gtest-all.cc |
| 11553 | ) |
| 11554 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11555 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11556 | target_include_directories(status_test |
| 11557 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11558 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11559 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11560 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11561 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11562 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11563 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11564 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11565 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11566 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11567 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11568 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11569 | PRIVATE third_party/googletest/include |
| 11570 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11571 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11572 | ) |
| 11573 | |
| 11574 | target_link_libraries(status_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11575 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11576 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11577 | grpc_test_util |
| 11578 | grpc++ |
| 11579 | grpc |
| 11580 | gpr_test_util |
| 11581 | gpr |
| 11582 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11583 | ) |
| 11584 | |
| 11585 | endif (gRPC_BUILD_TESTS) |
| 11586 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11587 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11588 | |
| 11589 | add_executable(streaming_throughput_test |
| 11590 | test/cpp/end2end/streaming_throughput_test.cc |
| 11591 | third_party/googletest/src/gtest-all.cc |
| 11592 | ) |
| 11593 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11594 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11595 | target_include_directories(streaming_throughput_test |
| 11596 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11597 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11598 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11599 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11600 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11601 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11602 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11603 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11604 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11605 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11606 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11607 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11608 | PRIVATE third_party/googletest/include |
| 11609 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11610 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11611 | ) |
| 11612 | |
| 11613 | target_link_libraries(streaming_throughput_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11614 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11615 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11616 | grpc++_test_util |
| 11617 | grpc_test_util |
| 11618 | grpc++ |
| 11619 | grpc |
| 11620 | gpr_test_util |
| 11621 | gpr |
| 11622 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11623 | ) |
| 11624 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11625 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11626 | endif (gRPC_BUILD_TESTS) |
| 11627 | if (gRPC_BUILD_TESTS) |
| 11628 | |
| 11629 | add_executable(stress_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11630 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.cc |
| 11631 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.cc |
| 11632 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.pb.h |
| 11633 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/empty.grpc.pb.h |
| 11634 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.cc |
| 11635 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.cc |
| 11636 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.pb.h |
| 11637 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/messages.grpc.pb.h |
| 11638 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.cc |
| 11639 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.cc |
| 11640 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.pb.h |
| 11641 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/metrics.grpc.pb.h |
| 11642 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.cc |
| 11643 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.cc |
| 11644 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.pb.h |
| 11645 | ${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/test.grpc.pb.h |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11646 | test/cpp/interop/interop_client.cc |
| 11647 | test/cpp/interop/stress_interop_client.cc |
| 11648 | test/cpp/interop/stress_test.cc |
| 11649 | test/cpp/util/metrics_server.cc |
| 11650 | third_party/googletest/src/gtest-all.cc |
| 11651 | ) |
| 11652 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11653 | protobuf_generate_grpc_cpp( |
| 11654 | src/proto/grpc/testing/empty.proto |
| 11655 | ) |
| 11656 | protobuf_generate_grpc_cpp( |
| 11657 | src/proto/grpc/testing/messages.proto |
| 11658 | ) |
| 11659 | protobuf_generate_grpc_cpp( |
| 11660 | src/proto/grpc/testing/metrics.proto |
| 11661 | ) |
| 11662 | protobuf_generate_grpc_cpp( |
| 11663 | src/proto/grpc/testing/test.proto |
| 11664 | ) |
| 11665 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11666 | target_include_directories(stress_test |
| 11667 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11668 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11669 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11670 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11671 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11672 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11673 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11674 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11675 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11676 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11677 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11678 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11679 | PRIVATE third_party/googletest/include |
| 11680 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11681 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11682 | ) |
| 11683 | |
| 11684 | target_link_libraries(stress_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11685 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11686 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11687 | grpc++_test_util |
| 11688 | grpc_test_util |
| 11689 | grpc++ |
| 11690 | grpc |
| 11691 | gpr_test_util |
| 11692 | gpr |
| 11693 | grpc++_test_config |
| 11694 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11695 | ) |
| 11696 | |
| 11697 | endif (gRPC_BUILD_TESTS) |
| 11698 | if (gRPC_BUILD_TESTS) |
| 11699 | |
| 11700 | add_executable(thread_manager_test |
| 11701 | test/cpp/thread_manager/thread_manager_test.cc |
| 11702 | third_party/googletest/src/gtest-all.cc |
| 11703 | ) |
| 11704 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11705 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11706 | target_include_directories(thread_manager_test |
| 11707 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11708 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11709 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11710 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11711 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11712 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11713 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11714 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11715 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11716 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11717 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11718 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11719 | PRIVATE third_party/googletest/include |
| 11720 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11721 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11722 | ) |
| 11723 | |
| 11724 | target_link_libraries(thread_manager_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11725 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11726 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11727 | grpc++ |
| 11728 | grpc |
| 11729 | gpr |
| 11730 | grpc++_test_config |
| 11731 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11732 | ) |
| 11733 | |
| 11734 | endif (gRPC_BUILD_TESTS) |
| 11735 | if (gRPC_BUILD_TESTS) |
| 11736 | |
| 11737 | add_executable(thread_stress_test |
| 11738 | test/cpp/end2end/thread_stress_test.cc |
| 11739 | third_party/googletest/src/gtest-all.cc |
| 11740 | ) |
| 11741 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11742 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11743 | target_include_directories(thread_stress_test |
| 11744 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11745 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11746 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11747 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11748 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11749 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11750 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11751 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11752 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11753 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11754 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11755 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11756 | PRIVATE third_party/googletest/include |
| 11757 | PRIVATE third_party/googletest |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11758 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11759 | ) |
| 11760 | |
| 11761 | target_link_libraries(thread_stress_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11762 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11763 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11764 | grpc++_test_util |
| 11765 | grpc_test_util |
| 11766 | grpc++ |
| 11767 | grpc |
| 11768 | gpr_test_util |
| 11769 | gpr |
| 11770 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11771 | ) |
| 11772 | |
| 11773 | endif (gRPC_BUILD_TESTS) |
| 11774 | if (gRPC_BUILD_TESTS) |
Craig Tiller | 1bb5371 | 2017-02-04 15:39:27 -0800 | [diff] [blame] | 11775 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11776 | |
Craig Tiller | 9a3997c | 2017-01-30 13:22:33 -0800 | [diff] [blame] | 11777 | add_executable(writes_per_rpc_test |
| 11778 | test/cpp/performance/writes_per_rpc_test.cc |
| 11779 | third_party/googletest/src/gtest-all.cc |
| 11780 | ) |
| 11781 | |
Craig Tiller | c40b347 | 2017-02-03 11:54:26 -0800 | [diff] [blame] | 11782 | |
Craig Tiller | 9a3997c | 2017-01-30 13:22:33 -0800 | [diff] [blame] | 11783 | target_include_directories(writes_per_rpc_test |
| 11784 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11785 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11786 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11787 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Craig Tiller | c40b347 | 2017-02-03 11:54:26 -0800 | [diff] [blame] | 11788 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Craig Tiller | 9a3997c | 2017-01-30 13:22:33 -0800 | [diff] [blame] | 11789 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11790 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11791 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11792 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11793 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11794 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Craig Tiller | 9a3997c | 2017-01-30 13:22:33 -0800 | [diff] [blame] | 11795 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11796 | PRIVATE third_party/googletest/include |
| 11797 | PRIVATE third_party/googletest |
Craig Tiller | c40b347 | 2017-02-03 11:54:26 -0800 | [diff] [blame] | 11798 | PRIVATE ${_gRPC_PROTO_GENS_DIR} |
Craig Tiller | 9a3997c | 2017-01-30 13:22:33 -0800 | [diff] [blame] | 11799 | ) |
| 11800 | |
| 11801 | target_link_libraries(writes_per_rpc_test |
Craig Tiller | c40b347 | 2017-02-03 11:54:26 -0800 | [diff] [blame] | 11802 | ${_gRPC_PROTOBUF_LIBRARIES} |
| 11803 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Craig Tiller | 9a3997c | 2017-01-30 13:22:33 -0800 | [diff] [blame] | 11804 | grpc++_test_util |
| 11805 | grpc_test_util |
| 11806 | grpc++ |
| 11807 | grpc |
| 11808 | gpr_test_util |
| 11809 | gpr |
| 11810 | ${_gRPC_GFLAGS_LIBRARIES} |
| 11811 | ) |
| 11812 | |
Craig Tiller | 1bb5371 | 2017-02-04 15:39:27 -0800 | [diff] [blame] | 11813 | endif() |
Craig Tiller | 9a3997c | 2017-01-30 13:22:33 -0800 | [diff] [blame] | 11814 | endif (gRPC_BUILD_TESTS) |
| 11815 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11816 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11817 | add_executable(public_headers_must_be_c89 |
| 11818 | test/core/surface/public_headers_must_be_c89.c |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11819 | ) |
| 11820 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11821 | |
| 11822 | target_include_directories(public_headers_must_be_c89 |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11823 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11824 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11825 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11826 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11827 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11828 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11829 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11830 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11831 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11832 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11833 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11834 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11835 | ) |
| 11836 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11837 | target_link_libraries(public_headers_must_be_c89 |
| 11838 | ${_gRPC_ALLTARGETS_LIBRARIES} |
| 11839 | grpc |
| 11840 | gpr |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11841 | ) |
| 11842 | |
| 11843 | endif (gRPC_BUILD_TESTS) |
| 11844 | if (gRPC_BUILD_TESTS) |
| 11845 | |
| 11846 | add_executable(badreq_bad_client_test |
| 11847 | test/core/bad_client/tests/badreq.c |
| 11848 | ) |
| 11849 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11850 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11851 | target_include_directories(badreq_bad_client_test |
| 11852 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11853 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11854 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11855 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11856 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11857 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11858 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11859 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11860 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11861 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11862 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11863 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11864 | ) |
| 11865 | |
| 11866 | target_link_libraries(badreq_bad_client_test |
| 11867 | ${_gRPC_SSL_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11868 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11869 | bad_client_test |
| 11870 | grpc_test_util_unsecure |
| 11871 | grpc_unsecure |
| 11872 | gpr_test_util |
| 11873 | gpr |
| 11874 | ) |
| 11875 | |
| 11876 | endif (gRPC_BUILD_TESTS) |
| 11877 | if (gRPC_BUILD_TESTS) |
| 11878 | |
| 11879 | add_executable(connection_prefix_bad_client_test |
| 11880 | test/core/bad_client/tests/connection_prefix.c |
| 11881 | ) |
| 11882 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11883 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11884 | target_include_directories(connection_prefix_bad_client_test |
| 11885 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11886 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11887 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11888 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11889 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11890 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11891 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11892 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11893 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11894 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11895 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11896 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11897 | ) |
| 11898 | |
| 11899 | target_link_libraries(connection_prefix_bad_client_test |
| 11900 | ${_gRPC_SSL_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11901 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11902 | bad_client_test |
| 11903 | grpc_test_util_unsecure |
| 11904 | grpc_unsecure |
| 11905 | gpr_test_util |
| 11906 | gpr |
| 11907 | ) |
| 11908 | |
| 11909 | endif (gRPC_BUILD_TESTS) |
| 11910 | if (gRPC_BUILD_TESTS) |
| 11911 | |
| 11912 | add_executable(head_of_line_blocking_bad_client_test |
| 11913 | test/core/bad_client/tests/head_of_line_blocking.c |
| 11914 | ) |
| 11915 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11916 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11917 | target_include_directories(head_of_line_blocking_bad_client_test |
| 11918 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11919 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11920 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11921 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11922 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11923 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11924 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11925 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11926 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11927 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11928 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11929 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11930 | ) |
| 11931 | |
| 11932 | target_link_libraries(head_of_line_blocking_bad_client_test |
| 11933 | ${_gRPC_SSL_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11934 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11935 | bad_client_test |
| 11936 | grpc_test_util_unsecure |
| 11937 | grpc_unsecure |
| 11938 | gpr_test_util |
| 11939 | gpr |
| 11940 | ) |
| 11941 | |
| 11942 | endif (gRPC_BUILD_TESTS) |
| 11943 | if (gRPC_BUILD_TESTS) |
| 11944 | |
| 11945 | add_executable(headers_bad_client_test |
| 11946 | test/core/bad_client/tests/headers.c |
| 11947 | ) |
| 11948 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11949 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11950 | target_include_directories(headers_bad_client_test |
| 11951 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11952 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11953 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11954 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11955 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11956 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11957 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11958 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11959 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11960 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11961 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11962 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11963 | ) |
| 11964 | |
| 11965 | target_link_libraries(headers_bad_client_test |
| 11966 | ${_gRPC_SSL_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11967 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11968 | bad_client_test |
| 11969 | grpc_test_util_unsecure |
| 11970 | grpc_unsecure |
| 11971 | gpr_test_util |
| 11972 | gpr |
| 11973 | ) |
| 11974 | |
| 11975 | endif (gRPC_BUILD_TESTS) |
| 11976 | if (gRPC_BUILD_TESTS) |
| 11977 | |
| 11978 | add_executable(initial_settings_frame_bad_client_test |
| 11979 | test/core/bad_client/tests/initial_settings_frame.c |
| 11980 | ) |
| 11981 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11982 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11983 | target_include_directories(initial_settings_frame_bad_client_test |
| 11984 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 11985 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 11986 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 11987 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 11988 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11989 | PRIVATE ${ZLIB_ROOT_DIR} |
| 11990 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 11991 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 11992 | PRIVATE ${CARES_INCLUDE_DIR} |
| 11993 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 11994 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 11995 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 11996 | ) |
| 11997 | |
| 11998 | target_link_libraries(initial_settings_frame_bad_client_test |
| 11999 | ${_gRPC_SSL_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12000 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12001 | bad_client_test |
| 12002 | grpc_test_util_unsecure |
| 12003 | grpc_unsecure |
| 12004 | gpr_test_util |
| 12005 | gpr |
| 12006 | ) |
| 12007 | |
| 12008 | endif (gRPC_BUILD_TESTS) |
| 12009 | if (gRPC_BUILD_TESTS) |
| 12010 | |
| 12011 | add_executable(large_metadata_bad_client_test |
| 12012 | test/core/bad_client/tests/large_metadata.c |
| 12013 | ) |
| 12014 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12015 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12016 | target_include_directories(large_metadata_bad_client_test |
| 12017 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12018 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12019 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12020 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12021 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12022 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12023 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12024 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12025 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12026 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12027 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12028 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12029 | ) |
| 12030 | |
| 12031 | target_link_libraries(large_metadata_bad_client_test |
| 12032 | ${_gRPC_SSL_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12033 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12034 | bad_client_test |
| 12035 | grpc_test_util_unsecure |
| 12036 | grpc_unsecure |
| 12037 | gpr_test_util |
| 12038 | gpr |
| 12039 | ) |
| 12040 | |
| 12041 | endif (gRPC_BUILD_TESTS) |
| 12042 | if (gRPC_BUILD_TESTS) |
| 12043 | |
| 12044 | add_executable(server_registered_method_bad_client_test |
| 12045 | test/core/bad_client/tests/server_registered_method.c |
| 12046 | ) |
| 12047 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12048 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12049 | target_include_directories(server_registered_method_bad_client_test |
| 12050 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12051 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12052 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12053 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12054 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12055 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12056 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12057 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12058 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12059 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12060 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12061 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12062 | ) |
| 12063 | |
| 12064 | target_link_libraries(server_registered_method_bad_client_test |
| 12065 | ${_gRPC_SSL_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12066 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12067 | bad_client_test |
| 12068 | grpc_test_util_unsecure |
| 12069 | grpc_unsecure |
| 12070 | gpr_test_util |
| 12071 | gpr |
| 12072 | ) |
| 12073 | |
| 12074 | endif (gRPC_BUILD_TESTS) |
| 12075 | if (gRPC_BUILD_TESTS) |
| 12076 | |
| 12077 | add_executable(simple_request_bad_client_test |
| 12078 | test/core/bad_client/tests/simple_request.c |
| 12079 | ) |
| 12080 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12081 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12082 | target_include_directories(simple_request_bad_client_test |
| 12083 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12084 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12085 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12086 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12087 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12088 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12089 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12090 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12091 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12092 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12093 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12094 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12095 | ) |
| 12096 | |
| 12097 | target_link_libraries(simple_request_bad_client_test |
| 12098 | ${_gRPC_SSL_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12099 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12100 | bad_client_test |
| 12101 | grpc_test_util_unsecure |
| 12102 | grpc_unsecure |
| 12103 | gpr_test_util |
| 12104 | gpr |
| 12105 | ) |
| 12106 | |
| 12107 | endif (gRPC_BUILD_TESTS) |
| 12108 | if (gRPC_BUILD_TESTS) |
| 12109 | |
| 12110 | add_executable(unknown_frame_bad_client_test |
| 12111 | test/core/bad_client/tests/unknown_frame.c |
| 12112 | ) |
| 12113 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12114 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12115 | target_include_directories(unknown_frame_bad_client_test |
| 12116 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12117 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12118 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12119 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12120 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12121 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12122 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12123 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12124 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12125 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12126 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12127 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12128 | ) |
| 12129 | |
| 12130 | target_link_libraries(unknown_frame_bad_client_test |
| 12131 | ${_gRPC_SSL_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12132 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12133 | bad_client_test |
| 12134 | grpc_test_util_unsecure |
| 12135 | grpc_unsecure |
| 12136 | gpr_test_util |
| 12137 | gpr |
| 12138 | ) |
| 12139 | |
| 12140 | endif (gRPC_BUILD_TESTS) |
| 12141 | if (gRPC_BUILD_TESTS) |
| 12142 | |
| 12143 | add_executable(window_overflow_bad_client_test |
| 12144 | test/core/bad_client/tests/window_overflow.c |
| 12145 | ) |
| 12146 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12147 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12148 | target_include_directories(window_overflow_bad_client_test |
| 12149 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12150 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12151 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12152 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12153 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12154 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12155 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12156 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12157 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12158 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12159 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12160 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12161 | ) |
| 12162 | |
| 12163 | target_link_libraries(window_overflow_bad_client_test |
| 12164 | ${_gRPC_SSL_LIBRARIES} |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12165 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12166 | bad_client_test |
| 12167 | grpc_test_util_unsecure |
| 12168 | grpc_unsecure |
| 12169 | gpr_test_util |
| 12170 | gpr |
| 12171 | ) |
| 12172 | |
| 12173 | endif (gRPC_BUILD_TESTS) |
| 12174 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12175 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12176 | |
| 12177 | add_executable(bad_ssl_cert_server |
| 12178 | test/core/bad_ssl/servers/cert.c |
| 12179 | ) |
| 12180 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12181 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12182 | target_include_directories(bad_ssl_cert_server |
| 12183 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12184 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12185 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12186 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12187 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12188 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12189 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12190 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12191 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12192 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12193 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12194 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12195 | ) |
| 12196 | |
| 12197 | target_link_libraries(bad_ssl_cert_server |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12198 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12199 | bad_ssl_test_server |
| 12200 | grpc_test_util |
| 12201 | grpc |
| 12202 | gpr_test_util |
| 12203 | gpr |
| 12204 | ) |
| 12205 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12206 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12207 | endif (gRPC_BUILD_TESTS) |
| 12208 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12209 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12210 | |
| 12211 | add_executable(bad_ssl_cert_test |
| 12212 | test/core/bad_ssl/bad_ssl_test.c |
| 12213 | ) |
| 12214 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12215 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12216 | target_include_directories(bad_ssl_cert_test |
| 12217 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12218 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12219 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12220 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12221 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12222 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12223 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12224 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12225 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12226 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12227 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12228 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12229 | ) |
| 12230 | |
| 12231 | target_link_libraries(bad_ssl_cert_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12232 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12233 | grpc_test_util |
| 12234 | grpc |
| 12235 | gpr_test_util |
| 12236 | gpr |
| 12237 | ) |
| 12238 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12239 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12240 | endif (gRPC_BUILD_TESTS) |
| 12241 | if (gRPC_BUILD_TESTS) |
| 12242 | |
| 12243 | add_executable(h2_census_test |
| 12244 | test/core/end2end/fixtures/h2_census.c |
| 12245 | ) |
| 12246 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12247 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12248 | target_include_directories(h2_census_test |
| 12249 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12250 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12251 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12252 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12253 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12254 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12255 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12256 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12257 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12258 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12259 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12260 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12261 | ) |
| 12262 | |
| 12263 | target_link_libraries(h2_census_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12264 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12265 | end2end_tests |
| 12266 | grpc_test_util |
| 12267 | grpc |
| 12268 | gpr_test_util |
| 12269 | gpr |
| 12270 | ) |
| 12271 | |
| 12272 | endif (gRPC_BUILD_TESTS) |
| 12273 | if (gRPC_BUILD_TESTS) |
| 12274 | |
| 12275 | add_executable(h2_compress_test |
| 12276 | test/core/end2end/fixtures/h2_compress.c |
| 12277 | ) |
| 12278 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12279 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12280 | target_include_directories(h2_compress_test |
| 12281 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12282 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12283 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12284 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12285 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12286 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12287 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12288 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12289 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12290 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12291 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12292 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12293 | ) |
| 12294 | |
| 12295 | target_link_libraries(h2_compress_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12296 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12297 | end2end_tests |
| 12298 | grpc_test_util |
| 12299 | grpc |
| 12300 | gpr_test_util |
| 12301 | gpr |
| 12302 | ) |
| 12303 | |
| 12304 | endif (gRPC_BUILD_TESTS) |
| 12305 | if (gRPC_BUILD_TESTS) |
| 12306 | |
| 12307 | add_executable(h2_fakesec_test |
| 12308 | test/core/end2end/fixtures/h2_fakesec.c |
| 12309 | ) |
| 12310 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12311 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12312 | target_include_directories(h2_fakesec_test |
| 12313 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12314 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12315 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12316 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12317 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12318 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12319 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12320 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12321 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12322 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12323 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12324 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12325 | ) |
| 12326 | |
| 12327 | target_link_libraries(h2_fakesec_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12328 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12329 | end2end_tests |
| 12330 | grpc_test_util |
| 12331 | grpc |
| 12332 | gpr_test_util |
| 12333 | gpr |
| 12334 | ) |
| 12335 | |
| 12336 | endif (gRPC_BUILD_TESTS) |
| 12337 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12338 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12339 | |
| 12340 | add_executable(h2_fd_test |
| 12341 | test/core/end2end/fixtures/h2_fd.c |
| 12342 | ) |
| 12343 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12344 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12345 | target_include_directories(h2_fd_test |
| 12346 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12347 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12348 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12349 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12350 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12351 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12352 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12353 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12354 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12355 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12356 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12357 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12358 | ) |
| 12359 | |
| 12360 | target_link_libraries(h2_fd_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12361 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12362 | end2end_tests |
| 12363 | grpc_test_util |
| 12364 | grpc |
| 12365 | gpr_test_util |
| 12366 | gpr |
| 12367 | ) |
| 12368 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12369 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12370 | endif (gRPC_BUILD_TESTS) |
| 12371 | if (gRPC_BUILD_TESTS) |
| 12372 | |
| 12373 | add_executable(h2_full_test |
| 12374 | test/core/end2end/fixtures/h2_full.c |
| 12375 | ) |
| 12376 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12377 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12378 | target_include_directories(h2_full_test |
| 12379 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12380 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12381 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12382 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12383 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12384 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12385 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12386 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12387 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12388 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12389 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12390 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12391 | ) |
| 12392 | |
| 12393 | target_link_libraries(h2_full_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12394 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12395 | end2end_tests |
| 12396 | grpc_test_util |
| 12397 | grpc |
| 12398 | gpr_test_util |
| 12399 | gpr |
| 12400 | ) |
| 12401 | |
| 12402 | endif (gRPC_BUILD_TESTS) |
| 12403 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12404 | if(_gRPC_PLATFORM_LINUX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12405 | |
| 12406 | add_executable(h2_full+pipe_test |
| 12407 | test/core/end2end/fixtures/h2_full+pipe.c |
| 12408 | ) |
| 12409 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12410 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12411 | target_include_directories(h2_full+pipe_test |
| 12412 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12413 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12414 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12415 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12416 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12417 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12418 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12419 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12420 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12421 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12422 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12423 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12424 | ) |
| 12425 | |
| 12426 | target_link_libraries(h2_full+pipe_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12427 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12428 | end2end_tests |
| 12429 | grpc_test_util |
| 12430 | grpc |
| 12431 | gpr_test_util |
| 12432 | gpr |
| 12433 | ) |
| 12434 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12435 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12436 | endif (gRPC_BUILD_TESTS) |
| 12437 | if (gRPC_BUILD_TESTS) |
| 12438 | |
| 12439 | add_executable(h2_full+trace_test |
| 12440 | test/core/end2end/fixtures/h2_full+trace.c |
| 12441 | ) |
| 12442 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12443 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12444 | target_include_directories(h2_full+trace_test |
| 12445 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12446 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12447 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12448 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12449 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12450 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12451 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12452 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12453 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12454 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12455 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12456 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12457 | ) |
| 12458 | |
| 12459 | target_link_libraries(h2_full+trace_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12460 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12461 | end2end_tests |
| 12462 | grpc_test_util |
| 12463 | grpc |
| 12464 | gpr_test_util |
| 12465 | gpr |
| 12466 | ) |
| 12467 | |
| 12468 | endif (gRPC_BUILD_TESTS) |
| 12469 | if (gRPC_BUILD_TESTS) |
| 12470 | |
| 12471 | add_executable(h2_http_proxy_test |
| 12472 | test/core/end2end/fixtures/h2_http_proxy.c |
| 12473 | ) |
| 12474 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12475 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12476 | target_include_directories(h2_http_proxy_test |
| 12477 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12478 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12479 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12480 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12481 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12482 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12483 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12484 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12485 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12486 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12487 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12488 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12489 | ) |
| 12490 | |
| 12491 | target_link_libraries(h2_http_proxy_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12492 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12493 | end2end_tests |
| 12494 | grpc_test_util |
| 12495 | grpc |
| 12496 | gpr_test_util |
| 12497 | gpr |
| 12498 | ) |
| 12499 | |
| 12500 | endif (gRPC_BUILD_TESTS) |
| 12501 | if (gRPC_BUILD_TESTS) |
| 12502 | |
| 12503 | add_executable(h2_load_reporting_test |
| 12504 | test/core/end2end/fixtures/h2_load_reporting.c |
| 12505 | ) |
| 12506 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12507 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12508 | target_include_directories(h2_load_reporting_test |
| 12509 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12510 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12511 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12512 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12513 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12514 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12515 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12516 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12517 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12518 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12519 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12520 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12521 | ) |
| 12522 | |
| 12523 | target_link_libraries(h2_load_reporting_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12524 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12525 | end2end_tests |
| 12526 | grpc_test_util |
| 12527 | grpc |
| 12528 | gpr_test_util |
| 12529 | gpr |
| 12530 | ) |
| 12531 | |
| 12532 | endif (gRPC_BUILD_TESTS) |
| 12533 | if (gRPC_BUILD_TESTS) |
| 12534 | |
| 12535 | add_executable(h2_oauth2_test |
| 12536 | test/core/end2end/fixtures/h2_oauth2.c |
| 12537 | ) |
| 12538 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12539 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12540 | target_include_directories(h2_oauth2_test |
| 12541 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12542 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12543 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12544 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12545 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12546 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12547 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12548 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12549 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12550 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12551 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12552 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12553 | ) |
| 12554 | |
| 12555 | target_link_libraries(h2_oauth2_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12556 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12557 | end2end_tests |
| 12558 | grpc_test_util |
| 12559 | grpc |
| 12560 | gpr_test_util |
| 12561 | gpr |
| 12562 | ) |
| 12563 | |
| 12564 | endif (gRPC_BUILD_TESTS) |
| 12565 | if (gRPC_BUILD_TESTS) |
| 12566 | |
| 12567 | add_executable(h2_proxy_test |
| 12568 | test/core/end2end/fixtures/h2_proxy.c |
| 12569 | ) |
| 12570 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12571 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12572 | target_include_directories(h2_proxy_test |
| 12573 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12574 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12575 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12576 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12577 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12578 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12579 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12580 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12581 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12582 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12583 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12584 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12585 | ) |
| 12586 | |
| 12587 | target_link_libraries(h2_proxy_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12588 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12589 | end2end_tests |
| 12590 | grpc_test_util |
| 12591 | grpc |
| 12592 | gpr_test_util |
| 12593 | gpr |
| 12594 | ) |
| 12595 | |
| 12596 | endif (gRPC_BUILD_TESTS) |
| 12597 | if (gRPC_BUILD_TESTS) |
| 12598 | |
| 12599 | add_executable(h2_sockpair_test |
| 12600 | test/core/end2end/fixtures/h2_sockpair.c |
| 12601 | ) |
| 12602 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12603 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12604 | target_include_directories(h2_sockpair_test |
| 12605 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12606 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12607 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12608 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12609 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12610 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12611 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12612 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12613 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12614 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12615 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12616 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12617 | ) |
| 12618 | |
| 12619 | target_link_libraries(h2_sockpair_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12620 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12621 | end2end_tests |
| 12622 | grpc_test_util |
| 12623 | grpc |
| 12624 | gpr_test_util |
| 12625 | gpr |
| 12626 | ) |
| 12627 | |
| 12628 | endif (gRPC_BUILD_TESTS) |
| 12629 | if (gRPC_BUILD_TESTS) |
| 12630 | |
| 12631 | add_executable(h2_sockpair+trace_test |
| 12632 | test/core/end2end/fixtures/h2_sockpair+trace.c |
| 12633 | ) |
| 12634 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12635 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12636 | target_include_directories(h2_sockpair+trace_test |
| 12637 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12638 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12639 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12640 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12641 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12642 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12643 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12644 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12645 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12646 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12647 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12648 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12649 | ) |
| 12650 | |
| 12651 | target_link_libraries(h2_sockpair+trace_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12652 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12653 | end2end_tests |
| 12654 | grpc_test_util |
| 12655 | grpc |
| 12656 | gpr_test_util |
| 12657 | gpr |
| 12658 | ) |
| 12659 | |
| 12660 | endif (gRPC_BUILD_TESTS) |
| 12661 | if (gRPC_BUILD_TESTS) |
| 12662 | |
| 12663 | add_executable(h2_sockpair_1byte_test |
| 12664 | test/core/end2end/fixtures/h2_sockpair_1byte.c |
| 12665 | ) |
| 12666 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12667 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12668 | target_include_directories(h2_sockpair_1byte_test |
| 12669 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12670 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12671 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12672 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12673 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12674 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12675 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12676 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12677 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12678 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12679 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12680 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12681 | ) |
| 12682 | |
| 12683 | target_link_libraries(h2_sockpair_1byte_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12684 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12685 | end2end_tests |
| 12686 | grpc_test_util |
| 12687 | grpc |
| 12688 | gpr_test_util |
| 12689 | gpr |
| 12690 | ) |
| 12691 | |
| 12692 | endif (gRPC_BUILD_TESTS) |
| 12693 | if (gRPC_BUILD_TESTS) |
| 12694 | |
| 12695 | add_executable(h2_ssl_test |
| 12696 | test/core/end2end/fixtures/h2_ssl.c |
| 12697 | ) |
| 12698 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12699 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12700 | target_include_directories(h2_ssl_test |
| 12701 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12702 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12703 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12704 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12705 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12706 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12707 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12708 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12709 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12710 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12711 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12712 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12713 | ) |
| 12714 | |
| 12715 | target_link_libraries(h2_ssl_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12716 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12717 | end2end_tests |
| 12718 | grpc_test_util |
| 12719 | grpc |
| 12720 | gpr_test_util |
| 12721 | gpr |
| 12722 | ) |
| 12723 | |
| 12724 | endif (gRPC_BUILD_TESTS) |
| 12725 | if (gRPC_BUILD_TESTS) |
| 12726 | |
| 12727 | add_executable(h2_ssl_cert_test |
| 12728 | test/core/end2end/fixtures/h2_ssl_cert.c |
| 12729 | ) |
| 12730 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12731 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12732 | target_include_directories(h2_ssl_cert_test |
| 12733 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12734 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12735 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12736 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12737 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12738 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12739 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12740 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12741 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12742 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12743 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12744 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12745 | ) |
| 12746 | |
| 12747 | target_link_libraries(h2_ssl_cert_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12748 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12749 | end2end_tests |
| 12750 | grpc_test_util |
| 12751 | grpc |
| 12752 | gpr_test_util |
| 12753 | gpr |
| 12754 | ) |
| 12755 | |
| 12756 | endif (gRPC_BUILD_TESTS) |
| 12757 | if (gRPC_BUILD_TESTS) |
| 12758 | |
| 12759 | add_executable(h2_ssl_proxy_test |
| 12760 | test/core/end2end/fixtures/h2_ssl_proxy.c |
| 12761 | ) |
| 12762 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12763 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12764 | target_include_directories(h2_ssl_proxy_test |
| 12765 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12766 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12767 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12768 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12769 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12770 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12771 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12772 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12773 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12774 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12775 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12776 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12777 | ) |
| 12778 | |
| 12779 | target_link_libraries(h2_ssl_proxy_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12780 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12781 | end2end_tests |
| 12782 | grpc_test_util |
| 12783 | grpc |
| 12784 | gpr_test_util |
| 12785 | gpr |
| 12786 | ) |
| 12787 | |
| 12788 | endif (gRPC_BUILD_TESTS) |
| 12789 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12790 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12791 | |
| 12792 | add_executable(h2_uds_test |
| 12793 | test/core/end2end/fixtures/h2_uds.c |
| 12794 | ) |
| 12795 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12796 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12797 | target_include_directories(h2_uds_test |
| 12798 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12799 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12800 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12801 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12802 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12803 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12804 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12805 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12806 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12807 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12808 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12809 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12810 | ) |
| 12811 | |
| 12812 | target_link_libraries(h2_uds_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12813 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12814 | end2end_tests |
| 12815 | grpc_test_util |
| 12816 | grpc |
| 12817 | gpr_test_util |
| 12818 | gpr |
| 12819 | ) |
| 12820 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12821 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12822 | endif (gRPC_BUILD_TESTS) |
| 12823 | if (gRPC_BUILD_TESTS) |
| 12824 | |
| 12825 | add_executable(h2_census_nosec_test |
| 12826 | test/core/end2end/fixtures/h2_census.c |
| 12827 | ) |
| 12828 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12829 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12830 | target_include_directories(h2_census_nosec_test |
| 12831 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12832 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12833 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12834 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12835 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12836 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12837 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12838 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12839 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12840 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12841 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12842 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12843 | ) |
| 12844 | |
| 12845 | target_link_libraries(h2_census_nosec_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12846 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12847 | end2end_nosec_tests |
| 12848 | grpc_test_util_unsecure |
| 12849 | grpc_unsecure |
| 12850 | gpr_test_util |
| 12851 | gpr |
| 12852 | ) |
| 12853 | |
| 12854 | endif (gRPC_BUILD_TESTS) |
| 12855 | if (gRPC_BUILD_TESTS) |
| 12856 | |
| 12857 | add_executable(h2_compress_nosec_test |
| 12858 | test/core/end2end/fixtures/h2_compress.c |
| 12859 | ) |
| 12860 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12861 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12862 | target_include_directories(h2_compress_nosec_test |
| 12863 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12864 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12865 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12866 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12867 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12868 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12869 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12870 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12871 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12872 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12873 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12874 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12875 | ) |
| 12876 | |
| 12877 | target_link_libraries(h2_compress_nosec_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12878 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12879 | end2end_nosec_tests |
| 12880 | grpc_test_util_unsecure |
| 12881 | grpc_unsecure |
| 12882 | gpr_test_util |
| 12883 | gpr |
| 12884 | ) |
| 12885 | |
| 12886 | endif (gRPC_BUILD_TESTS) |
| 12887 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12888 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12889 | |
| 12890 | add_executable(h2_fd_nosec_test |
| 12891 | test/core/end2end/fixtures/h2_fd.c |
| 12892 | ) |
| 12893 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12894 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12895 | target_include_directories(h2_fd_nosec_test |
| 12896 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12897 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12898 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12899 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12900 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12901 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12902 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12903 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12904 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12905 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12906 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12907 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12908 | ) |
| 12909 | |
| 12910 | target_link_libraries(h2_fd_nosec_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12911 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12912 | end2end_nosec_tests |
| 12913 | grpc_test_util_unsecure |
| 12914 | grpc_unsecure |
| 12915 | gpr_test_util |
| 12916 | gpr |
| 12917 | ) |
| 12918 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12919 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12920 | endif (gRPC_BUILD_TESTS) |
| 12921 | if (gRPC_BUILD_TESTS) |
| 12922 | |
| 12923 | add_executable(h2_full_nosec_test |
| 12924 | test/core/end2end/fixtures/h2_full.c |
| 12925 | ) |
| 12926 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12927 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12928 | target_include_directories(h2_full_nosec_test |
| 12929 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12930 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12931 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12932 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12933 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12934 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12935 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12936 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12937 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12938 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12939 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12940 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12941 | ) |
| 12942 | |
| 12943 | target_link_libraries(h2_full_nosec_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12944 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12945 | end2end_nosec_tests |
| 12946 | grpc_test_util_unsecure |
| 12947 | grpc_unsecure |
| 12948 | gpr_test_util |
| 12949 | gpr |
| 12950 | ) |
| 12951 | |
| 12952 | endif (gRPC_BUILD_TESTS) |
| 12953 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12954 | if(_gRPC_PLATFORM_LINUX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12955 | |
| 12956 | add_executable(h2_full+pipe_nosec_test |
| 12957 | test/core/end2end/fixtures/h2_full+pipe.c |
| 12958 | ) |
| 12959 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12960 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12961 | target_include_directories(h2_full+pipe_nosec_test |
| 12962 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12963 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12964 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12965 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12966 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12967 | PRIVATE ${ZLIB_ROOT_DIR} |
| 12968 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 12969 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 12970 | PRIVATE ${CARES_INCLUDE_DIR} |
| 12971 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 12972 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12973 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 12974 | ) |
| 12975 | |
| 12976 | target_link_libraries(h2_full+pipe_nosec_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12977 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12978 | end2end_nosec_tests |
| 12979 | grpc_test_util_unsecure |
| 12980 | grpc_unsecure |
| 12981 | gpr_test_util |
| 12982 | gpr |
| 12983 | ) |
| 12984 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12985 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12986 | endif (gRPC_BUILD_TESTS) |
| 12987 | if (gRPC_BUILD_TESTS) |
| 12988 | |
| 12989 | add_executable(h2_full+trace_nosec_test |
| 12990 | test/core/end2end/fixtures/h2_full+trace.c |
| 12991 | ) |
| 12992 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12993 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 12994 | target_include_directories(h2_full+trace_nosec_test |
| 12995 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 12996 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 12997 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 12998 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 12999 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13000 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13001 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13002 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13003 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13004 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13005 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13006 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13007 | ) |
| 13008 | |
| 13009 | target_link_libraries(h2_full+trace_nosec_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13010 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13011 | end2end_nosec_tests |
| 13012 | grpc_test_util_unsecure |
| 13013 | grpc_unsecure |
| 13014 | gpr_test_util |
| 13015 | gpr |
| 13016 | ) |
| 13017 | |
| 13018 | endif (gRPC_BUILD_TESTS) |
| 13019 | if (gRPC_BUILD_TESTS) |
| 13020 | |
| 13021 | add_executable(h2_http_proxy_nosec_test |
| 13022 | test/core/end2end/fixtures/h2_http_proxy.c |
| 13023 | ) |
| 13024 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13025 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13026 | target_include_directories(h2_http_proxy_nosec_test |
| 13027 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13028 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13029 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13030 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13031 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13032 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13033 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13034 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13035 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13036 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13037 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13038 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13039 | ) |
| 13040 | |
| 13041 | target_link_libraries(h2_http_proxy_nosec_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13042 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13043 | end2end_nosec_tests |
| 13044 | grpc_test_util_unsecure |
| 13045 | grpc_unsecure |
| 13046 | gpr_test_util |
| 13047 | gpr |
| 13048 | ) |
| 13049 | |
| 13050 | endif (gRPC_BUILD_TESTS) |
| 13051 | if (gRPC_BUILD_TESTS) |
| 13052 | |
| 13053 | add_executable(h2_load_reporting_nosec_test |
| 13054 | test/core/end2end/fixtures/h2_load_reporting.c |
| 13055 | ) |
| 13056 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13057 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13058 | target_include_directories(h2_load_reporting_nosec_test |
| 13059 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13060 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13061 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13062 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13063 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13064 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13065 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13066 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13067 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13068 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13069 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13070 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13071 | ) |
| 13072 | |
| 13073 | target_link_libraries(h2_load_reporting_nosec_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13074 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13075 | end2end_nosec_tests |
| 13076 | grpc_test_util_unsecure |
| 13077 | grpc_unsecure |
| 13078 | gpr_test_util |
| 13079 | gpr |
| 13080 | ) |
| 13081 | |
| 13082 | endif (gRPC_BUILD_TESTS) |
| 13083 | if (gRPC_BUILD_TESTS) |
| 13084 | |
| 13085 | add_executable(h2_proxy_nosec_test |
| 13086 | test/core/end2end/fixtures/h2_proxy.c |
| 13087 | ) |
| 13088 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13089 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13090 | target_include_directories(h2_proxy_nosec_test |
| 13091 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13092 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13093 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13094 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13095 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13096 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13097 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13098 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13099 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13100 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13101 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13102 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13103 | ) |
| 13104 | |
| 13105 | target_link_libraries(h2_proxy_nosec_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13106 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13107 | end2end_nosec_tests |
| 13108 | grpc_test_util_unsecure |
| 13109 | grpc_unsecure |
| 13110 | gpr_test_util |
| 13111 | gpr |
| 13112 | ) |
| 13113 | |
| 13114 | endif (gRPC_BUILD_TESTS) |
| 13115 | if (gRPC_BUILD_TESTS) |
| 13116 | |
| 13117 | add_executable(h2_sockpair_nosec_test |
| 13118 | test/core/end2end/fixtures/h2_sockpair.c |
| 13119 | ) |
| 13120 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13121 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13122 | target_include_directories(h2_sockpair_nosec_test |
| 13123 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13124 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13125 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13126 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13127 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13128 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13129 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13130 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13131 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13132 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13133 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13134 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13135 | ) |
| 13136 | |
| 13137 | target_link_libraries(h2_sockpair_nosec_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13138 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13139 | end2end_nosec_tests |
| 13140 | grpc_test_util_unsecure |
| 13141 | grpc_unsecure |
| 13142 | gpr_test_util |
| 13143 | gpr |
| 13144 | ) |
| 13145 | |
| 13146 | endif (gRPC_BUILD_TESTS) |
| 13147 | if (gRPC_BUILD_TESTS) |
| 13148 | |
| 13149 | add_executable(h2_sockpair+trace_nosec_test |
| 13150 | test/core/end2end/fixtures/h2_sockpair+trace.c |
| 13151 | ) |
| 13152 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13153 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13154 | target_include_directories(h2_sockpair+trace_nosec_test |
| 13155 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13156 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13157 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13158 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13159 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13160 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13161 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13162 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13163 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13164 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13165 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13166 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13167 | ) |
| 13168 | |
| 13169 | target_link_libraries(h2_sockpair+trace_nosec_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13170 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13171 | end2end_nosec_tests |
| 13172 | grpc_test_util_unsecure |
| 13173 | grpc_unsecure |
| 13174 | gpr_test_util |
| 13175 | gpr |
| 13176 | ) |
| 13177 | |
| 13178 | endif (gRPC_BUILD_TESTS) |
| 13179 | if (gRPC_BUILD_TESTS) |
| 13180 | |
| 13181 | add_executable(h2_sockpair_1byte_nosec_test |
| 13182 | test/core/end2end/fixtures/h2_sockpair_1byte.c |
| 13183 | ) |
| 13184 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13185 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13186 | target_include_directories(h2_sockpair_1byte_nosec_test |
| 13187 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13188 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13189 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13190 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13191 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13192 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13193 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13194 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13195 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13196 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13197 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13198 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13199 | ) |
| 13200 | |
| 13201 | target_link_libraries(h2_sockpair_1byte_nosec_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13202 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13203 | end2end_nosec_tests |
| 13204 | grpc_test_util_unsecure |
| 13205 | grpc_unsecure |
| 13206 | gpr_test_util |
| 13207 | gpr |
| 13208 | ) |
| 13209 | |
| 13210 | endif (gRPC_BUILD_TESTS) |
| 13211 | if (gRPC_BUILD_TESTS) |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13212 | if(_gRPC_PLATFORM_LINUX OR _gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_POSIX) |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13213 | |
| 13214 | add_executable(h2_uds_nosec_test |
| 13215 | test/core/end2end/fixtures/h2_uds.c |
| 13216 | ) |
| 13217 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13218 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13219 | target_include_directories(h2_uds_nosec_test |
| 13220 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13221 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13222 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13223 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13224 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13225 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13226 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13227 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13228 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13229 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13230 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13231 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13232 | ) |
| 13233 | |
| 13234 | target_link_libraries(h2_uds_nosec_test |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13235 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13236 | end2end_nosec_tests |
| 13237 | grpc_test_util_unsecure |
| 13238 | grpc_unsecure |
| 13239 | gpr_test_util |
| 13240 | gpr |
| 13241 | ) |
| 13242 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13243 | endif() |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13244 | endif (gRPC_BUILD_TESTS) |
| 13245 | if (gRPC_BUILD_TESTS) |
| 13246 | |
| 13247 | add_executable(api_fuzzer_one_entry |
| 13248 | test/core/end2end/fuzzers/api_fuzzer.c |
| 13249 | test/core/util/one_corpus_entry_fuzzer.c |
| 13250 | ) |
| 13251 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13252 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13253 | target_include_directories(api_fuzzer_one_entry |
| 13254 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13255 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13256 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13257 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13258 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13259 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13260 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13261 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13262 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13263 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13264 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13265 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13266 | ) |
| 13267 | |
| 13268 | target_link_libraries(api_fuzzer_one_entry |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13269 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13270 | grpc_test_util |
| 13271 | grpc |
| 13272 | gpr_test_util |
| 13273 | gpr |
| 13274 | ) |
| 13275 | |
| 13276 | endif (gRPC_BUILD_TESTS) |
| 13277 | if (gRPC_BUILD_TESTS) |
| 13278 | |
| 13279 | add_executable(client_fuzzer_one_entry |
| 13280 | test/core/end2end/fuzzers/client_fuzzer.c |
| 13281 | test/core/util/one_corpus_entry_fuzzer.c |
| 13282 | ) |
| 13283 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13284 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13285 | target_include_directories(client_fuzzer_one_entry |
| 13286 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13287 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13288 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13289 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13290 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13291 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13292 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13293 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13294 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13295 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13296 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13297 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13298 | ) |
| 13299 | |
| 13300 | target_link_libraries(client_fuzzer_one_entry |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13301 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13302 | grpc_test_util |
| 13303 | grpc |
| 13304 | gpr_test_util |
| 13305 | gpr |
| 13306 | ) |
| 13307 | |
| 13308 | endif (gRPC_BUILD_TESTS) |
| 13309 | if (gRPC_BUILD_TESTS) |
| 13310 | |
| 13311 | add_executable(hpack_parser_fuzzer_test_one_entry |
| 13312 | test/core/transport/chttp2/hpack_parser_fuzzer_test.c |
| 13313 | test/core/util/one_corpus_entry_fuzzer.c |
| 13314 | ) |
| 13315 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13316 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13317 | target_include_directories(hpack_parser_fuzzer_test_one_entry |
| 13318 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13319 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13320 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13321 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13322 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13323 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13324 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13325 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13326 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13327 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13328 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13329 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13330 | ) |
| 13331 | |
| 13332 | target_link_libraries(hpack_parser_fuzzer_test_one_entry |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13333 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13334 | grpc_test_util |
| 13335 | grpc |
| 13336 | gpr_test_util |
| 13337 | gpr |
| 13338 | ) |
| 13339 | |
| 13340 | endif (gRPC_BUILD_TESTS) |
| 13341 | if (gRPC_BUILD_TESTS) |
| 13342 | |
| 13343 | add_executable(http_request_fuzzer_test_one_entry |
| 13344 | test/core/http/request_fuzzer.c |
| 13345 | test/core/util/one_corpus_entry_fuzzer.c |
| 13346 | ) |
| 13347 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13348 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13349 | target_include_directories(http_request_fuzzer_test_one_entry |
| 13350 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13351 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13352 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13353 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13354 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13355 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13356 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13357 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13358 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13359 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13360 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13361 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13362 | ) |
| 13363 | |
| 13364 | target_link_libraries(http_request_fuzzer_test_one_entry |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13365 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13366 | grpc_test_util |
| 13367 | grpc |
| 13368 | gpr_test_util |
| 13369 | gpr |
| 13370 | ) |
| 13371 | |
| 13372 | endif (gRPC_BUILD_TESTS) |
| 13373 | if (gRPC_BUILD_TESTS) |
| 13374 | |
| 13375 | add_executable(http_response_fuzzer_test_one_entry |
| 13376 | test/core/http/response_fuzzer.c |
| 13377 | test/core/util/one_corpus_entry_fuzzer.c |
| 13378 | ) |
| 13379 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13380 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13381 | target_include_directories(http_response_fuzzer_test_one_entry |
| 13382 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13383 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13384 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13385 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13386 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13387 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13388 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13389 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13390 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13391 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13392 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13393 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13394 | ) |
| 13395 | |
| 13396 | target_link_libraries(http_response_fuzzer_test_one_entry |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13397 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13398 | grpc_test_util |
| 13399 | grpc |
| 13400 | gpr_test_util |
| 13401 | gpr |
| 13402 | ) |
| 13403 | |
| 13404 | endif (gRPC_BUILD_TESTS) |
| 13405 | if (gRPC_BUILD_TESTS) |
| 13406 | |
| 13407 | add_executable(json_fuzzer_test_one_entry |
| 13408 | test/core/json/fuzzer.c |
| 13409 | test/core/util/one_corpus_entry_fuzzer.c |
| 13410 | ) |
| 13411 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13412 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13413 | target_include_directories(json_fuzzer_test_one_entry |
| 13414 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13415 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13416 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13417 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13418 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13419 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13420 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13421 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13422 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13423 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13424 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13425 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13426 | ) |
| 13427 | |
| 13428 | target_link_libraries(json_fuzzer_test_one_entry |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13429 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13430 | grpc_test_util |
| 13431 | grpc |
| 13432 | gpr_test_util |
| 13433 | gpr |
| 13434 | ) |
| 13435 | |
| 13436 | endif (gRPC_BUILD_TESTS) |
| 13437 | if (gRPC_BUILD_TESTS) |
| 13438 | |
| 13439 | add_executable(nanopb_fuzzer_response_test_one_entry |
| 13440 | test/core/nanopb/fuzzer_response.c |
| 13441 | test/core/util/one_corpus_entry_fuzzer.c |
| 13442 | ) |
| 13443 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13444 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13445 | target_include_directories(nanopb_fuzzer_response_test_one_entry |
| 13446 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13447 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13448 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13449 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13450 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13451 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13452 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13453 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13454 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13455 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13456 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13457 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13458 | ) |
| 13459 | |
| 13460 | target_link_libraries(nanopb_fuzzer_response_test_one_entry |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13461 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13462 | grpc_test_util |
| 13463 | grpc |
| 13464 | gpr_test_util |
| 13465 | gpr |
| 13466 | ) |
| 13467 | |
| 13468 | endif (gRPC_BUILD_TESTS) |
| 13469 | if (gRPC_BUILD_TESTS) |
| 13470 | |
| 13471 | add_executable(nanopb_fuzzer_serverlist_test_one_entry |
| 13472 | test/core/nanopb/fuzzer_serverlist.c |
| 13473 | test/core/util/one_corpus_entry_fuzzer.c |
| 13474 | ) |
| 13475 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13476 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13477 | target_include_directories(nanopb_fuzzer_serverlist_test_one_entry |
| 13478 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13479 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13480 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13481 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13482 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13483 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13484 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13485 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13486 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13487 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13488 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13489 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13490 | ) |
| 13491 | |
| 13492 | target_link_libraries(nanopb_fuzzer_serverlist_test_one_entry |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13493 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13494 | grpc_test_util |
| 13495 | grpc |
| 13496 | gpr_test_util |
| 13497 | gpr |
| 13498 | ) |
| 13499 | |
| 13500 | endif (gRPC_BUILD_TESTS) |
| 13501 | if (gRPC_BUILD_TESTS) |
| 13502 | |
| 13503 | add_executable(percent_decode_fuzzer_one_entry |
| 13504 | test/core/slice/percent_decode_fuzzer.c |
| 13505 | test/core/util/one_corpus_entry_fuzzer.c |
| 13506 | ) |
| 13507 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13508 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13509 | target_include_directories(percent_decode_fuzzer_one_entry |
| 13510 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13511 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13512 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13513 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13514 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13515 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13516 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13517 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13518 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13519 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13520 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13521 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13522 | ) |
| 13523 | |
| 13524 | target_link_libraries(percent_decode_fuzzer_one_entry |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13525 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13526 | grpc_test_util |
| 13527 | grpc |
| 13528 | gpr_test_util |
| 13529 | gpr |
| 13530 | ) |
| 13531 | |
| 13532 | endif (gRPC_BUILD_TESTS) |
| 13533 | if (gRPC_BUILD_TESTS) |
| 13534 | |
| 13535 | add_executable(percent_encode_fuzzer_one_entry |
| 13536 | test/core/slice/percent_encode_fuzzer.c |
| 13537 | test/core/util/one_corpus_entry_fuzzer.c |
| 13538 | ) |
| 13539 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13540 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13541 | target_include_directories(percent_encode_fuzzer_one_entry |
| 13542 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13543 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13544 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13545 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13546 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13547 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13548 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13549 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13550 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13551 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13552 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13553 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13554 | ) |
| 13555 | |
| 13556 | target_link_libraries(percent_encode_fuzzer_one_entry |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13557 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13558 | grpc_test_util |
| 13559 | grpc |
| 13560 | gpr_test_util |
| 13561 | gpr |
| 13562 | ) |
| 13563 | |
| 13564 | endif (gRPC_BUILD_TESTS) |
| 13565 | if (gRPC_BUILD_TESTS) |
| 13566 | |
| 13567 | add_executable(server_fuzzer_one_entry |
| 13568 | test/core/end2end/fuzzers/server_fuzzer.c |
| 13569 | test/core/util/one_corpus_entry_fuzzer.c |
| 13570 | ) |
| 13571 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13572 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13573 | target_include_directories(server_fuzzer_one_entry |
| 13574 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13575 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13576 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13577 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13578 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13579 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13580 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13581 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13582 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13583 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13584 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13585 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13586 | ) |
| 13587 | |
| 13588 | target_link_libraries(server_fuzzer_one_entry |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13589 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13590 | grpc_test_util |
| 13591 | grpc |
| 13592 | gpr_test_util |
| 13593 | gpr |
| 13594 | ) |
| 13595 | |
| 13596 | endif (gRPC_BUILD_TESTS) |
| 13597 | if (gRPC_BUILD_TESTS) |
| 13598 | |
| 13599 | add_executable(ssl_server_fuzzer_one_entry |
| 13600 | test/core/security/ssl_server_fuzzer.c |
| 13601 | test/core/util/one_corpus_entry_fuzzer.c |
| 13602 | ) |
| 13603 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13604 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13605 | target_include_directories(ssl_server_fuzzer_one_entry |
| 13606 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13607 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13608 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13609 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13610 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13611 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13612 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13613 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13614 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13615 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13616 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13617 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13618 | ) |
| 13619 | |
| 13620 | target_link_libraries(ssl_server_fuzzer_one_entry |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13621 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13622 | grpc_test_util |
| 13623 | grpc |
| 13624 | gpr_test_util |
| 13625 | gpr |
| 13626 | ) |
| 13627 | |
| 13628 | endif (gRPC_BUILD_TESTS) |
| 13629 | if (gRPC_BUILD_TESTS) |
| 13630 | |
| 13631 | add_executable(uri_fuzzer_test_one_entry |
| 13632 | test/core/client_channel/uri_fuzzer_test.c |
| 13633 | test/core/util/one_corpus_entry_fuzzer.c |
| 13634 | ) |
| 13635 | |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13636 | |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13637 | target_include_directories(uri_fuzzer_test_one_entry |
| 13638 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} |
| 13639 | PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include |
| 13640 | PRIVATE ${BORINGSSL_ROOT_DIR}/include |
| 13641 | PRIVATE ${PROTOBUF_ROOT_DIR}/src |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13642 | PRIVATE ${BENCHMARK_ROOT_DIR}/include |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13643 | PRIVATE ${ZLIB_ROOT_DIR} |
| 13644 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/zlib |
Yuchen Zeng | 7496218 | 2017-03-20 15:39:47 -0700 | [diff] [blame] | 13645 | PRIVATE ${CARES_BUILD_INCLUDE_DIR} |
Yuchen Zeng | c75bbf2 | 2017-03-20 12:35:20 -0700 | [diff] [blame] | 13646 | PRIVATE ${CARES_INCLUDE_DIR} |
| 13647 | PRIVATE ${CARES_PLATFORM_INCLUDE_DIR} |
| 13648 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/cares/cares |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13649 | PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include |
| 13650 | ) |
| 13651 | |
| 13652 | target_link_libraries(uri_fuzzer_test_one_entry |
Jan Tattermusch | 438c0b5 | 2017-01-23 11:24:53 +0100 | [diff] [blame] | 13653 | ${_gRPC_ALLTARGETS_LIBRARIES} |
Jan Tattermusch | 36cda4c | 2017-01-17 20:00:12 +0100 | [diff] [blame] | 13654 | grpc_test_util |
| 13655 | grpc |
| 13656 | gpr_test_util |
| 13657 | gpr |
| 13658 | ) |
| 13659 | |
| 13660 | endif (gRPC_BUILD_TESTS) |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 13661 | |
Tamas Berghammer | d798a7d | 2016-06-21 13:58:18 +0100 | [diff] [blame] | 13662 | |
| 13663 | |
| 13664 | |
Nicolas "Pixel" Noble | 2069fbc | 2016-08-18 23:29:56 +0200 | [diff] [blame] | 13665 | |
| 13666 | |
| 13667 | |
Konstantin Podsvirov | d2b8830 | 2016-07-27 23:43:47 +0300 | [diff] [blame] | 13668 | foreach(_config gRPCConfig gRPCConfigVersion) |
| 13669 | configure_file(tools/cmake/${_config}.cmake.in |
| 13670 | ${_config}.cmake @ONLY) |
| 13671 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_config}.cmake |
| 13672 | DESTINATION ${CMAKE_INSTALL_CMAKEDIR} |
| 13673 | ) |
| 13674 | endforeach() |