Kenny Root | b849459 | 2015-09-25 02:29:14 +0000 | [diff] [blame] | 1 | include_directories(../include) |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 2 | |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 3 | if(NOT OPENSSL_NO_ASM) |
| 4 | if(UNIX) |
| 5 | if (${ARCH} STREQUAL "aarch64") |
| 6 | # The "armx" Perl scripts look for "64" in the style argument |
| 7 | # in order to decide whether to generate 32- or 64-bit asm. |
| 8 | if (APPLE) |
| 9 | set(PERLASM_STYLE ios64) |
| 10 | else() |
| 11 | set(PERLASM_STYLE linux64) |
| 12 | endif() |
| 13 | elseif (${ARCH} STREQUAL "arm") |
| 14 | if (APPLE) |
| 15 | set(PERLASM_STYLE ios32) |
| 16 | else() |
| 17 | set(PERLASM_STYLE linux32) |
| 18 | endif() |
| 19 | elseif (${ARCH} STREQUAL "ppc64le") |
| 20 | set(PERLASM_STYLE linux64le) |
Robert Sloan | 572a4e2 | 2017-04-17 10:52:19 -0700 | [diff] [blame] | 21 | else() |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 22 | if (${ARCH} STREQUAL "x86") |
| 23 | set(PERLASM_FLAGS "-fPIC -DOPENSSL_IA32_SSE2") |
| 24 | endif() |
| 25 | if (APPLE) |
| 26 | set(PERLASM_STYLE macosx) |
| 27 | else() |
| 28 | set(PERLASM_STYLE elf) |
| 29 | endif() |
Robert Sloan | 572a4e2 | 2017-04-17 10:52:19 -0700 | [diff] [blame] | 30 | endif() |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 31 | set(ASM_EXT S) |
| 32 | enable_language(ASM) |
| 33 | set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -Wa,--noexecstack") |
Robert Sloan | 572a4e2 | 2017-04-17 10:52:19 -0700 | [diff] [blame] | 34 | |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 35 | # Clang's integerated assembler does not support debug symbols. |
| 36 | if(NOT CMAKE_ASM_COMPILER_ID MATCHES "Clang") |
| 37 | set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -Wa,-g") |
| 38 | endif() |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 39 | |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 40 | # CMake does not add -isysroot and -arch flags to assembly. |
| 41 | if (APPLE) |
| 42 | if (CMAKE_OSX_SYSROOT) |
Robert Sloan | ae1abf9 | 2017-10-05 12:50:08 -0700 | [diff] [blame] | 43 | set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -isysroot \"${CMAKE_OSX_SYSROOT}\"") |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 44 | endif() |
| 45 | foreach(arch ${CMAKE_OSX_ARCHITECTURES}) |
| 46 | set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -arch ${arch}") |
| 47 | endforeach() |
| 48 | endif() |
| 49 | else() |
Robert Sloan | 8f860b1 | 2017-08-28 07:37:06 -0700 | [diff] [blame] | 50 | if (${ARCH} STREQUAL "x86_64") |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 51 | set(PERLASM_STYLE nasm) |
| 52 | else() |
| 53 | set(PERLASM_STYLE win32n) |
| 54 | set(PERLASM_FLAGS "-DOPENSSL_IA32_SSE2") |
| 55 | endif() |
Robert Sloan | 978112c | 2018-01-22 12:53:01 -0800 | [diff] [blame] | 56 | set(CMAKE_ASM_NASM_FLAGS "-gcv8") |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 57 | |
| 58 | # On Windows, we use the NASM output, specifically built with Yasm. |
| 59 | set(ASM_EXT asm) |
| 60 | enable_language(ASM_NASM) |
| 61 | endif() |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 62 | endif() |
| 63 | |
| 64 | function(perlasm dest src) |
| 65 | add_custom_command( |
| 66 | OUTPUT ${dest} |
David Benjamin | c895d6b | 2016-08-11 13:26:41 -0400 | [diff] [blame] | 67 | COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${src} ${PERLASM_STYLE} ${PERLASM_FLAGS} ${ARGN} ${dest} |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 68 | DEPENDS |
| 69 | ${src} |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 70 | ${PROJECT_SOURCE_DIR}/crypto/perlasm/arm-xlate.pl |
Steven Valdez | bb1ceac | 2016-10-07 10:34:51 -0400 | [diff] [blame] | 71 | ${PROJECT_SOURCE_DIR}/crypto/perlasm/ppc-xlate.pl |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 72 | ${PROJECT_SOURCE_DIR}/crypto/perlasm/x86_64-xlate.pl |
| 73 | ${PROJECT_SOURCE_DIR}/crypto/perlasm/x86asm.pl |
| 74 | ${PROJECT_SOURCE_DIR}/crypto/perlasm/x86gas.pl |
| 75 | ${PROJECT_SOURCE_DIR}/crypto/perlasm/x86masm.pl |
| 76 | ${PROJECT_SOURCE_DIR}/crypto/perlasm/x86nasm.pl |
| 77 | WORKING_DIRECTORY . |
| 78 | ) |
| 79 | endfunction() |
| 80 | |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 81 | # Level 0.1 - depends on nothing outside this set. |
| 82 | add_subdirectory(stack) |
| 83 | add_subdirectory(lhash) |
| 84 | add_subdirectory(err) |
| 85 | add_subdirectory(buf) |
| 86 | add_subdirectory(base64) |
| 87 | add_subdirectory(bytestring) |
Steven Valdez | 909b19f | 2016-11-21 15:35:44 -0500 | [diff] [blame] | 88 | add_subdirectory(pool) |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 89 | |
| 90 | # Level 0.2 - depends on nothing but itself |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 91 | add_subdirectory(rc4) |
| 92 | add_subdirectory(conf) |
| 93 | add_subdirectory(chacha) |
| 94 | add_subdirectory(poly1305) |
Adam Langley | 4139edb | 2016-01-13 15:00:54 -0800 | [diff] [blame] | 95 | add_subdirectory(curve25519) |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 96 | |
| 97 | # Level 1, depends only on 0.* |
Robert Sloan | 572a4e2 | 2017-04-17 10:52:19 -0700 | [diff] [blame] | 98 | add_subdirectory(digest_extra) |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 99 | add_subdirectory(cipher_extra) |
Robert Sloan | 9254e68 | 2017-04-24 09:42:06 -0700 | [diff] [blame] | 100 | add_subdirectory(rand_extra) |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 101 | add_subdirectory(bio) |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 102 | add_subdirectory(bn_extra) |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 103 | add_subdirectory(obj) |
| 104 | add_subdirectory(asn1) |
| 105 | |
| 106 | # Level 2 |
| 107 | add_subdirectory(engine) |
| 108 | add_subdirectory(dh) |
| 109 | add_subdirectory(dsa) |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 110 | add_subdirectory(rsa_extra) |
| 111 | add_subdirectory(ec_extra) |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 112 | add_subdirectory(ecdh) |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 113 | add_subdirectory(ecdsa_extra) |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 114 | |
| 115 | # Level 3 |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 116 | add_subdirectory(cmac) |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 117 | add_subdirectory(evp) |
| 118 | add_subdirectory(hkdf) |
| 119 | add_subdirectory(pem) |
| 120 | add_subdirectory(x509) |
| 121 | add_subdirectory(x509v3) |
| 122 | |
| 123 | # Level 4 |
Robert Sloan | 9254e68 | 2017-04-24 09:42:06 -0700 | [diff] [blame] | 124 | add_subdirectory(pkcs7) |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 125 | add_subdirectory(pkcs8) |
| 126 | |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 127 | # Test support code |
| 128 | add_subdirectory(test) |
| 129 | |
Robert Sloan | 572a4e2 | 2017-04-17 10:52:19 -0700 | [diff] [blame] | 130 | add_subdirectory(fipsmodule) |
| 131 | |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 132 | add_library( |
Robert Sloan | 572a4e2 | 2017-04-17 10:52:19 -0700 | [diff] [blame] | 133 | crypto_base |
| 134 | |
| 135 | OBJECT |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 136 | |
Robert Sloan | ab8b888 | 2018-03-26 11:39:51 -0700 | [diff] [blame^] | 137 | cpu-aarch64-fuchsia.c |
David Benjamin | 4969cc9 | 2016-04-22 15:02:23 -0400 | [diff] [blame] | 138 | cpu-aarch64-linux.c |
| 139 | cpu-arm.c |
| 140 | cpu-arm-linux.c |
| 141 | cpu-intel.c |
Steven Valdez | bb1ceac | 2016-10-07 10:34:51 -0400 | [diff] [blame] | 142 | cpu-ppc64le.c |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 143 | crypto.c |
Adam Langley | f4e4272 | 2015-06-04 17:45:09 -0700 | [diff] [blame] | 144 | ex_data.c |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 145 | mem.c |
Adam Langley | f4e4272 | 2015-06-04 17:45:09 -0700 | [diff] [blame] | 146 | refcount_c11.c |
| 147 | refcount_lock.c |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 148 | thread.c |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 149 | thread_none.c |
| 150 | thread_pthread.c |
| 151 | thread_win.c |
Robert Sloan | 572a4e2 | 2017-04-17 10:52:19 -0700 | [diff] [blame] | 152 | ) |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 153 | |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 154 | if(FIPS_DELOCATE) |
Robert Sloan | 572a4e2 | 2017-04-17 10:52:19 -0700 | [diff] [blame] | 155 | SET_SOURCE_FILES_PROPERTIES(fipsmodule/bcm.o PROPERTIES EXTERNAL_OBJECT true) |
| 156 | SET_SOURCE_FILES_PROPERTIES(fipsmodule/bcm.o PROPERTIES GENERATED true) |
| 157 | |
| 158 | set( |
| 159 | CRYPTO_FIPS_OBJECTS |
| 160 | |
| 161 | fipsmodule/bcm.o |
| 162 | ) |
| 163 | endif() |
| 164 | |
| 165 | add_library( |
| 166 | crypto |
| 167 | |
| 168 | $<TARGET_OBJECTS:crypto_base> |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 169 | $<TARGET_OBJECTS:stack> |
| 170 | $<TARGET_OBJECTS:lhash> |
| 171 | $<TARGET_OBJECTS:err> |
| 172 | $<TARGET_OBJECTS:base64> |
| 173 | $<TARGET_OBJECTS:bytestring> |
Steven Valdez | 909b19f | 2016-11-21 15:35:44 -0500 | [diff] [blame] | 174 | $<TARGET_OBJECTS:pool> |
Robert Sloan | 572a4e2 | 2017-04-17 10:52:19 -0700 | [diff] [blame] | 175 | $<TARGET_OBJECTS:fipsmodule> |
| 176 | $<TARGET_OBJECTS:digest_extra> |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 177 | $<TARGET_OBJECTS:cipher_extra> |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 178 | $<TARGET_OBJECTS:rc4> |
| 179 | $<TARGET_OBJECTS:conf> |
| 180 | $<TARGET_OBJECTS:chacha> |
| 181 | $<TARGET_OBJECTS:poly1305> |
Adam Langley | 4139edb | 2016-01-13 15:00:54 -0800 | [diff] [blame] | 182 | $<TARGET_OBJECTS:curve25519> |
Robert Sloan | b1b54b8 | 2017-11-06 13:50:02 -0800 | [diff] [blame] | 183 | $<TARGET_OBJECTS:fiat> |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 184 | $<TARGET_OBJECTS:buf> |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 185 | $<TARGET_OBJECTS:bn_extra> |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 186 | $<TARGET_OBJECTS:bio> |
Robert Sloan | 9254e68 | 2017-04-24 09:42:06 -0700 | [diff] [blame] | 187 | $<TARGET_OBJECTS:rand_extra> |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 188 | $<TARGET_OBJECTS:obj> |
| 189 | $<TARGET_OBJECTS:asn1> |
| 190 | $<TARGET_OBJECTS:engine> |
| 191 | $<TARGET_OBJECTS:dh> |
| 192 | $<TARGET_OBJECTS:dsa> |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 193 | $<TARGET_OBJECTS:rsa_extra> |
| 194 | $<TARGET_OBJECTS:ec_extra> |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 195 | $<TARGET_OBJECTS:ecdh> |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 196 | $<TARGET_OBJECTS:ecdsa_extra> |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 197 | $<TARGET_OBJECTS:cmac> |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 198 | $<TARGET_OBJECTS:evp> |
| 199 | $<TARGET_OBJECTS:hkdf> |
| 200 | $<TARGET_OBJECTS:pem> |
| 201 | $<TARGET_OBJECTS:x509> |
| 202 | $<TARGET_OBJECTS:x509v3> |
Robert Sloan | 9254e68 | 2017-04-24 09:42:06 -0700 | [diff] [blame] | 203 | $<TARGET_OBJECTS:pkcs7> |
David Benjamin | 4969cc9 | 2016-04-22 15:02:23 -0400 | [diff] [blame] | 204 | $<TARGET_OBJECTS:pkcs8_lib> |
Robert Sloan | 572a4e2 | 2017-04-17 10:52:19 -0700 | [diff] [blame] | 205 | |
| 206 | ${CRYPTO_FIPS_OBJECTS} |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 207 | ) |
| 208 | |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 209 | if(FIPS_DELOCATE) |
Robert Sloan | 572a4e2 | 2017-04-17 10:52:19 -0700 | [diff] [blame] | 210 | add_dependencies(crypto bcm_o_target) |
| 211 | endif() |
| 212 | |
| 213 | SET_TARGET_PROPERTIES(crypto PROPERTIES LINKER_LANGUAGE C) |
| 214 | |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 215 | if(NOT MSVC AND NOT ANDROID) |
| 216 | target_link_libraries(crypto pthread) |
| 217 | endif() |
| 218 | |
David Benjamin | f31229b | 2017-01-25 14:08:15 -0500 | [diff] [blame] | 219 | # TODO(davidben): Convert the remaining tests to GTest. |
| 220 | add_executable( |
| 221 | crypto_test |
| 222 | |
Robert Sloan | 8ecb7cd | 2017-03-21 09:39:01 -0700 | [diff] [blame] | 223 | asn1/asn1_test.cc |
Robert Sloan | 572a4e2 | 2017-04-17 10:52:19 -0700 | [diff] [blame] | 224 | base64/base64_test.cc |
Robert Sloan | 921ef2c | 2017-10-17 09:02:20 -0700 | [diff] [blame] | 225 | buf/buf_test.cc |
Robert Sloan | 6d0d00e | 2017-03-27 07:13:07 -0700 | [diff] [blame] | 226 | bio/bio_test.cc |
Robert Sloan | 572a4e2 | 2017-04-17 10:52:19 -0700 | [diff] [blame] | 227 | bytestring/bytestring_test.cc |
Robert Sloan | a94fe05 | 2017-02-21 08:49:28 -0800 | [diff] [blame] | 228 | chacha/chacha_test.cc |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 229 | cipher_extra/aead_test.cc |
| 230 | cipher_extra/cipher_test.cc |
Robert Sloan | 2424d84 | 2017-05-01 07:46:28 -0700 | [diff] [blame] | 231 | cmac/cmac_test.cc |
Robert Sloan | 9254e68 | 2017-04-24 09:42:06 -0700 | [diff] [blame] | 232 | compiler_test.cc |
Robert Sloan | 6d0d00e | 2017-03-27 07:13:07 -0700 | [diff] [blame] | 233 | constant_time_test.cc |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 234 | curve25519/ed25519_test.cc |
Robert Sloan | 2424d84 | 2017-05-01 07:46:28 -0700 | [diff] [blame] | 235 | curve25519/spake25519_test.cc |
Robert Sloan | 7d422bc | 2017-03-06 10:04:29 -0800 | [diff] [blame] | 236 | curve25519/x25519_test.cc |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 237 | ecdh/ecdh_test.cc |
David Benjamin | f31229b | 2017-01-25 14:08:15 -0500 | [diff] [blame] | 238 | dh/dh_test.cc |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 239 | digest_extra/digest_test.cc |
David Benjamin | f31229b | 2017-01-25 14:08:15 -0500 | [diff] [blame] | 240 | dsa/dsa_test.cc |
Robert Sloan | 5d62578 | 2017-02-13 09:55:39 -0800 | [diff] [blame] | 241 | err/err_test.cc |
Robert Sloan | 7d422bc | 2017-03-06 10:04:29 -0800 | [diff] [blame] | 242 | evp/evp_extra_test.cc |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 243 | evp/evp_test.cc |
| 244 | evp/pbkdf_test.cc |
| 245 | evp/scrypt_test.cc |
| 246 | fipsmodule/aes/aes_test.cc |
| 247 | fipsmodule/bn/bn_test.cc |
| 248 | fipsmodule/ec/ec_test.cc |
| 249 | fipsmodule/ec/p256-x86_64_test.cc |
| 250 | fipsmodule/ecdsa/ecdsa_test.cc |
| 251 | fipsmodule/modes/gcm_test.cc |
Robert Sloan | 9254e68 | 2017-04-24 09:42:06 -0700 | [diff] [blame] | 252 | fipsmodule/rand/ctrdrbg_test.cc |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 253 | hkdf/hkdf_test.cc |
| 254 | hmac_extra/hmac_test.cc |
| 255 | lhash/lhash_test.cc |
| 256 | obj/obj_test.cc |
| 257 | pkcs7/pkcs7_test.cc |
| 258 | pkcs8/pkcs8_test.cc |
| 259 | pkcs8/pkcs12_test.cc |
| 260 | poly1305/poly1305_test.cc |
| 261 | pool/pool_test.cc |
| 262 | refcount_test.cc |
| 263 | rsa_extra/rsa_test.cc |
Robert Sloan | 978112c | 2018-01-22 12:53:01 -0800 | [diff] [blame] | 264 | self_test.cc |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 265 | test/file_test_gtest.cc |
| 266 | thread_test.cc |
| 267 | x509/x509_test.cc |
Robert Sloan | a12bf46 | 2017-07-17 07:08:26 -0700 | [diff] [blame] | 268 | x509v3/tab_test.cc |
| 269 | x509v3/v3name_test.cc |
David Benjamin | f31229b | 2017-01-25 14:08:15 -0500 | [diff] [blame] | 270 | |
Robert Sloan | 8ff0355 | 2017-06-14 12:40:58 -0700 | [diff] [blame] | 271 | $<TARGET_OBJECTS:crypto_test_data> |
Robert Sloan | a450c92 | 2018-01-08 10:35:32 -0800 | [diff] [blame] | 272 | $<TARGET_OBJECTS:boringssl_gtest_main> |
David Benjamin | f31229b | 2017-01-25 14:08:15 -0500 | [diff] [blame] | 273 | $<TARGET_OBJECTS:test_support> |
| 274 | ) |
| 275 | |
Robert Sloan | a450c92 | 2018-01-08 10:35:32 -0800 | [diff] [blame] | 276 | target_link_libraries(crypto_test crypto boringssl_gtest) |
Robert Sloan | 6d0d00e | 2017-03-27 07:13:07 -0700 | [diff] [blame] | 277 | if (WIN32) |
| 278 | target_link_libraries(crypto_test ws2_32) |
| 279 | endif() |
David Benjamin | f31229b | 2017-01-25 14:08:15 -0500 | [diff] [blame] | 280 | add_dependencies(all_tests crypto_test) |