blob: b968fd78c3b284966ea6e6b3c4c1866c72d98331 [file] [log] [blame]
Adam Langleye9ada862015-05-11 17:20:37 -07001add_library(
Robert Sloan4c22c5f2019-03-01 15:53:37 -08002 test_support_lib
Adam Langleye9ada862015-05-11 17:20:37 -07003
Robert Sloan4c22c5f2019-03-01 15:53:37 -08004 STATIC
Adam Langleye9ada862015-05-11 17:20:37 -07005
Robert Sloan4c22c5f2019-03-01 15:53:37 -08006 abi_test.cc
Adam Langleye9ada862015-05-11 17:20:37 -07007 file_test.cc
Adam Langleyf4e42722015-06-04 17:45:09 -07008 malloc.cc
Kenny Rootb8494592015-09-25 02:29:14 +00009 test_util.cc
Robert Sloanc6ebb282018-04-30 10:10:26 -070010 wycheproof_util.cc
Adam Langleye9ada862015-05-11 17:20:37 -070011)
David Benjaminf31229b2017-01-25 14:08:15 -050012
Robert Sloan4c22c5f2019-03-01 15:53:37 -080013if (LIBUNWIND_FOUND)
14 target_compile_options(test_support_lib PRIVATE ${LIBUNWIND_CFLAGS_OTHER})
15 target_include_directories(test_support_lib PRIVATE ${LIBUNWIND_INCLUDE_DIRS})
16 target_link_libraries(test_support_lib ${LIBUNWIND_LDFLAGS})
17endif()
18if(WIN32)
19 target_link_libraries(test_support_lib dbghelp)
20endif()
21add_dependencies(test_support_lib global_target)
Robert Sloan726e9d12018-09-11 11:45:04 -070022
David Benjaminf31229b2017-01-25 14:08:15 -050023add_library(
Robert Sloana450c922018-01-08 10:35:32 -080024 boringssl_gtest_main
David Benjaminf31229b2017-01-25 14:08:15 -050025
26 OBJECT
27
28 gtest_main.cc
29)
Robert Sloan726e9d12018-09-11 11:45:04 -070030
31add_dependencies(boringssl_gtest_main global_target)